const DIC = {
  keepAlive: [{
    label: '关闭',
    value: '0'
  }, {
    label: '开启',
    value: '1'
  }],
  type: [{
    label: '按钮',
    value: '1'
  }, {
    label: '菜单',
    value: '0'
  }],
  isOrNo:[{
    label: '否',
    value: '0'
  }, {
    label: '是',
    value: '1'
  }]
}
export const tableOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  menuWidth: 150,
  align: 'center',
  refreshBtn: false,
  showColumn: false,
  viewBtn:false,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  filterBtn: false,
  // expandLevel: 2,


  tree: true,
  page: false,
  dialogClickModal:false,
  size:"small",
  column: [
    {
      label: '节点ID',
      prop: 'id',
      align:'left',
      rules: [{
        required: true,
        message: '请输入节点ID',
        trigger: 'blur'
      }]
    },
    {
      label: '父级节点',
      prop: 'parentId',
      type:'tree',
      dicUrl: '/admin/menu/tree',
      props: {
        label: 'name',
        value: 'id'
      },
    },
    {
      label: '菜单标题',
      prop: 'name',
      rules: [{
        required: true,
        message: '请输入菜单标题',
        trigger: 'blur'
      }]
    },
    {
      label: '权限标识',
      prop: 'permission'
    },
    {
      label: '模块',
      prop: 'module'
    },
    {
      label: '图标',
      prop: 'icon'
    },
    {
      label: '类型',
      prop: 'type',
      type: 'switch',
      dicData: DIC.type
    },
    {
      label: '排序',
      prop: 'sort'
    },
    {
      label: '前端组件',
      prop: 'component'
    },
    {
      label: '前端地址',
      prop: 'path'
    },
    {
      label: '路由缓冲',
      prop: 'keepAlive',
      type: 'switch',
      dicData: DIC.keepAlive
    },
    {
      label: '是否为手机菜单',
      prop: 'mobileFlag',
      type: "switch",
      dicData:DIC.isOrNo
    },
    {
      label: '手机图标',
      prop: 'mobileIcon',
      slot:true,
      hide:true,
      formslot:true,
    },
    {
      label: '手机端跳转标志',
      prop: 'mobileJumpFlag',
    }
  ]
}
