@we-debug/miniprogram 0.42.0 → 0.42.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 +11 -0
- package/dist/index/index.js +10 -15
- package/dist/index/index.wxml +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.42.1](https://github.com/dlhandsome/we-debug/compare/v0.42.0...v0.42.1) (2025-03-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **miniprogram:** fixed json view refer ([d3a18b5](https://github.com/dlhandsome/we-debug/commit/d3a18b57056b61325beaef09adbb072c2218feef))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [0.42.0](https://github.com/dlhandsome/we-debug/compare/v0.41.0...v0.42.0) (2025-03-09)
|
|
7
18
|
|
|
8
19
|
|
package/dist/index/index.js
CHANGED
|
@@ -84,18 +84,13 @@ Component({
|
|
|
84
84
|
? store.group.get(DEFAULT_GROUP.ALL).get()
|
|
85
85
|
: store.group.get(currentGroupCache.get() || DEFAULT_GROUP.ALL).get();
|
|
86
86
|
},
|
|
87
|
-
|
|
87
|
+
setPanelViews() {
|
|
88
88
|
const groupStores = this.getGroupStores();
|
|
89
89
|
this.setData({
|
|
90
|
+
rules: groupStores.filter(i => !i.isJsonView),
|
|
90
91
|
jsonviews: groupStores.filter(i => i.isJsonView)
|
|
91
92
|
});
|
|
92
93
|
},
|
|
93
|
-
setRules() {
|
|
94
|
-
const groupStores = this.getGroupStores();
|
|
95
|
-
this.setData({
|
|
96
|
-
rules: groupStores.filter(i => !i.isJsonView)
|
|
97
|
-
});
|
|
98
|
-
},
|
|
99
94
|
setBadges() {
|
|
100
95
|
this.setData({ badges: store.badges.get() });
|
|
101
96
|
},
|
|
@@ -107,7 +102,7 @@ Component({
|
|
|
107
102
|
setfilterRule(searchStr) {
|
|
108
103
|
if (searchStr === '') {
|
|
109
104
|
// 此时搜索框内容清空,应该恢复当前分组的初始状态
|
|
110
|
-
this.
|
|
105
|
+
this.setPanelViews();
|
|
111
106
|
return;
|
|
112
107
|
}
|
|
113
108
|
|
|
@@ -126,7 +121,7 @@ Component({
|
|
|
126
121
|
},
|
|
127
122
|
searchCleanHandler() {
|
|
128
123
|
this.setSearch('');
|
|
129
|
-
this.
|
|
124
|
+
this.setPanelViews();
|
|
130
125
|
},
|
|
131
126
|
groupTapHandler(e) {
|
|
132
127
|
const group = e.currentTarget.dataset.item;
|
|
@@ -136,17 +131,17 @@ Component({
|
|
|
136
131
|
this.setData({
|
|
137
132
|
'group.actived': group
|
|
138
133
|
});
|
|
139
|
-
this.
|
|
134
|
+
this.setPanelViews();
|
|
140
135
|
},
|
|
141
136
|
addListeners() {
|
|
142
|
-
store.event.on('rule:update', this.
|
|
143
|
-
store.event.on('jsonview:update', this.
|
|
137
|
+
store.event.on('rule:update', this.setPanelViews.bind(this));
|
|
138
|
+
store.event.on('jsonview:update', this.setPanelViews.bind(this));
|
|
144
139
|
store.event.on('badge:update', this.setBadges.bind(this));
|
|
145
140
|
store.event.on('group:update', this.setGroups.bind(this));
|
|
146
141
|
},
|
|
147
142
|
removeListeners() {
|
|
148
|
-
store.event.off('rule:update', this.
|
|
149
|
-
store.event.on('jsonview:update', this.
|
|
143
|
+
store.event.off('rule:update', this.setPanelViews.bind(this));
|
|
144
|
+
store.event.on('jsonview:update', this.setPanelViews.bind(this));
|
|
150
145
|
store.event.off('badge:update', this.setBadges.bind(this));
|
|
151
146
|
store.event.off('group:update', this.setGroups.bind(this));
|
|
152
147
|
}
|
|
@@ -155,7 +150,7 @@ Component({
|
|
|
155
150
|
attached() {
|
|
156
151
|
this.setSys();
|
|
157
152
|
this.setGroups();
|
|
158
|
-
this.
|
|
153
|
+
this.setPanelViews();
|
|
159
154
|
this.setBadges();
|
|
160
155
|
this.addListeners();
|
|
161
156
|
},
|
package/dist/index/index.wxml
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<block wx:if="{{jsonviews.length > 0}}">
|
|
10
10
|
<view style="height:{{modal.scrollHeight}}rpx;">
|
|
11
|
-
<json-
|
|
11
|
+
<w-json-view json-data="{{jsonviews[0].data}}" editable="{{jsonviews[0].editable}}" expand-level="{{jsonviews[0].expandLevel}}" bind:change="handleJsonViewChange"/>
|
|
12
12
|
</view>
|
|
13
13
|
</block>
|
|
14
14
|
<block wx:else>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@we-debug/miniprogram",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.1",
|
|
4
4
|
"description": "we-debug miniprogram component",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "dlhandsome"
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"readme": "ERROR: No README data found!",
|
|
32
32
|
"_id": "@we-debug/core@0.3.5",
|
|
33
33
|
"_commitid": "6c3f04b",
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "867ff92f78902e223a7ef84d2d955a6a4acd6284"
|
|
35
35
|
}
|