From 17db7df4fd27fba03db50ef2afb17c31078bb3d7 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Sun, 3 Sep 2017 12:26:16 +0800 Subject: [PATCH] fixed #1751 --- examples/routers/table.vue | 55 ++++++++++++------------------------------------------- src/components/table/table-head.vue | 1 + 2 files changed, 13 insertions(+), 43 deletions(-) diff --git a/examples/routers/table.vue b/examples/routers/table.vue index c48347b..19f9a73 100644 --- a/examples/routers/table.vue +++ b/examples/routers/table.vue @@ -1,27 +1,15 @@ \ No newline at end of file + diff --git a/src/components/table/table-head.vue b/src/components/table/table-head.vue index efa5a8d..0809ece 100644 --- a/src/components/table/table-head.vue +++ b/src/components/table/table-head.vue @@ -92,6 +92,7 @@ isSelectAll () { let isSelectAll = true; if (!this.data.length) isSelectAll = false; + if (!this.data.find(item => !item._disabled)) isSelectAll = false; // #1751 for (let i = 0; i < this.data.length; i++) { if (!this.objData[this.data[i]._index]._isChecked && !this.objData[this.data[i]._index]._isDisabled) { isSelectAll = false; -- libgit2 0.21.4