Skip to content
Merged

Dev #103

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions admin-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"@ant-design/icons": "^5.4.0",
"@ant-design/pro-components": "^2.8.7",
"@babel/standalone": "^7.25.6",
"@codingapi/flow-pc": "^0.0.20",
"@codingapi/form-pc": "^0.0.20",
"@codingapi/ui-framework": "^0.0.20",
"@codingapi/flow-pc": "^0.0.23",
"@codingapi/form-pc": "^0.0.23",
"@codingapi/ui-framework": "^0.0.23",
"@dnd-kit/core": "^6.2.0",
"@dnd-kit/sortable": "^9.0.0",
"@handsontable/react-wrapper": "^15.0.0",
Expand Down
36 changes: 31 additions & 5 deletions admin-ui/src/pages/form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const FooterButtons: React.FC<{ formInstance: FormInstance }> = ({formInstance})
textarea: '这是一段文本',
date: '2021-08-01',
cascader: '1,1-1,1-1-1',
select: '1,2',
select: '1-1-1,2',
avatar: 'c84fb304c180f61bb7db40efef7f85b7',
color: '#000000',
ideCode: 'console.log("hello world")'
Expand Down Expand Up @@ -345,7 +345,20 @@ const FormPage = () => {
label: '选择器',
selectMultiple: true,
options: [
{label: '选项1', value: '1'},
{
label: '选项1', value: '1',
children: [
{
label: '选项1-1',
value: '1-1',
children: [
{label: '选项1-1-1', value: '1-1-1'},
{label: '选项1-1-2', value: '1-1-2'},
]
},
{label: '选项1-2', value: '1-2'},
]
},
{label: '选项2', value: '2'},
{label: '选项3', value: '3'},
]
Expand Down Expand Up @@ -384,7 +397,7 @@ const FormPage = () => {
<Form
form={leftFormInstance}
layout={"horizontal"}
onFinish={async (values)=>{
onFinish={async (values) => {
message.success(JSON.stringify(values));
}}
footer={(
Expand Down Expand Up @@ -547,7 +560,20 @@ const FormPage = () => {
label={"选择器"}
selectMultiple={true}
options={[
{label: '选项1', value: '1'},
{
label: '选项1', value: '1',
children: [
{
label: '选项1-1',
value: '1-1',
children: [
{label: '选项1-1-1', value: '1-1-1'},
{label: '选项1-1-2', value: '1-1-2'},
]
},
{label: '选项1-2', value: '1-2'},
]
},
{label: '选项2', value: '2'},
{label: '选项3', value: '3'},
]}
Expand Down Expand Up @@ -575,7 +601,7 @@ const FormPage = () => {

<Col span={12}>
<Form
onFinish={async (values)=>{
onFinish={async (values) => {
message.success(JSON.stringify(values));
}}
form={rightFormInstance}
Expand Down
6 changes: 3 additions & 3 deletions mobile-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"dependencies": {
"@babel/standalone": "^7.25.6",
"@codingapi/flow-mobile": "^0.0.20",
"@codingapi/form-mobile": "^0.0.20",
"@codingapi/ui-framework": "^0.0.20",
"@codingapi/flow-mobile": "^0.0.23",
"@codingapi/form-mobile": "^0.0.23",
"@codingapi/ui-framework": "^0.0.23",
"@logicflow/core": "^2.0.10",
"@logicflow/extension": "^2.0.14",
"@reduxjs/toolkit": "^2.2.7",
Expand Down