export default {
  listFileds: [
    { label: "名称", name: "name", filter: true, placeholder: "输入名字" },
    { label: "图标", name: "image", formater: "image" },
    { label: "别名", name: "alias", filter: true, placeholder: "输入别名" },
    { label: "类型", name: "type", placeholder: "选择类型", formater: "dict:menu_type" },
    { label: "排序", name: "number" }
  ],
  formFiled: [
    { label: "图标", name: "image", formater: "selectFile" },
    { label: "名称", name: "name", placeholder: "输入名字" },
    { label: "别名", name: "alias", placeholder: "输入别名" },
    { label: "路径", name: "meta.path", placeholder: "输入路径" },
    { label: "小程序链接", name: "meta.shortLink", placeholder: "输入小程序链接" },
    { label: "类型", name: "type", placeholder: "选择类型", formater: 'dict:menu_type' },
    { label: "是否登录", name: "meta.isuser", formater: 'switch', activeValue: '0', inactiveValue: '1' },
    { label: "webview", name: "meta.view", formater: 'switch', activeValue: 'webview', inactiveValue: 'details' },
    { label: "排序", name: "number", formater: "number" },
    { label: "显示/隐藏", name: "visible", formater: 'switch', activeValue: '0', inactiveValue: '1' },
    { label: "描述", name: "description", placeholder: "输入描述", formater: "textarea" },
  ],
  operation: [
    { name: 'itemadd', label: '新增', icon: 'el-icon-plus' },
    { name: 'edit', label: '修改', icon: 'el-icon-edit' },
    { name: 'delete', label: '删除', icon: 'el-icon-delete' }
  ],
  options: {
    'tree-props': {
      hasChildren: 'hasChildren', children: 'children'
    },
    'default-expand-all': false,
    'row-key': "termId",
    treeId: 'termId'
  },
  pagination: false,
};