groupHeader.vue 632 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <script setup lang="ts">
  2. import { tableDataMore } from "./data";
  3. const columns: TableColumnList = [
  4. {
  5. label: "日期",
  6. prop: "date",
  7. fixed: true
  8. },
  9. {
  10. label: "姓名",
  11. prop: "name",
  12. children: [
  13. {
  14. label: "地区",
  15. children: [
  16. {
  17. label: "城市",
  18. prop: "city"
  19. },
  20. {
  21. label: "地址",
  22. prop: "address"
  23. }
  24. ]
  25. }
  26. ]
  27. },
  28. {
  29. label: "邮编",
  30. prop: "post-code"
  31. }
  32. ];
  33. </script>
  34. <template>
  35. <pure-table :data="tableDataMore" :columns="columns" alignWhole="center" />
  36. </template>