From 5b6690b4d8d4d60845d036fdd384d9b5ceb53c98 Mon Sep 17 00:00:00 2001 From: HongxuanG <1359774872@qq.com> Date: Sun, 8 Nov 2026 18:54:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9D=AF=E5=B8=83?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E8=A1=A8=E6=A0=BC=E5=9C=A8=E4=B8=9C=E9=9B=86?= =?UTF-8?q?=E4=B8=8A=E5=88=97=E9=94=99=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../storefabric/WarehouseDataTable.vue | 25 ++++++++----------- src/components/wyb-table/wyb-table.vue | 2 +- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/src/components/storefabric/WarehouseDataTable.vue b/src/components/storefabric/WarehouseDataTable.vue index 986df33..d163d77 100644 --- a/src/components/storefabric/WarehouseDataTable.vue +++ b/src/components/storefabric/WarehouseDataTable.vue @@ -1,16 +1,14 @@ @@ -24,7 +22,7 @@ export default { contents: { type: Array, default: () => [] }, // auto:高度随内容撑开,纵向滚动交给外层 scroll-view,避免与下拉刷新抢手势 height: { type: String, default: 'auto' }, - firstLineFixed: { type: Boolean, default: true }, + firstLineFixed: { type: Boolean, default: false }, }, computed: { isAutoHeight() { @@ -50,9 +48,6 @@ export default { width: 100%; background: #fff; } -.tableScrollX { - width: 100%; -} /* 取消表格内部纵向滚动,只保留横向;纵向由页面 scroll-view 处理 */ .is-auto-height ::v-deep .wyb-table-scroll-view { height: auto !important; diff --git a/src/components/wyb-table/wyb-table.vue b/src/components/wyb-table/wyb-table.vue index dc8badf..c3088b8 100644 --- a/src/components/wyb-table/wyb-table.vue +++ b/src/components/wyb-table/wyb-table.vue @@ -73,7 +73,7 @@ borderRight: index === headers.length - 1 || (!showVertBorder && index !== 0) ? 'none' : '1px solid' + borderColor, zIndex: index === 0 ? 20 : 0, left: index === 0 && firstLineFixed ? (enableCheck ? checkColWidth + 'rpx' : 0) : 'auto', - position: index === 0 ? 'sticky' : 'static'}"> + position: index === 0 && firstLineFixed ? 'sticky' : 'static'}"> {{item.label || emptyString}}