uview-plus 3.3.2 → 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.
@@ -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.2",
5
+ "version": "3.3.3",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",