create.config.ts
766 Bytes
import {
DeviceProfileFieldsEnum,
DeviceProfileFieldsNameEnum,
} from '../../../enum/formField/action';
import { FormSchema } from '/@/components/Form';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
export const formSchemas: FormSchema[] = [
{
field: DeviceProfileFieldsEnum.PERSIST_ALARM_RULES_STATE,
component: 'Checkbox',
label: '',
renderComponentContent: () => ({
default: () => t(DeviceProfileFieldsNameEnum.PERSIST_ALARM_RULES_STATE),
}),
},
{
field: DeviceProfileFieldsEnum.FETCH_ALARM_RULES_STATE_ON_START,
component: 'Checkbox',
label: '',
renderComponentContent: () => ({
default: () => t(DeviceProfileFieldsNameEnum.FETCH_ALARM_RULES_STATE_ON_START),
}),
},
];