From 922145732fa53523adf65736a886009bf66b692b Mon Sep 17 00:00:00 2001 From: WJD <785724102@qq.com> Date: Thu, 25 May 2017 17:30:02 +0800 Subject: [PATCH] Update Select.vue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加单选下拉的值为 null 时,不清空框内文字的情况 --- src/components/select/select.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index bcda26e8..a14fe109 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -155,6 +155,8 @@ if (!this.model.length) { status = true; } + } else if( this.model === null){ + status = true; } return status;