fields.jsx 931 Bytes
Newer Older
krysent's avatar
krysent committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
export default {
  fieldName: {
    value: null,
    type: "input",
    title: "字段名称",
    name: ["fieldName"],
    required: true,
  },
  fieldChar: {
    value: null,
    type: "select",
    title: "字段属性",
    name: ["fieldChar"],
    required: true,
    options: [
      {
        label: "输入框",
        value: 1,
      },
      {
        label: "单选下拉框",
        value: 2,
      },
      {
        label: "单选框",
        value: 3,
      },
      {
        label: "多选下拉框",
        value: 4,
      },
    ],
    linked: true,
  },
  fieldCharValue: {
    value: null,
    type: "input",
    title: "选项内容",
    name: ["fieldCharValue"],
    required: true,
    belinked: {
      hides: [
        {
          name: "fieldChar",
          equalvalue: [1, null],
          required: true,
        },
      ],
    },
    placeholder: "请输入,用分号“; ”隔开",
  },
};