Skip to content

Commit 7e112f6

Browse files
committed
feat: 支持 margin/padding/borderRadius 各自的 longhand 样式名
1 parent 46b9a6c commit 7e112f6

File tree

4 files changed

+311
-58
lines changed

4 files changed

+311
-58
lines changed

__test__/index.spec.mjs.md

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ Generated by [AVA](https://avajs.dev).
3535
gap: "4px",␊
3636
height: "24px",␊
3737
justifyContent: "center",␊
38-
paddingBottom: "8px",␊
39-
paddingLeft: "4px",␊
40-
paddingRight: "8px",␊
41-
paddingTop: "8px",␊
38+
padding: {␊
39+
top: "8px",␊
40+
right: "8px",␊
41+
bottom: "8px",␊
42+
left: "4px"␊
43+
},␊
4244
textDecoration: {␊
4345
type: TextDecoration["LineThrough"],␊
4446
color: "black"␊
@@ -71,10 +73,12 @@ Generated by [AVA](https://avajs.dev).
7173
height: "23px",␊
7274
justifyContent: "space-between",␊
7375
left: "201px",␊
74-
paddingBottom: "4px",␊
75-
paddingLeft: "8px",␊
76-
paddingRight: "8px",␊
77-
paddingTop: "4px",␊
76+
padding: {␊
77+
top: "4px",␊
78+
right: "8px",␊
79+
bottom: "4px",␊
80+
left: "8px"␊
81+
},␊
7882
position: "absolute",␊
7983
top: "3px",␊
8084
width: "110px",␊
@@ -153,10 +157,12 @@ Generated by [AVA](https://avajs.dev).
153157
gap: "8px",␊
154158
height: "166px",␊
155159
justifyContent: "center",␊
156-
paddingBottom: "29px",␊
157-
paddingLeft: "16px",␊
158-
paddingRight: "16px",␊
159-
paddingTop: "29px",␊
160+
padding: {␊
161+
top: "29px",␊
162+
right: "16px",␊
163+
bottom: "29px",␊
164+
left: "16px"␊
165+
},␊
160166
width: "343px"␊
161167
},␊
162168
"txt": {␊
@@ -253,10 +259,12 @@ Generated by [AVA](https://avajs.dev).
253259
gap: "8px",␊
254260
height: 800,␊
255261
justifyContent: "center",␊
256-
paddingBottom: "29px",␊
257-
paddingLeft: "16px",␊
258-
paddingRight: "16px",␊
259-
paddingTop: "29px",␊
262+
padding: {␊
263+
top: "29px",␊
264+
right: "16px",␊
265+
bottom: "29px",␊
266+
left: "16px"␊
267+
},␊
260268
width: '500px'␊
261269
}}>␊
262270
@@ -360,10 +368,12 @@ Generated by [AVA](https://avajs.dev).
360368
height: "23px",␊
361369
justifyContent: "space-between",␊
362370
left: "201px",␊
363-
paddingBottom: "4px",␊
364-
paddingLeft: "8px",␊
365-
paddingRight: "8px",␊
366-
paddingTop: "4px",␊
371+
padding: {␊
372+
top: "4px",␊
373+
right: "8px",␊
374+
bottom: "4px",␊
375+
left: "8px"␊
376+
},␊
367377
position: "absolute",␊
368378
top: "3px",␊
369379
width: "110px",␊

__test__/index.spec.mjs.snap

6 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)