🌐 AI搜索 & 代理 主页
Skip to content

Commit 5917c6d

Browse files
authored
Update icons-table.vue
1 parent bebe4de commit 5917c6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/components/icons-table.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
class="row-cols-3 row-cols-sm-4 row-cols-lg-6 list-unstyled mb-n3 position-relative"
2929
>
3030
<b-col
31-
v-for="icon in filteredIcons.slice(0, curentPageSize)"
31+
v-for="icon in filteredIcons.slice(0, currentPageSize)"
3232
:key="`_icon_${icon.name}`"
3333
tag="li"
3434
class="flip-icon-list-icon d-inline-flex flex-column mb-3 text-center"
@@ -144,7 +144,7 @@ export default {
144144
return {
145145
iconFilter: '',
146146
totalIcons: icons.length,
147-
curentPageSize: INITIAL_SIZE,
147+
currentPageSize: INITIAL_SIZE,
148148
noIntersectionObserver: false
149149
}
150150
},
@@ -163,19 +163,19 @@ export default {
163163
watch: {
164164
iconFilter(newVal, oldVal) {
165165
// Reset the page size to the initial value
166-
this.curentPageSize = INITIAL_SIZE
166+
this.currentPageSize = INITIAL_SIZE
167167
}
168168
},
169169
methods: {
170170
onInfinite(visible) {
171171
if (visible === null) {
172172
// Intersection observer not supported
173-
this.curentPageSize = this.totalIcons
173+
this.currentPageSize = this.totalIcons
174174
this.noIntersectionObserver = true
175175
return
176176
}
177177
if (visible) {
178-
this.curentPageSize = Math.min(this.curentPageSize + INFINITE_INCREMENT, this.totalIcons)
178+
this.currentPageSize = Math.min(this.currentPageSize + INFINITE_INCREMENT, this.totalIcons)
179179
}
180180
}
181181
}

0 commit comments

Comments
 (0)