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, {