create.config.ts 470 Bytes
import { AlarmNoticeFieldsEnum, AlarmNoticeFieldsNameEnum } from '../../../enum/formField/external';
import { FormSchema } from '/@/components/Form';
import { useI18n } from '/@/hooks/web/useI18n';

const { t } = useI18n();

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