create.config.ts
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import {
UnassignFromCustomerFieldsEnum,
UnassignFromCustomerFieldsNameEnum,
} from '../../../enum/formField/action';
import { FormSchema } from '/@/components/Form';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
export const formSchemas: FormSchema[] = [
{
field: UnassignFromCustomerFieldsEnum.CUSTOMER_NAME_PATTERN,
label: t(UnassignFromCustomerFieldsNameEnum.CUSTOMER_NAME_PATTERN),
component: 'Input',
required: true,
helpMessage: [
'Hint: use ${metadataKey} for value from metadata, $[messageKey] for value from message body',
],
componentProps: {
placeholder: `请输入${t(UnassignFromCustomerFieldsNameEnum.CUSTOMER_NAME_PATTERN)}`,
},
},
{
field: UnassignFromCustomerFieldsEnum.CUSTOMER_CACHE_EXPIRATION,
component: 'InputNumber',
label: t(UnassignFromCustomerFieldsNameEnum.CUSTOMER_CACHE_EXPIRATION),
required: true,
helpMessage: [
'Specifies maximum time interval allowed to store found customer records. 0 value means that records will never expire.',
],
componentProps: {
min: 0,
placeholder: `请输入${t(UnassignFromCustomerFieldsNameEnum.CUSTOMER_CACHE_EXPIRATION)}`,
},
},
];