Skip to content

Commit 21ab956

Browse files
committed
update version
1 parent 6c6c774 commit 21ab956

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

admin-ui/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"@ant-design/icons": "^5.4.0",
77
"@ant-design/pro-components": "^2.8.7",
88
"@babel/standalone": "^7.25.6",
9-
"@codingapi/flow-pc": "^0.0.20",
10-
"@codingapi/form-pc": "^0.0.20",
11-
"@codingapi/ui-framework": "^0.0.20",
9+
"@codingapi/flow-pc": "^0.0.23",
10+
"@codingapi/form-pc": "^0.0.23",
11+
"@codingapi/ui-framework": "^0.0.23",
1212
"@dnd-kit/core": "^6.2.0",
1313
"@dnd-kit/sortable": "^9.0.0",
1414
"@handsontable/react-wrapper": "^15.0.0",

admin-ui/src/pages/form/index.tsx

+31-5
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const FooterButtons: React.FC<{ formInstance: FormInstance }> = ({formInstance})
3838
textarea: '这是一段文本',
3939
date: '2021-08-01',
4040
cascader: '1,1-1,1-1-1',
41-
select: '1,2',
41+
select: '1-1-1,2',
4242
avatar: 'c84fb304c180f61bb7db40efef7f85b7',
4343
color: '#000000',
4444
ideCode: 'console.log("hello world")'
@@ -345,7 +345,20 @@ const FormPage = () => {
345345
label: '选择器',
346346
selectMultiple: true,
347347
options: [
348-
{label: '选项1', value: '1'},
348+
{
349+
label: '选项1', value: '1',
350+
children: [
351+
{
352+
label: '选项1-1',
353+
value: '1-1',
354+
children: [
355+
{label: '选项1-1-1', value: '1-1-1'},
356+
{label: '选项1-1-2', value: '1-1-2'},
357+
]
358+
},
359+
{label: '选项1-2', value: '1-2'},
360+
]
361+
},
349362
{label: '选项2', value: '2'},
350363
{label: '选项3', value: '3'},
351364
]
@@ -384,7 +397,7 @@ const FormPage = () => {
384397
<Form
385398
form={leftFormInstance}
386399
layout={"horizontal"}
387-
onFinish={async (values)=>{
400+
onFinish={async (values) => {
388401
message.success(JSON.stringify(values));
389402
}}
390403
footer={(
@@ -547,7 +560,20 @@ const FormPage = () => {
547560
label={"选择器"}
548561
selectMultiple={true}
549562
options={[
550-
{label: '选项1', value: '1'},
563+
{
564+
label: '选项1', value: '1',
565+
children: [
566+
{
567+
label: '选项1-1',
568+
value: '1-1',
569+
children: [
570+
{label: '选项1-1-1', value: '1-1-1'},
571+
{label: '选项1-1-2', value: '1-1-2'},
572+
]
573+
},
574+
{label: '选项1-2', value: '1-2'},
575+
]
576+
},
551577
{label: '选项2', value: '2'},
552578
{label: '选项3', value: '3'},
553579
]}
@@ -575,7 +601,7 @@ const FormPage = () => {
575601

576602
<Col span={12}>
577603
<Form
578-
onFinish={async (values)=>{
604+
onFinish={async (values) => {
579605
message.success(JSON.stringify(values));
580606
}}
581607
form={rightFormInstance}

0 commit comments

Comments
 (0)