+
{{{ renderHeader(column, $index) }}}
@@ -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 2a1ff640..0d5d71fb 100644
--- a/src/components/transfer/list.vue
+++ b/src/components/transfer/list.vue
@@ -15,7 +15,7 @@
-
{{ showLabel(item) }}
@@ -72,7 +72,7 @@
},
count () {
const validKeysCount = this.validKeysCount;
- return (validKeysCount > 0 ? `${validKeysCount}/` : '') + `${this.data.length}条`;
+ return (validKeysCount > 0 ? `${validKeysCount}/` : '') + `${this.data.length}`;
},
checkedAll () {
return this.data.filter(data => !data.disabled).length === this.validKeysCount && this.validKeysCount !== 0;
@@ -82,6 +82,14 @@
}
},
methods: {
+ itemClasses (item) {
+ return [
+ `${this.prefixCls}-content-item`,
+ {
+ [`${this.prefixCls}-content-item-disabled`]: item.disabled
+ }
+ ]
+ },
showLabel (item) {
return this.renderFormat(item);
},
@@ -118,4 +126,4 @@
}
}
}
-
\ No newline at end of file
+
diff --git a/src/index.js b/src/index.js
index fd0080a2..5ce567fc 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,3 +1,6 @@
+// es6 polyfill
+import 'core-js/fn/array/find-index'
+
import Affix from './components/affix';
import Alert from './components/alert';
import BackTop from './components/back-top';