uview-plus 3.3.26 → 3.3.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 3.3.28(2024-08-26)
2
+ fix: list组件滑动偏移量不一样取绝对值导致iOS下拉偏移量计算错误
3
+ ## 3.3.27(2024-08-22)
4
+ fix: 修复up-datetime-picker组件toolbarRightSlot定义缺失
5
+
6
+ fix: 修复FormItem的rules更新错误的问题
7
+
1
8
  ## 3.3.26(2024-08-22)
2
9
  fix: 批量注册全局组件优化
3
10
  ## 3.3.25(2024-08-21)
@@ -30,6 +30,11 @@ export const props = defineMixin({
30
30
  type: Boolean,
31
31
  default: () => defProps.datetimePicker.showToolbar
32
32
  },
33
+ // 工具栏右侧内容
34
+ toolbarRightSlot:{
35
+ type: Boolean,
36
+ default: false
37
+ },
33
38
  // #ifdef VUE2
34
39
  // 绑定值
35
40
  value: {
@@ -152,7 +152,10 @@
152
152
  // 手动设置校验的规则,如果规则中有函数的话,微信小程序中会过滤掉,所以只能手动调用设置规则
153
153
  setRules(rules) {
154
154
  // 判断是否有规则
155
- if (rules.length === 0) return;
155
+ if (rules.length === 0) {
156
+ this.itemRules = [];
157
+ return
158
+ };
156
159
  this.itemRules = rules;
157
160
  },
158
161
  // 获取父组件的参数
@@ -129,7 +129,7 @@
129
129
  scrollTop = e.detail.scrollTop
130
130
  // #endif
131
131
  this.innerScrollTop = scrollTop
132
- this.$emit('scroll', Math.abs(scrollTop))
132
+ this.$emit('scroll', scrollTop)
133
133
  },
134
134
  scrollIntoViewById(id) {
135
135
  // #ifdef APP-NVUE
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3移动组件库。",
5
- "version": "3.3.26",
5
+ "version": "3.3.28",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",