This commit is contained in:
2025-10-15 12:35:38 +08:00
parent 3ae1de538c
commit 3589d2584e

43
doc/easycode/const.js.vm Normal file
View File

@@ -0,0 +1,43 @@
##导入宏定义
$!{define.vm}
##设置表后缀(宏定义)
#setTableSuffix("const")
##保存文件(宏定义)
#save("/const/"+$!tableInfo.name, ".js")
##定义实体对象名
#set($entityName = $!tool.firstLowerCase($!tableInfo.name))
export default {
height:'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
selection: true,
menuWidth: 300,
column: [
#foreach($column in $tableInfo.fullColumn)
##默认
#if(${column.comment})
#if($!{column.type} == "Date")
{
label: "${column.comment}",
prop: "$!{column.name}",
type: "date",
format: "yyyy-MM-dd hh:mm:ss",
valueFormat: "yyyy-MM-dd hh:mm:ss",
},
#else
{
label: "${column.comment}",
prop: "$!{column.name}",
type: "input",
},
#end
#end
#end
]
}