diff --git a/src/assets/css/layout.less b/src/assets/css/layout.less index 681ecb7..d8afa26 100644 --- a/src/assets/css/layout.less +++ b/src/assets/css/layout.less @@ -341,7 +341,7 @@ html { .fixedHeader.muiltTab { z-index: 600; #content { - height: calc(~"(100% - 38px)"); + height: calc(~"(100% - 42px)"); -ms-overflow-style: none; overflow: -moz-scrollbars-none; } @@ -436,4 +436,4 @@ html { overflow: hidden; display: flex; flex-direction: column; -} +} \ No newline at end of file diff --git a/src/component/lib/ATableEllipsisDefault.js b/src/component/lib/ATableEllipsisDefault.js index f34e43f..84f1b4e 100644 --- a/src/component/lib/ATableEllipsisDefault.js +++ b/src/component/lib/ATableEllipsisDefault.js @@ -16,8 +16,10 @@ export default defineComponent({ name: 'ATable', inheritAttrs: false, setup(_, { attrs, slots }) { - const patchedColumns = patchColumns(attrs.columns); - return () => h(Table, { ...attrs, columns: patchedColumns }, slots); + // 每次渲染时基于最新的 columns 重新打补丁,确保列显示/隐藏等变更能够生效 + return () => { + const patchedColumns = patchColumns(attrs.columns); + return h(Table, { ...attrs, columns: patchedColumns }, slots); + }; }, }); - diff --git a/src/component/proModal/src/index.less b/src/component/proModal/src/index.less index 06ef855..82f51f4 100644 --- a/src/component/proModal/src/index.less +++ b/src/component/proModal/src/index.less @@ -8,7 +8,6 @@ .pro-table-next { float: right; .ant-btn { - margin: 4px; margin-bottom: 8px; } } diff --git a/src/component/table/src/index.vue b/src/component/table/src/index.vue index 6e88bae..7df925f 100644 --- a/src/component/table/src/index.vue +++ b/src/component/table/src/index.vue @@ -1,14 +1,22 @@