@next-bricks/form 1.21.11 → 1.21.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +35 -35
- package/dist/chunks/2537.be4cf82c.js.map +1 -1
- package/dist/chunks/845.2f598dd9.js +3 -0
- package/dist/chunks/845.2f598dd9.js.map +1 -0
- package/dist/chunks/{9949.753e2720.js → 9949.3d28a915.js} +3 -3
- package/dist/chunks/9949.3d28a915.js.map +1 -0
- package/dist/chunks/eo-auto-complete.0ed854e4.js.map +1 -1
- package/dist/chunks/eo-checkbox.2d0a8dbc.js.map +1 -1
- package/dist/chunks/eo-color-picker.ecf0c4c0.js.map +1 -1
- package/dist/chunks/eo-date-picker.faa60507.js.map +1 -1
- package/dist/chunks/eo-dynamic-form-item.aa5f7d9e.js.map +1 -1
- package/dist/chunks/eo-form.9db78cdb.js.map +1 -1
- package/dist/chunks/eo-icon-select.6a7f7e12.js +3 -0
- package/dist/chunks/eo-icon-select.6a7f7e12.js.map +1 -0
- package/dist/chunks/eo-radio.b2ed57db.js.map +1 -1
- package/dist/chunks/eo-search.206dd65e.js.map +1 -1
- package/dist/chunks/eo-select.cd00c791.js.map +1 -1
- package/dist/chunks/eo-switch.f0a27c08.js.map +1 -1
- package/dist/chunks/eo-textarea.405851dd.js.map +1 -1
- package/dist/chunks/eo-time-picker.46e7a667.js.map +1 -1
- package/dist/chunks/eo-time-range-picker.5afbad69.js.map +1 -1
- package/dist/chunks/eo-upload-file.27a4288d.js.map +1 -1
- package/dist/chunks/eo-upload-image.b43c2329.js.map +1 -1
- package/dist/chunks/{main.8c394d3e.js → main.59f7a796.js} +2 -2
- package/dist/chunks/{main.8c394d3e.js.map → main.59f7a796.js.map} +1 -1
- package/dist/examples.json +27 -24
- package/dist/index.2c92cf90.js +2 -0
- package/dist/{index.7917bac6.js.map → index.2c92cf90.js.map} +1 -1
- package/dist/manifest.json +451 -385
- package/dist/types.json +2699 -2649
- package/dist-types/auto-complete/index.d.ts +4 -0
- package/dist-types/checkbox/index.d.ts +2 -2
- package/dist-types/color-picker/index.d.ts +2 -1
- package/dist-types/date-picker/index.d.ts +1 -1
- package/dist-types/form/index.d.ts +16 -1
- package/dist-types/form-item/index.d.ts +31 -2
- package/dist-types/general-switch/index.d.ts +1 -1
- package/dist-types/icon-select/index.d.ts +1 -1
- package/dist-types/input/index.d.ts +2 -2
- package/dist-types/radio/index.d.ts +4 -4
- package/dist-types/select/index.d.ts +1 -0
- package/dist-types/textarea/index.d.ts +1 -1
- package/dist-types/time-range-picker/index.d.ts +7 -4
- package/dist-types/upload/upload-file/index.d.ts +1 -1
- package/docs/eo-auto-complete.md +158 -8
- package/docs/eo-auto-complete.react.md +229 -0
- package/docs/eo-checkbox.md +107 -4
- package/docs/eo-checkbox.react.md +369 -0
- package/docs/eo-color-picker.md +102 -22
- package/docs/eo-color-picker.react.md +160 -0
- package/docs/eo-date-picker.md +82 -50
- package/docs/eo-date-picker.react.md +146 -0
- package/docs/eo-dynamic-form-item.md +60 -15
- package/docs/eo-dynamic-form-item.react.md +186 -0
- package/docs/eo-form-item.md +194 -0
- package/docs/eo-form-item.react.md +163 -0
- package/docs/eo-form.md +144 -3
- package/docs/eo-form.react.md +330 -0
- package/docs/eo-icon-select.md +80 -1
- package/docs/eo-icon-select.react.md +97 -0
- package/docs/eo-input.md +147 -22
- package/docs/eo-input.react.md +275 -0
- package/docs/eo-radio.md +145 -8
- package/docs/eo-radio.react.md +492 -0
- package/docs/eo-search.md +94 -1
- package/docs/eo-search.react.md +122 -0
- package/docs/eo-select.md +157 -9
- package/docs/eo-select.react.md +411 -0
- package/docs/eo-submit-buttons.md +120 -7
- package/docs/eo-submit-buttons.react.md +129 -0
- package/docs/eo-switch.md +57 -3
- package/docs/eo-switch.react.md +136 -0
- package/docs/eo-textarea.md +101 -22
- package/docs/eo-textarea.react.md +193 -0
- package/docs/eo-time-picker.md +70 -42
- package/docs/eo-time-picker.react.md +106 -0
- package/docs/eo-time-range-picker.md +89 -35
- package/docs/eo-time-range-picker.react.md +163 -0
- package/docs/eo-upload-file.md +101 -9
- package/docs/eo-upload-file.react.md +126 -0
- package/docs/eo-upload-image.md +70 -6
- package/docs/eo-upload-image.react.md +92 -0
- package/package.json +2 -2
- package/dist/chunks/845.c8b5b1e8.js +0 -3
- package/dist/chunks/845.c8b5b1e8.js.map +0 -1
- package/dist/chunks/9949.753e2720.js.map +0 -1
- package/dist/chunks/eo-icon-select.6ea15888.js +0 -3
- package/dist/chunks/eo-icon-select.6ea15888.js.map +0 -1
- package/dist/index.7917bac6.js +0 -2
- /package/dist/chunks/{845.c8b5b1e8.js.LICENSE.txt → 845.2f598dd9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9949.753e2720.js.LICENSE.txt → 9949.3d28a915.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-icon-select.6ea15888.js.LICENSE.txt → eo-icon-select.6a7f7e12.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"name": "change",
|
|
94
94
|
"description": "",
|
|
95
95
|
"detail": {
|
|
96
|
-
"description":
|
|
96
|
+
"description": "当前输入值",
|
|
97
97
|
"type": "string"
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
{
|
|
104
104
|
"name": "focusTextarea",
|
|
105
105
|
"params": [],
|
|
106
|
-
"description": "
|
|
106
|
+
"description": "使文本域获得焦点",
|
|
107
107
|
"returns": {}
|
|
108
108
|
}
|
|
109
109
|
],
|
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
"properties": [
|
|
120
120
|
{
|
|
121
121
|
"name": "staticValues",
|
|
122
|
+
"description": "静态附加值,在表单验证成功时会合并到 validate.success 事件的 detail 中",
|
|
122
123
|
"attribute": false,
|
|
123
124
|
"type": "Record<string, unknown>"
|
|
124
125
|
},
|
|
@@ -149,10 +150,12 @@
|
|
|
149
150
|
},
|
|
150
151
|
{
|
|
151
152
|
"name": "autoScrollToInvalidFields",
|
|
153
|
+
"description": "是否在验证失败时自动滚动到第一个错误字段",
|
|
152
154
|
"type": "boolean"
|
|
153
155
|
},
|
|
154
156
|
{
|
|
155
157
|
"name": "formStyle",
|
|
158
|
+
"description": "表单自定义样式",
|
|
156
159
|
"attribute": false,
|
|
157
160
|
"type": "React.CSSProperties"
|
|
158
161
|
},
|
|
@@ -167,7 +170,7 @@
|
|
|
167
170
|
"name": "values.change",
|
|
168
171
|
"description": "表单值变更事件",
|
|
169
172
|
"detail": {
|
|
170
|
-
"description":
|
|
173
|
+
"description": "当前所有表单字段的值",
|
|
171
174
|
"type": "Record<string, unknown>"
|
|
172
175
|
}
|
|
173
176
|
},
|
|
@@ -175,6 +178,7 @@
|
|
|
175
178
|
"name": "validate.success",
|
|
176
179
|
"description": "表单验证成功时触发事件",
|
|
177
180
|
"detail": {
|
|
181
|
+
"description": "表单所有字段的值,包含合并后的 staticValues",
|
|
178
182
|
"type": "Record<string, unknown>"
|
|
179
183
|
}
|
|
180
184
|
},
|
|
@@ -182,6 +186,7 @@
|
|
|
182
186
|
"name": "validate.error",
|
|
183
187
|
"description": "表单验证报错时触发事件",
|
|
184
188
|
"detail": {
|
|
189
|
+
"description": "校验失败的字段信息列表,每项包含 name(字段名)及错误消息",
|
|
185
190
|
"type": "(MessageBody & { name: string })[]"
|
|
186
191
|
}
|
|
187
192
|
}
|
|
@@ -206,60 +211,181 @@
|
|
|
206
211
|
"params": [
|
|
207
212
|
{
|
|
208
213
|
"name": "values",
|
|
214
|
+
"description": "要设置的表单字段值",
|
|
209
215
|
"type": "Record<string, unknown>"
|
|
210
216
|
},
|
|
211
217
|
{
|
|
212
218
|
"name": "options",
|
|
219
|
+
"description": "可选配置,支持 runInMicrotask(微任务中执行)和 runInMacrotask(宏任务中执行)",
|
|
213
220
|
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
214
221
|
}
|
|
215
222
|
],
|
|
216
223
|
"description": "表单设置值方法",
|
|
217
|
-
"returns": {
|
|
224
|
+
"returns": {
|
|
225
|
+
"type": "void"
|
|
226
|
+
}
|
|
218
227
|
},
|
|
219
228
|
{
|
|
220
229
|
"name": "resetFields",
|
|
221
230
|
"params": [
|
|
222
231
|
{
|
|
223
232
|
"name": "name",
|
|
233
|
+
"description": "要重置的字段名,不传则重置所有字段",
|
|
224
234
|
"type": "string"
|
|
225
235
|
}
|
|
226
236
|
],
|
|
227
237
|
"description": "表单重置值方法",
|
|
228
|
-
"returns": {
|
|
238
|
+
"returns": {
|
|
239
|
+
"type": "void"
|
|
240
|
+
}
|
|
229
241
|
},
|
|
230
242
|
{
|
|
231
243
|
"name": "getFieldsValue",
|
|
232
244
|
"params": [
|
|
233
245
|
{
|
|
234
246
|
"name": "name",
|
|
247
|
+
"description": "要获取的字段名,不传则获取所有字段的值",
|
|
235
248
|
"type": "string"
|
|
236
249
|
}
|
|
237
250
|
],
|
|
238
251
|
"description": "获取表单值方法",
|
|
239
|
-
"returns": {
|
|
252
|
+
"returns": {
|
|
253
|
+
"description": "指定字段的值,或所有字段值的对象",
|
|
254
|
+
"type": "Record<string, unknown> | unknown"
|
|
255
|
+
}
|
|
240
256
|
},
|
|
241
257
|
{
|
|
242
258
|
"name": "validateField",
|
|
243
259
|
"params": [
|
|
244
260
|
{
|
|
245
261
|
"name": "name",
|
|
262
|
+
"description": "要校验的字段名",
|
|
246
263
|
"type": "string"
|
|
247
264
|
}
|
|
248
265
|
],
|
|
249
266
|
"description": "校验表单字段方法",
|
|
250
|
-
"returns": {
|
|
267
|
+
"returns": {
|
|
268
|
+
"type": "void"
|
|
269
|
+
}
|
|
251
270
|
},
|
|
252
271
|
{
|
|
253
272
|
"name": "resetValidateState",
|
|
254
273
|
"params": [],
|
|
255
274
|
"description": "重置表单校验状态方法",
|
|
256
|
-
"returns": {
|
|
275
|
+
"returns": {
|
|
276
|
+
"type": "void"
|
|
277
|
+
}
|
|
257
278
|
}
|
|
258
279
|
],
|
|
259
280
|
"parts": [],
|
|
260
281
|
"description": "表单构件",
|
|
261
282
|
"category": "form-input-basic"
|
|
262
283
|
},
|
|
284
|
+
{
|
|
285
|
+
"name": "eo-radio",
|
|
286
|
+
"alias": [
|
|
287
|
+
"form.general-radio"
|
|
288
|
+
],
|
|
289
|
+
"properties": [
|
|
290
|
+
{
|
|
291
|
+
"name": "name",
|
|
292
|
+
"description": "字段名称",
|
|
293
|
+
"type": "string"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "label",
|
|
297
|
+
"description": "单选框字段说明",
|
|
298
|
+
"type": "string"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "options",
|
|
302
|
+
"description": "单选框选项表",
|
|
303
|
+
"required": true,
|
|
304
|
+
"attribute": false,
|
|
305
|
+
"type": "GeneralOption[]"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "value",
|
|
309
|
+
"description": "单选框当前选中值",
|
|
310
|
+
"attribute": false,
|
|
311
|
+
"type": "any"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "required",
|
|
315
|
+
"description": "是否必填",
|
|
316
|
+
"type": "boolean"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "message",
|
|
320
|
+
"description": "校验文本信息",
|
|
321
|
+
"attribute": false,
|
|
322
|
+
"type": "Record<string, string>"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "disabled",
|
|
326
|
+
"description": "是否禁用",
|
|
327
|
+
"type": "boolean"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "type",
|
|
331
|
+
"description": "单选框样式类型",
|
|
332
|
+
"default": "\"default\"",
|
|
333
|
+
"type": "RadioType"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "ui",
|
|
337
|
+
"description": "UI样式",
|
|
338
|
+
"default": "\"default\"",
|
|
339
|
+
"type": "UIType"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "size",
|
|
343
|
+
"description": "大小,只对按钮样式生效",
|
|
344
|
+
"default": "\"medium\"",
|
|
345
|
+
"type": "ComponentSize"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "customStyle",
|
|
349
|
+
"description": "自定义radio的外层样式",
|
|
350
|
+
"attribute": false,
|
|
351
|
+
"type": "React.CSSProperties"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "useBrick",
|
|
355
|
+
"description": "自定义radio的内容",
|
|
356
|
+
"attribute": false,
|
|
357
|
+
"type": "UseSingleBrickConf"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "themeVariant",
|
|
361
|
+
"description": "主题变体",
|
|
362
|
+
"type": "\"default\" | \"elevo\""
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
"events": [
|
|
366
|
+
{
|
|
367
|
+
"name": "change",
|
|
368
|
+
"description": "值变化事件",
|
|
369
|
+
"detail": {
|
|
370
|
+
"description": "`GeneralComplexOption | undefined` — 当前选中项的完整选项对象",
|
|
371
|
+
"type": "GeneralComplexOption | undefined"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "options.change",
|
|
376
|
+
"description": "选项列表变化事件",
|
|
377
|
+
"detail": {
|
|
378
|
+
"description": "`{ options: { label: string; value: any; [key: string]: any }; name: string }` — 最新的选项列表及字段名",
|
|
379
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"slots": [],
|
|
384
|
+
"methods": [],
|
|
385
|
+
"parts": [],
|
|
386
|
+
"description": "通用单选构件",
|
|
387
|
+
"category": "form-input-basic"
|
|
388
|
+
},
|
|
263
389
|
{
|
|
264
390
|
"name": "eo-select",
|
|
265
391
|
"alias": [
|
|
@@ -333,7 +459,7 @@
|
|
|
333
459
|
},
|
|
334
460
|
{
|
|
335
461
|
"name": "suffix",
|
|
336
|
-
"description": "",
|
|
462
|
+
"description": "后缀内容,使用 useBrick 在选项及选中值旁显示额外信息",
|
|
337
463
|
"attribute": false,
|
|
338
464
|
"type": "{ useBrick: UseSingleBrickConf }"
|
|
339
465
|
},
|
|
@@ -388,6 +514,7 @@
|
|
|
388
514
|
"name": "change",
|
|
389
515
|
"description": "下拉选择事件",
|
|
390
516
|
"detail": {
|
|
517
|
+
"description": "`{ value: string | string[]; options: GeneralComplexOption[] }` — 选中的值及对应选项列表",
|
|
391
518
|
"type": "ChangeEventDetail"
|
|
392
519
|
}
|
|
393
520
|
},
|
|
@@ -403,6 +530,7 @@
|
|
|
403
530
|
"name": "search",
|
|
404
531
|
"description": "下拉框search事件",
|
|
405
532
|
"detail": {
|
|
533
|
+
"description": "`{ value: string }` — 当前输入的搜索词",
|
|
406
534
|
"type": "SearchEventDetail"
|
|
407
535
|
}
|
|
408
536
|
},
|
|
@@ -417,6 +545,7 @@
|
|
|
417
545
|
"name": "options.change",
|
|
418
546
|
"description": "选项列表变化事件",
|
|
419
547
|
"detail": {
|
|
548
|
+
"description": "`{ options: { label: string; value: any; [key: string]: any }; name: string }` — 最新的选项列表及字段名",
|
|
420
549
|
"type": "OptionsChangeEventDetail"
|
|
421
550
|
}
|
|
422
551
|
}
|
|
@@ -428,79 +557,41 @@
|
|
|
428
557
|
"category": "form-input-basic"
|
|
429
558
|
},
|
|
430
559
|
{
|
|
431
|
-
"name": "eo-
|
|
560
|
+
"name": "eo-submit-buttons",
|
|
432
561
|
"alias": [
|
|
433
|
-
"form.
|
|
562
|
+
"form.submit-buttons"
|
|
434
563
|
],
|
|
435
564
|
"properties": [
|
|
436
565
|
{
|
|
437
|
-
"name": "
|
|
438
|
-
"description": "
|
|
566
|
+
"name": "submitText",
|
|
567
|
+
"description": "提交按钮的文字",
|
|
568
|
+
"default": "\"提交\"",
|
|
439
569
|
"type": "string"
|
|
440
570
|
},
|
|
441
571
|
{
|
|
442
|
-
"name": "
|
|
443
|
-
"description": "
|
|
572
|
+
"name": "cancelText",
|
|
573
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
444
574
|
"type": "string"
|
|
445
575
|
},
|
|
446
576
|
{
|
|
447
|
-
"name": "
|
|
448
|
-
"description": "
|
|
449
|
-
"required": true,
|
|
450
|
-
"attribute": false,
|
|
451
|
-
"type": "GeneralOption[]"
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
"name": "value",
|
|
455
|
-
"description": "单选框当前选中始值",
|
|
456
|
-
"attribute": false,
|
|
457
|
-
"type": "any"
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"name": "required",
|
|
461
|
-
"description": "是否必填",
|
|
577
|
+
"name": "disableAfterClick",
|
|
578
|
+
"description": "点击确定按钮后自动禁用",
|
|
462
579
|
"type": "boolean"
|
|
463
580
|
},
|
|
464
581
|
{
|
|
465
|
-
"name": "
|
|
466
|
-
"description": "
|
|
467
|
-
"attribute": false,
|
|
468
|
-
"type": "Record<string, string>"
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
"name": "disabled",
|
|
472
|
-
"description": "是否禁用",
|
|
582
|
+
"name": "submitDisabled",
|
|
583
|
+
"description": "禁用提交按钮",
|
|
473
584
|
"type": "boolean"
|
|
474
585
|
},
|
|
475
586
|
{
|
|
476
|
-
"name": "
|
|
477
|
-
"description": "
|
|
478
|
-
"
|
|
479
|
-
"type": "RadioType"
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
"name": "ui",
|
|
483
|
-
"description": "UI样式",
|
|
484
|
-
"default": "\"default\"",
|
|
485
|
-
"type": "UIType"
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
"name": "size",
|
|
489
|
-
"description": "大小,只对按钮样式生效",
|
|
490
|
-
"default": "\"medium\"",
|
|
491
|
-
"type": "ComponentSize"
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
"name": "customStyle",
|
|
495
|
-
"description": "自定义radio的外层样式",
|
|
496
|
-
"attribute": false,
|
|
497
|
-
"type": "React.CSSProperties"
|
|
587
|
+
"name": "submitType",
|
|
588
|
+
"description": "提交按钮类型",
|
|
589
|
+
"type": "ButtonType"
|
|
498
590
|
},
|
|
499
591
|
{
|
|
500
|
-
"name": "
|
|
501
|
-
"description": "
|
|
502
|
-
"
|
|
503
|
-
"type": "UseSingleBrickConf"
|
|
592
|
+
"name": "cancelType",
|
|
593
|
+
"description": "取消按钮类型",
|
|
594
|
+
"type": "ButtonType"
|
|
504
595
|
},
|
|
505
596
|
{
|
|
506
597
|
"name": "themeVariant",
|
|
@@ -510,89 +601,120 @@
|
|
|
510
601
|
],
|
|
511
602
|
"events": [
|
|
512
603
|
{
|
|
513
|
-
"name": "
|
|
514
|
-
"description": "
|
|
604
|
+
"name": "submit",
|
|
605
|
+
"description": "点击提交按钮触发的事件",
|
|
515
606
|
"detail": {
|
|
516
|
-
"type": "
|
|
607
|
+
"type": "void"
|
|
517
608
|
}
|
|
518
609
|
},
|
|
519
610
|
{
|
|
520
|
-
"name": "
|
|
521
|
-
"description": "
|
|
611
|
+
"name": "cancel",
|
|
612
|
+
"description": "点击取消按钮触发的事件",
|
|
522
613
|
"detail": {
|
|
523
|
-
"type": "
|
|
614
|
+
"type": "void"
|
|
524
615
|
}
|
|
525
616
|
}
|
|
526
617
|
],
|
|
527
618
|
"slots": [],
|
|
528
619
|
"methods": [],
|
|
529
620
|
"parts": [],
|
|
530
|
-
"description": "
|
|
621
|
+
"description": "表单提交按钮",
|
|
531
622
|
"category": "form-input-basic"
|
|
532
623
|
},
|
|
533
624
|
{
|
|
534
|
-
"name": "eo-
|
|
625
|
+
"name": "eo-dynamic-form-item",
|
|
535
626
|
"alias": [
|
|
536
|
-
"form.
|
|
627
|
+
"form.dynamic-form-item"
|
|
537
628
|
],
|
|
538
629
|
"properties": [
|
|
539
630
|
{
|
|
540
|
-
"name": "
|
|
541
|
-
"description": "
|
|
542
|
-
"default": "\"提交\"",
|
|
631
|
+
"name": "name",
|
|
632
|
+
"description": "字段名称",
|
|
543
633
|
"type": "string"
|
|
544
634
|
},
|
|
545
635
|
{
|
|
546
|
-
"name": "
|
|
547
|
-
"description": "
|
|
636
|
+
"name": "label",
|
|
637
|
+
"description": "字段说明",
|
|
548
638
|
"type": "string"
|
|
549
639
|
},
|
|
550
640
|
{
|
|
551
|
-
"name": "
|
|
552
|
-
"description": "
|
|
641
|
+
"name": "required",
|
|
642
|
+
"description": "是否必填",
|
|
553
643
|
"type": "boolean"
|
|
554
644
|
},
|
|
555
645
|
{
|
|
556
|
-
"name": "
|
|
557
|
-
"description": "
|
|
558
|
-
"
|
|
646
|
+
"name": "value",
|
|
647
|
+
"description": "值",
|
|
648
|
+
"attribute": false,
|
|
649
|
+
"type": "DynamicFormValuesItem[]"
|
|
559
650
|
},
|
|
560
651
|
{
|
|
561
|
-
"name": "
|
|
562
|
-
"description": "
|
|
563
|
-
"
|
|
652
|
+
"name": "message",
|
|
653
|
+
"description": "校验文本",
|
|
654
|
+
"attribute": false,
|
|
655
|
+
"type": "Record<string, string>"
|
|
564
656
|
},
|
|
565
657
|
{
|
|
566
|
-
"name": "
|
|
567
|
-
"description": "
|
|
568
|
-
"
|
|
658
|
+
"name": "hideRemoveButton",
|
|
659
|
+
"description": "是否隐藏每一行删除的按钮",
|
|
660
|
+
"attribute": false,
|
|
661
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
569
662
|
},
|
|
570
663
|
{
|
|
571
|
-
"name": "
|
|
572
|
-
"description": "
|
|
573
|
-
"
|
|
664
|
+
"name": "disabledRemoveButton",
|
|
665
|
+
"description": "是否禁止每一行删除的按钮",
|
|
666
|
+
"attribute": false,
|
|
667
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"name": "hideAddButton",
|
|
671
|
+
"description": "是否隐藏添加的按钮",
|
|
672
|
+
"attribute": false,
|
|
673
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"name": "disabledAddButton",
|
|
677
|
+
"description": "是否禁止添加的按钮",
|
|
678
|
+
"attribute": false,
|
|
679
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "useBrick",
|
|
683
|
+
"description": "动态表单子项构件列表",
|
|
684
|
+
"attribute": false,
|
|
685
|
+
"type": "UseBrickConf"
|
|
574
686
|
}
|
|
575
687
|
],
|
|
576
688
|
"events": [
|
|
577
689
|
{
|
|
578
|
-
"name": "
|
|
579
|
-
"description": "
|
|
690
|
+
"name": "change",
|
|
691
|
+
"description": "表单值改变时触发",
|
|
580
692
|
"detail": {
|
|
581
|
-
"
|
|
693
|
+
"description": "整个动态表单当前所有行的值列表",
|
|
694
|
+
"type": "DynamicFormValuesItem[]"
|
|
582
695
|
}
|
|
583
696
|
},
|
|
584
697
|
{
|
|
585
|
-
"name": "
|
|
586
|
-
"description": "
|
|
698
|
+
"name": "row.add",
|
|
699
|
+
"description": "增加一行时触发",
|
|
587
700
|
"detail": {
|
|
588
|
-
"
|
|
701
|
+
"description": "{ detail: 该行的默认值, index: 该行的位置 }",
|
|
702
|
+
"type": "rowDataType"
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "row.remove",
|
|
707
|
+
"description": "移除一行时触发",
|
|
708
|
+
"detail": {
|
|
709
|
+
"description": "{ detail: 该行的值, index: 该行的位置 }",
|
|
710
|
+
"type": "rowDataType"
|
|
589
711
|
}
|
|
590
712
|
}
|
|
591
713
|
],
|
|
592
714
|
"slots": [],
|
|
593
715
|
"methods": [],
|
|
594
716
|
"parts": [],
|
|
595
|
-
"description": "
|
|
717
|
+
"description": "动态表单",
|
|
596
718
|
"category": "form-input-basic"
|
|
597
719
|
},
|
|
598
720
|
{
|
|
@@ -638,7 +760,7 @@
|
|
|
638
760
|
},
|
|
639
761
|
{
|
|
640
762
|
"name": "isCustom",
|
|
641
|
-
"description": "
|
|
763
|
+
"description": "是否为自定义样式,仅在 type=\"icon\" 时生效,启用后图标尺寸更大(52px)",
|
|
642
764
|
"default": "false",
|
|
643
765
|
"type": "boolean"
|
|
644
766
|
},
|
|
@@ -655,7 +777,7 @@
|
|
|
655
777
|
},
|
|
656
778
|
{
|
|
657
779
|
"name": "isGroup",
|
|
658
|
-
"description": "
|
|
780
|
+
"description": "是否启用分组模式,为 true 时,则可设置分组数据 optionGroups",
|
|
659
781
|
"type": "boolean"
|
|
660
782
|
},
|
|
661
783
|
{
|
|
@@ -673,15 +795,17 @@
|
|
|
673
795
|
"events": [
|
|
674
796
|
{
|
|
675
797
|
"name": "change",
|
|
676
|
-
"description": "
|
|
798
|
+
"description": "复选框选中项发生变化时触发",
|
|
677
799
|
"detail": {
|
|
800
|
+
"description": "{ value: 选中项的值, label: 选中项的标签, disabled: 是否禁用, checkboxColor: 复选框颜色 }[]",
|
|
678
801
|
"type": "CheckboxOptionType[]"
|
|
679
802
|
}
|
|
680
803
|
},
|
|
681
804
|
{
|
|
682
805
|
"name": "options.change",
|
|
683
|
-
"description": "
|
|
806
|
+
"description": "复选框选项数据变化时触发",
|
|
684
807
|
"detail": {
|
|
808
|
+
"description": "{ options: 最新的选项列表, name: 字段名称 }",
|
|
685
809
|
"type": "OptionsChangeEventDetail"
|
|
686
810
|
}
|
|
687
811
|
}
|
|
@@ -692,98 +816,6 @@
|
|
|
692
816
|
"description": "表单复选框构件",
|
|
693
817
|
"category": "form-input-basic"
|
|
694
818
|
},
|
|
695
|
-
{
|
|
696
|
-
"name": "eo-dynamic-form-item",
|
|
697
|
-
"alias": [
|
|
698
|
-
"form.dynamic-form-item"
|
|
699
|
-
],
|
|
700
|
-
"properties": [
|
|
701
|
-
{
|
|
702
|
-
"name": "name",
|
|
703
|
-
"description": "字段名称",
|
|
704
|
-
"type": "string"
|
|
705
|
-
},
|
|
706
|
-
{
|
|
707
|
-
"name": "label",
|
|
708
|
-
"description": "字段说明",
|
|
709
|
-
"type": "string"
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
"name": "required",
|
|
713
|
-
"description": "是否必填",
|
|
714
|
-
"type": "boolean"
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
"name": "value",
|
|
718
|
-
"description": "值",
|
|
719
|
-
"attribute": false,
|
|
720
|
-
"type": "DynamicFormValuesItem[]"
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
"name": "message",
|
|
724
|
-
"description": "校验文本",
|
|
725
|
-
"attribute": false,
|
|
726
|
-
"type": "Record<string, string>"
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"name": "hideRemoveButton",
|
|
730
|
-
"description": "是否隐藏每一行删除的按钮",
|
|
731
|
-
"attribute": false,
|
|
732
|
-
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
"name": "disabledRemoveButton",
|
|
736
|
-
"description": "是否禁止每一行删除的按钮",
|
|
737
|
-
"attribute": false,
|
|
738
|
-
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
"name": "hideAddButton",
|
|
742
|
-
"description": "是否隐藏添加的按钮",
|
|
743
|
-
"attribute": false,
|
|
744
|
-
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
"name": "disabledAddButton",
|
|
748
|
-
"description": "是否禁止添加的按钮",
|
|
749
|
-
"attribute": false,
|
|
750
|
-
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
"name": "useBrick",
|
|
754
|
-
"description": "动态表单子项构件列表",
|
|
755
|
-
"attribute": false,
|
|
756
|
-
"type": "UseBrickConf"
|
|
757
|
-
}
|
|
758
|
-
],
|
|
759
|
-
"events": [
|
|
760
|
-
{
|
|
761
|
-
"name": "change",
|
|
762
|
-
"detail": {
|
|
763
|
-
"type": "DynamicFormValuesItem[]"
|
|
764
|
-
}
|
|
765
|
-
},
|
|
766
|
-
{
|
|
767
|
-
"name": "row.add",
|
|
768
|
-
"description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
|
|
769
|
-
"detail": {
|
|
770
|
-
"type": "rowDataType"
|
|
771
|
-
}
|
|
772
|
-
},
|
|
773
|
-
{
|
|
774
|
-
"name": "row.remove",
|
|
775
|
-
"description": "移除一行时触发,detail为该行的值,index为该行的位置",
|
|
776
|
-
"detail": {
|
|
777
|
-
"type": "rowDataType"
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
],
|
|
781
|
-
"slots": [],
|
|
782
|
-
"methods": [],
|
|
783
|
-
"parts": [],
|
|
784
|
-
"description": "动态表单",
|
|
785
|
-
"category": "form-input-basic"
|
|
786
|
-
},
|
|
787
819
|
{
|
|
788
820
|
"name": "eo-search",
|
|
789
821
|
"alias": [
|
|
@@ -837,15 +869,17 @@
|
|
|
837
869
|
"events": [
|
|
838
870
|
{
|
|
839
871
|
"name": "change",
|
|
840
|
-
"description": "
|
|
872
|
+
"description": "",
|
|
841
873
|
"detail": {
|
|
874
|
+
"description": "当前输入值",
|
|
842
875
|
"type": "string"
|
|
843
876
|
}
|
|
844
877
|
},
|
|
845
878
|
{
|
|
846
879
|
"name": "search",
|
|
847
|
-
"description": "
|
|
880
|
+
"description": "",
|
|
848
881
|
"detail": {
|
|
882
|
+
"description": "搜索关键词",
|
|
849
883
|
"type": "string"
|
|
850
884
|
}
|
|
851
885
|
}
|
|
@@ -890,7 +924,7 @@
|
|
|
890
924
|
},
|
|
891
925
|
{
|
|
892
926
|
"name": "message",
|
|
893
|
-
"description": "
|
|
927
|
+
"description": "校验错误提示信息",
|
|
894
928
|
"attribute": false,
|
|
895
929
|
"type": "Record<string, string>"
|
|
896
930
|
},
|
|
@@ -905,6 +939,7 @@
|
|
|
905
939
|
"name": "change",
|
|
906
940
|
"description": "值变化时触发",
|
|
907
941
|
"detail": {
|
|
942
|
+
"description": "`Icon | undefined` — { lib: 图标库, icon: 图标名称, category: 图标分类, color: 图标颜色 } | undefined",
|
|
908
943
|
"type": "Icon | undefined"
|
|
909
944
|
}
|
|
910
945
|
}
|
|
@@ -916,9 +951,9 @@
|
|
|
916
951
|
"category": "form-input-basic"
|
|
917
952
|
},
|
|
918
953
|
{
|
|
919
|
-
"name": "eo-
|
|
954
|
+
"name": "eo-upload-image",
|
|
920
955
|
"alias": [
|
|
921
|
-
"form.
|
|
956
|
+
"form.upload-image"
|
|
922
957
|
],
|
|
923
958
|
"properties": [
|
|
924
959
|
{
|
|
@@ -928,45 +963,50 @@
|
|
|
928
963
|
},
|
|
929
964
|
{
|
|
930
965
|
"name": "label",
|
|
931
|
-
"description": "
|
|
966
|
+
"description": "字段说明",
|
|
932
967
|
"type": "string"
|
|
933
968
|
},
|
|
934
969
|
{
|
|
935
970
|
"name": "value",
|
|
936
|
-
"description": "
|
|
937
|
-
"
|
|
971
|
+
"description": "值",
|
|
972
|
+
"attribute": false,
|
|
973
|
+
"type": "ImageData[]"
|
|
938
974
|
},
|
|
939
975
|
{
|
|
940
|
-
"name": "
|
|
941
|
-
"description": "
|
|
942
|
-
"type": "
|
|
976
|
+
"name": "bucketName",
|
|
977
|
+
"description": "对象存储桶名字",
|
|
978
|
+
"type": "string"
|
|
943
979
|
},
|
|
944
980
|
{
|
|
945
|
-
"name": "
|
|
946
|
-
"description": "
|
|
947
|
-
"type": "
|
|
981
|
+
"name": "maxCount",
|
|
982
|
+
"description": "最大上传数量",
|
|
983
|
+
"type": "number"
|
|
948
984
|
},
|
|
949
985
|
{
|
|
950
|
-
"name": "
|
|
951
|
-
"description": "
|
|
952
|
-
"type": "
|
|
986
|
+
"name": "multiple",
|
|
987
|
+
"description": "是否支持选定的多张图片",
|
|
988
|
+
"type": "boolean"
|
|
953
989
|
},
|
|
954
990
|
{
|
|
955
|
-
"name": "
|
|
956
|
-
"description": "
|
|
957
|
-
"type": "
|
|
991
|
+
"name": "limitSize",
|
|
992
|
+
"description": "上传大小限制(单位为 MB)",
|
|
993
|
+
"type": "number"
|
|
958
994
|
},
|
|
959
995
|
{
|
|
960
|
-
"name": "
|
|
961
|
-
"description": "
|
|
962
|
-
"
|
|
963
|
-
"type": "GeneralIconProps"
|
|
996
|
+
"name": "required",
|
|
997
|
+
"description": "是否必填",
|
|
998
|
+
"type": "boolean"
|
|
964
999
|
},
|
|
965
1000
|
{
|
|
966
|
-
"name": "
|
|
967
|
-
"description": "
|
|
1001
|
+
"name": "message",
|
|
1002
|
+
"description": "校验文本信息",
|
|
968
1003
|
"attribute": false,
|
|
969
|
-
"type": "
|
|
1004
|
+
"type": "Record<string, string>"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "variant",
|
|
1008
|
+
"description": "变体",
|
|
1009
|
+
"type": "\"default\" | \"avatar\""
|
|
970
1010
|
},
|
|
971
1011
|
{
|
|
972
1012
|
"name": "themeVariant",
|
|
@@ -976,23 +1016,24 @@
|
|
|
976
1016
|
],
|
|
977
1017
|
"events": [
|
|
978
1018
|
{
|
|
979
|
-
"name": "
|
|
980
|
-
"description": "
|
|
1019
|
+
"name": "change",
|
|
1020
|
+
"description": "",
|
|
981
1021
|
"detail": {
|
|
982
|
-
"
|
|
1022
|
+
"description": "{ uid: 文件唯一标识, name: 文件名, url: 图片地址, file: 原始 File 对象, response: 上传响应内容, status: 上传状态(uploading | done | error), errors: 错误信息列表 }[]",
|
|
1023
|
+
"type": "ImageData[]"
|
|
983
1024
|
}
|
|
984
1025
|
}
|
|
985
1026
|
],
|
|
986
1027
|
"slots": [],
|
|
987
1028
|
"methods": [],
|
|
988
1029
|
"parts": [],
|
|
989
|
-
"description": "
|
|
1030
|
+
"description": "上传图片构件",
|
|
990
1031
|
"category": "form-input-basic"
|
|
991
1032
|
},
|
|
992
1033
|
{
|
|
993
|
-
"name": "eo-
|
|
1034
|
+
"name": "eo-switch",
|
|
994
1035
|
"alias": [
|
|
995
|
-
"form.
|
|
1036
|
+
"form.general-switch"
|
|
996
1037
|
],
|
|
997
1038
|
"properties": [
|
|
998
1039
|
{
|
|
@@ -1002,50 +1043,45 @@
|
|
|
1002
1043
|
},
|
|
1003
1044
|
{
|
|
1004
1045
|
"name": "label",
|
|
1005
|
-
"description": "
|
|
1046
|
+
"description": "字段文本",
|
|
1006
1047
|
"type": "string"
|
|
1007
1048
|
},
|
|
1008
1049
|
{
|
|
1009
1050
|
"name": "value",
|
|
1010
|
-
"description": "
|
|
1011
|
-
"
|
|
1012
|
-
"type": "ImageData[]"
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
"name": "bucketName",
|
|
1016
|
-
"description": "对象存储桶名字",
|
|
1017
|
-
"type": "string"
|
|
1051
|
+
"description": "初始值",
|
|
1052
|
+
"type": "boolean"
|
|
1018
1053
|
},
|
|
1019
1054
|
{
|
|
1020
|
-
"name": "
|
|
1021
|
-
"description": "
|
|
1022
|
-
"type": "
|
|
1055
|
+
"name": "disabled",
|
|
1056
|
+
"description": "是否禁用",
|
|
1057
|
+
"type": "boolean"
|
|
1023
1058
|
},
|
|
1024
1059
|
{
|
|
1025
|
-
"name": "
|
|
1026
|
-
"description": "
|
|
1027
|
-
"type": "
|
|
1060
|
+
"name": "size",
|
|
1061
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
1062
|
+
"type": "ComponentSize"
|
|
1028
1063
|
},
|
|
1029
1064
|
{
|
|
1030
|
-
"name": "
|
|
1031
|
-
"description": "
|
|
1032
|
-
"type": "
|
|
1065
|
+
"name": "checkedText",
|
|
1066
|
+
"description": "选中时的文本",
|
|
1067
|
+
"type": "string"
|
|
1033
1068
|
},
|
|
1034
1069
|
{
|
|
1035
|
-
"name": "
|
|
1036
|
-
"description": "
|
|
1037
|
-
"type": "
|
|
1070
|
+
"name": "unCheckedText",
|
|
1071
|
+
"description": "非选中时的文本",
|
|
1072
|
+
"type": "string"
|
|
1038
1073
|
},
|
|
1039
1074
|
{
|
|
1040
|
-
"name": "
|
|
1041
|
-
"description": "
|
|
1075
|
+
"name": "checkedIcon",
|
|
1076
|
+
"description": "选中时的图标",
|
|
1042
1077
|
"attribute": false,
|
|
1043
|
-
"type": "
|
|
1078
|
+
"type": "GeneralIconProps"
|
|
1044
1079
|
},
|
|
1045
1080
|
{
|
|
1046
|
-
"name": "
|
|
1047
|
-
"description": "
|
|
1048
|
-
"
|
|
1081
|
+
"name": "unCheckedIcon",
|
|
1082
|
+
"description": "非选中时的图标",
|
|
1083
|
+
"attribute": false,
|
|
1084
|
+
"type": "GeneralIconProps"
|
|
1049
1085
|
},
|
|
1050
1086
|
{
|
|
1051
1087
|
"name": "themeVariant",
|
|
@@ -1055,17 +1091,18 @@
|
|
|
1055
1091
|
],
|
|
1056
1092
|
"events": [
|
|
1057
1093
|
{
|
|
1058
|
-
"name": "
|
|
1059
|
-
"description": "
|
|
1094
|
+
"name": "switch",
|
|
1095
|
+
"description": "开关改变时触发",
|
|
1060
1096
|
"detail": {
|
|
1061
|
-
"
|
|
1097
|
+
"description": "`boolean` — 开关当前状态,true 表示开启,false 表示关闭",
|
|
1098
|
+
"type": "boolean"
|
|
1062
1099
|
}
|
|
1063
1100
|
}
|
|
1064
1101
|
],
|
|
1065
1102
|
"slots": [],
|
|
1066
1103
|
"methods": [],
|
|
1067
1104
|
"parts": [],
|
|
1068
|
-
"description": "
|
|
1105
|
+
"description": "开关",
|
|
1069
1106
|
"category": "form-input-basic"
|
|
1070
1107
|
},
|
|
1071
1108
|
{
|
|
@@ -1131,7 +1168,7 @@
|
|
|
1131
1168
|
},
|
|
1132
1169
|
{
|
|
1133
1170
|
"name": "buttonIcon",
|
|
1134
|
-
"description": "
|
|
1171
|
+
"description": "上传按钮图标",
|
|
1135
1172
|
"default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
|
|
1136
1173
|
"attribute": false,
|
|
1137
1174
|
"type": "GeneralIconProps"
|
|
@@ -1184,8 +1221,9 @@
|
|
|
1184
1221
|
"events": [
|
|
1185
1222
|
{
|
|
1186
1223
|
"name": "change",
|
|
1187
|
-
"description": "
|
|
1224
|
+
"description": "",
|
|
1188
1225
|
"detail": {
|
|
1226
|
+
"description": "{ uid: 文件唯一标识, name: 文件名, file: 原始 File 对象, response: 上传响应内容, status: 上传状态(uploading | done | error), errors: 错误信息列表 }[]",
|
|
1189
1227
|
"type": "FileData[]"
|
|
1190
1228
|
}
|
|
1191
1229
|
}
|
|
@@ -1232,6 +1270,7 @@
|
|
|
1232
1270
|
},
|
|
1233
1271
|
{
|
|
1234
1272
|
"name": "value",
|
|
1273
|
+
"description": "输入框当前值",
|
|
1235
1274
|
"type": "string"
|
|
1236
1275
|
},
|
|
1237
1276
|
{
|
|
@@ -1267,13 +1306,19 @@
|
|
|
1267
1306
|
"events": [
|
|
1268
1307
|
{
|
|
1269
1308
|
"name": "change",
|
|
1270
|
-
"description": "
|
|
1309
|
+
"description": "",
|
|
1271
1310
|
"detail": {
|
|
1311
|
+
"description": "当前输入框的值",
|
|
1272
1312
|
"type": "string"
|
|
1273
1313
|
}
|
|
1274
1314
|
}
|
|
1275
1315
|
],
|
|
1276
|
-
"slots": [
|
|
1316
|
+
"slots": [
|
|
1317
|
+
{
|
|
1318
|
+
"name": "options-toolbar",
|
|
1319
|
+
"description": "下拉列表底部工具栏"
|
|
1320
|
+
}
|
|
1321
|
+
],
|
|
1277
1322
|
"methods": [],
|
|
1278
1323
|
"parts": [],
|
|
1279
1324
|
"description": "带候选项的输入框",
|
|
@@ -1328,22 +1373,25 @@
|
|
|
1328
1373
|
"events": [
|
|
1329
1374
|
{
|
|
1330
1375
|
"name": "change",
|
|
1331
|
-
"description": "
|
|
1376
|
+
"description": "",
|
|
1332
1377
|
"detail": {
|
|
1378
|
+
"description": "格式化后的时间字符串",
|
|
1333
1379
|
"type": "string"
|
|
1334
1380
|
}
|
|
1335
1381
|
},
|
|
1336
1382
|
{
|
|
1337
1383
|
"name": "open",
|
|
1338
|
-
"description": "
|
|
1384
|
+
"description": "",
|
|
1339
1385
|
"detail": {
|
|
1386
|
+
"description": "面板打开时的当前时间值字符串",
|
|
1340
1387
|
"type": "string"
|
|
1341
1388
|
}
|
|
1342
1389
|
},
|
|
1343
1390
|
{
|
|
1344
1391
|
"name": "close",
|
|
1345
|
-
"description": "
|
|
1392
|
+
"description": "",
|
|
1346
1393
|
"detail": {
|
|
1394
|
+
"description": "面板关闭时的当前时间值字符串",
|
|
1347
1395
|
"type": "string"
|
|
1348
1396
|
}
|
|
1349
1397
|
}
|
|
@@ -1435,15 +1483,17 @@
|
|
|
1435
1483
|
"events": [
|
|
1436
1484
|
{
|
|
1437
1485
|
"name": "change",
|
|
1438
|
-
"description": "
|
|
1486
|
+
"description": "",
|
|
1439
1487
|
"detail": {
|
|
1488
|
+
"description": "格式化后的日期字符串",
|
|
1440
1489
|
"type": "string"
|
|
1441
1490
|
}
|
|
1442
1491
|
},
|
|
1443
1492
|
{
|
|
1444
1493
|
"name": "ok",
|
|
1445
|
-
"description": "
|
|
1494
|
+
"description": "",
|
|
1446
1495
|
"detail": {
|
|
1496
|
+
"description": "格式化后的日期字符串",
|
|
1447
1497
|
"type": "string"
|
|
1448
1498
|
}
|
|
1449
1499
|
}
|
|
@@ -1504,19 +1554,20 @@
|
|
|
1504
1554
|
},
|
|
1505
1555
|
{
|
|
1506
1556
|
"name": "emitChangeOnInit",
|
|
1507
|
-
"description": "",
|
|
1508
|
-
"default": "true
|
|
1557
|
+
"description": "是否在初始化完成后额外触发一次 change 事件。因历史原因,默认行为就是在初始化后触发该事件,为了兼容之前的行为,默认值只能设置为 true。",
|
|
1558
|
+
"default": "true",
|
|
1509
1559
|
"type": "boolean"
|
|
1510
1560
|
},
|
|
1511
1561
|
{
|
|
1512
1562
|
"name": "presetRanges",
|
|
1513
|
-
"description": "",
|
|
1514
|
-
"default": "[]
|
|
1563
|
+
"description": "预设时间范围快捷选择。设置了 selectNearDays 时,presetRanges 不生效;rangeType 为 week 时只能选本周、本月、本季度、今年,rangeType 为 month、quarter、year 时以此类推。",
|
|
1564
|
+
"default": "[]",
|
|
1515
1565
|
"attribute": false,
|
|
1516
1566
|
"type": "presetRangeType[]"
|
|
1517
1567
|
},
|
|
1518
1568
|
{
|
|
1519
1569
|
"name": "validator",
|
|
1570
|
+
"description": "自定义校验函数,返回错误信息字符串或 MessageBody 对象,返回空字符串表示校验通过。",
|
|
1520
1571
|
"attribute": false,
|
|
1521
1572
|
"type": "((value: any) => MessageBody | string)"
|
|
1522
1573
|
}
|
|
@@ -1524,8 +1575,9 @@
|
|
|
1524
1575
|
"events": [
|
|
1525
1576
|
{
|
|
1526
1577
|
"name": "change",
|
|
1527
|
-
"description": "
|
|
1578
|
+
"description": "",
|
|
1528
1579
|
"detail": {
|
|
1580
|
+
"description": "{ startTime: 开始时间字符串, endTime: 结束时间字符串 }",
|
|
1529
1581
|
"type": "TimeRange"
|
|
1530
1582
|
}
|
|
1531
1583
|
}
|
|
@@ -1605,6 +1657,7 @@
|
|
|
1605
1657
|
"name": "change",
|
|
1606
1658
|
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1607
1659
|
"detail": {
|
|
1660
|
+
"description": "选中的颜色值,格式由 format 属性决定(hex/rgb/hsb),清除时为 undefined",
|
|
1608
1661
|
"type": "string | undefined"
|
|
1609
1662
|
}
|
|
1610
1663
|
}
|
|
@@ -1612,7 +1665,127 @@
|
|
|
1612
1665
|
"slots": [],
|
|
1613
1666
|
"methods": [],
|
|
1614
1667
|
"parts": [],
|
|
1615
|
-
"description": "
|
|
1668
|
+
"description": "颜色选择器",
|
|
1669
|
+
"category": "form-input-basic"
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"name": "eo-form-item",
|
|
1673
|
+
"alias": [
|
|
1674
|
+
"form.general-form-item"
|
|
1675
|
+
],
|
|
1676
|
+
"properties": [
|
|
1677
|
+
{
|
|
1678
|
+
"name": "formElement",
|
|
1679
|
+
"attribute": false,
|
|
1680
|
+
"type": "Form"
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
"name": "curElement",
|
|
1684
|
+
"attribute": false,
|
|
1685
|
+
"type": "HTMLElement"
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"name": "name",
|
|
1689
|
+
"description": "字段名称",
|
|
1690
|
+
"type": "string"
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"name": "label",
|
|
1694
|
+
"description": "标签文字",
|
|
1695
|
+
"type": "string"
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
"name": "pattern",
|
|
1699
|
+
"description": "正则校验规则",
|
|
1700
|
+
"type": "string"
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
"name": "message",
|
|
1704
|
+
"description": "校验失败时的提示信息",
|
|
1705
|
+
"attribute": false,
|
|
1706
|
+
"type": "Record<string, string>"
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"name": "type",
|
|
1710
|
+
"description": "校验类型",
|
|
1711
|
+
"type": "string"
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
"name": "max",
|
|
1715
|
+
"description": "表单校验最大值(当 type 为 number 时表示最大数值,否则表示最大长度)",
|
|
1716
|
+
"type": "number"
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"name": "min",
|
|
1720
|
+
"description": "表单校验最小值(当 type 为 number 时表示最小数值,否则表示最小长度)",
|
|
1721
|
+
"type": "number"
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"name": "required",
|
|
1725
|
+
"description": "表单项是否为必填",
|
|
1726
|
+
"type": "boolean"
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
"name": "value",
|
|
1730
|
+
"description": "初始值",
|
|
1731
|
+
"type": "string"
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
"name": "valuePropsName",
|
|
1735
|
+
"description": "子构件中对应值的属性名",
|
|
1736
|
+
"default": "\"value\"",
|
|
1737
|
+
"type": "string"
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
"name": "layout",
|
|
1741
|
+
"description": "布局方式",
|
|
1742
|
+
"type": "Layout"
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
"name": "size",
|
|
1746
|
+
"description": "尺寸",
|
|
1747
|
+
"type": "ComponentSize"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"name": "trim",
|
|
1751
|
+
"description": "是否自动去除前后的空白字符",
|
|
1752
|
+
"default": "true"
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
"name": "trigger",
|
|
1756
|
+
"description": "事件触发方法名",
|
|
1757
|
+
"default": "\"onChange\"",
|
|
1758
|
+
"type": "string"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"name": "validator",
|
|
1762
|
+
"description": "表单项校验方法",
|
|
1763
|
+
"attribute": false,
|
|
1764
|
+
"type": "((value: any) => MessageBody)"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"name": "needValidate",
|
|
1768
|
+
"description": "值变化时是否主动触发校验",
|
|
1769
|
+
"type": "boolean"
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"name": "textContent",
|
|
1773
|
+
"type": "string",
|
|
1774
|
+
"description": "文本内容"
|
|
1775
|
+
}
|
|
1776
|
+
],
|
|
1777
|
+
"events": [],
|
|
1778
|
+
"slots": [
|
|
1779
|
+
{
|
|
1780
|
+
"name": null,
|
|
1781
|
+
"description": "表单项内容"
|
|
1782
|
+
}
|
|
1783
|
+
],
|
|
1784
|
+
"methods": [],
|
|
1785
|
+
"parts": [],
|
|
1786
|
+
"description": "表单项构件",
|
|
1787
|
+
"category": "form-input-basic",
|
|
1788
|
+
"insider": true
|
|
1616
1789
|
},
|
|
1617
1790
|
{
|
|
1618
1791
|
"name": "eo-input",
|
|
@@ -1729,8 +1902,9 @@
|
|
|
1729
1902
|
"events": [
|
|
1730
1903
|
{
|
|
1731
1904
|
"name": "change",
|
|
1732
|
-
"description": "
|
|
1905
|
+
"description": "",
|
|
1733
1906
|
"detail": {
|
|
1907
|
+
"description": "当前输入值",
|
|
1734
1908
|
"type": "string"
|
|
1735
1909
|
}
|
|
1736
1910
|
}
|
|
@@ -1757,13 +1931,13 @@
|
|
|
1757
1931
|
{
|
|
1758
1932
|
"name": "focusInput",
|
|
1759
1933
|
"params": [],
|
|
1760
|
-
"description": "
|
|
1934
|
+
"description": "使输入框获得焦点",
|
|
1761
1935
|
"returns": {}
|
|
1762
1936
|
},
|
|
1763
1937
|
{
|
|
1764
1938
|
"name": "blurInput",
|
|
1765
1939
|
"params": [],
|
|
1766
|
-
"description": "
|
|
1940
|
+
"description": "使输入框失去焦点",
|
|
1767
1941
|
"returns": {}
|
|
1768
1942
|
}
|
|
1769
1943
|
],
|
|
@@ -1803,114 +1977,6 @@
|
|
|
1803
1977
|
],
|
|
1804
1978
|
"description": "通用输入框构件",
|
|
1805
1979
|
"category": "form-input-basic"
|
|
1806
|
-
},
|
|
1807
|
-
{
|
|
1808
|
-
"name": "eo-form-item",
|
|
1809
|
-
"alias": [
|
|
1810
|
-
"form.general-form-item"
|
|
1811
|
-
],
|
|
1812
|
-
"properties": [
|
|
1813
|
-
{
|
|
1814
|
-
"name": "formElement",
|
|
1815
|
-
"attribute": false,
|
|
1816
|
-
"type": "Form"
|
|
1817
|
-
},
|
|
1818
|
-
{
|
|
1819
|
-
"name": "curElement",
|
|
1820
|
-
"attribute": false,
|
|
1821
|
-
"type": "HTMLElement"
|
|
1822
|
-
},
|
|
1823
|
-
{
|
|
1824
|
-
"name": "name",
|
|
1825
|
-
"description": "字段名称",
|
|
1826
|
-
"type": "string"
|
|
1827
|
-
},
|
|
1828
|
-
{
|
|
1829
|
-
"name": "label",
|
|
1830
|
-
"type": "string"
|
|
1831
|
-
},
|
|
1832
|
-
{
|
|
1833
|
-
"name": "pattern",
|
|
1834
|
-
"type": "string"
|
|
1835
|
-
},
|
|
1836
|
-
{
|
|
1837
|
-
"name": "message",
|
|
1838
|
-
"attribute": false,
|
|
1839
|
-
"type": "Record<string, string>"
|
|
1840
|
-
},
|
|
1841
|
-
{
|
|
1842
|
-
"name": "type",
|
|
1843
|
-
"type": "string"
|
|
1844
|
-
},
|
|
1845
|
-
{
|
|
1846
|
-
"name": "max",
|
|
1847
|
-
"type": "number"
|
|
1848
|
-
},
|
|
1849
|
-
{
|
|
1850
|
-
"name": "min",
|
|
1851
|
-
"type": "number"
|
|
1852
|
-
},
|
|
1853
|
-
{
|
|
1854
|
-
"name": "required",
|
|
1855
|
-
"description": "表单项是否为必填",
|
|
1856
|
-
"type": "boolean"
|
|
1857
|
-
},
|
|
1858
|
-
{
|
|
1859
|
-
"name": "value",
|
|
1860
|
-
"description": "初始值",
|
|
1861
|
-
"type": "string"
|
|
1862
|
-
},
|
|
1863
|
-
{
|
|
1864
|
-
"name": "valuePropsName",
|
|
1865
|
-
"type": "string"
|
|
1866
|
-
},
|
|
1867
|
-
{
|
|
1868
|
-
"name": "layout",
|
|
1869
|
-
"type": "Layout"
|
|
1870
|
-
},
|
|
1871
|
-
{
|
|
1872
|
-
"name": "size",
|
|
1873
|
-
"type": "ComponentSize"
|
|
1874
|
-
},
|
|
1875
|
-
{
|
|
1876
|
-
"name": "trim",
|
|
1877
|
-
"description": "是否自动去除前后的空白字符",
|
|
1878
|
-
"default": "true"
|
|
1879
|
-
},
|
|
1880
|
-
{
|
|
1881
|
-
"name": "trigger",
|
|
1882
|
-
"description": "事件触发方法名",
|
|
1883
|
-
"type": "string"
|
|
1884
|
-
},
|
|
1885
|
-
{
|
|
1886
|
-
"name": "validator",
|
|
1887
|
-
"description": "表单项校验方法",
|
|
1888
|
-
"attribute": false,
|
|
1889
|
-
"type": "((value: any) => MessageBody)"
|
|
1890
|
-
},
|
|
1891
|
-
{
|
|
1892
|
-
"name": "needValidate",
|
|
1893
|
-
"description": "值变化时是否主动出发校验",
|
|
1894
|
-
"type": "boolean"
|
|
1895
|
-
},
|
|
1896
|
-
{
|
|
1897
|
-
"name": "textContent",
|
|
1898
|
-
"type": "string",
|
|
1899
|
-
"description": "文本内容"
|
|
1900
|
-
}
|
|
1901
|
-
],
|
|
1902
|
-
"events": [],
|
|
1903
|
-
"slots": [
|
|
1904
|
-
{
|
|
1905
|
-
"name": null,
|
|
1906
|
-
"description": "表单项内容"
|
|
1907
|
-
}
|
|
1908
|
-
],
|
|
1909
|
-
"methods": [],
|
|
1910
|
-
"parts": [],
|
|
1911
|
-
"description": "通用输入框构件",
|
|
1912
|
-
"category": "form-input-basic",
|
|
1913
|
-
"insider": true
|
|
1914
1980
|
}
|
|
1915
1981
|
],
|
|
1916
1982
|
"providers": []
|