create.config.ts 686 Bytes
import {
  DeviceProfileFieldsEnum,
  DeviceProfileFieldsNameEnum,
} from '../../../enum/formField/action';
import { FormSchema } from '/@/components/Form';

export const formSchemas: FormSchema[] = [
  {
    field: DeviceProfileFieldsEnum.PERSIST_ALARM_RULES_STATE,
    component: 'Checkbox',
    label: '',
    renderComponentContent: () => ({
      default: () => DeviceProfileFieldsNameEnum.PERSIST_ALARM_RULES_STATE,
    }),
  },
  {
    field: DeviceProfileFieldsEnum.FETCH_ALARM_RULES_STATE_ON_START,
    component: 'Checkbox',
    label: '',
    renderComponentContent: () => ({
      default: () => DeviceProfileFieldsNameEnum.FETCH_ALARM_RULES_STATE_ON_START,
    }),
  },
];