uview-plus 3.6.4 → 3.6.15

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,36 @@
1
+ ## 3.6.15(2025-11-10)
2
+ fix: 修复tabs添加activeStyle切换后滑块无法居中
3
+
4
+ ## 3.6.14(2025-11-07)
5
+ fix: 修复引用拼写
6
+
7
+ ## 3.6.13(2025-11-06)
8
+ improvment: 组合式API升级之gap示例改造
9
+
10
+ ## 3.6.12(2025-11-05)
11
+ improvment: empty示例改为组合式API
12
+
13
+ ## 3.6.11(2025-11-05)
14
+ improvment: divider示例改为组合式API
15
+
16
+ ## 3.6.10(2025-11-04)
17
+ improvment: checkbox示例改为组合式API
18
+
19
+ ## 3.6.9(2025-10-21)
20
+ improvment: cell示例改为组合式API
21
+
22
+ ## 3.6.8(2025-10-20)
23
+ imporvment: button示例改为组合式API
24
+
25
+ ## 3.6.7(2025-10-17)
26
+ fix: 优化picker当前列判断
27
+
28
+ ## 3.6.6(2025-10-13)
29
+ fix: 修复getWindowInfo微信小程序下报警告
30
+
31
+ ## 3.6.5(2025-10-11)
32
+ 🐛fix: 修复picker双向绑定 #753
33
+
1
34
  ## 3.6.4(2025-10-09)
2
35
  🐛fix: import rpx2px function and add to exports in index.js
3
36
 
@@ -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则为变化列中的变化项的索引
@@ -239,7 +239,9 @@
239
239
  // 如果点击当前不触发change
240
240
  if (this.innerCurrent == index) return
241
241
  this.innerCurrent = index
242
- this.resize()
242
+ this.$nextTick(() => {
243
+ this.resize()
244
+ })
243
245
  this.$emit('update:current', index)
244
246
  this.$emit('change', {
245
247
  ...item,
@@ -40,7 +40,7 @@ import DatetimePicker from '../../components/u-datetime-picker/datetimePicker'
40
40
  import Divider from '../../components/u-divider/divider'
41
41
  import Empty from '../../components/u-empty/empty'
42
42
  import Form from '../../components/u-form/form'
43
- import GormItem from '../../components/u-form-item/formItem'
43
+ import FormItem from '../../components/u-form-item/formItem'
44
44
  import Gap from '../../components/u-gap/gap'
45
45
  import Grid from '../../components/u-grid/grid'
46
46
  import GridItem from '../../components/u-grid-item/gridItem'
@@ -131,7 +131,7 @@ const props = {
131
131
  ...Divider,
132
132
  ...Empty,
133
133
  ...Form,
134
- ...GormItem,
134
+ ...FormItem,
135
135
  ...Gap,
136
136
  ...Grid,
137
137
  ...GridItem,
@@ -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
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.4",
5
+ "version": "3.6.15",
6
6
  "description": "零云®uview-plus已兼容vue3支持多语言,120+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名、Markdown等。",
7
7
  "keywords": [
8
8
  "uview",