Skip to content

Commit fc5dec0

Browse files
committed
0.0.12
1 parent 9799f94 commit fc5dec0

File tree

19 files changed

+124
-114
lines changed

19 files changed

+124
-114
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## [0.0.12](https://github.com/NervJS/parse-css-to-stylesheet/compare/v0.0.11...v0.0.12) (2023-10-18)
2+
3+
4+
### Bug Fixes
5+
6+
* 遗漏样式属性添加情况 ([b698459](https://github.com/NervJS/parse-css-to-stylesheet/commit/b698459608d91030b2c4b8ba28c46e15bbe08189))
7+
8+
9+
### Features
10+
11+
* 开始尝试在在编译时按需处理样式 ([82aa6f5](https://github.com/NervJS/parse-css-to-stylesheet/commit/82aa6f5a3a715d7e3ac50ac784b3a19cd4fe06e6))
12+
* 优化样式处理逻辑 ([d8954ae](https://github.com/NervJS/parse-css-to-stylesheet/commit/d8954aed25438151a7c48e477b462dd0235507d5))
13+
* 支持优化处理 text-decoration 属性 ([9799f94](https://github.com/NervJS/parse-css-to-stylesheet/commit/9799f94e9136346e52e2029099b991bfb077f643))
14+
15+
16+
117
## [0.0.11](https://github.com/NervJS/parse-css-to-stylesheet/compare/v0.0.10...v0.0.11) (2023-10-17)
218

319

__test__/fixure/mod.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ export default class Mod extends React.Component {
3434
<>
3535
<img
3636
className='icon'
37-
style={{
38-
color: 'red'
39-
}}
4037
src='//img20.360buyimg.com/img/jfs/t1/166410/12/38783/3147/64f58062Fd7737e2b/5aaf0205cd1ce175.png'
4138
></img>
4239
<>

__test__/index.spec.mjs.md

Lines changed: 87 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -13,82 +13,82 @@ Generated by [AVA](https://avajs.dev).
1313
import { calcDynamicStyle as calcDynamicStyle } from "@tarojs/runtime";␊
1414
var __inner_style__ = {␊
1515
"cnt_col": {␊
16+
alignItems: "flex-start",␊
17+
display: "flex",␊
1618
flexDirection: "column",␊
1719
gap: "8px",␊
18-
width: "145px",␊
19-
alignItems: "flex-start",␊
20-
justifyContent: "center",␊
2120
height: "50px",␊
22-
display: "flex"␊
21+
justifyContent: "center",␊
22+
width: "145px"␊
2323
},␊
2424
"cnt_row": {␊
25-
justifyContent: "center",␊
26-
paddingRight: "8px",␊
25+
alignItems: "center",␊
2726
backgroundColor: "rgba(0, 0, 0, .7)",␊
27+
borderRadius: "100px",␊
28+
display: "flex",␊
29+
flexShrink: "0px",␊
30+
gap: "4px",␊
2831
height: "24px",␊
29-
alignItems: "center",␊
32+
justifyContent: "center",␊
3033
paddingBottom: "8px",␊
31-
flexShrink: "0px",␊
32-
display: "flex",␊
34+
paddingLeft: "4px",␊
35+
paddingRight: "8px",␊
36+
paddingTop: "8px",␊
3337
textDecoration: {␊
3438
type: TextDecoration["LineThrough"],␊
3539
color: "black"␊
3640
},␊
37-
paddingLeft: "4px",␊
38-
width: "176px",␊
39-
gap: "4px",␊
40-
borderRadius: "100px",␊
41-
paddingTop: "8px"␊
41+
width: "176px"␊
4242
},␊
4343
"cnt_row1": {␊
44-
width: "311px",␊
45-
height: "50px",␊
44+
alignItems: "center",␊
4645
display: "flex",␊
47-
justifyContent: "flex-start",␊
4846
gap: "10px",␊
49-
alignItems: "center",␊
50-
position: "relative"␊
47+
height: "50px",␊
48+
justifyContent: "flex-start",␊
49+
position: "relative",␊
50+
width: "311px"␊
5151
},␊
5252
"cnt_row2": {␊
53+
alignItems: "flex-start",␊
5354
borderColor: "#999",␊
54-
paddingLeft: "8px",␊
55-
width: "110px",␊
56-
top: "3px",␊
57-
left: "201px",␊
58-
flexShrink: "0px",␊
59-
gap: "-94px",␊
60-
justifyContent: "space-between",␊
61-
paddingRight: "8px",␊
62-
display: "flex",␊
6355
borderRadius: "12px",␊
64-
alignItems: "flex-start",␊
56+
borderStyle: "solid",␊
6557
borderWidth: "1px",␊
66-
position: "absolute",␊
58+
display: "flex",␊
59+
flexShrink: "0px",␊
60+
gap: "-94px",␊
6761
height: "23px",␊
62+
justifyContent: "space-between",␊
63+
left: "201px",␊
6864
paddingBottom: "4px",␊
69-
zIndex: "12",␊
65+
paddingLeft: "8px",␊
66+
paddingRight: "8px",␊
7067
paddingTop: "4px",␊
71-
borderStyle: "solid"␊
68+
position: "absolute",␊
69+
top: "3px",␊
70+
width: "110px",␊
71+
zIndex: "12"␊
7272
},␊
7373
"cnt_row3": {␊
7474
alignItems: "center",␊
75+
display: "flex",␊
76+
gap: "-311px",␊
7577
height: "44px",␊
7678
justifyContent: "space-between",␊
77-
width: "311px",␊
78-
gap: "-311px",␊
79-
display: "flex"␊
79+
width: "311px"␊
8080
},␊
8181
"icon": {␊
82-
width: "18px",␊
82+
height: "18px",␊
8383
textDecoration: {␊
8484
type: TextDecoration["LineThrough"],␊
8585
color: "black"␊
8686
},␊
87-
height: "18px"␊
87+
width: "18px"␊
8888
},␊
8989
"icon1": {␊
90-
width: "15px",␊
91-
height: "15px"␊
90+
height: "15px",␊
91+
width: "15px"␊
9292
},␊
9393
"img": {␊
9494
height: "50px",␊
@@ -100,71 +100,71 @@ Generated by [AVA](https://avajs.dev).
100100
},␊
101101
"instruction": {␊
102102
color: "#fff",␊
103-
fontSize: "12px",␊
104-
flexShrink: "0px",␊
105103
display: "inline-flex",␊
104+
flexShrink: "0px",␊
105+
fontSize: "12px",␊
106106
lineHeight: "1"␊
107107
},␊
108108
"instruction1": {␊
109+
color: "#000",␊
109110
display: "inline-flex",␊
110-
lineHeight: "1",␊
111-
width: "116px",␊
111+
flexShrink: "0px",␊
112112
fontSize: "16px",␊
113-
color: "#000",␊
114-
flexShrink: "0px"␊
113+
lineHeight: "1",␊
114+
width: "116px"␊
115115
},␊
116116
"instruction2": {␊
117-
flexShrink: "0px",␊
118117
color: "#999",␊
119-
overflow: "hidden",␊
120-
textAlign: "center",␊
118+
flexShrink: "0px",␊
119+
fontSize: "11px",␊
121120
lineHeight: "1.36",␊
122-
fontSize: "11px"␊
121+
overflow: "hidden",␊
122+
textAlign: "center"␊
123123
},␊
124124
"line1": {␊
125125
overflow: "hidden",␊
126-
whiteSpace: "nowrap",␊
127-
textOverflow: "ellipsis"␊
126+
textOverflow: "ellipsis",␊
127+
whiteSpace: "nowrap"␊
128128
},␊
129129
"mod": {␊
130-
paddingBottom: "29px",␊
131-
borderRadius: "8px",␊
132130
alignItems: "flex-start",␊
133-
height: "166px",␊
134-
paddingLeft: "16px",␊
135131
backgroundColor: "#fff6f0",␊
136-
flexShrink: "0px",␊
132+
borderRadius: "8px",␊
137133
display: "flex",␊
138-
width: "343px",␊
139-
fontFamily: "Source Han Sans CN",␊
140-
paddingTop: "29px",␊
141-
paddingRight: "16px",␊
142-
gap: "8px",␊
143134
flexDirection: "column",␊
135+
flexShrink: "0px",␊
136+
fontFamily: "Source Han Sans CN",␊
144137
fontWeight: "500",␊
145-
justifyContent: "center"␊
138+
gap: "8px",␊
139+
height: "166px",␊
140+
justifyContent: "center",␊
141+
paddingBottom: "29px",␊
142+
paddingLeft: "16px",␊
143+
paddingRight: "16px",␊
144+
paddingTop: "29px",␊
145+
width: "343px"␊
146146
},␊
147147
"txt": {␊
148-
fontSize: "12px",␊
149-
flexShrink: "0px",␊
150-
lineHeight: "1",␊
151148
color: "#999",␊
152-
display: "inline-flex"␊
149+
display: "inline-flex",␊
150+
flexShrink: "0px",␊
151+
fontSize: "12px",␊
152+
lineHeight: "1"␊
153153
},␊
154154
"txt1": {␊
155155
color: "#222",␊
156-
lineHeight: "1.36",␊
157156
flexShrink: "0px",␊
158-
textAlign: "center",␊
159-
fontSize: "11px"␊
157+
fontSize: "11px",␊
158+
lineHeight: "1.36",␊
159+
textAlign: "center"␊
160160
},␊
161161
"txt2": {␊
162-
lineHeight: "1.83",␊
163-
fontSize: "12px",␊
164-
flexShrink: "0px",␊
165-
width: "290px",␊
166162
color: "#999",␊
167-
display: "inline-flex"␊
163+
display: "inline-flex",␊
164+
flexShrink: "0px",␊
165+
fontSize: "12px",␊
166+
lineHeight: "1.83",␊
167+
width: "290px"␊
168168
}␊
169169
};␊
170170
function Cc() {␊
@@ -222,20 +222,20 @@ Generated by [AVA](https://avajs.dev).
222222
}␊
223223
render() {␊
224224
return <div className='mod' style={{␊
225-
justifyContent: "center",␊
225+
flexShrink: "0px",␊
226+
alignItems: "flex-start",␊
227+
backgroundColor: "#fff6f0",␊
226228
fontWeight: "500",␊
227-
flexDirection: "column",␊
228-
gap: "8px",␊
229-
paddingRight: "16px",␊
229+
justifyContent: "center",␊
230+
paddingBottom: "29px",␊
230231
paddingTop: "29px",␊
231-
fontFamily: "Source Han Sans CN",␊
232232
display: "flex",␊
233-
flexShrink: "0px",␊
234-
backgroundColor: "#fff6f0",␊
235233
paddingLeft: "16px",␊
236-
alignItems: "flex-start",␊
234+
gap: "8px",␊
235+
fontFamily: "Source Han Sans CN",␊
237236
borderRadius: "8px",␊
238-
paddingBottom: "29px",␊
237+
paddingRight: "16px",␊
238+
flexDirection: "column",␊
239239
width: '500px',␊
240240
height: 800␊
241241
}}>␊
@@ -244,15 +244,14 @@ Generated by [AVA](https://avajs.dev).
244244
245245
<>␊
246246
247-
<img className='icon' style={{␊
247+
<img className='icon' src='//img20.360buyimg.com/img/jfs/t1/166410/12/38783/3147/64f58062Fd7737e2b/5aaf0205cd1ce175.png' style={{␊
248248
height: "18px",␊
249249
textDecoration: {␊
250250
type: TextDecoration["LineThrough"],␊
251-
color: 'red'
251+
color: "black"
252252
},␊
253-
width: "18px",␊
254-
color: 'red'␊
255-
}} src='//img20.360buyimg.com/img/jfs/t1/166410/12/38783/3147/64f58062Fd7737e2b/5aaf0205cd1ce175.png'></img>␊
253+
width: "18px"␊
254+
}}></img>␊
256255
257256
<>␊
258257

__test__/index.spec.mjs.snap

-69 Bytes
Binary file not shown.

npm/android-arm-eabi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-android-arm-eabi",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"os": [
55
"android"
66
],

npm/android-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-android-arm64",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"os": [
55
"android"
66
],

npm/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-darwin-arm64",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"os": [
55
"darwin"
66
],

npm/darwin-universal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-darwin-universal",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"os": [
55
"darwin"
66
],

npm/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-darwin-x64",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"os": [
55
"darwin"
66
],

npm/linux-arm-gnueabihf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-linux-arm-gnueabihf",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"os": [
55
"linux"
66
],

0 commit comments

Comments
 (0)