!533 vue3代码生成器表单Editor属性修正为v-model

pull/40/MERGE
YunaiV 2023-07-25 20:09:24 +08:00
parent 52fc41cfa5
commit 2c915af2b4
2 changed files with 8 additions and 6 deletions

View File

@ -39,7 +39,7 @@
</el-form-item>
#elseif($column.htmlType == "editor")## 文本编辑器
<el-form-item label="${comment}">
<Editor :model-value="formData.${javaField}" height="150px" />
<Editor v-model="formData.${javaField}" height="150px" />
</el-form-item>
#elseif($column.htmlType == "select")## 下拉框
<el-form-item label="${comment}" prop="${javaField}">

View File

@ -119,7 +119,8 @@
<!-- 列表 -->
<ContentWrap>
<el-table v-loading="loading" :data="list">
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
<el-table-column label="序号" type="index" width="70px" />
#foreach($column in $columns)
#if ($column.listOperationResult)
#set ($dictType=$column.dictType)
@ -132,19 +133,20 @@
align="center"
prop="${javaField}"
:formatter="dateFormatter"
width="150px"
/>
#elseif("" != $column.dictType)## 数据字典
<el-table-column label="${comment}" align="center" prop="${javaField}">
<el-table-column label="${comment}" align="center" prop="${javaField}" width="150px">
<template #default="scope">
<dict-tag :type="DICT_TYPE.$dictType.toUpperCase()" :value="scope.row.${column.javaField}" />
</template>
</el-table-column>
#else
<el-table-column label="${comment}" align="center" prop="${javaField}" />
<el-table-column label="${comment}" align="center" prop="${javaField}" width="150px"/>
#end
#end
#end
<el-table-column label="操作" align="center">
<el-table-column label="操作" align="center" width="150px">
<template #default="scope">
<el-button
link