@next-bricks/form 1.4.0 → 1.5.1
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 +31 -31
- package/dist/chunks/4036.c15cefd1.js +2 -0
- package/dist/chunks/4036.c15cefd1.js.map +1 -0
- package/dist/chunks/eo-auto-complete.5e346e2a.js +3 -0
- package/dist/chunks/eo-auto-complete.5e346e2a.js.map +1 -0
- package/dist/chunks/eo-textarea.d6733bd8.js +3 -0
- package/dist/chunks/eo-textarea.d6733bd8.js.map +1 -0
- package/dist/chunks/{main.69f95aa1.js → main.6be2388a.js} +2 -2
- package/dist/chunks/{main.69f95aa1.js.map → main.6be2388a.js.map} +1 -1
- package/dist/examples.json +11 -11
- package/dist/{index.9caa172c.js → index.cb8a3748.js} +2 -2
- package/dist/{index.9caa172c.js.map → index.cb8a3748.js.map} +1 -1
- package/dist/manifest.json +474 -474
- package/dist/types.json +1249 -1249
- package/dist-types/auto-complete/index.d.ts +12 -6
- package/package.json +2 -2
- package/dist/chunks/4036.697bb7d5.js +0 -2
- package/dist/chunks/4036.697bb7d5.js.map +0 -1
- package/dist/chunks/eo-auto-complete.942854e5.js +0 -3
- package/dist/chunks/eo-auto-complete.942854e5.js.map +0 -1
- package/dist/chunks/eo-textarea.c632fed0.js +0 -3
- package/dist/chunks/eo-textarea.c632fed0.js.map +0 -1
- /package/dist/chunks/{eo-auto-complete.942854e5.js.LICENSE.txt → eo-auto-complete.5e346e2a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-textarea.c632fed0.js.LICENSE.txt → eo-textarea.d6733bd8.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -189,11 +189,21 @@
|
|
|
189
189
|
"category": "form-input-basic"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
"name": "eo-
|
|
192
|
+
"name": "eo-form-item",
|
|
193
193
|
"alias": [
|
|
194
|
-
"form.general-
|
|
194
|
+
"form.general-form-item"
|
|
195
195
|
],
|
|
196
196
|
"properties": [
|
|
197
|
+
{
|
|
198
|
+
"name": "formElement",
|
|
199
|
+
"attribute": false,
|
|
200
|
+
"type": "Form"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "curElement",
|
|
204
|
+
"attribute": false,
|
|
205
|
+
"type": "HTMLElement"
|
|
206
|
+
},
|
|
197
207
|
{
|
|
198
208
|
"name": "name",
|
|
199
209
|
"description": "字段名称",
|
|
@@ -201,82 +211,178 @@
|
|
|
201
211
|
},
|
|
202
212
|
{
|
|
203
213
|
"name": "label",
|
|
204
|
-
"description": "标签文字",
|
|
205
214
|
"type": "string"
|
|
206
215
|
},
|
|
216
|
+
{
|
|
217
|
+
"name": "pattern",
|
|
218
|
+
"type": "string"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "message",
|
|
222
|
+
"attribute": false,
|
|
223
|
+
"type": "Record<string, string>"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "max",
|
|
227
|
+
"type": "number"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "min",
|
|
231
|
+
"type": "number"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "required",
|
|
235
|
+
"description": "表单项是否必填",
|
|
236
|
+
"type": "boolean"
|
|
237
|
+
},
|
|
207
238
|
{
|
|
208
239
|
"name": "value",
|
|
209
|
-
"description": "
|
|
240
|
+
"description": "初始值",
|
|
210
241
|
"type": "string"
|
|
211
242
|
},
|
|
212
243
|
{
|
|
213
|
-
"name": "
|
|
214
|
-
"description": "占位说明",
|
|
244
|
+
"name": "valuePropsName",
|
|
215
245
|
"type": "string"
|
|
216
246
|
},
|
|
217
247
|
{
|
|
218
|
-
"name": "
|
|
219
|
-
"
|
|
220
|
-
"type": "boolean"
|
|
248
|
+
"name": "layout",
|
|
249
|
+
"type": "Layout"
|
|
221
250
|
},
|
|
222
251
|
{
|
|
223
|
-
"name": "
|
|
224
|
-
"
|
|
225
|
-
"type": "number"
|
|
252
|
+
"name": "size",
|
|
253
|
+
"type": "ComponentSize"
|
|
226
254
|
},
|
|
227
255
|
{
|
|
228
|
-
"name": "
|
|
229
|
-
"description": "
|
|
230
|
-
"
|
|
256
|
+
"name": "trim",
|
|
257
|
+
"description": "是否自动去除前后的空白字符",
|
|
258
|
+
"default": "true"
|
|
231
259
|
},
|
|
232
260
|
{
|
|
233
|
-
"name": "
|
|
234
|
-
"description": "
|
|
261
|
+
"name": "trigger",
|
|
262
|
+
"description": "事件触发方法名",
|
|
263
|
+
"type": "string"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "validator",
|
|
267
|
+
"description": "表单项校验方法",
|
|
235
268
|
"attribute": false,
|
|
236
|
-
"type": "
|
|
269
|
+
"type": "((value: any) => MessageBody)"
|
|
237
270
|
},
|
|
238
271
|
{
|
|
239
|
-
"name": "
|
|
240
|
-
"description": "
|
|
272
|
+
"name": "needValidate",
|
|
273
|
+
"description": "值变化时是否主动出发校验",
|
|
241
274
|
"type": "boolean"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"events": [],
|
|
278
|
+
"slots": [
|
|
279
|
+
{
|
|
280
|
+
"name": null,
|
|
281
|
+
"description": "表单项内容"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"methods": [],
|
|
285
|
+
"parts": [],
|
|
286
|
+
"description": "通用输入框构件",
|
|
287
|
+
"category": "form-input-basic",
|
|
288
|
+
"insider": true
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "eo-radio",
|
|
292
|
+
"alias": [
|
|
293
|
+
"form.general-radio"
|
|
294
|
+
],
|
|
295
|
+
"properties": [
|
|
296
|
+
{
|
|
297
|
+
"name": "name",
|
|
298
|
+
"description": "下拉框字段名",
|
|
299
|
+
"type": "string"
|
|
242
300
|
},
|
|
243
301
|
{
|
|
244
|
-
"name": "
|
|
245
|
-
"description": "
|
|
246
|
-
"type": "
|
|
302
|
+
"name": "label",
|
|
303
|
+
"description": "单选框字段说明",
|
|
304
|
+
"type": "string"
|
|
247
305
|
},
|
|
248
306
|
{
|
|
249
|
-
"name": "
|
|
250
|
-
"description": "
|
|
251
|
-
"
|
|
307
|
+
"name": "options",
|
|
308
|
+
"description": "单选框选项表",
|
|
309
|
+
"required": true,
|
|
310
|
+
"attribute": false,
|
|
311
|
+
"type": "GeneralOption[]"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "value",
|
|
315
|
+
"description": "单选框当前选中始值",
|
|
316
|
+
"attribute": false,
|
|
317
|
+
"type": "any"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "required",
|
|
321
|
+
"description": "是否必填",
|
|
322
|
+
"type": "boolean"
|
|
252
323
|
},
|
|
253
324
|
{
|
|
254
325
|
"name": "message",
|
|
255
|
-
"description": "
|
|
326
|
+
"description": "校验文本信息",
|
|
256
327
|
"attribute": false,
|
|
257
328
|
"type": "Record<string, string>"
|
|
258
329
|
},
|
|
259
330
|
{
|
|
260
|
-
"name": "
|
|
261
|
-
"description": "
|
|
331
|
+
"name": "disabled",
|
|
332
|
+
"description": "是否禁用",
|
|
333
|
+
"type": "boolean"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "type",
|
|
337
|
+
"description": "单选框样式类型",
|
|
338
|
+
"default": "\"default\"",
|
|
339
|
+
"type": "RadioType"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "ui",
|
|
343
|
+
"description": "UI样式",
|
|
344
|
+
"default": "\"default\"",
|
|
345
|
+
"type": "UIType"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "size",
|
|
349
|
+
"description": "大小,只对按钮样式生效",
|
|
350
|
+
"default": "\"medium\"",
|
|
351
|
+
"type": "ComponentSize"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "customStyle",
|
|
355
|
+
"description": "自定义radio的外层样式",
|
|
262
356
|
"attribute": false,
|
|
263
357
|
"type": "React.CSSProperties"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "useBrick",
|
|
361
|
+
"description": "自定义radio的内容",
|
|
362
|
+
"attribute": false,
|
|
363
|
+
"type": "UseSingleBrickConf"
|
|
264
364
|
}
|
|
265
365
|
],
|
|
266
366
|
"events": [
|
|
267
367
|
{
|
|
268
368
|
"name": "change",
|
|
269
|
-
"description": "",
|
|
369
|
+
"description": "值变化事件",
|
|
270
370
|
"detail": {
|
|
271
|
-
"
|
|
272
|
-
|
|
371
|
+
"type": "GeneralComplexOption | undefined"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "options.change",
|
|
376
|
+
"description": "选项列表变化事件",
|
|
377
|
+
"detail": {
|
|
378
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
273
379
|
}
|
|
274
380
|
}
|
|
275
381
|
],
|
|
276
382
|
"slots": [],
|
|
277
383
|
"methods": [],
|
|
278
384
|
"parts": [],
|
|
279
|
-
"description": "
|
|
385
|
+
"description": "通用单选构件",
|
|
280
386
|
"category": "form-input-basic"
|
|
281
387
|
},
|
|
282
388
|
{
|
|
@@ -411,119 +517,71 @@
|
|
|
411
517
|
"category": "form-input-basic"
|
|
412
518
|
},
|
|
413
519
|
{
|
|
414
|
-
"name": "eo-
|
|
520
|
+
"name": "eo-submit-buttons",
|
|
415
521
|
"alias": [
|
|
416
|
-
"form.
|
|
522
|
+
"form.submit-buttons"
|
|
417
523
|
],
|
|
418
524
|
"properties": [
|
|
419
525
|
{
|
|
420
|
-
"name": "
|
|
421
|
-
"description": "
|
|
526
|
+
"name": "submitText",
|
|
527
|
+
"description": "提交按钮的文字",
|
|
528
|
+
"default": "\"提交\"",
|
|
422
529
|
"type": "string"
|
|
423
530
|
},
|
|
424
531
|
{
|
|
425
|
-
"name": "
|
|
426
|
-
"description": "
|
|
532
|
+
"name": "cancelText",
|
|
533
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
427
534
|
"type": "string"
|
|
428
535
|
},
|
|
429
536
|
{
|
|
430
|
-
"name": "
|
|
431
|
-
"description": "
|
|
432
|
-
"required": true,
|
|
433
|
-
"attribute": false,
|
|
434
|
-
"type": "GeneralOption[]"
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
"name": "value",
|
|
438
|
-
"description": "单选框当前选中始值",
|
|
439
|
-
"attribute": false,
|
|
440
|
-
"type": "any"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"name": "required",
|
|
444
|
-
"description": "是否必填",
|
|
537
|
+
"name": "disableAfterClick",
|
|
538
|
+
"description": "点击确定按钮后自动禁用",
|
|
445
539
|
"type": "boolean"
|
|
446
540
|
},
|
|
447
541
|
{
|
|
448
|
-
"name": "
|
|
449
|
-
"description": "
|
|
450
|
-
"attribute": false,
|
|
451
|
-
"type": "Record<string, string>"
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
"name": "disabled",
|
|
455
|
-
"description": "是否禁用",
|
|
542
|
+
"name": "submitDisabled",
|
|
543
|
+
"description": "禁用提交按钮",
|
|
456
544
|
"type": "boolean"
|
|
457
545
|
},
|
|
458
546
|
{
|
|
459
|
-
"name": "
|
|
460
|
-
"description": "
|
|
461
|
-
"
|
|
462
|
-
"type": "RadioType"
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
"name": "ui",
|
|
466
|
-
"description": "UI样式",
|
|
467
|
-
"default": "\"default\"",
|
|
468
|
-
"type": "UIType"
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
"name": "size",
|
|
472
|
-
"description": "大小,只对按钮样式生效",
|
|
473
|
-
"default": "\"medium\"",
|
|
474
|
-
"type": "ComponentSize"
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
"name": "customStyle",
|
|
478
|
-
"description": "自定义radio的外层样式",
|
|
479
|
-
"attribute": false,
|
|
480
|
-
"type": "React.CSSProperties"
|
|
547
|
+
"name": "submitType",
|
|
548
|
+
"description": "提交按钮类型",
|
|
549
|
+
"type": "ButtonType"
|
|
481
550
|
},
|
|
482
551
|
{
|
|
483
|
-
"name": "
|
|
484
|
-
"description": "
|
|
485
|
-
"
|
|
486
|
-
"type": "UseSingleBrickConf"
|
|
552
|
+
"name": "cancelType",
|
|
553
|
+
"description": "取消按钮类型",
|
|
554
|
+
"type": "ButtonType"
|
|
487
555
|
}
|
|
488
556
|
],
|
|
489
557
|
"events": [
|
|
490
558
|
{
|
|
491
|
-
"name": "
|
|
492
|
-
"description": "
|
|
559
|
+
"name": "submit",
|
|
560
|
+
"description": "点击提交按钮触发的事件",
|
|
493
561
|
"detail": {
|
|
494
|
-
"type": "
|
|
562
|
+
"type": "void"
|
|
495
563
|
}
|
|
496
564
|
},
|
|
497
565
|
{
|
|
498
|
-
"name": "
|
|
499
|
-
"description": "
|
|
566
|
+
"name": "cancel",
|
|
567
|
+
"description": "点击取消按钮触发的事件",
|
|
500
568
|
"detail": {
|
|
501
|
-
"type": "
|
|
569
|
+
"type": "void"
|
|
502
570
|
}
|
|
503
571
|
}
|
|
504
572
|
],
|
|
505
573
|
"slots": [],
|
|
506
574
|
"methods": [],
|
|
507
575
|
"parts": [],
|
|
508
|
-
"description": "
|
|
576
|
+
"description": "表单提交按钮",
|
|
509
577
|
"category": "form-input-basic"
|
|
510
578
|
},
|
|
511
579
|
{
|
|
512
|
-
"name": "eo-
|
|
580
|
+
"name": "eo-checkbox",
|
|
513
581
|
"alias": [
|
|
514
|
-
"form.general-
|
|
582
|
+
"form.general-checkbox"
|
|
515
583
|
],
|
|
516
584
|
"properties": [
|
|
517
|
-
{
|
|
518
|
-
"name": "formElement",
|
|
519
|
-
"attribute": false,
|
|
520
|
-
"type": "Form"
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
"name": "curElement",
|
|
524
|
-
"attribute": false,
|
|
525
|
-
"type": "HTMLElement"
|
|
526
|
-
},
|
|
527
585
|
{
|
|
528
586
|
"name": "name",
|
|
529
587
|
"description": "字段名称",
|
|
@@ -531,86 +589,89 @@
|
|
|
531
589
|
},
|
|
532
590
|
{
|
|
533
591
|
"name": "label",
|
|
592
|
+
"description": "字段说明",
|
|
534
593
|
"type": "string"
|
|
535
594
|
},
|
|
536
595
|
{
|
|
537
|
-
"name": "
|
|
538
|
-
"
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
"name": "message",
|
|
596
|
+
"name": "value",
|
|
597
|
+
"description": "值",
|
|
542
598
|
"attribute": false,
|
|
543
|
-
"type": "
|
|
599
|
+
"type": "CheckboxValueType[]"
|
|
544
600
|
},
|
|
545
601
|
{
|
|
546
|
-
"name": "
|
|
547
|
-
"
|
|
602
|
+
"name": "options",
|
|
603
|
+
"description": "多选框选项表",
|
|
604
|
+
"required": true,
|
|
605
|
+
"default": "[]",
|
|
606
|
+
"attribute": false,
|
|
607
|
+
"type": "CheckboxOptionType[]"
|
|
548
608
|
},
|
|
549
609
|
{
|
|
550
|
-
"name": "
|
|
551
|
-
"
|
|
610
|
+
"name": "type",
|
|
611
|
+
"description": "类型",
|
|
612
|
+
"default": "\"default\"",
|
|
613
|
+
"type": "CheckboxType"
|
|
552
614
|
},
|
|
553
615
|
{
|
|
554
|
-
"name": "
|
|
555
|
-
"description": "
|
|
616
|
+
"name": "disabled",
|
|
617
|
+
"description": "是否禁用",
|
|
556
618
|
"type": "boolean"
|
|
557
619
|
},
|
|
558
620
|
{
|
|
559
|
-
"name": "
|
|
560
|
-
"description": "
|
|
561
|
-
"
|
|
562
|
-
|
|
563
|
-
{
|
|
564
|
-
"name": "valuePropsName",
|
|
565
|
-
"type": "string"
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
"name": "layout",
|
|
569
|
-
"type": "Layout"
|
|
621
|
+
"name": "isCustom",
|
|
622
|
+
"description": "是否为自定义",
|
|
623
|
+
"default": "false",
|
|
624
|
+
"type": "boolean"
|
|
570
625
|
},
|
|
571
626
|
{
|
|
572
|
-
"name": "
|
|
573
|
-
"
|
|
627
|
+
"name": "required",
|
|
628
|
+
"description": "是否必填",
|
|
629
|
+
"type": "boolean"
|
|
574
630
|
},
|
|
575
631
|
{
|
|
576
|
-
"name": "
|
|
577
|
-
"description": "
|
|
578
|
-
"
|
|
632
|
+
"name": "message",
|
|
633
|
+
"description": "校验文本",
|
|
634
|
+
"attribute": false,
|
|
635
|
+
"type": "Record<string, string>"
|
|
579
636
|
},
|
|
580
637
|
{
|
|
581
|
-
"name": "
|
|
582
|
-
"description": "
|
|
583
|
-
"type": "
|
|
638
|
+
"name": "isGroup",
|
|
639
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
640
|
+
"type": "boolean"
|
|
584
641
|
},
|
|
585
642
|
{
|
|
586
|
-
"name": "
|
|
587
|
-
"description": "
|
|
643
|
+
"name": "optionGroups",
|
|
644
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
588
645
|
"attribute": false,
|
|
589
|
-
"type": "
|
|
590
|
-
},
|
|
591
|
-
{
|
|
592
|
-
"name": "needValidate",
|
|
593
|
-
"description": "值变化时是否主动出发校验",
|
|
594
|
-
"type": "boolean"
|
|
646
|
+
"type": "OptionGroup[]"
|
|
595
647
|
}
|
|
596
648
|
],
|
|
597
|
-
"events": [
|
|
598
|
-
"slots": [
|
|
649
|
+
"events": [
|
|
599
650
|
{
|
|
600
|
-
"name":
|
|
601
|
-
"description": "
|
|
651
|
+
"name": "change",
|
|
652
|
+
"description": "复选框变化事件",
|
|
653
|
+
"detail": {
|
|
654
|
+
"type": "CheckboxOptionType[]"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "options.change",
|
|
659
|
+
"description": "复选框变化事件",
|
|
660
|
+
"detail": {
|
|
661
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
662
|
+
}
|
|
602
663
|
}
|
|
603
664
|
],
|
|
665
|
+
"slots": [],
|
|
604
666
|
"methods": [],
|
|
605
667
|
"parts": [],
|
|
606
|
-
"description": "
|
|
607
|
-
"category": "form-input-basic"
|
|
608
|
-
"insider": true
|
|
668
|
+
"description": "表单复选框构件",
|
|
669
|
+
"category": "form-input-basic"
|
|
609
670
|
},
|
|
610
671
|
{
|
|
611
|
-
"name": "eo-
|
|
672
|
+
"name": "eo-textarea",
|
|
612
673
|
"alias": [
|
|
613
|
-
"form.general-
|
|
674
|
+
"form.general-textarea"
|
|
614
675
|
],
|
|
615
676
|
"properties": [
|
|
616
677
|
{
|
|
@@ -618,201 +679,243 @@
|
|
|
618
679
|
"description": "字段名称",
|
|
619
680
|
"type": "string"
|
|
620
681
|
},
|
|
682
|
+
{
|
|
683
|
+
"name": "label",
|
|
684
|
+
"description": "标签文字",
|
|
685
|
+
"type": "string"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "value",
|
|
689
|
+
"description": "值",
|
|
690
|
+
"type": "string"
|
|
691
|
+
},
|
|
621
692
|
{
|
|
622
693
|
"name": "placeholder",
|
|
623
694
|
"description": "占位说明",
|
|
624
695
|
"type": "string"
|
|
625
696
|
},
|
|
626
697
|
{
|
|
627
|
-
"name": "
|
|
628
|
-
"description": "
|
|
629
|
-
"type": "
|
|
698
|
+
"name": "disabled",
|
|
699
|
+
"description": "是否禁用",
|
|
700
|
+
"type": "boolean"
|
|
630
701
|
},
|
|
631
702
|
{
|
|
632
|
-
"name": "
|
|
633
|
-
"description": "
|
|
634
|
-
"
|
|
635
|
-
"attribute": false,
|
|
636
|
-
"type": "GeneralComplexOption[]"
|
|
703
|
+
"name": "minLength",
|
|
704
|
+
"description": "最小长度",
|
|
705
|
+
"type": "number"
|
|
637
706
|
},
|
|
638
707
|
{
|
|
639
|
-
"name": "
|
|
640
|
-
"description": "
|
|
708
|
+
"name": "maxLength",
|
|
709
|
+
"description": "最大长度",
|
|
710
|
+
"type": "number"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"name": "autoSize",
|
|
714
|
+
"description": "大小自适应",
|
|
641
715
|
"attribute": false,
|
|
642
|
-
"type": "
|
|
716
|
+
"type": "AutoSize"
|
|
643
717
|
},
|
|
644
718
|
{
|
|
645
719
|
"name": "required",
|
|
646
720
|
"description": "是否必填",
|
|
647
721
|
"type": "boolean"
|
|
648
722
|
},
|
|
723
|
+
{
|
|
724
|
+
"name": "max",
|
|
725
|
+
"description": "表单校验最大长度",
|
|
726
|
+
"type": "number"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"name": "min",
|
|
730
|
+
"description": "表单校验最小长度",
|
|
731
|
+
"type": "number"
|
|
732
|
+
},
|
|
649
733
|
{
|
|
650
734
|
"name": "message",
|
|
651
|
-
"description": "
|
|
735
|
+
"description": "校验信息",
|
|
652
736
|
"attribute": false,
|
|
653
737
|
"type": "Record<string, string>"
|
|
654
738
|
},
|
|
655
739
|
{
|
|
656
|
-
"name": "
|
|
657
|
-
"description": "
|
|
658
|
-
"
|
|
659
|
-
|
|
740
|
+
"name": "textareaStyle",
|
|
741
|
+
"description": "自定义样式",
|
|
742
|
+
"attribute": false,
|
|
743
|
+
"type": "React.CSSProperties"
|
|
744
|
+
}
|
|
745
|
+
],
|
|
746
|
+
"events": [
|
|
660
747
|
{
|
|
661
|
-
"name": "
|
|
662
|
-
"description": "
|
|
663
|
-
"
|
|
748
|
+
"name": "change",
|
|
749
|
+
"description": "",
|
|
750
|
+
"detail": {
|
|
751
|
+
"description": null,
|
|
752
|
+
"type": "string"
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
],
|
|
756
|
+
"slots": [],
|
|
757
|
+
"methods": [],
|
|
758
|
+
"parts": [],
|
|
759
|
+
"description": "通用多行文本输入框构件",
|
|
760
|
+
"category": "form-input-basic"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"name": "eo-dynamic-form-item",
|
|
764
|
+
"alias": [
|
|
765
|
+
"form.dynamic-form-item"
|
|
766
|
+
],
|
|
767
|
+
"properties": [
|
|
768
|
+
{
|
|
769
|
+
"name": "name",
|
|
770
|
+
"description": "字段名称",
|
|
771
|
+
"type": "string"
|
|
664
772
|
},
|
|
665
773
|
{
|
|
666
|
-
"name": "
|
|
667
|
-
"description": "
|
|
668
|
-
"
|
|
669
|
-
"type": "string[]"
|
|
774
|
+
"name": "label",
|
|
775
|
+
"description": "字段说明",
|
|
776
|
+
"type": "string"
|
|
670
777
|
},
|
|
671
778
|
{
|
|
672
|
-
"name": "
|
|
673
|
-
"description": "
|
|
674
|
-
"type": "
|
|
779
|
+
"name": "required",
|
|
780
|
+
"description": "是否必填",
|
|
781
|
+
"type": "boolean"
|
|
675
782
|
},
|
|
676
783
|
{
|
|
677
|
-
"name": "
|
|
678
|
-
"description": "
|
|
679
|
-
"
|
|
784
|
+
"name": "value",
|
|
785
|
+
"description": "值",
|
|
786
|
+
"attribute": false,
|
|
787
|
+
"type": "DynamicFormValuesItem[]"
|
|
680
788
|
},
|
|
681
789
|
{
|
|
682
|
-
"name": "
|
|
683
|
-
"description": "",
|
|
790
|
+
"name": "message",
|
|
791
|
+
"description": "校验文本",
|
|
684
792
|
"attribute": false,
|
|
685
|
-
"type": "
|
|
793
|
+
"type": "Record<string, string>"
|
|
686
794
|
},
|
|
687
795
|
{
|
|
688
|
-
"name": "
|
|
689
|
-
"description": "
|
|
690
|
-
"
|
|
691
|
-
"type": "boolean"
|
|
796
|
+
"name": "hideRemoveButton",
|
|
797
|
+
"description": "是否隐藏每一行删除的按钮",
|
|
798
|
+
"attribute": false,
|
|
799
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
692
800
|
},
|
|
693
801
|
{
|
|
694
|
-
"name": "
|
|
695
|
-
"description": "
|
|
802
|
+
"name": "disabledRemoveButton",
|
|
803
|
+
"description": "是否禁止每一行删除的按钮",
|
|
696
804
|
"attribute": false,
|
|
697
|
-
"type": "
|
|
805
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
698
806
|
},
|
|
699
807
|
{
|
|
700
|
-
"name": "
|
|
701
|
-
"description": "
|
|
808
|
+
"name": "hideAddButton",
|
|
809
|
+
"description": "是否隐藏添加的按钮",
|
|
702
810
|
"attribute": false,
|
|
703
|
-
"type": "
|
|
811
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
704
812
|
},
|
|
705
813
|
{
|
|
706
|
-
"name": "
|
|
707
|
-
"
|
|
814
|
+
"name": "disabledAddButton",
|
|
815
|
+
"description": "是否禁止添加的按钮",
|
|
816
|
+
"attribute": false,
|
|
817
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
708
818
|
},
|
|
709
819
|
{
|
|
710
|
-
"name": "
|
|
711
|
-
"description": "
|
|
820
|
+
"name": "useBrick",
|
|
821
|
+
"description": "动态表单子项构件列表",
|
|
712
822
|
"attribute": false,
|
|
713
|
-
"type": "
|
|
823
|
+
"type": "UseBrickConf"
|
|
714
824
|
}
|
|
715
825
|
],
|
|
716
826
|
"events": [
|
|
717
827
|
{
|
|
718
828
|
"name": "change",
|
|
719
|
-
"description": "下拉选择事件",
|
|
720
829
|
"detail": {
|
|
721
|
-
"type": "
|
|
722
|
-
}
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
"name": "search",
|
|
726
|
-
"description": "下拉框search事件",
|
|
727
|
-
"detail": {
|
|
728
|
-
"type": "{\n value: string;\n }"
|
|
830
|
+
"type": "DynamicFormValuesItem[]"
|
|
729
831
|
}
|
|
730
832
|
},
|
|
731
833
|
{
|
|
732
|
-
"name": "
|
|
733
|
-
"description": "
|
|
834
|
+
"name": "row.add",
|
|
835
|
+
"description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
|
|
734
836
|
"detail": {
|
|
735
|
-
"type": "
|
|
837
|
+
"type": "rowDataType"
|
|
736
838
|
}
|
|
737
839
|
},
|
|
738
840
|
{
|
|
739
|
-
"name": "
|
|
740
|
-
"description": "
|
|
841
|
+
"name": "row.remove",
|
|
842
|
+
"description": "移除一行时触发,detail为该行的值,index为该行的位置",
|
|
741
843
|
"detail": {
|
|
742
|
-
"type": "
|
|
844
|
+
"type": "rowDataType"
|
|
743
845
|
}
|
|
744
846
|
}
|
|
745
847
|
],
|
|
746
848
|
"slots": [],
|
|
747
849
|
"methods": [],
|
|
748
850
|
"parts": [],
|
|
749
|
-
"description": "
|
|
851
|
+
"description": "动态表单",
|
|
750
852
|
"category": "form-input-basic"
|
|
751
853
|
},
|
|
752
854
|
{
|
|
753
|
-
"name": "eo-
|
|
855
|
+
"name": "eo-search",
|
|
754
856
|
"alias": [
|
|
755
|
-
"form.
|
|
857
|
+
"form.general-search"
|
|
756
858
|
],
|
|
757
859
|
"properties": [
|
|
758
860
|
{
|
|
759
|
-
"name": "
|
|
760
|
-
"description": "
|
|
761
|
-
"default": "\"
|
|
861
|
+
"name": "value",
|
|
862
|
+
"description": "搜索框的值",
|
|
863
|
+
"default": "\"\"",
|
|
762
864
|
"type": "string"
|
|
763
865
|
},
|
|
764
866
|
{
|
|
765
|
-
"name": "
|
|
766
|
-
"description": "
|
|
867
|
+
"name": "placeholder",
|
|
868
|
+
"description": "提示语",
|
|
767
869
|
"type": "string"
|
|
768
870
|
},
|
|
769
871
|
{
|
|
770
|
-
"name": "
|
|
771
|
-
"description": "
|
|
872
|
+
"name": "autoFocus",
|
|
873
|
+
"description": "是否自动聚焦",
|
|
772
874
|
"type": "boolean"
|
|
773
875
|
},
|
|
774
876
|
{
|
|
775
|
-
"name": "
|
|
776
|
-
"description": "
|
|
877
|
+
"name": "clearable",
|
|
878
|
+
"description": "可以点击清除图标删除内容",
|
|
777
879
|
"type": "boolean"
|
|
778
880
|
},
|
|
779
881
|
{
|
|
780
|
-
"name": "
|
|
781
|
-
"description": "
|
|
782
|
-
"type": "
|
|
882
|
+
"name": "trim",
|
|
883
|
+
"description": "是否剔除前后空格",
|
|
884
|
+
"type": "boolean"
|
|
783
885
|
},
|
|
784
886
|
{
|
|
785
|
-
"name": "
|
|
786
|
-
"description": "
|
|
787
|
-
"
|
|
887
|
+
"name": "debounceTime",
|
|
888
|
+
"description": "默认延迟时间",
|
|
889
|
+
"default": "0",
|
|
890
|
+
"type": "number"
|
|
788
891
|
}
|
|
789
892
|
],
|
|
790
893
|
"events": [
|
|
791
894
|
{
|
|
792
|
-
"name": "
|
|
793
|
-
"description": "
|
|
895
|
+
"name": "change",
|
|
896
|
+
"description": "输入的搜索字符,输入变化时触发",
|
|
794
897
|
"detail": {
|
|
795
|
-
"type": "
|
|
898
|
+
"type": "string"
|
|
796
899
|
}
|
|
797
900
|
},
|
|
798
901
|
{
|
|
799
|
-
"name": "
|
|
800
|
-
"description": "
|
|
902
|
+
"name": "search",
|
|
903
|
+
"description": "搜索时触发",
|
|
801
904
|
"detail": {
|
|
802
|
-
"type": "
|
|
905
|
+
"type": "string"
|
|
803
906
|
}
|
|
804
907
|
}
|
|
805
908
|
],
|
|
806
909
|
"slots": [],
|
|
807
910
|
"methods": [],
|
|
808
911
|
"parts": [],
|
|
809
|
-
"description": "
|
|
912
|
+
"description": "搜索框",
|
|
810
913
|
"category": "form-input-basic"
|
|
811
914
|
},
|
|
812
915
|
{
|
|
813
|
-
"name": "eo-
|
|
916
|
+
"name": "eo-select",
|
|
814
917
|
"alias": [
|
|
815
|
-
"form.general-
|
|
918
|
+
"form.general-select"
|
|
816
919
|
],
|
|
817
920
|
"properties": [
|
|
818
921
|
{
|
|
@@ -821,40 +924,27 @@
|
|
|
821
924
|
"type": "string"
|
|
822
925
|
},
|
|
823
926
|
{
|
|
824
|
-
"name": "
|
|
825
|
-
"description": "
|
|
927
|
+
"name": "placeholder",
|
|
928
|
+
"description": "占位说明",
|
|
826
929
|
"type": "string"
|
|
827
930
|
},
|
|
828
931
|
{
|
|
829
|
-
"name": "
|
|
830
|
-
"description": "
|
|
831
|
-
"
|
|
832
|
-
"type": "CheckboxValueType[]"
|
|
932
|
+
"name": "label",
|
|
933
|
+
"description": "字段文本",
|
|
934
|
+
"type": "string"
|
|
833
935
|
},
|
|
834
936
|
{
|
|
835
937
|
"name": "options",
|
|
836
|
-
"description": "
|
|
938
|
+
"description": "选项列表",
|
|
837
939
|
"required": true,
|
|
838
|
-
"default": "[]",
|
|
839
940
|
"attribute": false,
|
|
840
|
-
"type": "
|
|
841
|
-
},
|
|
842
|
-
{
|
|
843
|
-
"name": "type",
|
|
844
|
-
"description": "类型",
|
|
845
|
-
"default": "\"default\"",
|
|
846
|
-
"type": "CheckboxType"
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
"name": "disabled",
|
|
850
|
-
"description": "是否禁用",
|
|
851
|
-
"type": "boolean"
|
|
941
|
+
"type": "GeneralComplexOption[]"
|
|
852
942
|
},
|
|
853
943
|
{
|
|
854
|
-
"name": "
|
|
855
|
-
"description": "
|
|
856
|
-
"
|
|
857
|
-
"type": "
|
|
944
|
+
"name": "value",
|
|
945
|
+
"description": "值",
|
|
946
|
+
"attribute": false,
|
|
947
|
+
"type": "any"
|
|
858
948
|
},
|
|
859
949
|
{
|
|
860
950
|
"name": "required",
|
|
@@ -863,195 +953,105 @@
|
|
|
863
953
|
},
|
|
864
954
|
{
|
|
865
955
|
"name": "message",
|
|
866
|
-
"description": "
|
|
956
|
+
"description": "校验文本信息",
|
|
867
957
|
"attribute": false,
|
|
868
958
|
"type": "Record<string, string>"
|
|
869
959
|
},
|
|
870
960
|
{
|
|
871
|
-
"name": "
|
|
872
|
-
"description": "
|
|
961
|
+
"name": "disabled",
|
|
962
|
+
"description": "是否禁用",
|
|
873
963
|
"type": "boolean"
|
|
874
964
|
},
|
|
875
965
|
{
|
|
876
|
-
"name": "
|
|
877
|
-
"description": "
|
|
878
|
-
"
|
|
879
|
-
"type": "OptionGroup[]"
|
|
880
|
-
}
|
|
881
|
-
],
|
|
882
|
-
"events": [
|
|
883
|
-
{
|
|
884
|
-
"name": "change",
|
|
885
|
-
"description": "复选框变化事件",
|
|
886
|
-
"detail": {
|
|
887
|
-
"type": "CheckboxOptionType[]"
|
|
888
|
-
}
|
|
889
|
-
},
|
|
890
|
-
{
|
|
891
|
-
"name": "options.change",
|
|
892
|
-
"description": "复选框变化事件",
|
|
893
|
-
"detail": {
|
|
894
|
-
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
],
|
|
898
|
-
"slots": [],
|
|
899
|
-
"methods": [],
|
|
900
|
-
"parts": [],
|
|
901
|
-
"description": "表单复选框构件",
|
|
902
|
-
"category": "form-input-basic"
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
"name": "eo-dynamic-form-item",
|
|
906
|
-
"alias": [
|
|
907
|
-
"form.dynamic-form-item"
|
|
908
|
-
],
|
|
909
|
-
"properties": [
|
|
910
|
-
{
|
|
911
|
-
"name": "name",
|
|
912
|
-
"description": "字段名称",
|
|
913
|
-
"type": "string"
|
|
966
|
+
"name": "mode",
|
|
967
|
+
"description": "类型",
|
|
968
|
+
"type": "\"tags\" | \"multiple\""
|
|
914
969
|
},
|
|
915
970
|
{
|
|
916
|
-
"name": "
|
|
917
|
-
"description": "
|
|
918
|
-
"
|
|
971
|
+
"name": "tokenSeparators",
|
|
972
|
+
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
973
|
+
"attribute": false,
|
|
974
|
+
"type": "string[]"
|
|
919
975
|
},
|
|
920
976
|
{
|
|
921
|
-
"name": "
|
|
922
|
-
"description": "
|
|
923
|
-
"type": "
|
|
977
|
+
"name": "maxTagCount",
|
|
978
|
+
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
979
|
+
"type": "number"
|
|
924
980
|
},
|
|
925
981
|
{
|
|
926
|
-
"name": "
|
|
927
|
-
"description": "
|
|
928
|
-
"
|
|
929
|
-
"type": "DynamicFormValuesItem[]"
|
|
982
|
+
"name": "groupBy",
|
|
983
|
+
"description": "分组字段",
|
|
984
|
+
"type": "string"
|
|
930
985
|
},
|
|
931
986
|
{
|
|
932
|
-
"name": "
|
|
933
|
-
"description": "
|
|
987
|
+
"name": "suffix",
|
|
988
|
+
"description": "",
|
|
934
989
|
"attribute": false,
|
|
935
|
-
"type": "
|
|
990
|
+
"type": "UseSingleBrickConf"
|
|
936
991
|
},
|
|
937
992
|
{
|
|
938
|
-
"name": "
|
|
939
|
-
"description": "
|
|
940
|
-
"
|
|
941
|
-
"type": "boolean
|
|
993
|
+
"name": "clearable",
|
|
994
|
+
"description": "是否支持清除",
|
|
995
|
+
"default": "true",
|
|
996
|
+
"type": "boolean"
|
|
942
997
|
},
|
|
943
998
|
{
|
|
944
|
-
"name": "
|
|
945
|
-
"description": "
|
|
999
|
+
"name": "fields",
|
|
1000
|
+
"description": "列表指定字段作为 label 和 value",
|
|
946
1001
|
"attribute": false,
|
|
947
|
-
"type": "
|
|
1002
|
+
"type": "{ label?: string; value?: string }"
|
|
948
1003
|
},
|
|
949
1004
|
{
|
|
950
|
-
"name": "
|
|
951
|
-
"description": "
|
|
1005
|
+
"name": "useBackend",
|
|
1006
|
+
"description": "后端搜索",
|
|
952
1007
|
"attribute": false,
|
|
953
|
-
"type": "
|
|
1008
|
+
"type": "UseBackendConf"
|
|
954
1009
|
},
|
|
955
1010
|
{
|
|
956
|
-
"name": "
|
|
957
|
-
"
|
|
958
|
-
"attribute": false,
|
|
959
|
-
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
1011
|
+
"name": "debounceSearchDelay",
|
|
1012
|
+
"type": "number"
|
|
960
1013
|
},
|
|
961
1014
|
{
|
|
962
|
-
"name": "
|
|
963
|
-
"description": "
|
|
1015
|
+
"name": "inputStyle",
|
|
1016
|
+
"description": "输入框样式",
|
|
964
1017
|
"attribute": false,
|
|
965
|
-
"type": "
|
|
1018
|
+
"type": "React.CSSProperties"
|
|
966
1019
|
}
|
|
967
1020
|
],
|
|
968
1021
|
"events": [
|
|
969
1022
|
{
|
|
970
1023
|
"name": "change",
|
|
1024
|
+
"description": "下拉选择事件",
|
|
971
1025
|
"detail": {
|
|
972
|
-
"type": "
|
|
973
|
-
}
|
|
974
|
-
},
|
|
975
|
-
{
|
|
976
|
-
"name": "row.add",
|
|
977
|
-
"description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
|
|
978
|
-
"detail": {
|
|
979
|
-
"type": "rowDataType"
|
|
1026
|
+
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
980
1027
|
}
|
|
981
1028
|
},
|
|
982
1029
|
{
|
|
983
|
-
"name": "
|
|
984
|
-
"description": "
|
|
1030
|
+
"name": "search",
|
|
1031
|
+
"description": "下拉框search事件",
|
|
985
1032
|
"detail": {
|
|
986
|
-
"type": "
|
|
1033
|
+
"type": "{\n value: string;\n }"
|
|
987
1034
|
}
|
|
988
|
-
}
|
|
989
|
-
],
|
|
990
|
-
"slots": [],
|
|
991
|
-
"methods": [],
|
|
992
|
-
"parts": [],
|
|
993
|
-
"description": "动态表单",
|
|
994
|
-
"category": "form-input-basic"
|
|
995
|
-
},
|
|
996
|
-
{
|
|
997
|
-
"name": "eo-search",
|
|
998
|
-
"alias": [
|
|
999
|
-
"form.general-search"
|
|
1000
|
-
],
|
|
1001
|
-
"properties": [
|
|
1002
|
-
{
|
|
1003
|
-
"name": "value",
|
|
1004
|
-
"description": "搜索框的值",
|
|
1005
|
-
"default": "\"\"",
|
|
1006
|
-
"type": "string"
|
|
1007
|
-
},
|
|
1008
|
-
{
|
|
1009
|
-
"name": "placeholder",
|
|
1010
|
-
"description": "提示语",
|
|
1011
|
-
"type": "string"
|
|
1012
|
-
},
|
|
1013
|
-
{
|
|
1014
|
-
"name": "autoFocus",
|
|
1015
|
-
"description": "是否自动聚焦",
|
|
1016
|
-
"type": "boolean"
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
"name": "clearable",
|
|
1020
|
-
"description": "可以点击清除图标删除内容",
|
|
1021
|
-
"type": "boolean"
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
"name": "trim",
|
|
1025
|
-
"description": "是否剔除前后空格",
|
|
1026
|
-
"type": "boolean"
|
|
1027
1035
|
},
|
|
1028
1036
|
{
|
|
1029
|
-
"name": "
|
|
1030
|
-
"description": "
|
|
1031
|
-
"default": "0",
|
|
1032
|
-
"type": "number"
|
|
1033
|
-
}
|
|
1034
|
-
],
|
|
1035
|
-
"events": [
|
|
1036
|
-
{
|
|
1037
|
-
"name": "change",
|
|
1038
|
-
"description": "输入的搜索字符,输入变化时触发",
|
|
1037
|
+
"name": "focus",
|
|
1038
|
+
"description": "下拉框focus事件",
|
|
1039
1039
|
"detail": {
|
|
1040
|
-
"type": "
|
|
1040
|
+
"type": "void"
|
|
1041
1041
|
}
|
|
1042
1042
|
},
|
|
1043
1043
|
{
|
|
1044
|
-
"name": "
|
|
1045
|
-
"description": "
|
|
1044
|
+
"name": "options.change",
|
|
1045
|
+
"description": "选项列表变化事件",
|
|
1046
1046
|
"detail": {
|
|
1047
|
-
"type": "string"
|
|
1047
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
1050
|
],
|
|
1051
1051
|
"slots": [],
|
|
1052
1052
|
"methods": [],
|
|
1053
1053
|
"parts": [],
|
|
1054
|
-
"description": "
|
|
1054
|
+
"description": "通用下拉选择构件",
|
|
1055
1055
|
"category": "form-input-basic"
|
|
1056
1056
|
},
|
|
1057
1057
|
{
|
|
@@ -1527,76 +1527,6 @@
|
|
|
1527
1527
|
"description": "时间选择器",
|
|
1528
1528
|
"category": "form-input-basic"
|
|
1529
1529
|
},
|
|
1530
|
-
{
|
|
1531
|
-
"name": "eo-time-range-picker",
|
|
1532
|
-
"properties": [
|
|
1533
|
-
{
|
|
1534
|
-
"name": "name",
|
|
1535
|
-
"description": "时间段选择器字段名",
|
|
1536
|
-
"type": "string"
|
|
1537
|
-
},
|
|
1538
|
-
{
|
|
1539
|
-
"name": "label",
|
|
1540
|
-
"description": "时间段选择器说明",
|
|
1541
|
-
"type": "string"
|
|
1542
|
-
},
|
|
1543
|
-
{
|
|
1544
|
-
"name": "value",
|
|
1545
|
-
"description": "时间段选择器的初始值",
|
|
1546
|
-
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1547
|
-
"attribute": false,
|
|
1548
|
-
"type": "TimeRange"
|
|
1549
|
-
},
|
|
1550
|
-
{
|
|
1551
|
-
"name": "required",
|
|
1552
|
-
"description": "是否必填",
|
|
1553
|
-
"type": "boolean"
|
|
1554
|
-
},
|
|
1555
|
-
{
|
|
1556
|
-
"name": "rangeType",
|
|
1557
|
-
"description": "时间段类型",
|
|
1558
|
-
"attribute": false,
|
|
1559
|
-
"type": "RangeType"
|
|
1560
|
-
},
|
|
1561
|
-
{
|
|
1562
|
-
"name": "selectNearDays",
|
|
1563
|
-
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1564
|
-
"type": "number"
|
|
1565
|
-
},
|
|
1566
|
-
{
|
|
1567
|
-
"name": "emitChangeOnInit",
|
|
1568
|
-
"description": "",
|
|
1569
|
-
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1570
|
-
"type": "boolean"
|
|
1571
|
-
},
|
|
1572
|
-
{
|
|
1573
|
-
"name": "presetRanges",
|
|
1574
|
-
"description": "",
|
|
1575
|
-
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1576
|
-
"attribute": false,
|
|
1577
|
-
"type": "presetRangeType[]"
|
|
1578
|
-
},
|
|
1579
|
-
{
|
|
1580
|
-
"name": "validator",
|
|
1581
|
-
"attribute": false,
|
|
1582
|
-
"type": "((value: any) => MessageBody | string)"
|
|
1583
|
-
}
|
|
1584
|
-
],
|
|
1585
|
-
"events": [
|
|
1586
|
-
{
|
|
1587
|
-
"name": "change",
|
|
1588
|
-
"description": "时间段变化时触发",
|
|
1589
|
-
"detail": {
|
|
1590
|
-
"type": "TimeRange"
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
],
|
|
1594
|
-
"slots": [],
|
|
1595
|
-
"methods": [],
|
|
1596
|
-
"parts": [],
|
|
1597
|
-
"description": "时间区间选择器",
|
|
1598
|
-
"category": "form-input-basic"
|
|
1599
|
-
},
|
|
1600
1530
|
{
|
|
1601
1531
|
"name": "eo-date-picker",
|
|
1602
1532
|
"properties": [
|
|
@@ -1774,6 +1704,76 @@
|
|
|
1774
1704
|
"methods": [],
|
|
1775
1705
|
"parts": [],
|
|
1776
1706
|
"description": "构件 `eo-color-picker`"
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"name": "eo-time-range-picker",
|
|
1710
|
+
"properties": [
|
|
1711
|
+
{
|
|
1712
|
+
"name": "name",
|
|
1713
|
+
"description": "时间段选择器字段名",
|
|
1714
|
+
"type": "string"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"name": "label",
|
|
1718
|
+
"description": "时间段选择器说明",
|
|
1719
|
+
"type": "string"
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
"name": "value",
|
|
1723
|
+
"description": "时间段选择器的初始值",
|
|
1724
|
+
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1725
|
+
"attribute": false,
|
|
1726
|
+
"type": "TimeRange"
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
"name": "required",
|
|
1730
|
+
"description": "是否必填",
|
|
1731
|
+
"type": "boolean"
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
"name": "rangeType",
|
|
1735
|
+
"description": "时间段类型",
|
|
1736
|
+
"attribute": false,
|
|
1737
|
+
"type": "RangeType"
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
"name": "selectNearDays",
|
|
1741
|
+
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1742
|
+
"type": "number"
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
"name": "emitChangeOnInit",
|
|
1746
|
+
"description": "",
|
|
1747
|
+
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1748
|
+
"type": "boolean"
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
"name": "presetRanges",
|
|
1752
|
+
"description": "",
|
|
1753
|
+
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1754
|
+
"attribute": false,
|
|
1755
|
+
"type": "presetRangeType[]"
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
"name": "validator",
|
|
1759
|
+
"attribute": false,
|
|
1760
|
+
"type": "((value: any) => MessageBody | string)"
|
|
1761
|
+
}
|
|
1762
|
+
],
|
|
1763
|
+
"events": [
|
|
1764
|
+
{
|
|
1765
|
+
"name": "change",
|
|
1766
|
+
"description": "时间段变化时触发",
|
|
1767
|
+
"detail": {
|
|
1768
|
+
"type": "TimeRange"
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
],
|
|
1772
|
+
"slots": [],
|
|
1773
|
+
"methods": [],
|
|
1774
|
+
"parts": [],
|
|
1775
|
+
"description": "时间区间选择器",
|
|
1776
|
+
"category": "form-input-basic"
|
|
1777
1777
|
}
|
|
1778
1778
|
],
|
|
1779
1779
|
"providers": []
|