create.config.ts 728 Bytes
import { h } from 'vue';
import { SaveEventFieldsEnum, SaveEventFieldsNameEnum } from '../../../enum/formField/action';
import { FormSchema } from '/@/components/Form';
import { useI18n } from '/@/hooks/web/useI18n';

const { t } = useI18n();

export const formSchemas: FormSchema[] = [
  {
    field: 'content',
    label: '',
    component: 'Input',
    renderColContent: () =>
      h(
        'div',
        { style: { color: 'red' } },
        `定义的配置指令 'tkMsgEventNodeConfiguration' 不可用。`
      ),
  },
  {
    field: SaveEventFieldsEnum.CONFIGURATION,
    component: 'JSONEditor',
    label: t(SaveEventFieldsNameEnum.CONFIGURATION),
    valueField: 'value',
    changeEvent: 'update:value',
  },
];