import { documentTypeOptions } from "@/views/ycwh/common/constants.js";

export default {
  height: 'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  addBtn: false,
  editBtn: false,
  viewBtn: false,
  delBtn: false,
  selection: true,
  dialogClickModal: false,
  menuWidth: 150,
  column: [{
      label: "主键",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "创建人",
      prop: "createUser",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "创建部门",
      prop: "createDept",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "创建时间",
      prop: "createTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "修改人",
      prop: "updateUser",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "修改时间",
      prop: "updateTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "状态",
      prop: "status",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "是否已删除",
      prop: "isDeleted",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },

    {
      label: "文档类型",
      prop: "documentType",
      type: "select",
      dicData: documentTypeOptions,
      search: true
    },
    {
      label: "标题",
      prop: "title",
      type: "input",
      search: true
    },
    {
      label: "副标题",
      prop: "subTitle",
      type: "input",
      overHidden: true,
    },
    {
      //    （多个用英文逗号隔开）
      label: "视频",
      prop: "videos",
      type: "upload",
      slot: true,
      width: 250
    },
    {
      label: "内容",
      prop: "content",
      type: "input",
      hide: true
    },
    //  {
    //    label: "地址",
    //    prop: "address",
    //    type: "input",
    //  },
    //  {
    //    label: "纬度",
    //    prop: "latitude",
    //    type: "input",
    //  },
    //  {
    //    label: "经度",
    //    prop: "longitude",
    //    type: "input",
    //  },
    //  {
    //    label: "置顶",
    //    prop: "top",
    //    type: "input",
    //  },
    //  {
    //    label: "备注",
    //    prop: "remark",
    //    type: "input",
    //  },
    {
      label: "顺序",
      prop: "sort",
      type: "input",
    },
  ]
}