优化代码生成模板

This commit is contained in:
不做码农
2022-02-24 20:23:34 +08:00
parent ae31b3ec69
commit d4288331b4
2 changed files with 13 additions and 3 deletions
@@ -21,7 +21,7 @@ $if(column.HtmlType == "customInput" && column.IsPk == false)
</template>
</el-table-column>
$elseif(column.HtmlType == "imageUpload")
<el-table-column prop="${columnName}" align="center" label="${labelName}">
<el-table-column prop="${columnName}" label="${labelName}" align="center">
<template slot-scope="scope">
<el-image class="table-td-thumb" fit="contain" :src="scope.row.${columnName}" :preview-src-list="[scope.row.${columnName}]">
<div slot="error"><i class="el-icon-document" /></div>
@@ -29,7 +29,7 @@ $elseif(column.HtmlType == "imageUpload")
</template>
</el-table-column>
$elseif(column.HtmlType == "checkbox" || column.HtmlType == "select" || column.HtmlType == "radio")
<el-table-column label="${labelName}" align="center" prop="${columnName}">
<el-table-column prop="${columnName}" label="${labelName}" align="center">
<template slot-scope="scope">
$if(column.HtmlType == "checkbox")
<dict-tag :options="${columnName}Options" :value="scope.row.${columnName} ? scope.row.${columnName}.split(',') : []" />