import { FormSchema } from "/@/components/Table";

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: "当月优化话术",
    field: "keywordType",
    component: "InputTextArea",
    dynamicRules: ({ model, schema }) => {
      return [
        { required: true, message: "请输入当月优化话术!" },
        { max: 1000, message: "长度不能超过1000个字!"},
      ];
    }
  },
  {
    label: "下月优化话术",
    field: "keywords",
    component: "InputTextArea",
    dynamicRules: ({ model, schema }) => {
      return [
        { required: true, message: "请输入下月优化话术!" },
        { max: 1000, message: "长度不能超过1000个字!"}
      ];
    },
  },
  // TODO 主键隐藏字段，目前写死为ID
  {
    label: "",
    field: "id",
    component: "Input",
    show: false
  }
];
