columns.js 810 B

12345678910111213141516171819202122232425262728293031
  1. import {
  2. getConfigTypeTableColumn,
  3. getAttirubuteTableColumn,
  4. } from '../utils/columns'
  5. import { getTimeTableColumn } from '@/utils/common/tableColumn'
  6. export default {
  7. created () {
  8. this.columns = [
  9. {
  10. title: this.$t('system.text_101'),
  11. field: 'name',
  12. showOverflow: 'ellipsis',
  13. minWidth: 100,
  14. slots: {
  15. default: ({ row }) => {
  16. return [
  17. <list-body-cell-wrap copy row={row} field='name' hideField>
  18. <side-page-trigger onTrigger={ () => this.handleOpenSidepage(row) }>{ row.name }</side-page-trigger>
  19. </list-body-cell-wrap>,
  20. ]
  21. },
  22. },
  23. },
  24. getConfigTypeTableColumn(),
  25. getAttirubuteTableColumn({ vm: this }),
  26. getTimeTableColumn(),
  27. ]
  28. },
  29. }