Commit 2463447cf1e9f7ad7d5fc7240ad10b34afa70d1c

Authored by YunaiV
1 parent 9f662830

fix:【infra 基础设施】修复 vben 的 allowClear 应该是 clearable

yudao-module-infra/src/main/resources/codegen/vue3_vben5_ele/schema/views/data.ts.vm
... ... @@ -29,7 +29,7 @@ export function useFormSchema(): VbenFormSchema[] {
29 29 label: '上级${table.classComment}',
30 30 component: 'ApiTreeSelect',
31 31 componentProps: {
32   - allowClear: true,
  32 + clearable: true,
33 33 api: async () => {
34 34 const data = await get${simpleClassName}List({});
35 35 data.unshift({
... ... @@ -157,13 +157,13 @@ export function useGridFormSchema(): VbenFormSchema[] {
157 157 #if ($column.htmlType == "input" || $column.htmlType == "textarea" || $column.htmlType == "editor")
158 158 component: 'Input',
159 159 componentProps: {
160   - allowClear: true,
  160 + clearable: true,
161 161 placeholder: '请输入${comment}',
162 162 },
163 163 #elseif ($column.htmlType == "select" || $column.htmlType == "radio")
164 164 component: 'Select',
165 165 componentProps: {
166   - allowClear: true,
  166 + clearable: true,
167 167 #if ("" != $dictType)## 设置了 dictType 数据字典的情况
168 168 options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), '$dictMethod'),
169 169 #else## 未设置 dictType 数据字典的情况
... ... @@ -175,7 +175,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
175 175 component: 'RangePicker',
176 176 componentProps: {
177 177 ...getRangePickerDefaultProps(),
178   - allowClear: true,
  178 + clearable: true,
179 179 },
180 180 #end
181 181 },
... ... @@ -360,13 +360,13 @@ export function use${subSimpleClassName}GridFormSchema(): VbenFormSchema[] {
360 360 #if ($column.htmlType == "input" || $column.htmlType == "textarea" || $column.htmlType == "editor")
361 361 component: 'Input',
362 362 componentProps: {
363   - allowClear: true,
  363 + clearable: true,
364 364 placeholder: '请输入${comment}',
365 365 },
366 366 #elseif ($column.htmlType == "select" || $column.htmlType == "radio")
367 367 component: 'Select',
368 368 componentProps: {
369   - allowClear: true,
  369 + clearable: true,
370 370 #if ("" != $dictType)## 设置了 dictType 数据字典的情况
371 371 options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), '$dictMethod'),
372 372 #else## 未设置 dictType 数据字典的情况
... ... @@ -378,7 +378,7 @@ export function use${subSimpleClassName}GridFormSchema(): VbenFormSchema[] {
378 378 component: 'RangePicker',
379 379 componentProps: {
380 380 ...getRangePickerDefaultProps(),
381   - allowClear: true,
  381 + clearable: true,
382 382 },
383 383 #end
384 384 },
... ...