虚拟清单-可伸缩列

This commit is contained in:
刘彦泽
2023-01-11 10:36:20 +08:00
parent 4e36615a54
commit 0dabc01aa4
@@ -51,6 +51,7 @@
<a-table
ref="table"
size="middle"
:components="drag(columns,'columns')"
:loading="loading"
:pagination="false"
:scroll="{x: '100%'}"
@@ -160,6 +161,7 @@
import tableDragResize from '@/mixins/tableDragResize'
import setCreator from '@/components/setCreator/index'
import { mapGetters } from 'vuex'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default {
name: 'index',
@@ -167,7 +169,7 @@
VueDraggableResizable,
setCreator
},
mixins: [tableDragResize],
mixins: [tableDragResize, ResizeHeader, ResizeColumnProvide],
data() {
return {
loading: false,
@@ -219,21 +221,21 @@
title: this.$t('VirtualListName'),
align: 'left',
dataIndex: 'name',
width: '25%',
width: 260,
ellipsis: true,
scopedSlots: { customRender: 'VirtualListName' }
},
{
title: this.$t('listStatus'),
align: 'left',
width: '25%',
width: 260,
ellipsis: true,
dataIndex: 'state_dictText'
},
{
title: this.$t('creater'),
align: 'left',
width: '25%',
width: 260,
ellipsis: true,
dataIndex: 'createBy'
},