Fix #982 issue.Make Null acceptable for Select tag(让Select标签可以接收null值)

This commit is contained in:
herton7362 2018-02-06 10:32:59 +08:00
parent 92ba610c83
commit d4a0b94428

View file

@ -724,7 +724,8 @@
watch: { watch: {
value (val) { value (val) {
this.model = val; this.model = val;
if (val === '') this.query = ''; // #982
if (val === '' || val === null) this.query = '';
}, },
label (val) { label (val) {
this.currentLabel = val; this.currentLabel = val;