iview/src/components/table
呼啸随风 e7f2801b5e
fix last column resize bug when no data
If a table has heigth and last column is auto width

let width = ''
// is_last_column, true && top_always_true && height_set_by_user, true
if ( this.columns.length === index + 1 && top && this.$parent.bodyHeight !== 0) {
// width will be 0 + this.$parent.scrollBarWidth === this.$parent.scrollBarWidth
// so last column will be 10~20px(the width of scrollBar)
}
there is an example with iview@2.8.0
[gist](https://gist.github.com/anonymous/e04e86c9e99d4d1e97bf327769acd345)
[demo on jsbin](http://jsbin.com/soqogagiqu)
2018-01-09 10:22:17 +08:00
..
cell.vue Merge pull request #993 from anykno/table_render 2017-09-01 16:33:49 +08:00
expand.js update Tabs render 2017-06-09 16:54:20 +08:00
export-csv.js table: fix export csv for safari 2017-08-02 16:13:40 +08:00
header.js fixed #1357 2017-07-18 14:15:57 +08:00
index.js commit Table component 2016-11-23 16:27:17 +08:00
mixin.js fix last column resize bug when no data 2018-01-09 10:22:17 +08:00
table-body.vue fixed #1648 2017-11-08 14:39:39 +08:00
table-head.vue fixed Table bug in Vue 2.5.13 2017-12-25 10:26:54 +08:00
table-tr.vue fixed #1195 2017-06-30 16:26:31 +08:00
table.vue fix issue: #2352 2018-01-05 18:11:49 +08:00