Skip to content

Commit 6634bce

Browse files
committed
v2.8.2-released
1 parent be0acca commit 6634bce

File tree

21 files changed

+60
-30
lines changed

21 files changed

+60
-30
lines changed

demo/z-paging-demo/uni_modules/z-paging/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 2.8.2(2024-11-25)
2+
1.`优化` types中`ZPagingRef``ZPagingInstance`支持泛型。
13
## 2.8.1(2024-11-24)
24
1.`新增` 完整的`props``slots``methods``events`的typescript types声明,可在ts中获得绝佳的代码提示体验。
35
2.`新增` `virtual-cell-id-prefix`:虚拟列表cell id的前缀,适用于一个页面有多个虚拟列表的情况,用以区分不同虚拟列表cell的id。

demo/z-paging-demo/uni_modules/z-paging/components/z-paging/js/z-paging-constant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export default {
44
// 当前版本号
5-
version: '2.8.1',
5+
version: '2.8.2',
66
// 延迟操作的通用时间
77
delayTime: 100,
88
// 请求失败时候全局emit使用的key

demo/z-paging-demo/uni_modules/z-paging/components/z-paging/z-paging.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/ /_____| |_) | (_| | (_| | | | | | (_| |
55
/___| | .__/ \__,_|\__, |_|_| |_|\__, |
66
|_| |___/ |___/
7-
v2.8.1 (2024-11-24)
7+
v2.8.2 (2024-11-25)
88
@author ZXLee <admin@zxlee.cn>
99
-->
1010
<!-- 文档地址:https://z-paging.zxlee.cn -->

demo/z-paging-demo/uni_modules/z-paging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "z-paging",
33
"name": "z-paging",
44
"displayName": "【z-paging下拉刷新、上拉加载】高性能,全平台兼容。支持虚拟列表,分页全自动处理",
5-
"version": "2.8.1",
5+
"version": "2.8.2",
66
"description": "超简单、低耦合!使用wxs+renderjs实现。支持自定义下拉刷新、上拉加载更多、虚拟列表、下拉进入二楼、自动管理空数据图、无闪动聊天分页、本地分页、国际化等100+项配置",
77
"keywords": [
88
"下拉刷新",

demo/z-paging-demo/uni_modules/z-paging/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<img alt="logo" src="https://z-paging.zxlee.cn/img/title-logo.png" height="100" style="margin-bottom: 50px;" />
55
</p>
66

7-
[![version](https://img.shields.io/badge/version-2.8.1-blue)](https://github.com/SmileZXLee/uni-z-paging) [![license](https://img.shields.io/github/license/SmileZXLee/uni-z-paging)](https://en.wikipedia.org/wiki/MIT_License)
7+
[![version](https://img.shields.io/badge/version-2.8.2-blue)](https://github.com/SmileZXLee/uni-z-paging) [![license](https://img.shields.io/github/license/SmileZXLee/uni-z-paging)](https://en.wikipedia.org/wiki/MIT_License)
88
<img height="0" width="0" src="https://api.z-notify.zxlee.cn/v1/public/statistics/8293556910106066944/addOnly?from=uni" />
99

1010
`z-paging-x`现已支持uniapp x,持续完善中,插件地址👉🏻 [https://ext.dcloud.net.cn/plugin?name=z-paging-x](https://ext.dcloud.net.cn/plugin?name=z-paging-x)

demo/z-paging-demo/uni_modules/z-paging/types/comps/z-paging.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,13 @@ declare interface ZPagingProps {
10741074
*/
10751075
virtualScrollFps?: number | string
10761076

1077+
/**
1078+
* 虚拟列表cell id的前缀,适用于一个页面有多个虚拟列表的情况,用以区分不同虚拟列表cell的id
1079+
* - 注意:请勿传数字或以数字开头的字符串。如设置为list1,则cell的id应为:list1-zp-id-${item.zp_index}
1080+
* @since 2.8.1
1081+
*/
1082+
virtualCellIdPrefix?: string
1083+
10771084
/**
10781085
* 是否在z-paging内部循环渲染列表(使用内置列表)。
10791086
* @default false
@@ -2055,4 +2062,8 @@ declare interface _ZPaging {
20552062

20562063
export declare const ZPaging: _ZPaging
20572064

2058-
export declare const ZPagingRef: _ZPagingRef
2065+
declare global {
2066+
interface ZPagingRef<T = any> extends _ZPagingRef<T> {}
2067+
// 兼容v2.8.1之前的旧版本
2068+
interface ZPagingInstance<T = any> extends _ZPagingRef<T> {}
2069+
}

demo/z-paging-demo/uni_modules/z-paging/types/index.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ declare module 'z-paging' {
1919
}
2020
}
2121
}
22-
declare type ZPagingRef = typeof import('./comps/z-paging')['ZPagingRef']
23-
declare type ZPagingSwiperRef = typeof import('./comps/z-paging-swiper')['ZPagingSwiperRef']
24-
declare type ZPagingSwiperItemRef = typeof import('./comps/z-paging-swiper-item')['ZPagingSwiperItemRef']
2522

26-
// 兼容v2.8.1之前的旧版本
27-
declare type ZPagingInstance = typeof import('./comps/z-paging')['ZPagingRef']
23+
declare type ZPagingSwiperRef = typeof import('./comps/z-paging-swiper')['ZPagingSwiperRef']
24+
declare type ZPagingSwiperItemRef = typeof import('./comps/z-paging-swiper-item')['ZPagingSwiperItemRef']

demo/z-paging-vue3-demo/uni_modules/z-paging/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 2.8.2(2024-11-25)
2+
1.`优化` types中`ZPagingRef``ZPagingInstance`支持泛型。
13
## 2.8.1(2024-11-24)
24
1.`新增` 完整的`props``slots``methods``events`的typescript types声明,可在ts中获得绝佳的代码提示体验。
35
2.`新增` `virtual-cell-id-prefix`:虚拟列表cell id的前缀,适用于一个页面有多个虚拟列表的情况,用以区分不同虚拟列表cell的id。

demo/z-paging-vue3-demo/uni_modules/z-paging/components/z-paging/js/z-paging-constant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export default {
44
// 当前版本号
5-
version: '2.8.1',
5+
version: '2.8.2',
66
// 延迟操作的通用时间
77
delayTime: 100,
88
// 请求失败时候全局emit使用的key

demo/z-paging-vue3-demo/uni_modules/z-paging/components/z-paging/z-paging.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/ /_____| |_) | (_| | (_| | | | | | (_| |
55
/___| | .__/ \__,_|\__, |_|_| |_|\__, |
66
|_| |___/ |___/
7-
v2.8.1 (2024-11-24)
7+
v2.8.2 (2024-11-25)
88
@author ZXLee <admin@zxlee.cn>
99
-->
1010
<!-- 文档地址:https://z-paging.zxlee.cn -->

demo/z-paging-vue3-demo/uni_modules/z-paging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "z-paging",
33
"name": "z-paging",
44
"displayName": "【z-paging下拉刷新、上拉加载】高性能,全平台兼容。支持虚拟列表,分页全自动处理",
5-
"version": "2.8.1",
5+
"version": "2.8.2",
66
"description": "超简单、低耦合!使用wxs+renderjs实现。支持自定义下拉刷新、上拉加载更多、虚拟列表、下拉进入二楼、自动管理空数据图、无闪动聊天分页、本地分页、国际化等100+项配置",
77
"keywords": [
88
"下拉刷新",

demo/z-paging-vue3-demo/uni_modules/z-paging/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<img alt="logo" src="https://z-paging.zxlee.cn/img/title-logo.png" height="100" style="margin-bottom: 50px;" />
55
</p>
66

7-
[![version](https://img.shields.io/badge/version-2.8.1-blue)](https://github.com/SmileZXLee/uni-z-paging) [![license](https://img.shields.io/github/license/SmileZXLee/uni-z-paging)](https://en.wikipedia.org/wiki/MIT_License)
7+
[![version](https://img.shields.io/badge/version-2.8.2-blue)](https://github.com/SmileZXLee/uni-z-paging) [![license](https://img.shields.io/github/license/SmileZXLee/uni-z-paging)](https://en.wikipedia.org/wiki/MIT_License)
88
<img height="0" width="0" src="https://api.z-notify.zxlee.cn/v1/public/statistics/8293556910106066944/addOnly?from=uni" />
99

1010
`z-paging-x`现已支持uniapp x,持续完善中,插件地址👉🏻 [https://ext.dcloud.net.cn/plugin?name=z-paging-x](https://ext.dcloud.net.cn/plugin?name=z-paging-x)

demo/z-paging-vue3-demo/uni_modules/z-paging/types/comps/z-paging.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,13 @@ declare interface ZPagingProps {
10741074
*/
10751075
virtualScrollFps?: number | string
10761076

1077+
/**
1078+
* 虚拟列表cell id的前缀,适用于一个页面有多个虚拟列表的情况,用以区分不同虚拟列表cell的id
1079+
* - 注意:请勿传数字或以数字开头的字符串。如设置为list1,则cell的id应为:list1-zp-id-${item.zp_index}
1080+
* @since 2.8.1
1081+
*/
1082+
virtualCellIdPrefix?: string
1083+
10771084
/**
10781085
* 是否在z-paging内部循环渲染列表(使用内置列表)。
10791086
* @default false
@@ -2055,4 +2062,8 @@ declare interface _ZPaging {
20552062

20562063
export declare const ZPaging: _ZPaging
20572064

2058-
export declare const ZPagingRef: _ZPagingRef
2065+
declare global {
2066+
interface ZPagingRef<T = any> extends _ZPagingRef<T> {}
2067+
// 兼容v2.8.1之前的旧版本
2068+
interface ZPagingInstance<T = any> extends _ZPagingRef<T> {}
2069+
}

demo/z-paging-vue3-demo/uni_modules/z-paging/types/index.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ declare module 'z-paging' {
1919
}
2020
}
2121
}
22-
declare type ZPagingRef = typeof import('./comps/z-paging')['ZPagingRef']
23-
declare type ZPagingSwiperRef = typeof import('./comps/z-paging-swiper')['ZPagingSwiperRef']
24-
declare type ZPagingSwiperItemRef = typeof import('./comps/z-paging-swiper-item')['ZPagingSwiperItemRef']
2522

26-
// 兼容v2.8.1之前的旧版本
27-
declare type ZPagingInstance = typeof import('./comps/z-paging')['ZPagingRef']
23+
declare type ZPagingSwiperRef = typeof import('./comps/z-paging-swiper')['ZPagingSwiperRef']
24+
declare type ZPagingSwiperItemRef = typeof import('./comps/z-paging-swiper-item')['ZPagingSwiperItemRef']

z-paging/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<img alt="logo" src="https://z-paging.zxlee.cn/img/title-logo.png" height="100" style="margin-bottom: 50px;" />
55
</p>
66

7-
[![version](https://img.shields.io/badge/version-2.8.1-blue)](https://github.com/SmileZXLee/uni-z-paging) [![license](https://img.shields.io/github/license/SmileZXLee/uni-z-paging)](https://en.wikipedia.org/wiki/MIT_License)
7+
[![version](https://img.shields.io/badge/version-2.8.2-blue)](https://github.com/SmileZXLee/uni-z-paging) [![license](https://img.shields.io/github/license/SmileZXLee/uni-z-paging)](https://en.wikipedia.org/wiki/MIT_License)
88
<img height="0" width="0" src="https://api.z-notify.zxlee.cn/v1/public/statistics/8293556910106066944/addOnly?from=uni" />
99

1010
`z-paging-x`现已支持uniapp x,持续完善中,插件地址👉🏻 [https://ext.dcloud.net.cn/plugin?name=z-paging-x](https://ext.dcloud.net.cn/plugin?name=z-paging-x)

z-paging/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 2.8.2(2024-11-25)
2+
1.`优化` types中`ZPagingRef``ZPagingInstance`支持泛型。
13
## 2.8.1(2024-11-24)
24
1.`新增` 完整的`props``slots``methods``events`的typescript types声明,可在ts中获得绝佳的代码提示体验。
35
2.`新增` `virtual-cell-id-prefix`:虚拟列表cell id的前缀,适用于一个页面有多个虚拟列表的情况,用以区分不同虚拟列表cell的id。

z-paging/components/z-paging/js/z-paging-constant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export default {
44
// 当前版本号
5-
version: '2.8.1',
5+
version: '2.8.2',
66
// 延迟操作的通用时间
77
delayTime: 100,
88
// 请求失败时候全局emit使用的key

z-paging/components/z-paging/z-paging.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/ /_____| |_) | (_| | (_| | | | | | (_| |
55
/___| | .__/ \__,_|\__, |_|_| |_|\__, |
66
|_| |___/ |___/
7-
v2.8.1 (2024-11-24)
7+
v2.8.2 (2024-11-25)
88
@author ZXLee <admin@zxlee.cn>
99
-->
1010
<!-- 文档地址:https://z-paging.zxlee.cn -->

z-paging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "z-paging",
33
"name": "z-paging",
44
"displayName": "【z-paging下拉刷新、上拉加载】高性能,全平台兼容。支持虚拟列表,分页全自动处理",
5-
"version": "2.8.1",
5+
"version": "2.8.2",
66
"description": "超简单、低耦合!使用wxs+renderjs实现。支持自定义下拉刷新、上拉加载更多、虚拟列表、下拉进入二楼、自动管理空数据图、无闪动聊天分页、本地分页、国际化等100+项配置",
77
"keywords": [
88
"下拉刷新",

z-paging/types/comps/z-paging.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,13 @@ declare interface ZPagingProps {
10741074
*/
10751075
virtualScrollFps?: number | string
10761076

1077+
/**
1078+
* 虚拟列表cell id的前缀,适用于一个页面有多个虚拟列表的情况,用以区分不同虚拟列表cell的id
1079+
* - 注意:请勿传数字或以数字开头的字符串。如设置为list1,则cell的id应为:list1-zp-id-${item.zp_index}
1080+
* @since 2.8.1
1081+
*/
1082+
virtualCellIdPrefix?: string
1083+
10771084
/**
10781085
* 是否在z-paging内部循环渲染列表(使用内置列表)。
10791086
* @default false
@@ -2055,4 +2062,8 @@ declare interface _ZPaging {
20552062

20562063
export declare const ZPaging: _ZPaging
20572064

2058-
export declare const ZPagingRef: _ZPagingRef
2065+
declare global {
2066+
interface ZPagingRef<T = any> extends _ZPagingRef<T> {}
2067+
// 兼容v2.8.1之前的旧版本
2068+
interface ZPagingInstance<T = any> extends _ZPagingRef<T> {}
2069+
}

z-paging/types/index.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ declare module 'z-paging' {
1919
}
2020
}
2121
}
22-
declare type ZPagingRef = typeof import('./comps/z-paging')['ZPagingRef']
23-
declare type ZPagingSwiperRef = typeof import('./comps/z-paging-swiper')['ZPagingSwiperRef']
24-
declare type ZPagingSwiperItemRef = typeof import('./comps/z-paging-swiper-item')['ZPagingSwiperItemRef']
2522

26-
// 兼容v2.8.1之前的旧版本
27-
declare type ZPagingInstance = typeof import('./comps/z-paging')['ZPagingRef']
23+
declare type ZPagingSwiperRef = typeof import('./comps/z-paging-swiper')['ZPagingSwiperRef']
24+
declare type ZPagingSwiperItemRef = typeof import('./comps/z-paging-swiper-item')['ZPagingSwiperItemRef']

0 commit comments

Comments
 (0)