Skip to content

Commit

Permalink
update @simpleform/editor demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mezhanglei committed May 29, 2024
1 parent e6d9273 commit 2528178
Show file tree
Hide file tree
Showing 25 changed files with 129 additions and 129 deletions.
2 changes: 1 addition & 1 deletion docs/docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs/editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/editor/usage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/form/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/form/usage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/render/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/render/usage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
166 changes: 83 additions & 83 deletions docs/docs/umi.b4f509c7.js → docs/docs/umi.9ae93016.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/~demos/docs-form-readme-demo-base/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/~demos/docs-render-readme-demo-base/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/~demos/docs-render-readme-demo-global/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/docs/~demos/docs-render-readme-demo-list/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<div id="root"></div>
<script src="/simpleform/docs/umi.b4f509c7.js"></script>
<script src="/simpleform/docs/umi.9ae93016.js"></script>
</body>
</html>
8 changes: 4 additions & 4 deletions packages/editor/example/demo/FormRender/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ const axiosConfig = {
};

export function FormChildren(props: CustomFormChildrenProps) {
const { components, plugins, ...rest } = props;
const { components, variables, ...rest } = props;
return (
<DefaultFormChildren
options={{ props: { autoComplete: 'off' } }}
components={{ ...widgets, ...components }}
plugins={{ ...plugins, request: createRequest(axiosConfig) }}
variables={{ ...variables, request: createRequest(axiosConfig) }}
{...rest}
/>
);
}

export default function FormRender(props: CustomFormRenderProps) {
const { components, plugins, ...rest } = props;
const { components, variables, ...rest } = props;
return (
<DefaultFormRender
options={{ props: { autoComplete: 'off' } }}
components={{ ...widgets, ...components }}
plugins={{ ...plugins, request: createRequest(axiosConfig) }}
variables={{ ...variables, request: createRequest(axiosConfig) }}
{...rest}
/>
);
Expand Down
20 changes: 10 additions & 10 deletions packages/render/example/demo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ export default function Demo(props) {
type: 'Select',
props: {
labelInValue: true,
style: { width: '100%' }
style: { width: '100%' },
options: [
{ label: 'option1', value: 1 },
{ label: 'option2', value: 2 },
],
},
children: [
{ type: 'Select.Option', props: { key: 1, value: '1' }, children: 'option1' },
{ type: 'Select.Option', props: { key: 2, value: '2' }, children: 'option2' }
]
},
{
label: 'list[1]',
Expand All @@ -91,12 +91,12 @@ export default function Demo(props) {
type: 'Select',
props: {
labelInValue: true,
style: { width: '100%' }
style: { width: '100%' },
options: [
{ label: 'option1', value: 1 },
{ label: 'option2', value: 2 },
],
},
children: [
{ type: 'Select.Option', props: { key: 1, value: '1' }, children: 'option1' },
{ type: 'Select.Option', props: { key: 2, value: '2' }, children: 'option2' }
]
},
{
label: 'first',
Expand Down
22 changes: 11 additions & 11 deletions website/src/render/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export default function Demo() {
type: 'Select',
props: {
labelInValue: true,
style: { width: '100%' }
style: { width: '100%' },
options: [
{ label: 'option1', value: 1 },
{ label: 'option2', value: 2 },
],
},
children: [
{ type: 'Select.Option', props: { key: 1, value: '1' }, children: 'option1' },
{ type: 'Select.Option', props: { key: 2, value: '2' }, children: 'option2' }
]
},
{
label: 'list[1]',
Expand All @@ -46,12 +46,12 @@ export default function Demo() {
type: 'Select',
props: {
labelInValue: true,
style: { width: '100%' }
},
children: [
{ type: 'Select.Option', props: { key: 1, value: '1' }, children: 'option1' },
{ type: 'Select.Option', props: { key: 2, value: '2' }, children: 'option2' }
]
style: { width: '100%' },
options: [
{ label: 'option1', value: 1 },
{ label: 'option2', value: 2 },
],
}
},
{
label: 'first',
Expand Down

0 comments on commit 2528178

Please sign in to comment.