uview-plus 3.6.27 → 3.6.29

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,8 @@
1
+ ## 3.6.29(2025-12-18)
2
+ fix: 修复语法错
3
+ ## 3.6.28(2025-12-18)
4
+ fix: 优化$parent方法兼容性
5
+
1
6
  ## 3.6.27(2025-12-17)
2
7
  add: datetimepicker增加maskClass和maskStyle属性
3
8
 
@@ -158,8 +158,8 @@ export function $parent(name = undefined) {
158
158
  // 通过while历遍,这里主要是为了H5需要多层解析的问题
159
159
  while (parent) {
160
160
  // 父组件
161
- name = name.replace(/up-([a-zA-Z0-9-_]+)/g, 'u-$1')
162
- if (parent.$options && parent.$options.name !== name) {
161
+ let name2 = name.replace(/up-([a-zA-Z0-9-_]+)/g, 'u-$1')
162
+ if (parent.$options && parent.$options.name !== name && parent.$options.name !== name2) {
163
163
  // 如果组件的name不相等,继续上一级寻找
164
164
  parent = parent.$parent
165
165
  } else {
@@ -870,3 +870,4 @@ export default {
870
870
  genLightColor,
871
871
  rpx2px
872
872
  }
873
+
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.27",
5
+ "version": "3.6.29",
6
6
  "description": "零云®uview-plus已兼容vue3支持多语言,120+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名、Markdown等。",
7
7
  "keywords": [
8
8
  "uview",