Commit 4fbcd591837a42e5c429d0ae6cef67e96f749893

Authored by Aresn
1 parent 48e7799e

update

src/components/loading-bar/loading-bar.js
... ... @@ -31,9 +31,7 @@ LoadingBar.newInstance = properties => {
31 31 },
32 32 component: loading_bar,
33 33 destroy () {
34   - setTimeout(function() {
35   - document.body.removeChild(document.getElementsByClassName('ivu-loading-bar')[0].parentElement);
36   - }, 500);
  34 + document.body.removeChild(document.getElementsByClassName('ivu-loading-bar')[0]);
37 35 }
38 36 };
39 37 };
... ...
src/components/modal/confirm.js
... ... @@ -8,31 +8,6 @@ const prefixCls = 'ivu-modal-confirm';
8 8 Modal.newInstance = properties => {
9 9 const _props = properties || {};
10 10  
11   - // let props = '';
12   - // Object.keys(_props).forEach(prop => {
13   - // props += ' :' + camelcaseToHyphen(prop) + '=' + prop;
14   - // });
15   - //
16   - // const div = document.createElement('div');
17   - // div.innerHTML = `
18   - // <Modal${props} v-model="visible" :width="width" :scrollable="scrollable">
19   - // <div class="${prefixCls}">
20   - // <div class="${prefixCls}-head">
21   - // <div class="${prefixCls}-head-title" v-html="title"></div>
22   - // </div>
23   - // <div class="${prefixCls}-body">
24   - // <div :class="iconTypeCls"><i :class="iconNameCls"></i></div>
25   - // <div v-html="body"></div>
26   - // </div>
27   - // <div class="${prefixCls}-footer">
28   - // <i-button type="text" size="large" v-if="showCancel" @click.native="cancel">{{ localeCancelText }}</i-button>
29   - // <i-button type="primary" size="large" :loading="buttonLoading" @click.native="ok">{{ localeOkText }}</i-button>
30   - // </div>
31   - // </div>
32   - // </Modal>
33   - // `;
34   - // document.body.appendChild(div);
35   -
36 11 const Instance = new Vue({
37 12 mixins: [ Locale ],
38 13 data: Object.assign({}, _props, {
... ...