export const lableWidth = "80px";

const propertyMap = {
  //   title: "label",
  type: "tag",
  key: "formKey",
  value: "defaultValue",
};

const fomrmSourceList = [
  {
    type:'input',
    tag:'input',
    label:'输入框',
    data:{defalut:'请输入文本'}
  },
  {
    type:'radio',
    label:'单选框',
    tag:'input',
    data:{defalut:['test1','test2']}
  },
  {
    type:'checkBox',
    tag:'input',
    label:'多选框',
    data:{defalut:['boxTest1','boxTest2','boxTest3']}
  },
  {
    type:'select',
    tag:'select',
    label:'下拉框',
    data:{defalut:['seTest1','seTest2','seTest3']}
  },
  {
    tag:'textarea',
    type:'textarea',
    label:'文本框',
    data:{defalut:'请输入文本'}
  },
];

const optionsTemplate = fomrmSourceList

const formatForm = [];

const itemTemp = {
  tag: "",
  property: {},
  text: "",
  children: [],
};
const formItemTemp = {
  tag: "div",
  property: {
    class: "el-form-item",
  },
  text: "",
  children: [],
};
const formTemplate = {
  tag: "div",
  property: {
    ref: "forMatform",
    class: "form-wrap",
    ":model": `${formatForm}`,
    "label-width": `${lableWidth}`,
  },
  text: "",
  children: [],
};
export {
  itemTemp,
  formItemTemp,
  formTemplate,
  propertyMap,
  formatForm,
  fomrmSourceList,
  optionsTemplate
};
