1 | {
|
2 | "name": "ResponsiveGrid",
|
3 | "props": {
|
4 | "device": {
|
5 | "type": {
|
6 | "name": "enum",
|
7 | "value": [
|
8 | {
|
9 | "value": "'phone'",
|
10 | "computed": false,
|
11 | "description": "手机"
|
12 | },
|
13 | {
|
14 | "value": "'tablet'",
|
15 | "computed": false,
|
16 | "description": "平板"
|
17 | },
|
18 | {
|
19 | "value": "'desktop'",
|
20 | "computed": false,
|
21 | "description": "PC"
|
22 | }
|
23 | ]
|
24 | },
|
25 | "required": false,
|
26 | "description": "设备,用来做自适应,默认为 PC",
|
27 | "defaultValue": {
|
28 | "value": "'desktop'",
|
29 | "computed": false
|
30 | },
|
31 | "docblock": "设备,用来做自适应,默认为 PC\n@enumdesc 手机, 平板, PC",
|
32 | "value": [
|
33 | {
|
34 | "value": "'phone'",
|
35 | "computed": false,
|
36 | "description": "手机"
|
37 | },
|
38 | {
|
39 | "value": "'tablet'",
|
40 | "computed": false,
|
41 | "description": "平板"
|
42 | },
|
43 | {
|
44 | "value": "'desktop'",
|
45 | "computed": false,
|
46 | "description": "PC"
|
47 | }
|
48 | ]
|
49 | },
|
50 | "columns": {
|
51 | "type": {
|
52 | "name": "union",
|
53 | "value": [
|
54 | {
|
55 | "name": "number"
|
56 | },
|
57 | {
|
58 | "name": "string"
|
59 | }
|
60 | ]
|
61 | },
|
62 | "required": false,
|
63 | "description": "分为几列, 默认是 12 列",
|
64 | "docblock": "分为几列, 默认是 12 列"
|
65 | },
|
66 | "gap": {
|
67 | "type": {
|
68 | "name": "union",
|
69 | "value": [
|
70 | {
|
71 | "name": "arrayOf",
|
72 | "value": {
|
73 | "name": "number"
|
74 | }
|
75 | },
|
76 | {
|
77 | "name": "number"
|
78 | }
|
79 | ]
|
80 | },
|
81 | "required": false,
|
82 | "description": "每个 cell 之间的间距, [bottom&top, right&left]",
|
83 | "docblock": "每个 cell 之间的间距, [bottom&top, right&left]"
|
84 | },
|
85 | "component": {
|
86 | "type": {
|
87 | "name": "custom",
|
88 | "raw": "PropTypes.elementType"
|
89 | },
|
90 | "required": false,
|
91 | "description": "设置标签类型",
|
92 | "defaultValue": {
|
93 | "value": "'div'",
|
94 | "computed": false
|
95 | },
|
96 | "docblock": "设置标签类型"
|
97 | },
|
98 | "dense": {
|
99 | "type": {
|
100 | "name": "bool"
|
101 | },
|
102 | "required": false,
|
103 | "description": "是否开启紧密模式,开启后尽可能能紧密填满,尽量不出现空格",
|
104 | "defaultValue": {
|
105 | "value": "false",
|
106 | "computed": false
|
107 | },
|
108 | "docblock": "是否开启紧密模式,开启后尽可能能紧密填满,尽量不出现空格"
|
109 | }
|
110 | },
|
111 | "methods": [],
|
112 | "subComponents": [
|
113 | {
|
114 | "name": "Cell",
|
115 | "props": {
|
116 | "colSpan": {
|
117 | "type": {
|
118 | "name": "union",
|
119 | "value": [
|
120 | {
|
121 | "name": "number"
|
122 | },
|
123 | {
|
124 | "name": "object"
|
125 | }
|
126 | ]
|
127 | },
|
128 | "required": false,
|
129 | "description": "横向,占据几列",
|
130 | "docblock": "横向,占据几列"
|
131 | },
|
132 | "rowSpan": {
|
133 | "type": {
|
134 | "name": "number"
|
135 | },
|
136 | "required": false,
|
137 | "description": "纵向,占据几行",
|
138 | "docblock": "纵向,占据几行"
|
139 | },
|
140 | "component": {
|
141 | "type": {
|
142 | "name": "custom",
|
143 | "raw": "PropTypes.elementType"
|
144 | },
|
145 | "required": false,
|
146 | "description": "设置标签类型",
|
147 | "defaultValue": {
|
148 | "value": "'div'",
|
149 | "computed": false
|
150 | },
|
151 | "docblock": "设置标签类型"
|
152 | }
|
153 | },
|
154 | "methods": []
|
155 | }
|
156 | ]
|
157 | } |
\ | No newline at end of file |