File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 17
17
/* eslint-disable no-console */
18
18
import Spinner from ' ./Spinner.vue' ;
19
19
import config , { evt3rdArg , WARNINGS } from ' ../config' ;
20
- import { throttleer , loopTracker } from ' ../utils' ;
21
-
22
- /**
23
- * determine slot is or not a empty element
24
- * @param {Slot} slot target slot
25
- * @return {Boolean}
26
- */
27
- function isBlankSlotElm (slot ) {
28
- return (
29
- slot
30
- && slot[0 ].elm
31
- && slot[0 ].elm .textContent === ' '
32
- && slot[0 ].elm .childNodes .length === 0
33
- );
34
- }
20
+ import { throttleer , loopTracker , isBlankSlotElm } from ' ../utils' ;
35
21
36
22
export default {
37
23
name: ' InfiniteLoading' ,
Original file line number Diff line number Diff line change @@ -40,7 +40,22 @@ export const loopTracker = {
40
40
} ,
41
41
} ;
42
42
43
+ /**
44
+ * determine slot is or not a empty element
45
+ * @param {Slot } slot target slot
46
+ * @return {Boolean }
47
+ */
48
+ export function isBlankSlotElm ( slot ) {
49
+ return (
50
+ slot
51
+ && slot [ 0 ] . elm
52
+ && slot [ 0 ] . elm . textContent === ''
53
+ && slot [ 0 ] . elm . childNodes . length === 0
54
+ ) ;
55
+ }
56
+
43
57
export default {
44
58
throttleer,
45
59
loopTracker,
60
+ isBlankSlotElm,
46
61
} ;
You can’t perform that action at this time.
0 commit comments