Skip to content

Commit 8b2e3e3

Browse files
committed
常用 prop value
1 parent 5f1de55 commit 8b2e3e3

File tree

2 files changed

+118
-5
lines changed

2 files changed

+118
-5
lines changed

src/declPropMap.js

Lines changed: 80 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,83 @@
1+
/* eslint-disable quotes */
12
const declProsMap = {
2-
'display': 'd',
3-
'color': 'c',
4-
'margin': 'm',
5-
'margin-top': 'mt',
3+
"animation": "a",
4+
"animation-iteration-count": "a1",
5+
"background": "b",
6+
"background-clip": "b1",
7+
"background-color": "b2",
8+
"background-image": "b3",
9+
"background-position": "b4",
10+
"background-repeat": "b5",
11+
"background-size": "b6",
12+
"border": "b7",
13+
"border-bottom": "b8",
14+
"border-bottom-color": "b9",
15+
"border-collapse": "b10",
16+
"border-color": "b11",
17+
"border-left": "b12",
18+
"border-left-color": "b13",
19+
"border-radius": "b14",
20+
"border-right": "b15",
21+
"border-right-color": "b16",
22+
"border-spacing": "b17",
23+
"border-style": "b18",
24+
"border-top": "b19",
25+
"border-top-color": "b20",
26+
"border-top-left-radius": "b21",
27+
"border-top-right-radius": "b22",
28+
"border-width": "b23",
29+
"bottom": "b24",
30+
"box-shadow": "b25",
31+
"clear": "c",
32+
"color": "c1",
33+
"content": "c2",
34+
"cursor": "c3",
35+
"display": "d",
36+
"filter": "f",
37+
"float": "f1",
38+
"font": "f2",
39+
"font-family": "f3",
40+
"font-size": "f4",
41+
"font-style": "f5",
42+
"font-weight": "f6",
43+
"height": "h",
44+
"left": "l",
45+
"line-height": "l1",
46+
"list-style": "l2",
47+
"margin": "m",
48+
"margin-bottom": "m1",
49+
"margin-left": "m2",
50+
"margin-right": "m3",
51+
"margin-top": "m4",
52+
"max-height": "m5",
53+
"max-width": "m6",
54+
"min-height": "m7",
55+
"opacity": "o",
56+
"outline": "o1",
57+
"overflow": "o2",
58+
"overflow-x": "o3",
59+
"overflow-y": "o4",
60+
"padding": "p",
61+
"padding-bottom": "p1",
62+
"padding-left": "p2",
63+
"padding-right": "p3",
64+
"padding-top": "p4",
65+
"position": "p5",
66+
"right": "r",
67+
"text-align": "t",
68+
"text-decoration": "t1",
69+
"text-indent": "t2",
70+
"text-overflow": "t3",
71+
"text-shadow": "t4",
72+
"top": "t5",
73+
"transform": "t6",
74+
"transition": "t7",
75+
"vertical-align": "v",
76+
"visibility": "v1",
77+
"white-space": "w",
78+
"width": "w1",
79+
"word-break": "w2",
80+
"z-index": "z",
81+
"zoom": "z1",
682
}
783
module.exports = declProsMap

src/declValueMap.js

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,41 @@
1+
/* eslint-disable quotes */
12
const declValueMap = {
2-
block: 'b',
3+
"0": "0",
4+
"absolute": "a",
5+
"auto": "a1",
6+
"block": "b",
7+
"bold": "b1",
8+
"bolder": "b2",
9+
"both": "b3",
10+
"break-all": "b4",
11+
"center": "c",
12+
"collapse": "c1",
13+
"default": "d",
14+
"ellipsis": "e",
15+
"fixed": "f",
16+
"gray": "g",
17+
"hidden": "h",
18+
"infinite": "i",
19+
"inherit": "i1",
20+
"inline": "i2",
21+
"left": "l",
22+
"middle": "m",
23+
"no-repeat": "n",
24+
"none": "n1",
25+
"normal": "n2",
26+
"nowrap": "n3",
27+
"padding": "p",
28+
"pointer": "p1",
29+
"red": "r",
30+
"relative": "r1",
31+
"right": "r2",
32+
"solid": "s",
33+
"table": "t",
34+
"tahoma": "t1",
35+
"tomato": "t2",
36+
"top": "t3",
37+
"underline": "u",
38+
"visible": "v",
39+
"white": "w",
340
}
441
module.exports = declValueMap

0 commit comments

Comments
 (0)