uview-plus 3.4.38 → 3.4.39

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,9 +1,15 @@
1
+ ## 3.4.39(2025-05-31)
2
+ fix: 修改步骤条微信小程序下的布局 感谢@jiaruiyan
3
+
4
+ fix: u-tabs在屏幕尺寸发生变化时滑块位置没有发生变化 感谢@aqzhft
5
+
6
+ fix: 鸿蒙平台不支持plus.runtime.openWeb 感谢@aqzhft
7
+
1
8
  ## 3.4.38(2025-05-30)
2
9
  fix: 修复picker-data快捷组件缺少index
3
10
 
4
11
  fix: 修复picker组件双向绑定初始化及取消后复原再次打开后的当前项目
5
12
 
6
-
7
13
  ## 3.4.37(2025-05-29)
8
14
  feat: modal支持设置动画时间
9
15
 
@@ -365,6 +365,9 @@ export default {
365
365
  // #ifdef APP-PLUS
366
366
  plus.runtime.openWeb(href)
367
367
  // #endif
368
+ // #ifdef APP-HARMONY
369
+ plus.runtime.openURL(href)
370
+ // #endif
368
371
  }
369
372
  } else {
370
373
  // 跳转页面
@@ -433,7 +433,12 @@ export default {
433
433
  } else if (href.includes('://')) {
434
434
  // 打开外链
435
435
  if (this.copyLink) {
436
- plus.runtime.openWeb(href)
436
+ // #ifdef APP-PLUS
437
+ plus.runtime.openWeb(href)
438
+ // #endif
439
+ // #ifdef APP-HARMONY
440
+ plus.runtime.openURL(href)
441
+ // #endif
437
442
  }
438
443
  } else {
439
444
  uni.navigateTo({
@@ -21,7 +21,7 @@
21
21
  * @property {String} activeColor 激活状态颜色 (默认 '#3c9cff' )
22
22
  * @property {String} inactiveColor 未激活状态颜色 (默认 '#969799' )
23
23
  * @property {String} activeIcon 激活状态的图标
24
- * @property {String} inactiveIcon 未激活状态图标
24
+ * @property {String} inactiveIcon 未激活状态图标
25
25
  * @property {Boolean} dot 是否显示点类型 (默认 false )
26
26
  * @example <u-steps current="0"><u-steps-item title="已出库" desc="10:35" ></u-steps-item></u-steps>
27
27
  */
@@ -85,6 +85,11 @@
85
85
  display: grid;
86
86
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
87
87
  /* #endif */
88
+
89
+ //微信小程序优化的比抖音的好 因此微信小程序使用flex布局
90
+ /* #ifdef MP-WEIXIN */
91
+ display: flex !important;
92
+ /* #endif */
88
93
  }
89
94
  }
90
95
  </style>
@@ -178,7 +178,14 @@
178
178
  },
179
179
  async mounted() {
180
180
  this.init()
181
+ this.windowResizeCallback = (res) => {
182
+ this.init()
183
+ }
184
+ uni.onWindowResize(this.windowResizeCallback)
181
185
  },
186
+ beforeUnmount() {
187
+ uni.offWindowResize(this.windowResizeCallback)
188
+ },
182
189
  emits: ['click', 'longPress', 'change', 'update:current'],
183
190
  methods: {
184
191
  addStyle,
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.4.38",
5
+ "version": "3.4.39",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
7
7
  "keywords": [
8
8
  "uview",