From 393d85515e2311e758d5d1328742e8e85b067356 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Mon, 8 May 2017 14:30:08 +0800 Subject: [PATCH] update Select --- src/components/select/select.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+), 0 deletions(-) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index d0d6fe0..6229e6f 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -593,6 +593,10 @@ this.$nextTick(() => { this.broadcastQuery(''); }); + } else { + this.findChild(child => { + child.selected = this.model.indexOf(child.value) > -1; + }); } this.slotChange(); this.updateOptions(true, true); @@ -603,6 +607,10 @@ this.$nextTick(() => { this.broadcastQuery(''); }); + } else { + this.findChild(child => { + child.selected = this.model.indexOf(child.value) > -1; + }); } this.slotChange(); this.updateOptions(true, true); @@ -670,6 +678,11 @@ } else { this.$refs.input.select(); } + if (this.remote) { + this.findChild(child => { + child.selected = this.model.indexOf(child.value) > -1; + }); + } } this.broadcast('Drop', 'on-update-popper'); } else { -- libgit2 0.21.4