Commit 4953d5ec62ed5b82c1453497c1a615d1f9ded869

Authored by xingyu
1 parent f59119bf

fix: vben codegen radio type

yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben/views/data.ts.vm
@@ -122,7 +122,7 @@ export const createFormSchema: FormSchema[] = [ @@ -122,7 +122,7 @@ export const createFormSchema: FormSchema[] = [
122 #end 122 #end
123 } 123 }
124 #elseif($column.htmlType == "radio")## 单选框 124 #elseif($column.htmlType == "radio")## 单选框
125 - component: 'Radio', 125 + component: 'RadioButtonGroup',
126 componentProps: { 126 componentProps: {
127 #if ("" != $dictType)## 有数据字典 127 #if ("" != $dictType)## 有数据字典
128 options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number') 128 options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number')
@@ -188,7 +188,7 @@ export const updateFormSchema: FormSchema[] = [ @@ -188,7 +188,7 @@ export const updateFormSchema: FormSchema[] = [
188 #end 188 #end
189 } 189 }
190 #elseif($column.htmlType == "radio")## 单选框 190 #elseif($column.htmlType == "radio")## 单选框
191 - component: 'Radio', 191 + component: 'RadioButtonGroup',
192 componentProps: { 192 componentProps: {
193 #if ("" != $dictType)## 有数据字典 193 #if ("" != $dictType)## 有数据字典
194 options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number') 194 options: getDictOptions(DICT_TYPE.$dictType.toUpperCase(), 'number')