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