1 | {
|
2 | "Properties": [
|
3 | {
|
4 | "Name": "className",
|
5 | "Type": "string",
|
6 | "Description": "自定义的容器class,一般通过此class来实现自定义样式",
|
7 | "Label": "自定义的容器class",
|
8 | "IsArray": false,
|
9 | "IsMetaDataType": false,
|
10 | "Version": null,
|
11 | "Extension": {
|
12 | "editable": true,
|
13 | "editor": {
|
14 | "type": "Input",
|
15 | "config": {}
|
16 | },
|
17 | "jsType": "value"
|
18 | }
|
19 | },
|
20 | {
|
21 | "Name": "prefixCls",
|
22 | "Type": "string",
|
23 | "Description": "自定义类名前缀 非必要时不建议使用,传值后需要自定义所有样式",
|
24 | "Label": "自定义类名前缀",
|
25 | "IsArray": false,
|
26 | "IsMetaDataType": false,
|
27 | "Version": null,
|
28 | "Extension": {
|
29 | "editable": true,
|
30 | "editor": {
|
31 | "type": "Input",
|
32 | "config": {}
|
33 | },
|
34 | "jsType": "value"
|
35 | }
|
36 | },
|
37 | {
|
38 | "Name": "disabled",
|
39 | "Type": "boolean",
|
40 | "Description": "是否禁用,不可操作",
|
41 | "Label": "是否禁用,不可操作",
|
42 | "IsArray": false,
|
43 | "IsMetaDataType": false,
|
44 | "Version": null,
|
45 | "Extension": {
|
46 | "editable": true,
|
47 | "defaultValue": false,
|
48 | "editor": {
|
49 | "type": "Switch",
|
50 | "config": {}
|
51 | },
|
52 | "jsType": "value"
|
53 | }
|
54 | },
|
55 | {
|
56 | "Name": "size",
|
57 | "Type": "string",
|
58 | "Description": "开关大小,选项(small, default)",
|
59 | "Label": "开关大小",
|
60 | "IsArray": false,
|
61 | "IsMetaDataType": false,
|
62 | "Version": null,
|
63 | "Extension": {
|
64 | "editable": true,
|
65 | "defaultValue": "default",
|
66 | "editor": {
|
67 | "type": "Select",
|
68 | "config": {
|
69 | "dataSource": [
|
70 | {
|
71 | "value": "small",
|
72 | "label": "小尺寸"
|
73 | },
|
74 | {
|
75 | "value": "default",
|
76 | "label": "默认"
|
77 | }
|
78 | ]
|
79 | }
|
80 | },
|
81 | "jsType": "value"
|
82 | }
|
83 | },
|
84 | {
|
85 | "Name": "checkedChildren",
|
86 | "Type": "string",
|
87 | "Description": "开启状态时组件内显示的内容",
|
88 | "Label": "开启状态时组件内显示的内容",
|
89 | "IsArray": false,
|
90 | "IsMetaDataType": false,
|
91 | "Version": null,
|
92 | "Extension": {
|
93 | "editable": true,
|
94 | "editor": {
|
95 | "type": "Input",
|
96 | "config": {}
|
97 | },
|
98 | "jsType": "value"
|
99 | }
|
100 | },
|
101 | {
|
102 | "Name": "unCheckedChildren",
|
103 | "Type": "string",
|
104 | "Description": "关闭状态时组件内显示的内容",
|
105 | "Label": "关闭状态时组件内显示的内容",
|
106 | "IsArray": false,
|
107 | "IsMetaDataType": false,
|
108 | "Version": null,
|
109 | "Extension": {
|
110 | "editable": true,
|
111 | "editor": {
|
112 | "type": "Input",
|
113 | "config": {}
|
114 | },
|
115 | "jsType": "value"
|
116 | }
|
117 | },
|
118 | {
|
119 | "Name": "checked",
|
120 | "Type": "boolean",
|
121 | "Description": "开关状态",
|
122 | "Label": "开关状态",
|
123 | "IsArray": false,
|
124 | "IsMetaDataType": false,
|
125 | "Version": null,
|
126 | "Extension": {
|
127 | "editable": true,
|
128 | "editor": {
|
129 | "type": "Switch",
|
130 | "config": {}
|
131 | },
|
132 | "jsType": "value"
|
133 | }
|
134 | },
|
135 | {
|
136 | "Name": "defaultChecked",
|
137 | "Type": "boolean",
|
138 | "Description": "开关默认状态",
|
139 | "Label": "开关默认状态",
|
140 | "IsArray": false,
|
141 | "IsMetaDataType": false,
|
142 | "Version": null,
|
143 | "Extension": {
|
144 | "editable": true,
|
145 | "editor": {
|
146 | "type": "Switch",
|
147 | "config": {}
|
148 | },
|
149 | "jsType": "value"
|
150 | }
|
151 | },
|
152 | {
|
153 | "Name": "autoFocus",
|
154 | "Type": "boolean",
|
155 | "Description": "自动获得焦点",
|
156 | "Label": "自动获得焦点",
|
157 | "IsArray": false,
|
158 | "IsMetaDataType": false,
|
159 | "Version": null,
|
160 | "Extension": {
|
161 | "editable": true,
|
162 | "defaultValue": false,
|
163 | "editor": {
|
164 | "type": "Switch",
|
165 | "config": {}
|
166 | },
|
167 | "jsType": "value"
|
168 | }
|
169 | },
|
170 | {
|
171 | "Name": "loading",
|
172 | "Type": "boolean",
|
173 | "Description": "loading状态",
|
174 | "Label": "loading状态",
|
175 | "IsArray": false,
|
176 | "IsMetaDataType": false,
|
177 | "Version": null,
|
178 | "Extension": {
|
179 | "editable": true,
|
180 | "defaultValue": false,
|
181 | "editor": {
|
182 | "type": "Switch",
|
183 | "config": {}
|
184 | },
|
185 | "jsType": "value"
|
186 | }
|
187 | },
|
188 | {
|
189 | "Name": "onChange",
|
190 | "Type": "string",
|
191 | "Description": "状态改变时的回调, 参数为`checked`和`SyntheticEvent`",
|
192 | "Label": "onChange",
|
193 | "IsArray": false,
|
194 | "IsMetaDataType": false,
|
195 | "Version": null,
|
196 | "Extension": {
|
197 | "editable": false,
|
198 | "funcType": "event",
|
199 | "cbParams": [
|
200 | {
|
201 | "name": "checked",
|
202 | "label": "开关状态",
|
203 | "type": "boolean"
|
204 | },
|
205 | {
|
206 | "name": "SyntheticEvent",
|
207 | "label": "事件对象",
|
208 | "type": "object"
|
209 | }
|
210 | ],
|
211 | "jsType": "function"
|
212 | }
|
213 | },
|
214 | {
|
215 | "Name": "onMouseUp",
|
216 | "Type": "string",
|
217 | "Description": "鼠标抬起时的回调,参数为`SyntheticEvent`",
|
218 | "Label": "onMouseUp",
|
219 | "IsArray": false,
|
220 | "IsMetaDataType": false,
|
221 | "Version": null,
|
222 | "Extension": {
|
223 | "editable": false,
|
224 | "funcType": "event",
|
225 | "cbParams": [
|
226 | {
|
227 | "name": "SyntheticEvent",
|
228 | "label": "事件对象",
|
229 | "type": "object"
|
230 | }
|
231 | ],
|
232 | "jsType": "function"
|
233 | }
|
234 | },
|
235 | {
|
236 | "Name": "onClick",
|
237 | "Type": "string",
|
238 | "Description": "点击回调, 参数为`checked`和`SyntheticEvent`",
|
239 | "Label": "onClick",
|
240 | "IsArray": false,
|
241 | "IsMetaDataType": false,
|
242 | "Version": null,
|
243 | "Extension": {
|
244 | "editable": false,
|
245 | "funcType": "event",
|
246 | "cbParams": [
|
247 | {
|
248 | "name": "checked",
|
249 | "label": "开关状态",
|
250 | "type": "boolean"
|
251 | },
|
252 | {
|
253 | "name": "SyntheticEvent",
|
254 | "label": "事件对象",
|
255 | "type": "object"
|
256 | }
|
257 | ],
|
258 | "jsType": "function"
|
259 | }
|
260 | }
|
261 | ],
|
262 | "_Name": "Switch",
|
263 | "_Title": "开关",
|
264 | "_Description": "",
|
265 | "_MetaDataType": 1,
|
266 | "_TenantId": 0,
|
267 | "_AppId": 0,
|
268 | "_State": 0,
|
269 | "_Version": "1.2.3"
|
270 | } |
\ | No newline at end of file |