menu-constants.js 795 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // 表格列信息
  2. const table = {
  3. columns: [
  4. {
  5. title: 'ID',
  6. align: 'center',
  7. dataIndex: 'id'
  8. },
  9. {
  10. title: '排序',
  11. align: 'center',
  12. dataIndex: 'sort'
  13. },
  14. {
  15. title: '父菜单ID',
  16. align: 'center',
  17. dataIndex: 'parentId'
  18. },
  19. {
  20. title: '菜单名称',
  21. align: 'center',
  22. dataIndex: 'title'
  23. },
  24. {
  25. title: 'icon',
  26. dataIndex: 'icon',
  27. align: 'center'
  28. },
  29. {
  30. title: '跳转路径',
  31. align: 'center',
  32. dataIndex: 'url'
  33. },
  34. {
  35. title: '操作',
  36. dataIndex: 'action',
  37. align: 'center',
  38. width: '150px',
  39. scopedSlots: { customRender: 'action' }
  40. }
  41. ]
  42. }
  43. // 表格里面的列key value
  44. const filters = {}
  45. export { table, filters }