From 4fbcd591837a42e5c429d0ae6cef67e96f749893 Mon Sep 17 00:00:00 2001 From: Aresn Date: Thu, 1 Jun 2017 18:24:55 +0800 Subject: [PATCH] update --- src/components/loading-bar/loading-bar.js | 4 +--- src/components/modal/confirm.js | 25 ----------------------- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/src/components/loading-bar/loading-bar.js b/src/components/loading-bar/loading-bar.js index eb30043f..deea7d3f 100644 --- a/src/components/loading-bar/loading-bar.js +++ b/src/components/loading-bar/loading-bar.js @@ -31,9 +31,7 @@ LoadingBar.newInstance = properties => { }, component: loading_bar, destroy () { - setTimeout(function() { - document.body.removeChild(document.getElementsByClassName('ivu-loading-bar')[0].parentElement); - }, 500); + document.body.removeChild(document.getElementsByClassName('ivu-loading-bar')[0]); } }; }; diff --git a/src/components/modal/confirm.js b/src/components/modal/confirm.js index edef2fc1..58edf637 100644 --- a/src/components/modal/confirm.js +++ b/src/components/modal/confirm.js @@ -8,31 +8,6 @@ const prefixCls = 'ivu-modal-confirm'; Modal.newInstance = properties => { const _props = properties || {}; - // let props = ''; - // Object.keys(_props).forEach(prop => { - // props += ' :' + camelcaseToHyphen(prop) + '=' + prop; - // }); - // - // const div = document.createElement('div'); - // div.innerHTML = ` - // - //
- //
- //
- //
- //
- //
- //
- //
- // - //
- // - // `; - // document.body.appendChild(div); - const Instance = new Vue({ mixins: [ Locale ], data: Object.assign({}, _props, {