Skip to content

Commit

Permalink
更新scrollToY& scrollToX types
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileZXLee committed Feb 9, 2025
1 parent 34a8cd4 commit 4ac0c55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,7 @@ declare interface _ZPagingRef<T = any> {
* - vue中有效
* - 与scrollIntoViewByNodeTop的不同之处在于,scrollToY传入的是view相对于屏幕的top值,而scrollIntoViewByNodeTop传入的top值并非是固定的,通过uni.createSelectorQuery()获取到的top会因列表滚动而改变
*
* @since 2.1.0
* @param y 与顶部的距离,单位为px
* @param [offset=0] 偏移量,单位为px
* @param [animate=false] 是否有动画效果
Expand All @@ -2003,6 +2004,7 @@ declare interface _ZPagingRef<T = any> {
* x轴滚动到指定位置
* - 非页面滚动且在vue中有效
*
* @since 2.8.5
* @param x 与左侧的距离,单位为px
* @param [offset=0] 偏移量,单位为px
* @param [animate=false] 是否有动画效果
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,7 @@ declare interface _ZPagingRef<T = any> {
* - vue中有效
* - 与scrollIntoViewByNodeTop的不同之处在于,scrollToY传入的是view相对于屏幕的top值,而scrollIntoViewByNodeTop传入的top值并非是固定的,通过uni.createSelectorQuery()获取到的top会因列表滚动而改变
*
* @since 2.1.0
* @param y 与顶部的距离,单位为px
* @param [offset=0] 偏移量,单位为px
* @param [animate=false] 是否有动画效果
Expand All @@ -2003,6 +2004,7 @@ declare interface _ZPagingRef<T = any> {
* x轴滚动到指定位置
* - 非页面滚动且在vue中有效
*
* @since 2.8.5
* @param x 与左侧的距离,单位为px
* @param [offset=0] 偏移量,单位为px
* @param [animate=false] 是否有动画效果
Expand Down
2 changes: 2 additions & 0 deletions z-paging/types/comps/z-paging.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,7 @@ declare interface _ZPagingRef<T = any> {
* - vue中有效
* - 与scrollIntoViewByNodeTop的不同之处在于,scrollToY传入的是view相对于屏幕的top值,而scrollIntoViewByNodeTop传入的top值并非是固定的,通过uni.createSelectorQuery()获取到的top会因列表滚动而改变
*
* @since 2.1.0
* @param y 与顶部的距离,单位为px
* @param [offset=0] 偏移量,单位为px
* @param [animate=false] 是否有动画效果
Expand All @@ -2003,6 +2004,7 @@ declare interface _ZPagingRef<T = any> {
* x轴滚动到指定位置
* - 非页面滚动且在vue中有效
*
* @since 2.8.5
* @param x 与左侧的距离,单位为px
* @param [offset=0] 偏移量,单位为px
* @param [animate=false] 是否有动画效果
Expand Down

0 comments on commit 4ac0c55

Please sign in to comment.