Commit f1702c48e96da65f8a6a1962e84b7512a28fe199
1 parent
5776bcbf
fix #3391
Showing
1 changed file
with
26 additions
and
22 deletions
Show diff stats
src/components/scroll/loading-component.vue
... | ... | @@ -11,28 +11,32 @@ |
11 | 11 | </template> |
12 | 12 | |
13 | 13 | <script> |
14 | -const prefixCls = 'ivu-scroll'; | |
14 | + import Spin from '../spin/spin.vue'; | |
15 | + import Icon from '../icon/icon.vue'; | |
15 | 16 | |
16 | -export default { | |
17 | - props: ['text', 'active', 'spinnerHeight'], | |
18 | - computed: { | |
19 | - wrapperClasses() { | |
20 | - return [ | |
21 | - `${prefixCls}-loader-wrapper`, | |
22 | - { | |
23 | - [`${prefixCls}-loader-wrapper-active`]: this.active | |
24 | - } | |
25 | - ]; | |
26 | - }, | |
27 | - spinnerClasses() { | |
28 | - return `${prefixCls}-spinner`; | |
29 | - }, | |
30 | - iconClasses() { | |
31 | - return `${prefixCls}-spinner-icon`; | |
32 | - }, | |
33 | - textClasses() { | |
34 | - return `${prefixCls}-loader-text`; | |
17 | + const prefixCls = 'ivu-scroll'; | |
18 | + | |
19 | + export default { | |
20 | + props: ['text', 'active', 'spinnerHeight'], | |
21 | + components: { Spin, Icon }, | |
22 | + computed: { | |
23 | + wrapperClasses() { | |
24 | + return [ | |
25 | + `${prefixCls}-loader-wrapper`, | |
26 | + { | |
27 | + [`${prefixCls}-loader-wrapper-active`]: this.active | |
28 | + } | |
29 | + ]; | |
30 | + }, | |
31 | + spinnerClasses() { | |
32 | + return `${prefixCls}-spinner`; | |
33 | + }, | |
34 | + iconClasses() { | |
35 | + return `${prefixCls}-spinner-icon`; | |
36 | + }, | |
37 | + textClasses() { | |
38 | + return `${prefixCls}-loader-text`; | |
39 | + } | |
35 | 40 | } |
36 | - } | |
37 | -}; | |
41 | + }; | |
38 | 42 | </script> | ... | ... |