|
@@ -28,7 +28,7 @@
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
v-if="i.type == 'input'"
|
|
v-if="i.type == 'input'"
|
|
- v-model.trim="formData[i.prop]"
|
|
|
|
|
|
+ v-model="formData[i.prop]"
|
|
:placeholder="i.placeholder || '请输入'"
|
|
:placeholder="i.placeholder || '请输入'"
|
|
@input="(e) => commonsEmit(e, i)"
|
|
@input="(e) => commonsEmit(e, i)"
|
|
:type="i.itemType ? i.itemType : 'text'"
|
|
:type="i.itemType ? i.itemType : 'text'"
|
|
@@ -470,6 +470,9 @@ const handleSubmit = async (onSubmit) => {
|
|
if (item.type == "json") {
|
|
if (item.type == "json") {
|
|
form[item.prop] = JSON.stringify(form[item.prop]);
|
|
form[item.prop] = JSON.stringify(form[item.prop]);
|
|
}
|
|
}
|
|
|
|
+ if (item.type == 'input') {
|
|
|
|
+ form[item.prop] = form[item.prop].trim();
|
|
|
|
+ }
|
|
});
|
|
});
|
|
emit("update:modelValue", form);
|
|
emit("update:modelValue", form);
|
|
onSubmit();
|
|
onSubmit();
|