Skip to content

Commit

Permalink
fix: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Oct 14, 2022
1 parent 187a642 commit c8363b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/demo/src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ChatDemo from './components/ChatDemo.vue'
import GridDemo from './components/GridDemo.vue'

const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{ path: '/', name: 'home', component: Home },
{ path: '/recycle', name: 'recycle', component: Recycle },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<template #after>
<slot name="after" />
</template>
<template slot="empty">
<template #empty>
<slot name="empty" />
</template>
</RecycleScroller>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
v-if="$slots.before"
ref="before"
class="vue-recycle-scroller__slot"
ref="before"
>
<slot
name="before"
Expand Down Expand Up @@ -64,7 +63,6 @@
v-if="$slots.after"
ref="after"
class="vue-recycle-scroller__slot"
ref="after"
>
<slot
name="after"
Expand Down Expand Up @@ -181,6 +179,8 @@ export default {
'visible',
'hidden',
'update',
'scroll-start',
'scroll-end',
],
data () {
Expand Down Expand Up @@ -700,7 +700,7 @@ export default {
let scrollDistance
if (this.pageMode) {
const viewportEl = ScrollParent(this.$el)
const viewportEl = getScrollParent(this.$el)
// HTML doesn't overflow like other elements
const scrollTop = viewportEl.tagName === 'HTML' ? 0 : viewportEl[direction.scroll]
const bounds = viewportEl.getBoundingClientRect()
Expand Down

0 comments on commit c8363b1

Please sign in to comment.