From c8d6e4b039bb356e3b18bd27fdeaf50158dc39ff Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 29 Dec 2017 17:05:12 +0800 Subject: [PATCH] fix --- components/button/button.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/button/button.vue b/components/button/button.vue index 1ce57def5..031d056ec 100644 --- a/components/button/button.vue +++ b/components/button/button.vue @@ -86,10 +86,6 @@ export default { this.$emit('click', event) }, insertSpace (child, needInserted) { - // Check the child if is undefined or null. - if (child == null) { - return child - } const SPACE = needInserted ? ' ' : '' if (typeof child.text === 'string') { let text = child.text.trim()