Skip to content

Commit

Permalink
feat: 修复数据引用带了的副作用
Browse files Browse the repository at this point in the history
  • Loading branch information
lhbxs committed Feb 28, 2024
1 parent d3dffca commit 21e704c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 418 deletions.
40 changes: 0 additions & 40 deletions docs/form-render/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,46 +58,6 @@ export default () => {
onFinish={onFinish}
maxWidth={360}
footer={true}
watch={{
"#": (allValues, changedValues) => {
// '#': () => {} 等同于 onValuesChange
// console.log('表单 allValues:', allValues);
setTimeout(() => {
form.setSchema(
{
type: "object",
displayType: "row",
column: 2,
properties: {
input12: {
title: "输入框xxxx",
displayType: "row",
type: "string",
widget: "input",
},
number12: {
title: "数字输入框",
type: "number",
widget: "inputNumber",
},
select12: {
title: "下啦单选",
widget: "select",
props: {
options: [
{ label: "", value: "east" },
{ label: "西", value: "west" },
],
},
},
},
},
true
);
}, 0);

}
}}
/>
);
}
Expand Down
Loading

0 comments on commit 21e704c

Please sign in to comment.