Skip to content

Commit 5188fe2

Browse files
committed
Update slots for the v2.2.x
1 parent 3a9449e commit 5188fe2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/Slots.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,20 @@
88

99
<h4>no-results</h4>
1010
<p v-show="$parent.docVersion < 1">This content will be display when the <code>InfiniteLoading</code> component received <code>$InfiniteLoading:noResults</code> event.</p>
11-
<p v-show="$parent.docVersion >= 1">This content will be display when the <code>InfiniteLoading</code> component received <code>$InfiniteLoading:complete</code> event and it never received <code>$InfiniteLoading:loaded</code> event.</p>
11+
<p v-show="$parent.docVersion >= 1">This content will be display when
12+
<span v-show="$parent.docVersion < 2.2">the <code>InfiniteLoading</code> component received <code>$InfiniteLoading:complete</code> event and it never received <code>$InfiniteLoading:loaded</code> event.</span>
13+
<span v-show="$parent.docVersion >= 2.2">the <code>complete</code> method of <code>$state</code> argument be called and the <code>loaded</code> method of <code>$state</code> has never be called in the <code>infinite</code> event handler.</span>
14+
</p>
1215
<pre>
1316
- type String
1417
- default No results :(</pre>
1518

1619
<h4>no-more</h4>
1720
<p v-show="$parent.docVersion < 1">This content will be display when the <code>InfiniteLoading</code> component received <code>$InfiniteLoading:noMore</code> event.</p>
18-
<p v-show="$parent.docVersion >= 1">This content will be display when the <code>InfiniteLoading</code> component received <code>$InfiniteLoading:complete</code> event and it has been received <code>$InfiniteLoading:loaded</code> event.</p>
21+
<p v-show="$parent.docVersion >= 1">This content will be display when
22+
<span v-show="$parent.docVersion < 2.2">the <code>InfiniteLoading</code> component received <code>$InfiniteLoading:complete</code> event and it has been received <code>$InfiniteLoading:loaded</code> event.</span>
23+
<span v-show="$parent.docVersion >= 2.2">the <code>complete</code> method of <code>$state</code> argument be called and the <code>loaded</code> method of <code>$state</code> already called in the <code>infinite</code> event handler.</span>
24+
</p>
1925
<pre>
2026
- type String
2127
- default No more data :)</pre>

0 commit comments

Comments
 (0)