feat:代码生成新增下拉多选控件

This commit is contained in:
不做码农 2022-10-17 18:00:43 +08:00
parent ad3287770d
commit 8cb4024a05

View File

@ -89,6 +89,7 @@
<el-option label="数字框" value="inputNumber" /> <el-option label="数字框" value="inputNumber" />
<el-option label="文本域" value="textarea" /> <el-option label="文本域" value="textarea" />
<el-option label="下拉框" value="select" /> <el-option label="下拉框" value="select" />
<el-option label="下拉框多选(查询)" value="selectMulti" />
<el-option label="单选框" value="radio" /> <el-option label="单选框" value="radio" />
<el-option label="复选框" value="checkbox" /> <el-option label="复选框" value="checkbox" />
<el-option label="日期控件" value="datetime" /> <el-option label="日期控件" value="datetime" />
@ -105,8 +106,13 @@
v-model="scope.row.dictType" v-model="scope.row.dictType"
clearable clearable
filterable filterable
placeholder="请选择" placeholder="请选择字典类型"
v-if="scope.row.htmlType == 'select' || scope.row.htmlType == 'radio' || scope.row.htmlType == 'checkbox'"> v-if="
scope.row.htmlType == 'selectMulti' ||
scope.row.htmlType == 'select' ||
scope.row.htmlType == 'radio' ||
scope.row.htmlType == 'checkbox'
">
<el-option v-for="dict in dictOptions" :key="dict.dictType" :label="dict.dictName" :value="dict.dictType"> <el-option v-for="dict in dictOptions" :key="dict.dictType" :label="dict.dictName" :value="dict.dictType">
<span style="float: left">{{ dict.dictName }}</span> <span style="float: left">{{ dict.dictName }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ dict.dictType }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ dict.dictType }}</span>