list.tsx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import Adaptive from "./adaptive/index.vue";
  2. import Page from "./page/index.vue";
  3. import Header from "./header/index.vue";
  4. import RowDrag from "./drag/row/index.vue";
  5. import ColumnDrag from "./drag/column/index.vue";
  6. import Contextmenu from "./contextmenu/index.vue";
  7. import Excel from "./excel/index.vue";
  8. import Watermark from "./watermark/index.vue";
  9. import Print from "./prints/index.vue";
  10. import Echarts from "./echarts/index.vue";
  11. import TableSelect from "./table-select/index.vue";
  12. const rendContent = (val: string) =>
  13. `代码位置:src/views/table/high/${val}/index.vue`;
  14. export const list = [
  15. {
  16. key: "adaptive",
  17. content: rendContent("adaptive"),
  18. title: "自适应内容区高度",
  19. component: Adaptive
  20. },
  21. {
  22. key: "page",
  23. content: rendContent("page"),
  24. title: "分页、加载动画、动态列",
  25. component: Page
  26. },
  27. {
  28. key: "header",
  29. content: rendContent("header"),
  30. title: "动态表头",
  31. component: Header
  32. },
  33. {
  34. key: "tableSelect",
  35. content: rendContent("table-select"),
  36. title: "表格选择器",
  37. component: TableSelect
  38. },
  39. {
  40. key: "rowDrag",
  41. content: rendContent("drag/row"),
  42. title: "拖拽表格(行拖拽)",
  43. component: RowDrag
  44. },
  45. {
  46. key: "columnDrag",
  47. content: rendContent("drag/column"),
  48. title: "拖拽表格(列拖拽)",
  49. component: ColumnDrag
  50. },
  51. {
  52. key: "contextmenu",
  53. content: rendContent("contextmenu"),
  54. title: "右键菜单",
  55. component: Contextmenu
  56. },
  57. {
  58. key: "excel",
  59. content: rendContent("excel"),
  60. title: "导出excel",
  61. component: Excel
  62. },
  63. {
  64. key: "print",
  65. content: rendContent("print"),
  66. title: "打印",
  67. component: Print
  68. },
  69. {
  70. key: "watermark",
  71. content: rendContent("watermark"),
  72. title: "水印",
  73. component: Watermark
  74. },
  75. {
  76. key: "echarts",
  77. content: rendContent("echarts"),
  78. title: "内嵌echarts图表",
  79. component: Echarts
  80. }
  81. ];