feat: boolean 类型使用 RadioGroup 解决 select boolean 类型 warn

This commit is contained in:
xingyu4j
2025-10-23 10:14:47 +08:00
parent 7ae3ac66fc
commit e73305d440
5 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ const [Grid] = useVbenVxeGrid({
{ {
fieldName: 'followUpStatus', fieldName: 'followUpStatus',
label: '状态', label: '状态',
component: 'Select', component: 'RadioGroup',
componentProps: { componentProps: {
allowClear: true, allowClear: true,
options: FOLLOWUP_STATUS, options: FOLLOWUP_STATUS,

View File

@@ -26,7 +26,7 @@ const [Grid] = useVbenVxeGrid({
{ {
fieldName: 'followUpStatus', fieldName: 'followUpStatus',
label: '状态', label: '状态',
component: 'Select', component: 'RadioGroup',
componentProps: { componentProps: {
allowClear: true, allowClear: true,
options: FOLLOWUP_STATUS, options: FOLLOWUP_STATUS,

View File

@@ -171,7 +171,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
{ {
fieldName: 'transformStatus', fieldName: 'transformStatus',
label: '转化状态', label: '转化状态',
component: 'Select', component: 'RadioGroup',
componentProps: { componentProps: {
options: [ options: [
{ label: '未转化', value: false }, { label: '未转化', value: false },

View File

@@ -101,7 +101,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
{ {
fieldName: 'replyStatus', fieldName: 'replyStatus',
label: '回复状态', label: '回复状态',
component: 'Select', component: 'RadioGroup',
componentProps: { componentProps: {
options: [ options: [
{ label: '已回复', value: true }, { label: '已回复', value: true },

View File

@@ -23,7 +23,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
{ {
fieldName: 'brokerageEnabled', fieldName: 'brokerageEnabled',
label: '推广资格', label: '推广资格',
component: 'Select', component: 'RadioGroup',
componentProps: { componentProps: {
placeholder: '请选择推广资格', placeholder: '请选择推广资格',
allowClear: true, allowClear: true,