47c26b3d by 任超

style:加载组件

1 parent b233bab3
...@@ -3,12 +3,12 @@ import Loading from '@/components/loading/index.js'; ...@@ -3,12 +3,12 @@ import Loading from '@/components/loading/index.js';
3 let loading 3 let loading
4 4
5 // loading开始 方法 5 // loading开始 方法
6 function startLoading (target, loadingText = '正在加载中...') { 6 function startLoading (target = 'body', loadingText = '正在加载中...') {
7 loading = Loading.service({ 7 loading = Loading.service({
8 text: loadingText, 8 text: loadingText,
9 spinner: 'el-icon-loading', 9 spinner: 'el-icon-loading',
10 background: 'rgba(255, 255, 255, 0.5)', 10 background: 'rgba(255, 255, 255, 0.5)',
11 target: target ? '#' + target : 'body' 11 target: '#' + target
12 }) 12 })
13 } 13 }
14 14
......