diff --git a/package.json b/package.json index caf1fae..66b38e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iview", - "version": "0.9.9-rc-5", + "version": "0.9.9-rc-6", "title": "iView", "description": "A high quality UI components Library with Vue.js", "homepage": "http://www.iviewui.com", diff --git a/src/components/table/table.vue b/src/components/table/table.vue index f9db9a4..2897666 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -92,7 +92,7 @@ }, size: { validator (value) { - return oneOf(value, ['small', 'large']); + return oneOf(value, ['small', 'large', 'default']); } }, width: { @@ -341,6 +341,8 @@ const footerHeight = parseInt(getStyle(this.$els.footer, 'height')) || 0; this.bodyHeight = this.height - titleHeight - headerHeight - footerHeight; }) + } else { + this.bodyHeight = 0; } }, hideColumnFilter () { @@ -542,6 +544,7 @@ }, columns: { handler () { + // todo 这里有性能问题,可能是左右固定计算属性影响的 this.cloneColumns = this.makeColumns(); this.rebuildData = this.makeDataWithSortAndFilter(); this.handleResize(); diff --git a/test/routers/table.vue b/test/routers/table.vue index b35f023..c08c026 100644 --- a/test/routers/table.vue +++ b/test/routers/table.vue @@ -1,90 +1,150 @@ -- libgit2 0.21.4