From 4de6479be0fe1a47e6d85445a5666dbab37e4e86 Mon Sep 17 00:00:00 2001 From: guoju0808 Date: Wed, 26 Aug 2026 11:34:32 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20GrTable=20=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=20fixed=20=E6=96=B9=E5=90=91=20(=E4=B8=BB?= =?UTF-8?q?=E5=88=97+=E6=93=8D=E4=BD=9C=E5=88=97=E4=B8=8D=E5=86=8D=20fixed?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ry-vue3/src/components/GrTable.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ry-vue3/src/components/GrTable.vue b/ry-vue3/src/components/GrTable.vue index e879a15..b390588 100644 --- a/ry-vue3/src/components/GrTable.vue +++ b/ry-vue3/src/components/GrTable.vue @@ -47,6 +47,7 @@ @@ -143,6 +144,13 @@ function shouldRenderColumn(node, idx) { return mainColsResolved.value.includes(meta.prop) // 只渲染主列 } +// 移动端移除 fixed 方向 (桌面仍保留 fixed-left/right 横滚体验) +function resolveFixed(node) { + if (!isMobile.value) return node.props?.fixed + // 移动端: el-table 在窄屏基本只剩 3-5 列, 不再需要列固定 (会撑出滚动容器) + return undefined +} + // 透传 el-table 引用方法 (clearSelection / toggleRowSelection 等) defineExpose({ clearSelection: (...args) => tableRef.value?.clearSelection?.(...args),