iview [Bug Report]table minWidth attribute bug

dgsult0t  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(61)

Environment

Chrome 当前 iView 版本为 3.0.0

https://run.iviewui.com/r0XdEGwF

Steps to reproduce

给table的column属性设置minWidth属性

What is expected?

minWidth:100的情况下期望设置minWidth属性的列,最小宽度为100px

What is actually happening?

minWidth:100的情况下实际设置minWidth属性的列,最小宽度为100 原有宽度

table.vue组件中 有一行设置列宽度代码为:

let width = columnWidth (column.minWidth?column.minWidth:0);

qgelzfjb

qgelzfjb1#

Translation of this issue:

Environment
Chrome the current iView version is 3.0.0.
Reproduction link
https://run.iviewui.com/r0XdEGwF
Steps to reproduce
Set the minWidth attribute to the column property of table.
What is expected?
In case of minWidth:100, the column of minWidth attribute is expected to be set, with a minimum width of 100px.
What is actually happening?
In the case of minWidth:100, the column of the minWidth attribute is actually set, with a minimum width of 100 original width.

One line in the table.vue component sets the column width code as follows:
Let width = columnWidth (column.minWidth? Column.minWidth:0);

相关问题