uview-plus 3.3.1 → 3.3.3

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,5 @@
1
+ ## 3.3.2(2024-06-27)
2
+ fix: 在Nvue环境中编译,出现大量警告 #406
1
3
  ## 3.3.1(2024-06-27)
2
4
  u-button组件报错,找不到button mixins #407
3
5
  ## 3.3.0(2024-06-27)
@@ -96,5 +96,7 @@
96
96
  }
97
97
 
98
98
  .cursor-pointer {
99
- cursor: pointer;
99
+ /* #ifndef APP-NVUE */
100
+ cursor: pointer;
101
+ /* #endif */
100
102
  }
@@ -188,6 +188,7 @@
188
188
  // 以下属于项目(子元素)的类
189
189
 
190
190
  // 子元素交叉轴起点对齐
191
+ /* #ifndef APP-NVUE */
191
192
  .u-flex-self-start {
192
193
  align-self: flex-start;
193
194
  }
@@ -211,7 +212,7 @@
211
212
  .u-flex-self-stretch {
212
213
  align-self: stretch;
213
214
  }
214
-
215
+ /* #endif */
215
216
  // 多轴交叉时的对齐方式
216
217
 
217
218
  // 起点对齐
@@ -13,3 +13,6 @@ export const buttonMixin = defineMixin({
13
13
  openType: String
14
14
  }
15
15
  })
16
+
17
+ export default buttonMixin
18
+
@@ -8,3 +8,6 @@ export const mpMixin = defineMixin({
8
8
  }
9
9
  // #endif
10
10
  })
11
+
12
+ export default mpMixin
13
+
@@ -1,5 +1,5 @@
1
1
  import { defineMixin } from '../vue'
2
-
2
+ import { queryParams } from '../function/index'
3
3
  export const mpShare = defineMixin({
4
4
  data() {
5
5
  return {
@@ -10,7 +10,15 @@ export const mpShare = defineMixin({
10
10
  }
11
11
  }
12
12
  },
13
- onShareAppMessage() {
13
+ async onLoad(options) {
14
+ var pages = getCurrentPages();
15
+ var page = pages[pages.length - 1];
16
+ this.mpShare.path = page.route + queryParams(options);
17
+ },
18
+ onShareAppMessage(res) {
19
+ if (res.from === 'button') {// 来自页面内分享按钮
20
+ console.log(res.target)
21
+ }
14
22
  return this.mpShare;
15
23
  }
16
24
  })
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.3.1",
5
+ "version": "3.3.3",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",