@we-debug/miniprogram 0.22.2 → 0.23.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 +22 -0
- package/dist/icon/close.svg +1 -0
- package/dist/icon/logo.png +0 -0
- package/dist/icon/search.svg +1 -0
- package/dist/index/index.js +20 -5
- package/dist/index/index.wxml +3 -1
- package/dist/index/index.wxss +19 -12
- package/dist/less/index.less +21 -13
- package/package.json +8 -8
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.23.1](https://github.com/dlhandsome/we-debug/compare/v0.23.0...v0.23.1) (2023-12-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **runtime/miniprogram:** 修复 logo 展示 ([3cea30b](https://github.com/dlhandsome/we-debug/commit/3cea30b1b4f8ccd8e997a2cbcb5ff5315c488f34))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.23.0](https://github.com/dlhandsome/we-debug/compare/v0.22.2...v0.23.0) (2023-12-20)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **runtime/miniprogram:** 搜索框支持一键清除 ([9ee99ec](https://github.com/dlhandsome/we-debug/commit/9ee99ece3eaaf0d0f52c79e9105484fea219c6d7))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [0.22.2](https://github.com/dlhandsome/we-debug/compare/v0.22.1...v0.22.2) (2023-12-20)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg t="1703071342166" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="28790" width="200" height="200"><path d="M512 102.4a409.6 409.6 0 1 0 409.6 409.6 409.6 409.6 0 0 0-409.6-409.6z m181.248 518.144a51.2 51.2 0 0 1-72.704 72.704L512 584.192l-108.544 109.056a51.2 51.2 0 0 1-72.704-72.704L439.808 512 330.752 403.456a51.2 51.2 0 0 1 72.704-72.704L512 439.808l108.544-109.056a51.2 51.2 0 0 1 72.704 72.704L584.192 512z" fill="#808080" p-id="28791"></path></svg>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg t="1703071776419" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="29863" width="200" height="200"><path d="M938.88694045 899.74010311l-272.16372623-272.16372622c49.71026963-58.40956682 79.53643141-133.59634963 79.53643141-216.23967289 0-184.549376-149.75218725-334.30156325-334.30156326-334.30156325S77.03514075 226.787328 77.03514075 411.336704s149.75218725 334.30156325 334.30156325 334.30156325c82.02194489 0 157.2087277-29.82616178 215.61829452-78.91505303l272.16372623 272.16372623c5.59240533 5.59240533 12.42756741 8.07791882 19.88410784 8.0779188 6.83516208 0 14.29170252-2.48551348 19.88410786-8.0779188 10.5634323-11.18481067 10.5634323-28.58340503 0-39.14683734zM126.74541037 411.336704C126.74541037 254.1279763 254.1279763 126.74541037 411.336704 126.74541037s284.59129363 128.0039443 284.59129363 284.59129363-128.0039443 284.59129363-284.59129363 284.59129363S126.74541037 567.92405333 126.74541037 411.336704z" p-id="29864" fill="#808080"></path></svg>
|
package/dist/index/index.js
CHANGED
|
@@ -35,9 +35,10 @@ Component({
|
|
|
35
35
|
rules: store.rules.get(),
|
|
36
36
|
badges: store.badges.get(),
|
|
37
37
|
modal: {
|
|
38
|
-
logo: '
|
|
38
|
+
logo: '../icon/logo.png',
|
|
39
39
|
scrollHeight: ((sys.screenHeight * 3) / 5) * (750 / sys.screenWidth)
|
|
40
|
-
}
|
|
40
|
+
},
|
|
41
|
+
searchStr: ''
|
|
41
42
|
},
|
|
42
43
|
methods: {
|
|
43
44
|
setSys() {
|
|
@@ -49,14 +50,28 @@ Component({
|
|
|
49
50
|
setBadges() {
|
|
50
51
|
this.setData({ badges: store.badges.get() });
|
|
51
52
|
},
|
|
52
|
-
|
|
53
|
+
setSearch(searchStr) {
|
|
54
|
+
this.setData({
|
|
55
|
+
searchStr
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
setfilterRule(searchStr) {
|
|
53
59
|
const rules = store.rules.get();
|
|
54
|
-
const searchStr = e.detail.value;
|
|
55
|
-
|
|
56
60
|
const filterRules = rules.filter(i => i.title.indexOf(searchStr) > -1);
|
|
61
|
+
|
|
57
62
|
this.setData({
|
|
58
63
|
rules: filterRules
|
|
59
64
|
});
|
|
65
|
+
},
|
|
66
|
+
searchInputHandler(e) {
|
|
67
|
+
const searchStr = e.detail.value;
|
|
68
|
+
|
|
69
|
+
this.setSearch(searchStr);
|
|
70
|
+
this.setfilterRule(searchStr);
|
|
71
|
+
},
|
|
72
|
+
searchCleanHandler() {
|
|
73
|
+
this.setSearch('');
|
|
74
|
+
this.setRules();
|
|
60
75
|
}
|
|
61
76
|
},
|
|
62
77
|
lifetimes: {
|
package/dist/index/index.wxml
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
<image class="w-mask__modal-logo" src="{{modal.logo}}" mode="aspectFit" lazy-load="false" binderror="" bindload=""></image>
|
|
7
7
|
</view>
|
|
8
8
|
<view class="w-mask__modal-search">
|
|
9
|
-
<input placeholder="搜索"
|
|
9
|
+
<input value="{{searchStr}}" placeholder="搜索" catchinput="searchInputHandler"/>
|
|
10
|
+
<image class="search-icon--search" src="../icon/search.svg" />
|
|
11
|
+
<image class="search-icon--close" src="../icon/close.svg" wx:if="{{searchStr}}" catchtap="searchCleanHandler"/>
|
|
10
12
|
</view>
|
|
11
13
|
<scroll-view class="w-mask__modal-content" scroll-y="true" style="height:{{modal.scrollHeight}}rpx;">
|
|
12
14
|
<w-cell wx:if="{{rules.length > 0}}">
|
package/dist/index/index.wxss
CHANGED
|
@@ -13,12 +13,30 @@
|
|
|
13
13
|
color: rgba(0, 0, 0, 0.8);
|
|
14
14
|
font-size: 16px;
|
|
15
15
|
height: 66rpx;
|
|
16
|
+
overflow: hidden;
|
|
16
17
|
}
|
|
17
18
|
.w-mask__modal-search {
|
|
19
|
+
position: relative;
|
|
18
20
|
display: flex;
|
|
19
21
|
justify-content: center;
|
|
20
22
|
align-items: center;
|
|
21
23
|
}
|
|
24
|
+
.w-mask__modal-search .search-icon--search {
|
|
25
|
+
position: absolute;
|
|
26
|
+
left: 18px;
|
|
27
|
+
top: 50%;
|
|
28
|
+
transform: translateY(-50%);
|
|
29
|
+
width: 16px;
|
|
30
|
+
height: 16px;
|
|
31
|
+
}
|
|
32
|
+
.w-mask__modal-search .search-icon--close {
|
|
33
|
+
position: absolute;
|
|
34
|
+
right: 18px;
|
|
35
|
+
top: 50%;
|
|
36
|
+
transform: translateY(-50%);
|
|
37
|
+
width: 16px;
|
|
38
|
+
height: 16px;
|
|
39
|
+
}
|
|
22
40
|
.w-mask__modal-search input {
|
|
23
41
|
position: relative;
|
|
24
42
|
width: 100%;
|
|
@@ -28,17 +46,6 @@
|
|
|
28
46
|
margin: 14px;
|
|
29
47
|
font-size: 14px;
|
|
30
48
|
}
|
|
31
|
-
.w-mask__modal-search input:before {
|
|
32
|
-
position: absolute;
|
|
33
|
-
content: '';
|
|
34
|
-
background-image: url('data:image/svg+xml; utf8, <svg t="1703061902186" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="22508" width="200" height="200"><path d="M919.179 879.676L743.601 705.143c-0.25-0.249-0.508-0.485-0.765-0.723 54.864-64.213 87.997-147.552 87.997-238.632 0-202.998-164.562-367.56-367.56-367.56S95.713 262.79 95.713 465.788s164.562 367.56 367.56 367.56c91.779 0 175.699-33.641 240.109-89.261 0.242 0.26 0.485 0.52 0.739 0.773l175.578 174.533a27.912 27.912 0 0 0 19.739 8.142c7.194 0 14.387-2.755 19.859-8.26 10.901-10.968 10.849-28.697-0.118-39.599z m-334.65-126.789c-38.375 16.231-79.171 24.461-121.256 24.461-42.085 0-82.881-8.23-121.256-24.461-37.094-15.689-70.419-38.162-99.05-66.793-28.631-28.631-51.104-61.956-66.793-99.05-16.231-38.375-24.461-79.171-24.461-121.256 0-42.085 8.23-82.881 24.461-121.256 15.689-37.094 38.162-70.419 66.793-99.05 28.631-28.631 61.956-51.104 99.05-66.793 38.375-16.231 79.171-24.461 121.256-24.461 42.085 0 82.881 8.23 121.256 24.461 37.094 15.689 70.419 38.162 99.05 66.793 28.631 28.631 51.104 61.956 66.793 99.05 16.231 38.375 24.461 79.171 24.461 121.256 0 42.085-8.23 82.881-24.461 121.256-15.689 37.094-38.162 70.419-66.793 99.05-28.631 28.631-61.956 51.103-99.05 66.793z" p-id="22509"></path></svg>');
|
|
35
|
-
background-size: 16px;
|
|
36
|
-
left: 4px;
|
|
37
|
-
top: 50%;
|
|
38
|
-
transform: translateY(-50%);
|
|
39
|
-
width: 16px;
|
|
40
|
-
height: 16px;
|
|
41
|
-
}
|
|
42
49
|
.w-mask__modal-content--empty {
|
|
43
50
|
width: 100%;
|
|
44
51
|
height: 100%;
|
|
@@ -49,5 +56,5 @@
|
|
|
49
56
|
box-sizing: border-box;
|
|
50
57
|
}
|
|
51
58
|
.w-mask__modal-logo {
|
|
52
|
-
height:
|
|
59
|
+
height: 144rpx;
|
|
53
60
|
}
|
package/dist/less/index.less
CHANGED
|
@@ -17,12 +17,32 @@
|
|
|
17
17
|
color: @mask-modal-title-color;
|
|
18
18
|
font-size: @font-size-lg;
|
|
19
19
|
height: 66rpx;
|
|
20
|
+
overflow: hidden;
|
|
20
21
|
}
|
|
21
22
|
&__modal-search {
|
|
23
|
+
position: relative;
|
|
22
24
|
display: flex;
|
|
23
25
|
justify-content: center;
|
|
24
26
|
align-items: center;
|
|
25
27
|
|
|
28
|
+
.search-icon--search {
|
|
29
|
+
position: absolute;
|
|
30
|
+
left: 18px;
|
|
31
|
+
top: 50%;
|
|
32
|
+
transform: translateY(-50%);
|
|
33
|
+
width: 16px;
|
|
34
|
+
height: 16px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.search-icon--close {
|
|
38
|
+
position: absolute;
|
|
39
|
+
right: 18px;
|
|
40
|
+
top: 50%;
|
|
41
|
+
transform: translateY(-50%);
|
|
42
|
+
width: 16px;
|
|
43
|
+
height: 16px;
|
|
44
|
+
}
|
|
45
|
+
|
|
26
46
|
input {
|
|
27
47
|
position: relative;
|
|
28
48
|
width: 100%;
|
|
@@ -31,18 +51,6 @@
|
|
|
31
51
|
padding: 4px 24px;
|
|
32
52
|
margin: 14px;
|
|
33
53
|
font-size: 14px;
|
|
34
|
-
|
|
35
|
-
&:before{
|
|
36
|
-
position: absolute;
|
|
37
|
-
content: '';
|
|
38
|
-
background-image: url('data:image/svg+xml; utf8, <svg t="1703061902186" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="22508" width="200" height="200"><path d="M919.179 879.676L743.601 705.143c-0.25-0.249-0.508-0.485-0.765-0.723 54.864-64.213 87.997-147.552 87.997-238.632 0-202.998-164.562-367.56-367.56-367.56S95.713 262.79 95.713 465.788s164.562 367.56 367.56 367.56c91.779 0 175.699-33.641 240.109-89.261 0.242 0.26 0.485 0.52 0.739 0.773l175.578 174.533a27.912 27.912 0 0 0 19.739 8.142c7.194 0 14.387-2.755 19.859-8.26 10.901-10.968 10.849-28.697-0.118-39.599z m-334.65-126.789c-38.375 16.231-79.171 24.461-121.256 24.461-42.085 0-82.881-8.23-121.256-24.461-37.094-15.689-70.419-38.162-99.05-66.793-28.631-28.631-51.104-61.956-66.793-99.05-16.231-38.375-24.461-79.171-24.461-121.256 0-42.085 8.23-82.881 24.461-121.256 15.689-37.094 38.162-70.419 66.793-99.05 28.631-28.631 61.956-51.104 99.05-66.793 38.375-16.231 79.171-24.461 121.256-24.461 42.085 0 82.881 8.23 121.256 24.461 37.094 15.689 70.419 38.162 99.05 66.793 28.631 28.631 51.104 61.956 66.793 99.05 16.231 38.375 24.461 79.171 24.461 121.256 0 42.085-8.23 82.881-24.461 121.256-15.689 37.094-38.162 70.419-66.793 99.05-28.631 28.631-61.956 51.103-99.05 66.793z" p-id="22509"></path></svg>');
|
|
39
|
-
background-size: 16px;
|
|
40
|
-
left: 4px;
|
|
41
|
-
top: 50%;
|
|
42
|
-
transform: translateY(-50%);
|
|
43
|
-
width: 16px;
|
|
44
|
-
height: 16px;
|
|
45
|
-
}
|
|
46
54
|
}
|
|
47
55
|
}
|
|
48
56
|
&__modal-content {
|
|
@@ -57,6 +65,6 @@
|
|
|
57
65
|
}
|
|
58
66
|
}
|
|
59
67
|
&__modal-logo {
|
|
60
|
-
height:
|
|
68
|
+
height: 144rpx;
|
|
61
69
|
}
|
|
62
70
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@we-debug/miniprogram",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "we-debug miniprogram component",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "dlhandsome"
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@we-debug/core": "0.
|
|
29
|
-
"@we-debug/plugin-error": "0.
|
|
30
|
-
"@we-debug/plugin-launcher": "0.
|
|
31
|
-
"@we-debug/plugin-network": "0.
|
|
32
|
-
"@we-debug/plugin-router": "0.
|
|
33
|
-
"@we-debug/plugin-ui-check": "0.
|
|
28
|
+
"@we-debug/core": "0.23.0",
|
|
29
|
+
"@we-debug/plugin-error": "0.23.0",
|
|
30
|
+
"@we-debug/plugin-launcher": "0.23.0",
|
|
31
|
+
"@we-debug/plugin-network": "0.23.0",
|
|
32
|
+
"@we-debug/plugin-router": "0.23.0",
|
|
33
|
+
"@we-debug/plugin-ui-check": "0.23.0",
|
|
34
34
|
"deepmerge": "^4.2.2"
|
|
35
35
|
},
|
|
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": "4694d454f59ffdf615ec1a0d0cbcc38cce4038bd"
|
|
40
40
|
}
|