From 224a3ae5395994bc6e720f51b9e175c7cfcea9fa Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Wed, 30 Nov 2016 16:12:10 +0800 Subject: [PATCH] publish 0.9.9-rc-3 --- package.json | 2 +- src/components/table/mixin.js | 12 ++++++++++-- src/components/table/table-body.vue | 4 ++-- src/components/table/table-head.vue | 4 ++-- src/components/table/table.vue | 37 ++++++++++++++++++++++++------------- test/routers/table.vue | 8 +++++--- 6 files changed, 44 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 4efd075..46b0aea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iview", - "version": "0.9.9-rc-2", + "version": "0.9.9-rc-3", "title": "iView", "description": "A high quality UI components Library with Vue.js", "homepage": "http://www.iviewui.com", diff --git a/src/components/table/mixin.js b/src/components/table/mixin.js index 632f1ad..450769a 100644 --- a/src/components/table/mixin.js +++ b/src/components/table/mixin.js @@ -11,8 +11,16 @@ export default { isPopperShow (column) { return column.filters && ((!this.fixed && !column.fixed) || (this.fixed === 'left' && column.fixed === 'left') || (this.fixed === 'right' && column.fixed === 'right')); }, - setCellWidth (index) { - return this.column[index].width ? this.column.width : this.columnsWidth[index]; + setCellWidth (column, index) { + // return column.width ? column.width : this.columnsWidth[index]; + let width = ''; + if (column.width) { + width = column.width; + } else if (this.columnsWidth[column._index]) { + width = this.columnsWidth[column._index].width + } + // return this.columnsWidth[column._index] ? this.columnsWidth[column._index].width : ''; + return width; } } } \ No newline at end of file diff --git a/src/components/table/table-body.vue b/src/components/table/table-body.vue index 3362874..02e90da 100644 --- a/src/components/table/table-body.vue +++ b/src/components/table/table-body.vue @@ -1,7 +1,7 @@