@we-debug/miniprogram 0.29.2 → 0.29.4
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 +22 -0
- package/dist/index/index.js +14 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.29.4](https://github.com/dlhandsome/we-debug/compare/v0.29.3...v0.29.4) (2023-12-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **runtime/miniprogram:** 分组默认排序设定 ([cb259e2](https://github.com/dlhandsome/we-debug/commit/cb259e2ed222bde56828090430674015d6d855b5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.29.3](https://github.com/dlhandsome/we-debug/compare/v0.29.2...v0.29.3) (2023-12-22)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **runtime:** 修复默认rule 展示逻辑 ([08dcdc0](https://github.com/dlhandsome/we-debug/commit/08dcdc0091e941534af7364e7c980a7994e5a577))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [0.29.2](https://github.com/dlhandsome/we-debug/compare/v0.29.1...v0.29.2) (2023-12-22)
|
|
7
29
|
|
|
8
30
|
|
package/dist/index/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import Debug from '@we-debug/core';
|
|
|
3
3
|
const store = Debug.store;
|
|
4
4
|
const sys = store.sys.get();
|
|
5
5
|
const currentGroupCache = Debug.createCache('__wedebug_miniprogram_group_actived_key__', '');
|
|
6
|
+
const DEFAULT_GROUP = Debug.DEFAULT_GROUP;
|
|
6
7
|
|
|
7
8
|
Component({
|
|
8
9
|
options: {
|
|
@@ -41,7 +42,7 @@ Component({
|
|
|
41
42
|
},
|
|
42
43
|
data: {
|
|
43
44
|
sys: store.sys.get(),
|
|
44
|
-
rules: store.
|
|
45
|
+
rules: store.rules.get(),
|
|
45
46
|
badges: store.badges.get(),
|
|
46
47
|
modal: {
|
|
47
48
|
logo: '../icon/logo.png',
|
|
@@ -49,8 +50,17 @@ Component({
|
|
|
49
50
|
},
|
|
50
51
|
searchStr: '',
|
|
51
52
|
group: {
|
|
52
|
-
keys: store.group.getKeys(
|
|
53
|
-
|
|
53
|
+
keys: store.group.getKeys(prev => {
|
|
54
|
+
// 「全部」分类放在最左边
|
|
55
|
+
if (prev === DEFAULT_GROUP.ALL) {
|
|
56
|
+
return -1;
|
|
57
|
+
}
|
|
58
|
+
// 「未分类」分类放在最右边
|
|
59
|
+
if (prev === DEFAULT_GROUP.OTHER) {
|
|
60
|
+
return 1;
|
|
61
|
+
}
|
|
62
|
+
}),
|
|
63
|
+
actived: currentGroupCache.get() || DEFAULT_GROUP.ALL
|
|
54
64
|
}
|
|
55
65
|
},
|
|
56
66
|
methods: {
|
|
@@ -58,7 +68,7 @@ Component({
|
|
|
58
68
|
this.setData({ sys: store.sys.get() });
|
|
59
69
|
},
|
|
60
70
|
setRules() {
|
|
61
|
-
this.setData({ rules: store.
|
|
71
|
+
this.setData({ rules: store.group.get(currentGroupCache.get() || DEFAULT_GROUP.ALL).get() });
|
|
62
72
|
},
|
|
63
73
|
setBadges() {
|
|
64
74
|
this.setData({ badges: store.badges.get() });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@we-debug/miniprogram",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.4",
|
|
4
4
|
"description": "we-debug miniprogram component",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "dlhandsome"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@we-debug/core": "0.29.
|
|
28
|
+
"@we-debug/core": "0.29.3",
|
|
29
29
|
"@we-debug/plugin-error": "0.29.0",
|
|
30
30
|
"@we-debug/plugin-launcher": "0.29.0",
|
|
31
31
|
"@we-debug/plugin-network": "0.29.0",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"readme": "ERROR: No README data found!",
|
|
37
37
|
"_id": "@we-debug/core@0.3.5",
|
|
38
38
|
"_commitid": "6c3f04b",
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "d64c6d2da1ffa0176faff6c99c050e015220e91e"
|
|
40
40
|
}
|