create.config.ts 482 Bytes
import { useRuleChainI18n } from '../../../hook/useRuleChainI18n';
import { FormSchema } from '/@/components/Form';

export enum AlarmNoticeFieldsEnum {
  CONFIGURATION = 'CONFIGURATION',
}

const { tLabel } = useRuleChainI18n('external', 'alarmNotice');

export const formSchemas: FormSchema[] = [
  {
    field: AlarmNoticeFieldsEnum.CONFIGURATION,
    component: 'JSONEditor',
    label: tLabel('configuration'),
    valueField: 'value',
    changeEvent: 'update:value',
  },
];