fix: vue3 代码生成

This commit is contained in:
xingyu4j 2022-12-08 17:26:06 +08:00
parent 0a805483a9
commit 19c193cc1a

View File

@ -43,7 +43,6 @@ const crudSchemas = reactive<VxeCrudSchema>({
isForm: false, isForm: false,
#elseif(!("" != $column.dictType)) #elseif(!("" != $column.dictType))
#if (${column.javaType.toLowerCase()} == "date" || ${column.javaType.toLowerCase()} == "localdatetime") #if (${column.javaType.toLowerCase()} == "date" || ${column.javaType.toLowerCase()} == "localdatetime")
formatter: 'formatDate',
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -96,6 +95,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
#elseif("" != $dictType) #elseif("" != $dictType)
isSearch: true, isSearch: true,
#elseif($column.htmlType == "datetime") #elseif($column.htmlType == "datetime")
formatter: 'formatDate',
search: { search: {
show: true, show: true,
itemRender: { itemRender: {
@ -104,8 +104,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
}, },
#end #end
#end #end
#end
}, },
#end
#end #end
#end #end
] ]