|
@@ -42,7 +42,11 @@
|
|
|
<wang-editor v-model="form[item.model]"></wang-editor>
|
|
|
</template>
|
|
|
<template v-else-if="item.type === 'text'">
|
|
|
- {{ form[item.model] }}
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ {{ form[item.model] }}
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<el-input
|
|
@@ -64,7 +68,7 @@
|
|
|
<el-form-item v-if="needSave" class="btn">
|
|
|
<el-row type="flex" align="middle" justify="space-around">
|
|
|
<el-col :span="6">
|
|
|
- <el-button type="primary" @click="save">登录</el-button>
|
|
|
+ <el-button type="primary" @click="save">{{ submitText }}</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form-item>
|
|
@@ -89,6 +93,7 @@ export default {
|
|
|
needSave: { type: Boolean, default: true },
|
|
|
labelWidth: { type: String, default: '120px' },
|
|
|
useEnter: { type: Boolean, default: true },
|
|
|
+ submitText: { type: String, default: '保存' },
|
|
|
},
|
|
|
components: {
|
|
|
wangEditor,
|