Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uni-table设置表头宽度问题 #411

Open
TStoneLee opened this issue Nov 19, 2021 · 1 comment
Open

uni-table设置表头宽度问题 #411

TStoneLee opened this issue Nov 19, 2021 · 1 comment

Comments

@TStoneLee
Copy link

TStoneLee commented Nov 19, 2021

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吗

@18148764734
Copy link
Contributor

感谢反馈,在字节小程序下已付现该问题,正在排查中,其他小程序平台未复现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants