|
@@ -21,10 +21,6 @@
|
|
|
<el-form-item v-if="display(item)" :key="'form-field-' + index" :label="getField('label', item)" :prop="item.model" :required="item.required">
|
|
|
<template v-if="!item.custom">
|
|
|
<template v-if="item.type !== 'text'">
|
|
|
- <template v-if="item.type === 'editor'">
|
|
|
- <wang-editor v-model="form[item.model]" :url="item.url"></wang-editor>
|
|
|
- <!-- <el-input clearable v-model="form[item.model]" type="textarea" :autosize="{ minRows: 3, maxRows: 5 }"></el-input> -->
|
|
|
- </template>
|
|
|
<el-tooltip class="item" effect="dark" :content="item.tip" placement="top-start" :disabled="!item.tip">
|
|
|
<template v-if="item.type === `date` || item.type === `datetime`">
|
|
|
<el-date-picker
|
|
@@ -69,6 +65,9 @@
|
|
|
<template v-else-if="item.type === 'textarea'">
|
|
|
<el-input clearable v-model="form[item.model]" type="textarea" :autosize="{ minRows: 3, maxRows: 5 }"></el-input>
|
|
|
</template>
|
|
|
+ <template v-else-if="item.type === 'editor'">
|
|
|
+ <wang-editor v-model="form[item.model]" :url="item.url" :value="form[item.model]"></wang-editor>
|
|
|
+ </template>
|
|
|
<template v-else>
|
|
|
<el-input
|
|
|
clearable
|