From c6f21c2f4c8ae7eb1b1c3b42034bf4f8789faa57 Mon Sep 17 00:00:00 2001 From: jingsam Date: Sun, 27 Nov 2016 01:42:39 +0800 Subject: [PATCH] :bug: fix ie bug --- package.json | 1 + src/components/table/table-body.vue | 15 +++++++++++++-- src/components/table/table-head.vue | 12 ++++++++++-- src/components/transfer/list.vue | 14 +++++++++++--- src/index.js | 3 +++ 5 files changed, 38 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index f6d9979..5768192 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "url": "https://github.com/iview/iview/issues" }, "dependencies": { + "core-js": "^2.4.1", "popper.js": "^0.6.4" }, "peerDependencies": { diff --git a/src/components/table/table-body.vue b/src/components/table/table-body.vue index af99b5e..510b23d 100644 --- a/src/components/table/table-body.vue +++ b/src/components/table/table-body.vue @@ -6,7 +6,7 @@ @@ -39,6 +39,17 @@ fixed: Boolean }, methods: { + rowClasses (row, index) { + return [ + `${this.prefixCls}-row`, + this.rowClsName(index), + { + [`${this.prefixCls}-row-highlight`]: this.cloneData[index] && this.cloneData[index]._isHighlight, + [`${this.prefixCls}-row-hover`]: this.cloneData[index] && this.cloneData[index]._isHover + } + + ] + }, setCellWidth (column, index) { return this.$parent.setCellWidth(column, index); }, @@ -56,4 +67,4 @@ } } } - \ No newline at end of file + diff --git a/src/components/table/table-head.vue b/src/components/table/table-head.vue index b4c427d..adb0814 100644 --- a/src/components/table/table-head.vue +++ b/src/components/table/table-head.vue @@ -6,7 +6,7 @@ -
+
@@ -36,6 +36,14 @@ } }, methods: { + cellClasses (column) { + return [ + `${this.prefixCls}-cell`, + { + [`${this.prefixCls}-hidden`]: !this.fixed && column.fixed && (column.fixed === 'left' || column.fixed === 'right') + } + ] + }, setCellWidth (column, index) { return this.$parent.setCellWidth(column, index); }, @@ -62,4 +70,4 @@ } } } - \ No newline at end of file + diff --git a/src/components/transfer/list.vue b/src/components/transfer/list.vue index 2a1ff64..0d5d71f 100644 --- a/src/components/transfer/list.vue +++ b/src/components/transfer/list.vue @@ -15,7 +15,7 @@