feat:【antd】【ele】【member 会员】config 迁移 antd

This commit is contained in:
YunaiV
2025-10-07 09:26:12 +08:00
parent 825a052533
commit fb37b7eec3
9 changed files with 194 additions and 198 deletions

View File

@@ -0,0 +1,37 @@
import type { VbenFormSchema } from '#/adapter/form';
export const schema: VbenFormSchema[] = [
{
component: 'RadioGroup',
fieldName: 'notifyEnabled',
label: '提前提醒设置',
componentProps: {
options: [
{ label: '提醒', value: true },
{ label: '不提醒', value: false },
],
},
defaultValue: true,
},
{
component: 'InputNumber',
fieldName: 'notifyDays',
componentProps: {
min: 0,
precision: 0,
},
renderComponentContent: () => ({
addonBefore: () => '提前',
addonAfter: () => '天提醒',
}),
dependencies: {
triggerFields: ['notifyEnabled'],
show: (values) => values.notifyEnabled,
trigger(values) {
if (!values.notifyEnabled) {
values.notifyDays = undefined;
}
},
},
},
];