create.config.ts
922 Bytes
import {
CustomerAttributesFieldsEnum,
CustomerAttributesFieldsNameEnum,
} from '../../../enum/formField/enrichment';
import { FormSchema, useComponentRegister } from '/@/components/Form';
import { AttributeConfiguration } from '/@/views/rule/designer/src/components/AttributeConfiguration';
useComponentRegister('AttributeConfiguration', AttributeConfiguration);
export const formSchemas: FormSchema[] = [
{
field: CustomerAttributesFieldsEnum.TELEMETRY,
component: 'Checkbox',
label: '',
renderComponentContent: () => {
return {
default: () => CustomerAttributesFieldsNameEnum.TELEMETRY,
};
},
},
{
field: CustomerAttributesFieldsEnum.ATTR_MAPING,
component: 'AttributeConfiguration',
label: CustomerAttributesFieldsNameEnum.ATTR_MAPING,
slot: CustomerAttributesFieldsEnum.ATTR_MAPING,
valueField: 'value',
changeEvent: 'update:value',
},
];