项目库列表-列宽拖拽-默认列宽调整

This commit is contained in:
刘彦泽
2023-01-13 10:40:08 +08:00
parent 7398accaf1
commit 48020564e4
@@ -127,6 +127,7 @@
<a-table
ref="table"
size="middle"
:components="drag(columns,'columns')"
:loading="loading"
:pagination="false"
:scroll="{x: '100%'}"
@@ -180,6 +181,7 @@
import changeExtensionModel from './components/changeExtensionModel'
import PersonnelSelection from '@/components/PersonnelSelection/index'
import { mapGetters } from 'vuex'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default {
name: 'index',
@@ -188,6 +190,7 @@
PersonnelSelection,
changeExtensionModel
},
mixins:[ResizeHeader, ResizeColumnProvide],
data() {
return {
loading: false,
@@ -214,7 +217,7 @@
title: this.$t('entryName'),
align: 'left',
dataIndex: 'projectName',
width: 180,
width: 260,
sorter:true,
ellipsis: true,
scopedSlots: { customRender: 'projectName' }
@@ -244,7 +247,7 @@
{
title: this.$t('brand'),
align: 'left',
width: 180,
width: 140,
ellipsis: true,
dataIndex: 'brandText'
},
@@ -282,7 +285,7 @@
title: this.$t('operation'),
align: 'left',
fixed: 'right',
width: 302,
width: 260,
scopedSlots: { customRender: 'operation' }
}
],