Skip to content

Commit

Permalink
v2.5.2-released
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileZXLee committed Feb 3, 2023
1 parent f4117a4 commit ea6bc55
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion z-paging/components/index-nav/index-nav.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<u-navbar :background="{'background-color': 'rgb(248, 248, 248)'}" :isBack="false">
<view style="display: flex;align-items: flex-end;justify-content: center;width: 100%;" @click="navClick">
<image style="width: 180px;height: 28px;" src="https://z-paging.zxlee.cn/img/title-logo.png"></image>
<image style="width: 180px;height: 28px;" src="/static/title-logo.png"></image>
<view style="display: flex;">
<view class="version-tag version-text">v{{version}}</view>
<!-- #ifdef VUE2 -->
Expand Down
Binary file added z-paging/static/title-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 2 additions & 6 deletions z-paging/uni_modules/z-paging/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
## 2.5.1(2023-02-01)
1.`修复`在微信小程序的组件内使用`z-paging`时,`scrollIntoViewById`无效的问题。
2.`优化``@refresherTouchmove`在用户手松开和刷新结束时也触发并传出对应边界值。
3.`优化`更新demo首页导航栏样式。
4.`废弃`方法`end``endByTotalCount``endByTotal``completeByTotalCount``endByNoMore``endByKey`
5.`调整`方法`completeByNoMore`中参数2(必填):`是否有更多数据`,修改为`是否没有更多数据`,若为true则代表没有更多数据了。与`v2.5.1`之前相反。
## 2.5.2(2023-02-03)
`修复` `2.5.1`引出的方法`completeByTotal``setLocalPaging`无法正确分页的问题。
Original file line number Diff line number Diff line change
Expand Up @@ -225,21 +225,21 @@ export default {
success = dataTypeRes.success;
if (total >= 0 && success) {
this.$nextTick(() => {
let hasMore = true;
let nomore = false;
let realTotalDataCount = this.realTotalData.length;
if (this.pageNo == this.defaultPageNo) {
realTotalDataCount = 0;
}
const dataLength = this.privateConcat ? data.length : 0;
let exceedCount = realTotalDataCount + dataLength - total;
if (exceedCount >= 0) {
hasMore = false;
nomore = true;
exceedCount = this.defaultPageSize - exceedCount;
if (exceedCount > 0 && exceedCount < data.length && this.privateConcat) {
data = data.splice(0, exceedCount);
}
}
this.completeByNoMore(data, hasMore, success);
this.completeByNoMore(data, nomore, success);
})
return;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// [z-paging]常量

export default {
version: '2.5.1',
version: '2.5.2',
delayTime: 100,
errorUpdateKey: 'z-paging-error-emit',
completeUpdateKey: 'z-paging-complete-emit',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/ /_____| |_) | (_| | (_| | | | | | (_| |
/___| | .__/ \__,_|\__, |_|_| |_|\__, |
|_| |___/ |___/
v2.5.1 (2023-02-01)
v2.5.2 (2023-02-03)
by ZXLee
-->
<!-- 插件文档地址:https://z-paging.zxlee.cn -->
<!-- 文档地址:https://z-paging.zxlee.cn -->
<!-- github地址:https://github.com/SmileZXLee/uni-z-paging -->
<!-- dcloud地址:https://ext.dcloud.net.cn/plugin?id=3935 -->
<!-- 反馈QQ群:790460711 -->
Expand Down
2 changes: 1 addition & 1 deletion z-paging/uni_modules/z-paging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "z-paging",
"name": "z-paging",
"displayName": "【z-paging下拉刷新、上拉加载】高性能,全平台兼容。支持虚拟列表,支持nvue、vue3",
"version": "2.5.1",
"version": "2.5.2",
"description": "超简单、低耦合!使用wxs+renderjs实现。支持长列表优化,支持自定义下拉刷新、上拉加载更多,支持自动管理空数据图、点击返回顶部,支持聊天分页、本地分页,支持国际化等100+项配置",
"keywords": [
"下拉刷新",
Expand Down
6 changes: 3 additions & 3 deletions z-paging/uni_modules/z-paging/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<img alt="logo" src="https://z-paging.zxlee.cn/img/title-logo.png" height="100" style="margin-bottom: 50px;">
</p>

[![version](https://img.shields.io/badge/version-2.5.1-blue)](https://github.com/SmileZXLee/uni-z-paging)
[![version](https://img.shields.io/badge/version-2.5.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)

### 插件文档地址[https://z-paging.zxlee.cn](https://z-paging.zxlee.cn)
### 文档地址[https://z-paging.zxlee.cn](https://z-paging.zxlee.cn)

### 更新插件前,请注意[版本差异](https://z-paging.zxlee.cn/start/upgrade-guide.html)
### 更新组件前,请注意[版本差异](https://z-paging.zxlee.cn/start/upgrade-guide.html)

***
### 功能&特点
Expand Down

0 comments on commit ea6bc55

Please sign in to comment.