refactor: ♻️ 增删改查的示例中状态更改为switch组件

增删改查的示例中状态更改为switch组件

closed #I9QEFC
This commit is contained in:
胡少翔
2024-08-02 10:51:19 +08:00
parent 0e85cb2dd5
commit af34b28016
4 changed files with 53 additions and 12 deletions

View File

@@ -107,14 +107,26 @@ const modalConfig: IModalConfig<UserForm> = {
maxlength: 50,
},
},
// {
// label: "状态",
// prop: "status",
// type: "radio",
// options: [
// { label: "正常", value: 1 },
// { label: "禁用", value: 0 },
// ],
// initialValue: 1,
// },
{
label: "状态",
label: "状态123",
prop: "status",
type: "radio",
options: [
{ label: "正常", value: 1 },
{ label: "禁用", value: 0 },
],
type: "switch",
attrs: {
activeText: "正常",
inactiveText: "禁用",
activeValue: 1,
inactiveValue: 0,
},
},
],
};