form 表单 预览

This commit is contained in:
cxc
2022-12-21 17:16:20 +08:00
parent 0926b42051
commit 7c35ccd910
7 changed files with 197 additions and 100 deletions

View File

@ -73,13 +73,7 @@ const layouts = {
key={config.renderKey}
conf={currentItem}
onInput={(event) => {
// console.log(event);
// // console.log(this.currentItem.__config__.defaultValue);
// this.$set(config, "defaultValue", event);
// // console.log(this.currentItem.__config__.defaultValue);
this.currentItem.__config__.defaultValue = event;
// config.defaultValue = event;
// config.defaultValue = event;
config.defaultValue = event;
}}
>
{{
@ -170,7 +164,7 @@ const layouts = {
key={config.renderKey}
conf={currentItem}
onInput={(event) => {
this.currentItem.__config__.defaultValue = event;
config.defaultValue = event;
}}
>
{child}

View File

@ -206,7 +206,7 @@
:modelValue="activeData.min"
:min="0"
placeholder="至少应选"
@input="$set(activeData, 'min', $event ? $event : undefined)"
@input="activeData.min = $event ? $event : undefined"
/>
</el-form-item>
<el-form-item
@ -217,7 +217,7 @@
:modelValue="activeData.max"
:min="0"
placeholder="最多可选"
@input="$set(activeData, 'max', $event ? $event : undefined)"
@input="activeData.max = $event ? $event : undefined"
/>
</el-form-item>
<el-form-item