虚拟清单-可伸缩列
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
<a-table
|
<a-table
|
||||||
ref="table"
|
ref="table"
|
||||||
size="middle"
|
size="middle"
|
||||||
|
:components="drag(columns,'columns')"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
@@ -160,6 +161,7 @@
|
|||||||
import tableDragResize from '@/mixins/tableDragResize'
|
import tableDragResize from '@/mixins/tableDragResize'
|
||||||
import setCreator from '@/components/setCreator/index'
|
import setCreator from '@/components/setCreator/index'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
@@ -167,7 +169,7 @@
|
|||||||
VueDraggableResizable,
|
VueDraggableResizable,
|
||||||
setCreator
|
setCreator
|
||||||
},
|
},
|
||||||
mixins: [tableDragResize],
|
mixins: [tableDragResize, ResizeHeader, ResizeColumnProvide],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -219,21 +221,21 @@
|
|||||||
title: this.$t('VirtualListName'),
|
title: this.$t('VirtualListName'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
width: '25%',
|
width: 260,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
scopedSlots: { customRender: 'VirtualListName' }
|
scopedSlots: { customRender: 'VirtualListName' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('listStatus'),
|
title: this.$t('listStatus'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: '25%',
|
width: 260,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'state_dictText'
|
dataIndex: 'state_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('creater'),
|
title: this.$t('creater'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: '25%',
|
width: 260,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'createBy'
|
dataIndex: 'createBy'
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user