diff --git a/package.json b/package.json
index 46b0aea..9151625 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "iview",
- "version": "0.9.9-rc-3",
+ "version": "0.9.9-rc-4",
"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 eb9574e..480ee8a 100644
--- a/src/components/table/table.vue
+++ b/src/components/table/table.vue
@@ -21,7 +21,7 @@
:columns-width="columnsWidth"
:obj-data="objData">
-
+
-
+
col.fixed && col.fixed === 'left');
+ },
+ isRightFixed () {
+ return this.columns.some(col => col.fixed && col.fixed === 'right');
}
},
methods: {
@@ -342,8 +348,8 @@
},
handleBodyScroll (event) {
if (this.showHeader) this.$els.header.scrollLeft = event.target.scrollLeft;
- if (this.leftFixedColumns.length) this.$els.fixedBody.scrollTop = event.target.scrollTop;
- if (this.rightFixedColumns.length) this.$els.fixedRightBody.scrollTop = event.target.scrollTop;
+ if (this.isLeftFixed) this.$els.fixedBody.scrollTop = event.target.scrollTop;
+ if (this.isRightFixed) this.$els.fixedRightBody.scrollTop = event.target.scrollTop;
this.hideColumnFilter();
},
handleMouseWheel (event) {
diff --git a/test/routers/table.vue b/test/routers/table.vue
index 06bfb50..09355af 100644
--- a/test/routers/table.vue
+++ b/test/routers/table.vue
@@ -9,21 +9,21 @@
return {
self: this,
columns7: [
-// {
-// title: '姓名',
-// key: 'name',
-// render (row, column, index) {
-// return `${row.name}`;
-// }
-// },
-// {
-// title: '年龄',
-// key: 'age'
-// },
-// {
-// title: '地址',
-// key: 'address'
-// },
+ {
+ title: '姓名',
+ key: 'name',
+ render (row, column, index) {
+ return `${row.name}`;
+ }
+ },
+ {
+ title: '年龄',
+ key: 'age'
+ },
+ {
+ title: '地址',
+ key: 'address'
+ },
{
title: '操作',
key: 'action',
--
libgit2 0.21.4