From 48e7799edf1a3d707f0ddc0ae7fb4205785fdf2b Mon Sep 17 00:00:00 2001 From: Aresn Date: Thu, 1 Jun 2017 12:36:44 +0800 Subject: [PATCH] update $Modal --- src/components/modal/confirm.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/modal/confirm.js b/src/components/modal/confirm.js index e5681dd..edef2fc 100644 --- a/src/components/modal/confirm.js +++ b/src/components/modal/confirm.js @@ -96,14 +96,16 @@ Modal.newInstance = properties => { attrs: { class: `${prefixCls}-head` } - }, h('div', { - attrs: { - class: `${prefixCls}-head-title` - }, - domProps: { - innerHTML: this.title - } - })), + }, [ + h('div', { + attrs: { + class: `${prefixCls}-head-title` + }, + domProps: { + innerHTML: this.title + } + }) + ]), h('div', { attrs: { class: `${prefixCls}-body` -- libgit2 0.21.4