认证管理-参数模板管理-列宽可拖拽

This commit is contained in:
刘彦泽
2023-02-02 15:17:49 +08:00
parent a1ac4f47c5
commit 7a5a6a976a
@@ -52,6 +52,7 @@
size="middle" size="middle"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:components="drag(columns,'columns')"
:scroll="{x: '100%',y:'calc(100vh - 130px)'}" :scroll="{x: '100%',y:'calc(100vh - 130px)'}"
rowKey="id" rowKey="id"
:data-source="dataSource" :data-source="dataSource"
@@ -120,11 +121,14 @@ import axios from 'axios'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import eventBUs from '../../../common/event' import eventBUs from '../../../common/event'
import Vue from 'vue' import Vue from 'vue'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'index', name: 'index',
components: { components: {
addModel, addModel,
}, },
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
token:Vue.ls.get(ACCESS_TOKEN), token:Vue.ls.get(ACCESS_TOKEN),
@@ -180,6 +184,7 @@ export default {
ellipsis: true, ellipsis: true,
dataIndex: 'description', dataIndex: 'description',
// scopedSlots: { customRender: 'titleName' } // scopedSlots: { customRender: 'titleName' }
width: 192
}, },
// { // {
// title: this.$t('zoneOfApplication'), // title: this.$t('zoneOfApplication'),
@@ -535,4 +540,8 @@ export default {
::v-deep .ant-table-body { ::v-deep .ant-table-body {
background: transparent!important; background: transparent!important;
} }
::v-deep .ant-table-placeholder{
margin-top: 8px !important;
}
</style> </style>