@we-debug/miniprogram 0.46.1 → 0.47.1

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
@@ -3,6 +3,29 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.47.1](https://github.com/dlhandsome/we-debug/compare/v0.47.0...v0.47.1) (2025-06-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fixed custom mask animation ([786648a](https://github.com/dlhandsome/we-debug/commit/786648a78eacd3863268b4d88f25834afe083389))
12
+ * fixed eslint ([c190558](https://github.com/dlhandsome/we-debug/commit/c190558c94c0545fdd0f8a1c215b40a8ea664ddf))
13
+
14
+
15
+
16
+
17
+
18
+ # [0.47.0](https://github.com/dlhandsome/we-debug/compare/v0.46.1...v0.47.0) (2025-05-23)
19
+
20
+
21
+ ### Features
22
+
23
+ * support auto inject custom mask props ([6b2df07](https://github.com/dlhandsome/we-debug/commit/6b2df071b1137f516e1e61001e73531aeb983ef6))
24
+
25
+
26
+
27
+
28
+
6
29
  ## [0.46.1](https://github.com/dlhandsome/we-debug/compare/v0.46.0...v0.46.1) (2025-03-11)
7
30
 
8
31
  **Note:** Version bump only for package @we-debug/miniprogram
@@ -30,6 +30,10 @@ Component({
30
30
  config: {
31
31
  type: Object,
32
32
  value: {}
33
+ },
34
+ useCustomMask: {
35
+ type: Boolean,
36
+ value: false
33
37
  }
34
38
  },
35
39
  observers: {
@@ -1,7 +1,7 @@
1
1
  <slot></slot>
2
2
 
3
3
  <w-ui-check></w-ui-check>
4
- <w-mask>
4
+ <w-mask useCustom="{{useCustomMask}}">
5
5
  <view class="w-mask__modal-header">
6
6
  <image class="w-mask__modal-logo" src="{{modal.logo}}" mode="aspectFit" lazy-load="false" binderror="" bindload=""></image>
7
7
  </view>
@@ -15,11 +15,18 @@ Component({
15
15
  show: {
16
16
  type: Boolean,
17
17
  value: false
18
+ },
19
+ useCustom: {
20
+ type: Boolean,
21
+ value: false
18
22
  }
19
23
  },
20
24
  observers: {
21
25
  show(v) {
22
26
  v ? this.showMaskHandler() : this.closeMaskHandler();
27
+ },
28
+ useCustom(v) {
29
+ this.setUseCustomMask(v);
23
30
  }
24
31
  },
25
32
  data: {
@@ -41,6 +48,12 @@ Component({
41
48
  externalClasses: ['my-class'],
42
49
  methods: {
43
50
  noop() {},
51
+ setUseCustomMask(v) {
52
+ this.setData({
53
+ // eslint-disable-next-line no-undef
54
+ useCustomMask: (__wxConfig.tabBar && __wxConfig.tabBar.custom) || !!v
55
+ });
56
+ },
44
57
  showMaskHandler() {
45
58
  store.event.emit('debug:mask:show-modal');
46
59
  },
@@ -52,6 +65,14 @@ Component({
52
65
  return;
53
66
  }
54
67
  this.setData({
68
+ ...(this.properties.useCustom
69
+ ? {
70
+ animateClassName: {
71
+ mask: animateClassName.fadeIn,
72
+ modal: animateClassName.slideInUp
73
+ }
74
+ }
75
+ : {}),
55
76
  showMask: true
56
77
  });
57
78
  },
@@ -59,6 +80,14 @@ Component({
59
80
  if (!this.isComponentInCurrentPage()) {
60
81
  return;
61
82
  }
83
+ if (this.properties.useCustom) {
84
+ this.setData({
85
+ animateClassName: {
86
+ mask: animateClassName.fadeOut,
87
+ modal: animateClassName.slideOutDown
88
+ }
89
+ });
90
+ }
62
91
  setTimeout(() => {
63
92
  this.setData({
64
93
  showMask: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@we-debug/miniprogram",
3
- "version": "0.46.1",
3
+ "version": "0.47.1",
4
4
  "description": "we-debug miniprogram component",
5
5
  "author": {
6
6
  "name": "dlhandsome"
@@ -26,10 +26,10 @@
26
26
  },
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@we-debug/core": "0.46.1"
29
+ "@we-debug/core": "0.47.0"
30
30
  },
31
31
  "readme": "ERROR: No README data found!",
32
32
  "_id": "@we-debug/core@0.3.5",
33
33
  "_commitid": "6c3f04b",
34
- "gitHead": "edffc0a3c1985f7b7cb0abd83a0b7c835ec50734"
34
+ "gitHead": "f8a9f9d513d86ed01e2e8cfa6ebb7a2866e88597"
35
35
  }