fix: vben codegen

This commit is contained in:
xingyu 2023-08-12 18:31:16 +08:00
parent 1a999cbb75
commit baa2e69cdf

View File

@ -30,7 +30,7 @@ export const columns: BasicColumn[] = [
{ {
title: '${comment}', title: '${comment}',
dataIndex: '${javaField}', dataIndex: '${javaField}',
width: 160 width: 160,
}, },
#end #end
#end #end
@ -61,7 +61,7 @@ export const searchFormSchema: FormSchema[] = [
#elseif($column.htmlType == "datetime") #elseif($column.htmlType == "datetime")
component: 'RangePicker', component: 'RangePicker',
#end #end
colProps: { span: 8 } colProps: { span: 8 },
}, },
#end #end
#end #end
@ -72,7 +72,7 @@ export const createFormSchema: FormSchema[] = [
label: '编号', label: '编号',
field: 'id', field: 'id',
show: false, show: false,
component: 'Input' component: 'Input',
}, },
#foreach($column in $columns) #foreach($column in $columns)
#if ($column.createOperation) #if ($column.createOperation)
@ -146,7 +146,7 @@ export const updateFormSchema: FormSchema[] = [
label: '编号', label: '编号',
field: 'id', field: 'id',
show: false, show: false,
component: 'Input' component: 'Input',
}, },
#foreach($column in $columns) #foreach($column in $columns)
#if ($column.updateOperation) #if ($column.updateOperation)