Skip to content

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

Open
@TStoneLee

Description

@TStoneLee

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吗

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions