From 2463447cf1e9f7ad7d5fc7240ad10b34afa70d1c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 6 Sep 2025 10:11:43 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E3=80=90infra=20=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E8=AE=BE=E6=96=BD=E3=80=91=E4=BF=AE=E5=A4=8D=20vben=20?= =?UTF-8?q?=E7=9A=84=20allowClear=20=E5=BA=94=E8=AF=A5=E6=98=AF=20clearabl?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../codegen/vue3_vben5_ele/schema/views/data.ts.vm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/yudao-module-infra/src/main/resources/codegen/vue3_vben5_ele/schema/views/data.ts.vm b/yudao-module-infra/src/main/resources/codegen/vue3_vben5_ele/schema/views/data.ts.vm index 58d64fc2c1..375a3c90ac 100644 --- a/yudao-module-infra/src/main/resources/codegen/vue3_vben5_ele/schema/views/data.ts.vm +++ b/yudao-module-infra/src/main/resources/codegen/vue3_vben5_ele/schema/views/data.ts.vm @@ -29,7 +29,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '上级${table.classComment}', component: 'ApiTreeSelect', componentProps: { - allowClear: true, + clearable: true, api: async () => { const data = await get${simpleClassName}List({}); data.unshift({ @@ -157,13 +157,13 @@ export function useGridFormSchema(): VbenFormSchema[] { #if ($column.htmlType == "input" || $column.htmlType == "textarea" || $column.htmlType == "editor") component: 'Input', componentProps: { - allowClear: true, + clearable: true, placeholder: '请输入${comment}', }, #elseif ($column.htmlType == "select" || $column.htmlType == "radio") component: 'Select', componentProps: { - allowClear: true, + clearable: true, #if ("" != $dictType)## 设置了 dictType 数据字典的情况 options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), '$dictMethod'), #else## 未设置 dictType 数据字典的情况 @@ -175,7 +175,7 @@ export function useGridFormSchema(): VbenFormSchema[] { component: 'RangePicker', componentProps: { ...getRangePickerDefaultProps(), - allowClear: true, + clearable: true, }, #end }, @@ -360,13 +360,13 @@ export function use${subSimpleClassName}GridFormSchema(): VbenFormSchema[] { #if ($column.htmlType == "input" || $column.htmlType == "textarea" || $column.htmlType == "editor") component: 'Input', componentProps: { - allowClear: true, + clearable: true, placeholder: '请输入${comment}', }, #elseif ($column.htmlType == "select" || $column.htmlType == "radio") component: 'Select', componentProps: { - allowClear: true, + clearable: true, #if ("" != $dictType)## 设置了 dictType 数据字典的情况 options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), '$dictMethod'), #else## 未设置 dictType 数据字典的情况 @@ -378,7 +378,7 @@ export function use${subSimpleClassName}GridFormSchema(): VbenFormSchema[] { component: 'RangePicker', componentProps: { ...getRangePickerDefaultProps(), - allowClear: true, + clearable: true, }, #end },