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}}