uview-pro 0.0.17 → 0.0.18

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,17 @@
1
+ ## 0.0.18(2025-09-03)
2
+
3
+ ### 🚀 Chore | 构建/工程依赖/工具
4
+
5
+ - update release script for better version management ([b64f38f](https://github.com/anyup/uView-Pro/commit/b64f38fea28de39c99cdf84f7e767aa7ceac1344))
6
+
7
+ ### 🐛 Bug Fixes | Bug 修复
8
+
9
+ - **u-checkbox:** 兼容头条小程序获取父组件数据不支持provide/inject的写法 ([498e12e](https://github.com/anyup/uView-Pro/commit/498e12e2f3aa52021d1be282426536b45f39ca6a))
10
+
11
+ ### 👷 Continuous Integration | CI 配置
12
+
13
+ - optimize changelog generation and spacing ([3103e7b](https://github.com/anyup/uView-Pro/commit/3103e7b56a0e2dd0392efdb6a85824b11ef6800c))
14
+
1
15
  ## 0.0.17(2025-09-02)
2
16
 
3
17
  ### ♻️ Code Refactoring | 代码重构
@@ -43,21 +43,23 @@ const props = defineProps(CheckboxProps);
43
43
 
44
44
  const emit = defineEmits(['change', 'update:modelValue']);
45
45
 
46
+ const instance = getCurrentInstance();
47
+ const instanceProxy = instance?.proxy;
46
48
  // 父组件 group 注入
47
- // 支付宝小程序不支持provide/inject
48
- const parent = inject<any>('u-checkbox-group', null);
49
+ let parent = inject<any>('u-checkbox-group', null);
49
50
 
50
51
  // 组件注册到 group
51
52
  onMounted(() => {
53
+ // 兼容头条小程序不支持provide/inject
54
+ // #ifdef MP-TOUTIAO
55
+ parent = $u.parentData('u-checkbox-group', instance);
56
+ // #endif
52
57
  // 如果存在u-checkbox-group,将本组件的实例塞进父组件的children中
53
58
  if (parent && parent.children && !parent.children.value.includes(instanceProxy)) {
54
59
  parent.children.value.push(instanceProxy);
55
60
  }
56
61
  });
57
62
 
58
- const instance = getCurrentInstance();
59
- const instanceProxy = instance?.proxy;
60
-
61
63
  // 是否禁用,如果父组件u-checkbox-group禁用的话,将会忽略子组件的配置
62
64
  const isDisabled = computed(() => {
63
65
  return props.disabled !== '' ? props.disabled : parent ? parent.props.disabled : false;
package/package.json CHANGED
@@ -1,107 +1,107 @@
1
- {
2
- "id": "uview-pro",
3
- "name": "uview-pro",
4
- "displayName": "【Vue3重构版】uView Pro|基于Vue3+TS全面重构的70+精选UI组件库",
5
- "version": "0.0.17",
6
- "description": "uView Pro,是全面支持Vue3的uni-app生态框架,70+精选组件已使用TypeScript重构,已全面支持uni-app Vue3.0",
7
- "main": "index.ts",
8
- "module": "index.ts",
9
- "browser": "index.ts",
10
- "keywords": [
11
- "uni-app",
12
- "library",
13
- "component",
14
- "uView",
15
- "Vue3"
16
- ],
17
- "author": "anyup",
18
- "license": "MIT",
19
- "repository": "https://github.com/anyup/uview-pro",
20
- "engines": {
21
- "HBuilderX": "^4.07",
22
- "uni-app": "^4.07",
23
- "uni-app-x": ""
24
- },
25
- "dcloudext": {
26
- "type": "component-vue",
27
- "sale": {
28
- "regular": {
29
- "price": "0.00"
30
- },
31
- "sourcecode": {
32
- "price": "0.00"
33
- }
34
- },
35
- "contact": {
36
- "qq": "491302297"
37
- },
38
- "declaration": {
39
- "ads": "无",
40
- "data": "无",
41
- "permissions": "无"
42
- },
43
- "npmurl": "https://www.npmjs.com/package/uview-pro",
44
- "darkmode": "x",
45
- "i18n": "x",
46
- "widescreen": "x"
47
- },
48
- "uni_modules": {
49
- "dependencies": [],
50
- "encrypt": [],
51
- "platforms": {
52
- "cloud": {
53
- "tcb": "√",
54
- "aliyun": "√",
55
- "alipay": "√"
56
- },
57
- "client": {
58
- "uni-app": {
59
- "vue": {
60
- "vue2": "x",
61
- "vue3": "√"
62
- },
63
- "web": {
64
- "safari": "√",
65
- "chrome": "√"
66
- },
67
- "app": {
68
- "vue": "√",
69
- "nvue": "-",
70
- "android": "√",
71
- "ios": "√",
72
- "harmony": "-"
73
- },
74
- "mp": {
75
- "weixin": "√",
76
- "alipay": "-",
77
- "toutiao": "-",
78
- "baidu": "-",
79
- "kuaishou": "-",
80
- "jd": "-",
81
- "harmony": "-",
82
- "qq": "-",
83
- "lark": "-"
84
- },
85
- "quickapp": {
86
- "huawei": "-",
87
- "union": "-"
88
- }
89
- },
90
- "uni-app-x": {
91
- "web": {
92
- "safari": "-",
93
- "chrome": "-"
94
- },
95
- "app": {
96
- "android": "-",
97
- "ios": "-",
98
- "harmony": "-"
99
- },
100
- "mp": {
101
- "weixin": "-"
102
- }
103
- }
104
- }
105
- }
106
- }
107
- }
1
+ {
2
+ "id": "uview-pro",
3
+ "name": "uview-pro",
4
+ "displayName": "【Vue3重构版】uView Pro|基于Vue3+TS全面重构的70+精选UI组件库",
5
+ "version": "0.0.18",
6
+ "description": "uView Pro,是全面支持Vue3的uni-app生态框架,70+精选组件已使用TypeScript重构,已全面支持uni-app Vue3.0",
7
+ "main": "index.ts",
8
+ "module": "index.ts",
9
+ "browser": "index.ts",
10
+ "keywords": [
11
+ "uni-app",
12
+ "library",
13
+ "component",
14
+ "uView",
15
+ "Vue3"
16
+ ],
17
+ "author": "anyup",
18
+ "license": "MIT",
19
+ "repository": "https://github.com/anyup/uview-pro",
20
+ "engines": {
21
+ "HBuilderX": "^4.07",
22
+ "uni-app": "^4.07",
23
+ "uni-app-x": ""
24
+ },
25
+ "dcloudext": {
26
+ "type": "component-vue",
27
+ "sale": {
28
+ "regular": {
29
+ "price": "0.00"
30
+ },
31
+ "sourcecode": {
32
+ "price": "0.00"
33
+ }
34
+ },
35
+ "contact": {
36
+ "qq": "491302297"
37
+ },
38
+ "declaration": {
39
+ "ads": "无",
40
+ "data": "无",
41
+ "permissions": "无"
42
+ },
43
+ "npmurl": "https://www.npmjs.com/package/uview-pro",
44
+ "darkmode": "x",
45
+ "i18n": "x",
46
+ "widescreen": "x"
47
+ },
48
+ "uni_modules": {
49
+ "dependencies": [],
50
+ "encrypt": [],
51
+ "platforms": {
52
+ "cloud": {
53
+ "tcb": "√",
54
+ "aliyun": "√",
55
+ "alipay": "√"
56
+ },
57
+ "client": {
58
+ "uni-app": {
59
+ "vue": {
60
+ "vue2": "x",
61
+ "vue3": "√"
62
+ },
63
+ "web": {
64
+ "safari": "√",
65
+ "chrome": "√"
66
+ },
67
+ "app": {
68
+ "vue": "√",
69
+ "nvue": "-",
70
+ "android": "√",
71
+ "ios": "√",
72
+ "harmony": "-"
73
+ },
74
+ "mp": {
75
+ "weixin": "√",
76
+ "alipay": "-",
77
+ "toutiao": "-",
78
+ "baidu": "-",
79
+ "kuaishou": "-",
80
+ "jd": "-",
81
+ "harmony": "-",
82
+ "qq": "-",
83
+ "lark": "-"
84
+ },
85
+ "quickapp": {
86
+ "huawei": "-",
87
+ "union": "-"
88
+ }
89
+ },
90
+ "uni-app-x": {
91
+ "web": {
92
+ "safari": "-",
93
+ "chrome": "-"
94
+ },
95
+ "app": {
96
+ "android": "-",
97
+ "ios": "-",
98
+ "harmony": "-"
99
+ },
100
+ "mp": {
101
+ "weixin": "-"
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }