uview-plus 3.6.1 → 3.6.10

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,30 @@
1
+ ## 3.6.10(2025-11-04)
2
+ improvment: checkbox示例改为组合式API
3
+
4
+ ## 3.6.9(2025-10-21)
5
+ improvment: cell示例改为组合式API
6
+
7
+ ## 3.6.8(2025-10-20)
8
+ imporvment: button示例改为组合式API
9
+
10
+ ## 3.6.7(2025-10-17)
11
+ fix: 优化picker当前列判断
12
+
13
+ ## 3.6.6(2025-10-13)
14
+ fix: 修复getWindowInfo微信小程序下报警告
15
+
16
+ ## 3.6.5(2025-10-11)
17
+ 🐛fix: 修复picker双向绑定 #753
18
+
19
+ ## 3.6.4(2025-10-09)
20
+ 🐛fix: import rpx2px function and add to exports in index.js
21
+
22
+ ## 3.6.3(2025-10-09)
23
+ fix: 修复getWindowInfo微信小程序下报警告
24
+
25
+ ## 3.6.2(2025-10-05)
26
+ fix: 修复picker双向绑定 #753
27
+
1
28
  ## 3.6.1(2025-10-01)
2
29
  fix: 修复poster海报组件微信小程序图片绘制失败
3
30
 
@@ -166,9 +166,12 @@ export default {
166
166
  if (n != null) {
167
167
  n.forEach((element, index) => {
168
168
  let currentCols = this.getColumnValues(index)
169
- if (currentCols && Object.prototype.toString.call(currentCols) === '[object Object]') {
169
+ if(!Array.isArray(currentCols) && currentCols.length===0) {
170
+ return
171
+ }
172
+ if (typeof currentCols[0] === 'object') {
170
173
  currentCols.forEach((item, index2) => {
171
- if (item[this.keyName] == element) {
174
+ if (item[this.valueName] == element) {
172
175
  arr.push(index2)
173
176
  }
174
177
  })
@@ -317,7 +320,7 @@ export default {
317
320
  // 通过对比前后两次的列索引,得出当前变化的是哪一列
318
321
  for (let i = 0; i < value.length; i++) {
319
322
  let item = value[i]
320
- if (item !== (this.lastIndex[i] || 0)) { // 把undefined转为合法假值0
323
+ if (item !== undefined && item !== (this.lastIndex[i] || 0)) { // 把undefined转为合法假值0
321
324
  // 设置columnIndex为当前变化列的索引
322
325
  columnIndex = i
323
326
  // index则为变化列中的变化项的索引
package/index.js CHANGED
@@ -22,7 +22,7 @@ import calc from './libs/function/calc.js'
22
22
  // 浮点计算
23
23
  import digit from './libs/function/digit.js'
24
24
  // 公共文件写入的方法
25
- import index from './libs/function/index.js'
25
+ import index, { rpx2px } from './libs/function/index.js'
26
26
 
27
27
  // 配置信息
28
28
  import config from './libs/config/config.js'
@@ -80,10 +80,10 @@ export function sys() {
80
80
  }
81
81
  export function getWindowInfo() {
82
82
  let ret = {}
83
- // #ifdef APP || H5
83
+ // #ifdef APP || H5 || MP-WEIXIN
84
84
  ret = uni.getWindowInfo()
85
85
  // #endif
86
- // #ifndef APP || H5
86
+ // #ifndef APP || H5 || MP-WEIXIN
87
87
  ret = sys()
88
88
  // #endif
89
89
  return ret
@@ -867,5 +867,6 @@ export default {
867
867
  page,
868
868
  pages,
869
869
  getValueByPath,
870
- genLightColor
870
+ genLightColor,
871
+ rpx2px
871
872
  }
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.6.1",
5
+ "version": "3.6.10",
6
6
  "description": "零云®uview-plus已兼容vue3支持多语言,120+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名、Markdown等。",
7
7
  "keywords": [
8
8
  "uview",