diff --git a/package.json b/package.json index fb7e821..79b9a66 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iview", - "version": "0.9.17", + "version": "1.0.0", "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 0898092..50a700e 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -548,8 +548,16 @@ this.data.forEach((row, index) => { const newRow = deepCopy(row);// todo 直接替换 newRow._isHover = false; - newRow._isChecked = false; - newRow._isHighlight = false; + if (newRow._checked) { + newRow._isChecked = newRow._checked; + } else { + newRow._isChecked = false; + } + if (newRow._highlight) { + newRow._isHighlight = newRow._highlight; + } else { + newRow._isHighlight = false; + } data[index] = newRow; }); return data; diff --git a/test/routers/table.vue b/test/routers/table.vue index 101cd12..be1f25c 100644 --- a/test/routers/table.vue +++ b/test/routers/table.vue @@ -1,5 +1,5 @@