@we-debug/miniprogram 0.27.3 → 0.28.0
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 +12 -1
- package/dist/index/index.wxml +6 -0
- package/dist/index/index.wxss +24 -0
- package/dist/less/index.less +26 -0
- package/package.json +8 -8
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.28.0](https://github.com/dlhandsome/we-debug/compare/v0.27.3...v0.28.0) (2023-12-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **runtime/miniprogram:** 新增分类 ([2a12a29](https://github.com/dlhandsome/we-debug/commit/2a12a29eb5c576c9a03030057a5edad45f8b10d6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.27.3](https://github.com/dlhandsome/we-debug/compare/v0.27.2...v0.27.3) (2023-12-21)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @we-debug/miniprogram
|
package/dist/index/index.js
CHANGED
|
@@ -38,7 +38,9 @@ Component({
|
|
|
38
38
|
logo: '../icon/logo.png',
|
|
39
39
|
scrollHeight: ((sys.screenHeight * 3) / 5) * (750 / sys.screenWidth)
|
|
40
40
|
},
|
|
41
|
-
searchStr: ''
|
|
41
|
+
searchStr: '',
|
|
42
|
+
group: store.group.getKeys(),
|
|
43
|
+
currentGroup: '全部'
|
|
42
44
|
},
|
|
43
45
|
methods: {
|
|
44
46
|
setSys() {
|
|
@@ -72,6 +74,15 @@ Component({
|
|
|
72
74
|
searchCleanHandler() {
|
|
73
75
|
this.setSearch('');
|
|
74
76
|
this.setRules();
|
|
77
|
+
},
|
|
78
|
+
groupTapHandler(e) {
|
|
79
|
+
const group = e.currentTarget.dataset.item;
|
|
80
|
+
const rules = store.group.get(group).get();
|
|
81
|
+
|
|
82
|
+
this.setData({
|
|
83
|
+
currentGroup: group,
|
|
84
|
+
rules
|
|
85
|
+
});
|
|
75
86
|
}
|
|
76
87
|
},
|
|
77
88
|
lifetimes: {
|
package/dist/index/index.wxml
CHANGED
|
@@ -21,6 +21,12 @@
|
|
|
21
21
|
<view wx:else class="w-mask__modal-content--empty">暂无搜索内容</view>
|
|
22
22
|
<slot name="modal-body"></slot>
|
|
23
23
|
</scroll-view>
|
|
24
|
+
<scroll-view class="w-mask__modal-group" scroll-x="true">
|
|
25
|
+
<view class="group-item {{item === currentGroup ? 'actived': ''}}" style=""
|
|
26
|
+
wx:for="{{group}}"
|
|
27
|
+
data-item="{{item}}"
|
|
28
|
+
catch:tap="groupTapHandler">{{item}}</view>
|
|
29
|
+
</scroll-view>
|
|
24
30
|
<slot name="modal-footer"></slot>
|
|
25
31
|
</w-mask>
|
|
26
32
|
|
package/dist/index/index.wxss
CHANGED
|
@@ -58,3 +58,27 @@
|
|
|
58
58
|
.w-mask__modal-logo {
|
|
59
59
|
height: 144rpx;
|
|
60
60
|
}
|
|
61
|
+
.w-mask__modal-group {
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
flex-direction: row;
|
|
65
|
+
align-items: center;
|
|
66
|
+
height: 38px;
|
|
67
|
+
width: 100%;
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
}
|
|
70
|
+
.w-mask__modal-group .group-item {
|
|
71
|
+
padding: 0px 18px;
|
|
72
|
+
line-height: 30px;
|
|
73
|
+
height: 30px;
|
|
74
|
+
margin: 4px;
|
|
75
|
+
background-color: #f8f8f8;
|
|
76
|
+
display: inline-block;
|
|
77
|
+
border-radius: 30px;
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
align-self: center;
|
|
80
|
+
}
|
|
81
|
+
.w-mask__modal-group .group-item.actived {
|
|
82
|
+
background-color: rgba(77, 79, 236, 0.05);
|
|
83
|
+
color: #4d4fec;
|
|
84
|
+
}
|
package/dist/less/index.less
CHANGED
|
@@ -67,4 +67,30 @@
|
|
|
67
67
|
&__modal-logo {
|
|
68
68
|
height: 144rpx;
|
|
69
69
|
}
|
|
70
|
+
&__modal-group {
|
|
71
|
+
display:flex;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
flex-direction: row;
|
|
74
|
+
align-items: center;
|
|
75
|
+
height: 38px;
|
|
76
|
+
width: 100%;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
|
|
79
|
+
.group-item {
|
|
80
|
+
padding: 0px 18px;
|
|
81
|
+
line-height: 30px;
|
|
82
|
+
height: 30px;
|
|
83
|
+
margin: 4px;
|
|
84
|
+
background-color: #f8f8f8;
|
|
85
|
+
display: inline-block;
|
|
86
|
+
border-radius: 30px;
|
|
87
|
+
font-size: 14px;
|
|
88
|
+
align-self: center;
|
|
89
|
+
|
|
90
|
+
&.actived{
|
|
91
|
+
background-color: rgba(77, 79, 236, 0.05);
|
|
92
|
+
color: rgb(77, 79, 236);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
70
96
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@we-debug/miniprogram",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
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.28.0",
|
|
29
|
+
"@we-debug/plugin-error": "0.28.0",
|
|
30
|
+
"@we-debug/plugin-launcher": "0.28.0",
|
|
31
|
+
"@we-debug/plugin-network": "0.28.0",
|
|
32
|
+
"@we-debug/plugin-router": "0.28.0",
|
|
33
|
+
"@we-debug/plugin-ui-check": "0.28.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": "f25fe272e063f92fd909ef28ce155a822beb4d1e"
|
|
40
40
|
}
|