From 364ca94973cc964e9c888a018f530483cf8630eb Mon Sep 17 00:00:00 2001 From: zhoumingfa Date: Tue, 12 Nov 2024 22:55:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A1=A8=E6=A0=BC=E5=88=97?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../support/table-operator/index.vue | 10 +- .../smart-table-column-modal.vue | 99 ++++++++++++------- 2 files changed, 72 insertions(+), 37 deletions(-) diff --git a/smart-admin-web/javascript-ant-design-vue3/src/components/support/table-operator/index.vue b/smart-admin-web/javascript-ant-design-vue3/src/components/support/table-operator/index.vue index cf94f487..16d7a586 100644 --- a/smart-admin-web/javascript-ant-design-vue3/src/components/support/table-operator/index.vue +++ b/smart-admin-web/javascript-ant-design-vue3/src/components/support/table-operator/index.vue @@ -66,7 +66,15 @@ // 原始表格列数据(复制一份最原始的columns集合,以供后续各个地方使用) let originalColumn = _.cloneDeep(props.modelValue); - onMounted(buildUserTableColumns); + onMounted(() => { + buildUserTableColumns(); + // 监听全屏事件 解决按下 ESC 退出全屏 fullScreenFlag 未改变导致下次第一下点击全屏无效的问题 + addEventListener('fullscreenchange', (event) => { + if (document.fullscreenElement === null) { + fullScreenFlag.value = false; + } + }); + }); //构建用户的数据列 async function buildUserTableColumns() { diff --git a/smart-admin-web/javascript-ant-design-vue3/src/components/support/table-operator/smart-table-column-modal.vue b/smart-admin-web/javascript-ant-design-vue3/src/components/support/table-operator/smart-table-column-modal.vue index a24940ff..d6e89105 100644 --- a/smart-admin-web/javascript-ant-design-vue3/src/components/support/table-operator/smart-table-column-modal.vue +++ b/smart-admin-web/javascript-ant-design-vue3/src/components/support/table-operator/smart-table-column-modal.vue @@ -9,46 +9,70 @@ * -->