参数项列表-列宽可拖拽

This commit is contained in:
刘彦泽
2023-02-09 16:46:29 +08:00
parent 350a3febc7
commit 003aff1959
@@ -70,6 +70,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%',y:'calc(100vh - 130px)'}" :scroll="{x: '100%',y:'calc(100vh - 130px)'}"
@@ -113,12 +114,15 @@ import axios from 'axios'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import ImportFileOnlyList from '@/components/ImportFileOnlyList/index' import ImportFileOnlyList from '@/components/ImportFileOnlyList/index'
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,
ImportFileOnlyList ImportFileOnlyList
}, },
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
certCategoryParamsInfoEOList: [], certCategoryParamsInfoEOList: [],
@@ -174,6 +178,7 @@ export default {
align: 'left', align: 'left',
dataIndex: 'description', dataIndex: 'description',
ellipsis: true, ellipsis: true,
width: 180,
// scopedSlots: { customRender: 'titleName' } // scopedSlots: { customRender: 'titleName' }
}, },
{ {
@@ -518,4 +523,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>