feat:【ele】【crm】contract 的初始化

This commit is contained in:
YunaiV
2025-11-18 19:08:51 +08:00
parent 60854e59f1
commit abfbb851cb
12 changed files with 1441 additions and 9 deletions

View File

@@ -0,0 +1,39 @@
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,
controlsPosition: 'right',
class: '!w-full',
},
renderComponentContent: () => ({
addonBefore: () => '提前',
addonAfter: () => '天提醒',
}),
dependencies: {
triggerFields: ['notifyEnabled'],
show: (values) => values.notifyEnabled,
trigger(values) {
if (!values.notifyEnabled) {
values.notifyDays = undefined;
}
},
},
},
];