dcloudio / dcloudio/uni-ui

uni-table设置表头宽度问题

Open
#411 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.1k
Forks
661
PR merge metrics
No merged PRs in 30d

Description

v-if条件显示uni-table时,设置了uni-th的宽度值,min-width只会计算第一个th的宽度值,后面th设置的宽度并不会计算,
加上 watch: { // #ifdef H5 widthThArr (val = []) { if (val.length > 0) { const selectionWidth = this.selection === 'selection' ? 50 : 0 this.root.minWidth = this.widthThArr.reduce((a, b) => Number(a) + Number(b)) + selectionWidth } } // #endif },这是一个bug吗

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.