table.ts 942 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { ref } from "vue";
  2. export const userTableColumns = ref([
  3. {
  4. name:'account',
  5. label:'账号',
  6. width:'80',
  7. fixed:'',
  8. align:'center',
  9. minWidth:'',
  10. custom:false,
  11. },
  12. {
  13. name:'name',
  14. label:'姓名',
  15. width:'80',
  16. fixed:'',
  17. align:'center',
  18. minWidth:'',
  19. custom:false,
  20. },
  21. ])
  22. // 动态变更项 ————
  23. export const tableColumns = ref([
  24. {
  25. name: 'region', // 对应“项目组”列,通常作为行头
  26. label: '项目组',
  27. width: '80',
  28. fixed: 'left', // 建议固定首列,防止横向滚动时看不清区域
  29. align: 'center',
  30. minWidth: '',
  31. custom: false,
  32. },
  33. {
  34. name: 'project1',
  35. label: '项目组长',
  36. width: '320',
  37. fixed: '',
  38. align: 'left',
  39. minWidth: '',
  40. custom: true,
  41. },
  42. ]);