feat:【ele】【crm】contract 的迁移完成(config)

This commit is contained in:
YunaiV
2025-11-18 19:52:27 +08:00
parent 666d932968
commit 4dc9ffdb29

View File

@@ -1,5 +1,7 @@
import type { VbenFormSchema } from '#/adapter/form'; import type { VbenFormSchema } from '#/adapter/form';
import { z } from '#/adapter/form';
export const schema: VbenFormSchema[] = [ export const schema: VbenFormSchema[] = [
{ {
component: 'RadioGroup', component: 'RadioGroup',
@@ -14,18 +16,17 @@ export const schema: VbenFormSchema[] = [
defaultValue: true, defaultValue: true,
}, },
{ {
component: 'InputNumber', component: 'Input',
fieldName: 'notifyDays', fieldName: 'notifyDays',
componentProps: { componentProps: {
min: 0, placeholder: '请输入天数',
precision: 0,
controlsPosition: 'right',
class: '!w-full', class: '!w-full',
}, },
renderComponentContent: () => ({ renderComponentContent: () => ({
addonBefore: () => '提前', prepend: () => '提前',
addonAfter: () => '天提醒', append: () => '天提醒',
}), }),
rules: z.coerce.number().int().min(0, '天数不能小于 0'),
dependencies: { dependencies: {
triggerFields: ['notifyEnabled'], triggerFields: ['notifyEnabled'],
show: (values) => values.notifyEnabled, show: (values) => values.notifyEnabled,