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,
  expandAll: false,
  tree: true,
  page: false,
  size:"small",
  column: [
    {
      label: '部门ID',
      prop: 'id',
      align:'left',
      display: false
    },
    {
      label: '父级节点',
      prop: 'parentId',
      type: 'tree',
      dicUrl: '/admin/dept/tree',
      props: {
        label: 'name',
        value: 'id'
      },
      rules: [{
        required: true,
        message: '请选择父级节点',
        trigger: 'blur'
      }]
    },
    {
      label: '部门名称',
      prop: 'name',
      rules: [{
        required: true,
        message: '请输入部门名称',
        trigger: 'blur'
      }]
    },
    {
      label: '排序',
      prop: 'sort',
      type: 'number'
    }
  ]
}
