|
@@ -53,7 +53,7 @@
|
|
|
>
|
|
|
<template v-if="element.type === 'input'">
|
|
|
<el-input
|
|
|
- v-model="data"
|
|
|
+ v-model.trim="data"
|
|
|
:style="{ width: element.options.width }"
|
|
|
:placeholder="element.options.placeholder"
|
|
|
:maxlength="parseInt(element.options.maxlength)"
|
|
@@ -86,7 +86,7 @@
|
|
|
|
|
|
<template v-if="element.type === 'password'">
|
|
|
<el-input
|
|
|
- v-model="data"
|
|
|
+ v-model.trim="data"
|
|
|
:style="{ width: element.options.width }"
|
|
|
:placeholder="element.options.placeholder"
|
|
|
:maxlength="parseInt(element.options.maxlength)"
|
|
@@ -120,7 +120,7 @@
|
|
|
|
|
|
<template v-if="element.type === 'textarea'">
|
|
|
<el-input
|
|
|
- v-model="data"
|
|
|
+ v-model.trim="data"
|
|
|
type="textarea"
|
|
|
resize="none"
|
|
|
:rows="element.options.rows"
|
|
@@ -142,6 +142,7 @@
|
|
|
:max="element.options.max"
|
|
|
:min="element.options.min"
|
|
|
:disabled="disabled || element.options.disabled"
|
|
|
+ controls-position="right"
|
|
|
/>
|
|
|
</template>
|
|
|
|