@next-bricks/form 1.5.1 → 1.6.0
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 +32 -32
- package/dist/chunks/{1832.b1430978.js → 1832.303056c6.js} +2 -2
- package/dist/chunks/{1832.b1430978.js.map → 1832.303056c6.js.map} +1 -1
- package/dist/chunks/{2560.82aaec19.js → 2560.69257749.js} +2 -2
- package/dist/chunks/{2560.82aaec19.js.map → 2560.69257749.js.map} +1 -1
- package/dist/chunks/4036.5b205b8b.js +2 -0
- package/dist/chunks/4036.5b205b8b.js.map +1 -0
- package/dist/chunks/eo-auto-complete.25cbac01.js +3 -0
- package/dist/chunks/eo-auto-complete.25cbac01.js.map +1 -0
- package/dist/chunks/eo-form-item.7f4fdff7.js +3 -0
- package/dist/chunks/eo-form-item.7f4fdff7.js.map +1 -0
- package/dist/chunks/{main.6be2388a.js → main.fcc7b748.js} +2 -2
- package/dist/chunks/{main.6be2388a.js.map → main.fcc7b748.js.map} +1 -1
- package/dist/examples.json +14 -14
- package/dist/{index.cb8a3748.js → index.9494fd96.js} +2 -2
- package/dist/{index.cb8a3748.js.map → index.9494fd96.js.map} +1 -1
- package/dist/manifest.json +496 -496
- package/dist/types.json +784 -784
- package/dist-types/form-item/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/chunks/4036.c15cefd1.js +0 -2
- package/dist/chunks/4036.c15cefd1.js.map +0 -1
- package/dist/chunks/eo-auto-complete.5e346e2a.js +0 -3
- package/dist/chunks/eo-auto-complete.5e346e2a.js.map +0 -1
- package/dist/chunks/eo-form-item.e87bfbf2.js +0 -3
- package/dist/chunks/eo-form-item.e87bfbf2.js.map +0 -1
- /package/dist/chunks/{eo-auto-complete.5e346e2a.js.LICENSE.txt → eo-auto-complete.25cbac01.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.e87bfbf2.js.LICENSE.txt → eo-form-item.7f4fdff7.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -188,6 +188,97 @@
|
|
|
188
188
|
"description": "通用输入框构件",
|
|
189
189
|
"category": "form-input-basic"
|
|
190
190
|
},
|
|
191
|
+
{
|
|
192
|
+
"name": "eo-textarea",
|
|
193
|
+
"alias": [
|
|
194
|
+
"form.general-textarea"
|
|
195
|
+
],
|
|
196
|
+
"properties": [
|
|
197
|
+
{
|
|
198
|
+
"name": "name",
|
|
199
|
+
"description": "字段名称",
|
|
200
|
+
"type": "string"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "label",
|
|
204
|
+
"description": "标签文字",
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "value",
|
|
209
|
+
"description": "值",
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "placeholder",
|
|
214
|
+
"description": "占位说明",
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "disabled",
|
|
219
|
+
"description": "是否禁用",
|
|
220
|
+
"type": "boolean"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "minLength",
|
|
224
|
+
"description": "最小长度",
|
|
225
|
+
"type": "number"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "maxLength",
|
|
229
|
+
"description": "最大长度",
|
|
230
|
+
"type": "number"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "autoSize",
|
|
234
|
+
"description": "大小自适应",
|
|
235
|
+
"attribute": false,
|
|
236
|
+
"type": "AutoSize"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "required",
|
|
240
|
+
"description": "是否必填",
|
|
241
|
+
"type": "boolean"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "max",
|
|
245
|
+
"description": "表单校验最大长度",
|
|
246
|
+
"type": "number"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "min",
|
|
250
|
+
"description": "表单校验最小长度",
|
|
251
|
+
"type": "number"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "message",
|
|
255
|
+
"description": "校验信息",
|
|
256
|
+
"attribute": false,
|
|
257
|
+
"type": "Record<string, string>"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "textareaStyle",
|
|
261
|
+
"description": "自定义样式",
|
|
262
|
+
"attribute": false,
|
|
263
|
+
"type": "React.CSSProperties"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"events": [
|
|
267
|
+
{
|
|
268
|
+
"name": "change",
|
|
269
|
+
"description": "",
|
|
270
|
+
"detail": {
|
|
271
|
+
"description": null,
|
|
272
|
+
"type": "string"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"slots": [],
|
|
277
|
+
"methods": [],
|
|
278
|
+
"parts": [],
|
|
279
|
+
"description": "通用多行文本输入框构件",
|
|
280
|
+
"category": "form-input-basic"
|
|
281
|
+
},
|
|
191
282
|
{
|
|
192
283
|
"name": "eo-form-item",
|
|
193
284
|
"alias": [
|
|
@@ -287,104 +378,6 @@
|
|
|
287
378
|
"category": "form-input-basic",
|
|
288
379
|
"insider": true
|
|
289
380
|
},
|
|
290
|
-
{
|
|
291
|
-
"name": "eo-radio",
|
|
292
|
-
"alias": [
|
|
293
|
-
"form.general-radio"
|
|
294
|
-
],
|
|
295
|
-
"properties": [
|
|
296
|
-
{
|
|
297
|
-
"name": "name",
|
|
298
|
-
"description": "下拉框字段名",
|
|
299
|
-
"type": "string"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"name": "label",
|
|
303
|
-
"description": "单选框字段说明",
|
|
304
|
-
"type": "string"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
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"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"name": "message",
|
|
326
|
-
"description": "校验文本信息",
|
|
327
|
-
"attribute": false,
|
|
328
|
-
"type": "Record<string, string>"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
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的外层样式",
|
|
356
|
-
"attribute": false,
|
|
357
|
-
"type": "React.CSSProperties"
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
"name": "useBrick",
|
|
361
|
-
"description": "自定义radio的内容",
|
|
362
|
-
"attribute": false,
|
|
363
|
-
"type": "UseSingleBrickConf"
|
|
364
|
-
}
|
|
365
|
-
],
|
|
366
|
-
"events": [
|
|
367
|
-
{
|
|
368
|
-
"name": "change",
|
|
369
|
-
"description": "值变化事件",
|
|
370
|
-
"detail": {
|
|
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 }"
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
],
|
|
382
|
-
"slots": [],
|
|
383
|
-
"methods": [],
|
|
384
|
-
"parts": [],
|
|
385
|
-
"description": "通用单选构件",
|
|
386
|
-
"category": "form-input-basic"
|
|
387
|
-
},
|
|
388
381
|
{
|
|
389
382
|
"name": "eo-form",
|
|
390
383
|
"alias": [
|
|
@@ -517,69 +510,107 @@
|
|
|
517
510
|
"category": "form-input-basic"
|
|
518
511
|
},
|
|
519
512
|
{
|
|
520
|
-
"name": "eo-
|
|
513
|
+
"name": "eo-radio",
|
|
521
514
|
"alias": [
|
|
522
|
-
"form.
|
|
515
|
+
"form.general-radio"
|
|
523
516
|
],
|
|
524
517
|
"properties": [
|
|
525
518
|
{
|
|
526
|
-
"name": "
|
|
527
|
-
"description": "
|
|
528
|
-
"default": "\"提交\"",
|
|
519
|
+
"name": "name",
|
|
520
|
+
"description": "下拉框字段名",
|
|
529
521
|
"type": "string"
|
|
530
522
|
},
|
|
531
523
|
{
|
|
532
|
-
"name": "
|
|
533
|
-
"description": "
|
|
524
|
+
"name": "label",
|
|
525
|
+
"description": "单选框字段说明",
|
|
534
526
|
"type": "string"
|
|
535
527
|
},
|
|
536
528
|
{
|
|
537
|
-
"name": "
|
|
538
|
-
"description": "
|
|
529
|
+
"name": "options",
|
|
530
|
+
"description": "单选框选项表",
|
|
531
|
+
"required": true,
|
|
532
|
+
"attribute": false,
|
|
533
|
+
"type": "GeneralOption[]"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"name": "value",
|
|
537
|
+
"description": "单选框当前选中始值",
|
|
538
|
+
"attribute": false,
|
|
539
|
+
"type": "any"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "required",
|
|
543
|
+
"description": "是否必填",
|
|
539
544
|
"type": "boolean"
|
|
540
545
|
},
|
|
541
546
|
{
|
|
542
|
-
"name": "
|
|
543
|
-
"description": "
|
|
547
|
+
"name": "message",
|
|
548
|
+
"description": "校验文本信息",
|
|
549
|
+
"attribute": false,
|
|
550
|
+
"type": "Record<string, string>"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"name": "disabled",
|
|
554
|
+
"description": "是否禁用",
|
|
544
555
|
"type": "boolean"
|
|
545
556
|
},
|
|
546
557
|
{
|
|
547
|
-
"name": "
|
|
548
|
-
"description": "
|
|
549
|
-
"
|
|
558
|
+
"name": "type",
|
|
559
|
+
"description": "单选框样式类型",
|
|
560
|
+
"default": "\"default\"",
|
|
561
|
+
"type": "RadioType"
|
|
550
562
|
},
|
|
551
563
|
{
|
|
552
|
-
"name": "
|
|
553
|
-
"description": "
|
|
554
|
-
"
|
|
564
|
+
"name": "ui",
|
|
565
|
+
"description": "UI样式",
|
|
566
|
+
"default": "\"default\"",
|
|
567
|
+
"type": "UIType"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"name": "size",
|
|
571
|
+
"description": "大小,只对按钮样式生效",
|
|
572
|
+
"default": "\"medium\"",
|
|
573
|
+
"type": "ComponentSize"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "customStyle",
|
|
577
|
+
"description": "自定义radio的外层样式",
|
|
578
|
+
"attribute": false,
|
|
579
|
+
"type": "React.CSSProperties"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "useBrick",
|
|
583
|
+
"description": "自定义radio的内容",
|
|
584
|
+
"attribute": false,
|
|
585
|
+
"type": "UseSingleBrickConf"
|
|
555
586
|
}
|
|
556
587
|
],
|
|
557
588
|
"events": [
|
|
558
589
|
{
|
|
559
|
-
"name": "
|
|
560
|
-
"description": "
|
|
590
|
+
"name": "change",
|
|
591
|
+
"description": "值变化事件",
|
|
561
592
|
"detail": {
|
|
562
|
-
"type": "
|
|
593
|
+
"type": "GeneralComplexOption | undefined"
|
|
563
594
|
}
|
|
564
595
|
},
|
|
565
596
|
{
|
|
566
|
-
"name": "
|
|
567
|
-
"description": "
|
|
597
|
+
"name": "options.change",
|
|
598
|
+
"description": "选项列表变化事件",
|
|
568
599
|
"detail": {
|
|
569
|
-
"type": "
|
|
600
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
570
601
|
}
|
|
571
602
|
}
|
|
572
603
|
],
|
|
573
604
|
"slots": [],
|
|
574
605
|
"methods": [],
|
|
575
606
|
"parts": [],
|
|
576
|
-
"description": "
|
|
607
|
+
"description": "通用单选构件",
|
|
577
608
|
"category": "form-input-basic"
|
|
578
609
|
},
|
|
579
610
|
{
|
|
580
|
-
"name": "eo-
|
|
611
|
+
"name": "eo-select",
|
|
581
612
|
"alias": [
|
|
582
|
-
"form.general-
|
|
613
|
+
"form.general-select"
|
|
583
614
|
],
|
|
584
615
|
"properties": [
|
|
585
616
|
{
|
|
@@ -587,30 +618,39 @@
|
|
|
587
618
|
"description": "字段名称",
|
|
588
619
|
"type": "string"
|
|
589
620
|
},
|
|
621
|
+
{
|
|
622
|
+
"name": "placeholder",
|
|
623
|
+
"description": "占位说明",
|
|
624
|
+
"type": "string"
|
|
625
|
+
},
|
|
590
626
|
{
|
|
591
627
|
"name": "label",
|
|
592
|
-
"description": "
|
|
628
|
+
"description": "字段文本",
|
|
593
629
|
"type": "string"
|
|
594
630
|
},
|
|
631
|
+
{
|
|
632
|
+
"name": "options",
|
|
633
|
+
"description": "选项列表",
|
|
634
|
+
"required": true,
|
|
635
|
+
"attribute": false,
|
|
636
|
+
"type": "GeneralComplexOption[]"
|
|
637
|
+
},
|
|
595
638
|
{
|
|
596
639
|
"name": "value",
|
|
597
640
|
"description": "值",
|
|
598
641
|
"attribute": false,
|
|
599
|
-
"type": "
|
|
642
|
+
"type": "any"
|
|
600
643
|
},
|
|
601
644
|
{
|
|
602
|
-
"name": "
|
|
603
|
-
"description": "
|
|
604
|
-
"
|
|
605
|
-
"default": "[]",
|
|
606
|
-
"attribute": false,
|
|
607
|
-
"type": "CheckboxOptionType[]"
|
|
645
|
+
"name": "required",
|
|
646
|
+
"description": "是否必填",
|
|
647
|
+
"type": "boolean"
|
|
608
648
|
},
|
|
609
649
|
{
|
|
610
|
-
"name": "
|
|
611
|
-
"description": "
|
|
612
|
-
"
|
|
613
|
-
"type": "
|
|
650
|
+
"name": "message",
|
|
651
|
+
"description": "校验文本信息",
|
|
652
|
+
"attribute": false,
|
|
653
|
+
"type": "Record<string, string>"
|
|
614
654
|
},
|
|
615
655
|
{
|
|
616
656
|
"name": "disabled",
|
|
@@ -618,145 +658,247 @@
|
|
|
618
658
|
"type": "boolean"
|
|
619
659
|
},
|
|
620
660
|
{
|
|
621
|
-
"name": "
|
|
622
|
-
"description": "
|
|
623
|
-
"
|
|
624
|
-
"type": "boolean"
|
|
661
|
+
"name": "mode",
|
|
662
|
+
"description": "类型",
|
|
663
|
+
"type": "\"tags\" | \"multiple\""
|
|
625
664
|
},
|
|
626
665
|
{
|
|
627
|
-
"name": "
|
|
628
|
-
"description": "
|
|
629
|
-
"
|
|
666
|
+
"name": "tokenSeparators",
|
|
667
|
+
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
668
|
+
"attribute": false,
|
|
669
|
+
"type": "string[]"
|
|
630
670
|
},
|
|
631
671
|
{
|
|
632
|
-
"name": "
|
|
633
|
-
"description": "
|
|
672
|
+
"name": "maxTagCount",
|
|
673
|
+
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
674
|
+
"type": "number"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"name": "groupBy",
|
|
678
|
+
"description": "分组字段",
|
|
679
|
+
"type": "string"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "suffix",
|
|
683
|
+
"description": "",
|
|
634
684
|
"attribute": false,
|
|
635
|
-
"type": "
|
|
685
|
+
"type": "UseSingleBrickConf"
|
|
636
686
|
},
|
|
637
687
|
{
|
|
638
|
-
"name": "
|
|
639
|
-
"description": "
|
|
688
|
+
"name": "clearable",
|
|
689
|
+
"description": "是否支持清除",
|
|
690
|
+
"default": "true",
|
|
640
691
|
"type": "boolean"
|
|
641
692
|
},
|
|
642
693
|
{
|
|
643
|
-
"name": "
|
|
644
|
-
"description": "
|
|
694
|
+
"name": "fields",
|
|
695
|
+
"description": "列表指定字段作为 label 和 value",
|
|
645
696
|
"attribute": false,
|
|
646
|
-
"type": "
|
|
697
|
+
"type": "{ label?: string; value?: string }"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"name": "useBackend",
|
|
701
|
+
"description": "后端搜索",
|
|
702
|
+
"attribute": false,
|
|
703
|
+
"type": "UseBackendConf"
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "debounceSearchDelay",
|
|
707
|
+
"type": "number"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "inputStyle",
|
|
711
|
+
"description": "输入框样式",
|
|
712
|
+
"attribute": false,
|
|
713
|
+
"type": "React.CSSProperties"
|
|
647
714
|
}
|
|
648
715
|
],
|
|
649
716
|
"events": [
|
|
650
717
|
{
|
|
651
718
|
"name": "change",
|
|
652
|
-
"description": "
|
|
719
|
+
"description": "下拉选择事件",
|
|
653
720
|
"detail": {
|
|
654
|
-
"type": "
|
|
721
|
+
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"name": "search",
|
|
726
|
+
"description": "下拉框search事件",
|
|
727
|
+
"detail": {
|
|
728
|
+
"type": "{\n value: string;\n }"
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"name": "focus",
|
|
733
|
+
"description": "下拉框focus事件",
|
|
734
|
+
"detail": {
|
|
735
|
+
"type": "void"
|
|
655
736
|
}
|
|
656
737
|
},
|
|
657
738
|
{
|
|
658
739
|
"name": "options.change",
|
|
659
|
-
"description": "
|
|
740
|
+
"description": "选项列表变化事件",
|
|
660
741
|
"detail": {
|
|
661
|
-
"type": "{\n options:
|
|
742
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
662
743
|
}
|
|
663
744
|
}
|
|
664
745
|
],
|
|
665
746
|
"slots": [],
|
|
666
747
|
"methods": [],
|
|
667
748
|
"parts": [],
|
|
668
|
-
"description": "
|
|
749
|
+
"description": "通用下拉选择构件",
|
|
669
750
|
"category": "form-input-basic"
|
|
670
751
|
},
|
|
671
752
|
{
|
|
672
|
-
"name": "eo-
|
|
753
|
+
"name": "eo-submit-buttons",
|
|
673
754
|
"alias": [
|
|
674
|
-
"form.
|
|
755
|
+
"form.submit-buttons"
|
|
675
756
|
],
|
|
676
757
|
"properties": [
|
|
677
758
|
{
|
|
678
|
-
"name": "
|
|
679
|
-
"description": "
|
|
759
|
+
"name": "submitText",
|
|
760
|
+
"description": "提交按钮的文字",
|
|
761
|
+
"default": "\"提交\"",
|
|
680
762
|
"type": "string"
|
|
681
763
|
},
|
|
682
764
|
{
|
|
683
|
-
"name": "
|
|
684
|
-
"description": "
|
|
765
|
+
"name": "cancelText",
|
|
766
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
685
767
|
"type": "string"
|
|
686
768
|
},
|
|
687
769
|
{
|
|
688
|
-
"name": "
|
|
689
|
-
"description": "
|
|
690
|
-
"type": "
|
|
770
|
+
"name": "disableAfterClick",
|
|
771
|
+
"description": "点击确定按钮后自动禁用",
|
|
772
|
+
"type": "boolean"
|
|
691
773
|
},
|
|
692
774
|
{
|
|
693
|
-
"name": "
|
|
694
|
-
"description": "
|
|
775
|
+
"name": "submitDisabled",
|
|
776
|
+
"description": "禁用提交按钮",
|
|
777
|
+
"type": "boolean"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"name": "submitType",
|
|
781
|
+
"description": "提交按钮类型",
|
|
782
|
+
"type": "ButtonType"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"name": "cancelType",
|
|
786
|
+
"description": "取消按钮类型",
|
|
787
|
+
"type": "ButtonType"
|
|
788
|
+
}
|
|
789
|
+
],
|
|
790
|
+
"events": [
|
|
791
|
+
{
|
|
792
|
+
"name": "submit",
|
|
793
|
+
"description": "点击提交按钮触发的事件",
|
|
794
|
+
"detail": {
|
|
795
|
+
"type": "void"
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"name": "cancel",
|
|
800
|
+
"description": "点击取消按钮触发的事件",
|
|
801
|
+
"detail": {
|
|
802
|
+
"type": "void"
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
],
|
|
806
|
+
"slots": [],
|
|
807
|
+
"methods": [],
|
|
808
|
+
"parts": [],
|
|
809
|
+
"description": "表单提交按钮",
|
|
810
|
+
"category": "form-input-basic"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"name": "eo-checkbox",
|
|
814
|
+
"alias": [
|
|
815
|
+
"form.general-checkbox"
|
|
816
|
+
],
|
|
817
|
+
"properties": [
|
|
818
|
+
{
|
|
819
|
+
"name": "name",
|
|
820
|
+
"description": "字段名称",
|
|
695
821
|
"type": "string"
|
|
696
822
|
},
|
|
697
823
|
{
|
|
698
|
-
"name": "
|
|
699
|
-
"description": "
|
|
700
|
-
"type": "
|
|
824
|
+
"name": "label",
|
|
825
|
+
"description": "字段说明",
|
|
826
|
+
"type": "string"
|
|
701
827
|
},
|
|
702
828
|
{
|
|
703
|
-
"name": "
|
|
704
|
-
"description": "
|
|
705
|
-
"
|
|
829
|
+
"name": "value",
|
|
830
|
+
"description": "值",
|
|
831
|
+
"attribute": false,
|
|
832
|
+
"type": "CheckboxValueType[]"
|
|
706
833
|
},
|
|
707
834
|
{
|
|
708
|
-
"name": "
|
|
709
|
-
"description": "
|
|
710
|
-
"
|
|
835
|
+
"name": "options",
|
|
836
|
+
"description": "多选框选项表",
|
|
837
|
+
"required": true,
|
|
838
|
+
"default": "[]",
|
|
839
|
+
"attribute": false,
|
|
840
|
+
"type": "CheckboxOptionType[]"
|
|
711
841
|
},
|
|
712
842
|
{
|
|
713
|
-
"name": "
|
|
714
|
-
"description": "
|
|
715
|
-
"
|
|
716
|
-
"type": "
|
|
843
|
+
"name": "type",
|
|
844
|
+
"description": "类型",
|
|
845
|
+
"default": "\"default\"",
|
|
846
|
+
"type": "CheckboxType"
|
|
717
847
|
},
|
|
718
848
|
{
|
|
719
|
-
"name": "
|
|
720
|
-
"description": "
|
|
849
|
+
"name": "disabled",
|
|
850
|
+
"description": "是否禁用",
|
|
721
851
|
"type": "boolean"
|
|
722
852
|
},
|
|
723
853
|
{
|
|
724
|
-
"name": "
|
|
725
|
-
"description": "
|
|
726
|
-
"
|
|
854
|
+
"name": "isCustom",
|
|
855
|
+
"description": "是否为自定义",
|
|
856
|
+
"default": "false",
|
|
857
|
+
"type": "boolean"
|
|
727
858
|
},
|
|
728
859
|
{
|
|
729
|
-
"name": "
|
|
730
|
-
"description": "
|
|
731
|
-
"type": "
|
|
860
|
+
"name": "required",
|
|
861
|
+
"description": "是否必填",
|
|
862
|
+
"type": "boolean"
|
|
732
863
|
},
|
|
733
864
|
{
|
|
734
865
|
"name": "message",
|
|
735
|
-
"description": "
|
|
866
|
+
"description": "校验文本",
|
|
736
867
|
"attribute": false,
|
|
737
868
|
"type": "Record<string, string>"
|
|
738
869
|
},
|
|
739
870
|
{
|
|
740
|
-
"name": "
|
|
741
|
-
"description": "
|
|
871
|
+
"name": "isGroup",
|
|
872
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
873
|
+
"type": "boolean"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"name": "optionGroups",
|
|
877
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
742
878
|
"attribute": false,
|
|
743
|
-
"type": "
|
|
879
|
+
"type": "OptionGroup[]"
|
|
744
880
|
}
|
|
745
881
|
],
|
|
746
882
|
"events": [
|
|
747
883
|
{
|
|
748
884
|
"name": "change",
|
|
749
|
-
"description": "",
|
|
885
|
+
"description": "复选框变化事件",
|
|
750
886
|
"detail": {
|
|
751
|
-
"
|
|
752
|
-
|
|
887
|
+
"type": "CheckboxOptionType[]"
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"name": "options.change",
|
|
892
|
+
"description": "复选框变化事件",
|
|
893
|
+
"detail": {
|
|
894
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
753
895
|
}
|
|
754
896
|
}
|
|
755
897
|
],
|
|
756
898
|
"slots": [],
|
|
757
899
|
"methods": [],
|
|
758
900
|
"parts": [],
|
|
759
|
-
"description": "
|
|
901
|
+
"description": "表单复选框构件",
|
|
760
902
|
"category": "form-input-basic"
|
|
761
903
|
},
|
|
762
904
|
{
|
|
@@ -912,148 +1054,6 @@
|
|
|
912
1054
|
"description": "搜索框",
|
|
913
1055
|
"category": "form-input-basic"
|
|
914
1056
|
},
|
|
915
|
-
{
|
|
916
|
-
"name": "eo-select",
|
|
917
|
-
"alias": [
|
|
918
|
-
"form.general-select"
|
|
919
|
-
],
|
|
920
|
-
"properties": [
|
|
921
|
-
{
|
|
922
|
-
"name": "name",
|
|
923
|
-
"description": "字段名称",
|
|
924
|
-
"type": "string"
|
|
925
|
-
},
|
|
926
|
-
{
|
|
927
|
-
"name": "placeholder",
|
|
928
|
-
"description": "占位说明",
|
|
929
|
-
"type": "string"
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
"name": "label",
|
|
933
|
-
"description": "字段文本",
|
|
934
|
-
"type": "string"
|
|
935
|
-
},
|
|
936
|
-
{
|
|
937
|
-
"name": "options",
|
|
938
|
-
"description": "选项列表",
|
|
939
|
-
"required": true,
|
|
940
|
-
"attribute": false,
|
|
941
|
-
"type": "GeneralComplexOption[]"
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
"name": "value",
|
|
945
|
-
"description": "值",
|
|
946
|
-
"attribute": false,
|
|
947
|
-
"type": "any"
|
|
948
|
-
},
|
|
949
|
-
{
|
|
950
|
-
"name": "required",
|
|
951
|
-
"description": "是否必填",
|
|
952
|
-
"type": "boolean"
|
|
953
|
-
},
|
|
954
|
-
{
|
|
955
|
-
"name": "message",
|
|
956
|
-
"description": "校验文本信息",
|
|
957
|
-
"attribute": false,
|
|
958
|
-
"type": "Record<string, string>"
|
|
959
|
-
},
|
|
960
|
-
{
|
|
961
|
-
"name": "disabled",
|
|
962
|
-
"description": "是否禁用",
|
|
963
|
-
"type": "boolean"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"name": "mode",
|
|
967
|
-
"description": "类型",
|
|
968
|
-
"type": "\"tags\" | \"multiple\""
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
"name": "tokenSeparators",
|
|
972
|
-
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
973
|
-
"attribute": false,
|
|
974
|
-
"type": "string[]"
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
"name": "maxTagCount",
|
|
978
|
-
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
979
|
-
"type": "number"
|
|
980
|
-
},
|
|
981
|
-
{
|
|
982
|
-
"name": "groupBy",
|
|
983
|
-
"description": "分组字段",
|
|
984
|
-
"type": "string"
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"name": "suffix",
|
|
988
|
-
"description": "",
|
|
989
|
-
"attribute": false,
|
|
990
|
-
"type": "UseSingleBrickConf"
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
"name": "clearable",
|
|
994
|
-
"description": "是否支持清除",
|
|
995
|
-
"default": "true",
|
|
996
|
-
"type": "boolean"
|
|
997
|
-
},
|
|
998
|
-
{
|
|
999
|
-
"name": "fields",
|
|
1000
|
-
"description": "列表指定字段作为 label 和 value",
|
|
1001
|
-
"attribute": false,
|
|
1002
|
-
"type": "{ label?: string; value?: string }"
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
"name": "useBackend",
|
|
1006
|
-
"description": "后端搜索",
|
|
1007
|
-
"attribute": false,
|
|
1008
|
-
"type": "UseBackendConf"
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
"name": "debounceSearchDelay",
|
|
1012
|
-
"type": "number"
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
"name": "inputStyle",
|
|
1016
|
-
"description": "输入框样式",
|
|
1017
|
-
"attribute": false,
|
|
1018
|
-
"type": "React.CSSProperties"
|
|
1019
|
-
}
|
|
1020
|
-
],
|
|
1021
|
-
"events": [
|
|
1022
|
-
{
|
|
1023
|
-
"name": "change",
|
|
1024
|
-
"description": "下拉选择事件",
|
|
1025
|
-
"detail": {
|
|
1026
|
-
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
1027
|
-
}
|
|
1028
|
-
},
|
|
1029
|
-
{
|
|
1030
|
-
"name": "search",
|
|
1031
|
-
"description": "下拉框search事件",
|
|
1032
|
-
"detail": {
|
|
1033
|
-
"type": "{\n value: string;\n }"
|
|
1034
|
-
}
|
|
1035
|
-
},
|
|
1036
|
-
{
|
|
1037
|
-
"name": "focus",
|
|
1038
|
-
"description": "下拉框focus事件",
|
|
1039
|
-
"detail": {
|
|
1040
|
-
"type": "void"
|
|
1041
|
-
}
|
|
1042
|
-
},
|
|
1043
|
-
{
|
|
1044
|
-
"name": "options.change",
|
|
1045
|
-
"description": "选项列表变化事件",
|
|
1046
|
-
"detail": {
|
|
1047
|
-
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
],
|
|
1051
|
-
"slots": [],
|
|
1052
|
-
"methods": [],
|
|
1053
|
-
"parts": [],
|
|
1054
|
-
"description": "通用下拉选择构件",
|
|
1055
|
-
"category": "form-input-basic"
|
|
1056
|
-
},
|
|
1057
1057
|
{
|
|
1058
1058
|
"name": "eo-icon-select",
|
|
1059
1059
|
"alias": [
|
|
@@ -1321,52 +1321,127 @@
|
|
|
1321
1321
|
"type": "\"ignore\" | \"replace\""
|
|
1322
1322
|
},
|
|
1323
1323
|
{
|
|
1324
|
-
"name": "uploadDraggable",
|
|
1325
|
-
"description": "是否可以拖拽上传",
|
|
1326
|
-
"type": "boolean"
|
|
1324
|
+
"name": "uploadDraggable",
|
|
1325
|
+
"description": "是否可以拖拽上传",
|
|
1326
|
+
"type": "boolean"
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
"name": "draggableUploadTip",
|
|
1330
|
+
"description": "拖拽上传的提示信息",
|
|
1331
|
+
"type": "string"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"name": "autoUpload",
|
|
1335
|
+
"description": "是否自动上传",
|
|
1336
|
+
"default": "false",
|
|
1337
|
+
"type": "boolean"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"name": "url",
|
|
1341
|
+
"description": "自动上传的地址",
|
|
1342
|
+
"type": "string"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"name": "method",
|
|
1346
|
+
"description": "自动上传的方法",
|
|
1347
|
+
"default": "\"POST\"",
|
|
1348
|
+
"type": "string"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"name": "uploadName",
|
|
1352
|
+
"description": "自动上传的文件参数名",
|
|
1353
|
+
"default": "\"file\"",
|
|
1354
|
+
"type": "string"
|
|
1355
|
+
}
|
|
1356
|
+
],
|
|
1357
|
+
"events": [
|
|
1358
|
+
{
|
|
1359
|
+
"name": "change",
|
|
1360
|
+
"description": "值变化时触发",
|
|
1361
|
+
"detail": {
|
|
1362
|
+
"type": "FileData[]"
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
],
|
|
1366
|
+
"slots": [],
|
|
1367
|
+
"methods": [],
|
|
1368
|
+
"parts": [],
|
|
1369
|
+
"description": "上传文件",
|
|
1370
|
+
"category": "form-input-basic"
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"name": "eo-time-picker",
|
|
1374
|
+
"properties": [
|
|
1375
|
+
{
|
|
1376
|
+
"name": "name",
|
|
1377
|
+
"description": "时间选择器字段名",
|
|
1378
|
+
"type": "string"
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"name": "label",
|
|
1382
|
+
"description": "时间选择器说明",
|
|
1383
|
+
"type": "string"
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
"name": "value",
|
|
1387
|
+
"description": "时间选择器的初始值",
|
|
1388
|
+
"type": "string"
|
|
1327
1389
|
},
|
|
1328
1390
|
{
|
|
1329
|
-
"name": "
|
|
1330
|
-
"description": "
|
|
1391
|
+
"name": "placeholder",
|
|
1392
|
+
"description": "时间选择器占位说明",
|
|
1331
1393
|
"type": "string"
|
|
1332
1394
|
},
|
|
1333
1395
|
{
|
|
1334
|
-
"name": "
|
|
1335
|
-
"description": "
|
|
1336
|
-
"
|
|
1337
|
-
"type": "
|
|
1396
|
+
"name": "message",
|
|
1397
|
+
"description": "校验文本信息",
|
|
1398
|
+
"attribute": false,
|
|
1399
|
+
"type": "Record<string, string>"
|
|
1338
1400
|
},
|
|
1339
1401
|
{
|
|
1340
|
-
"name": "
|
|
1341
|
-
"description": "
|
|
1342
|
-
"type": "
|
|
1402
|
+
"name": "disabled",
|
|
1403
|
+
"description": "是否禁用",
|
|
1404
|
+
"type": "boolean"
|
|
1343
1405
|
},
|
|
1344
1406
|
{
|
|
1345
|
-
"name": "
|
|
1346
|
-
"description": "
|
|
1347
|
-
"
|
|
1348
|
-
"type": "string"
|
|
1407
|
+
"name": "required",
|
|
1408
|
+
"description": "是否必填",
|
|
1409
|
+
"type": "boolean"
|
|
1349
1410
|
},
|
|
1350
1411
|
{
|
|
1351
|
-
"name": "
|
|
1352
|
-
"description": "
|
|
1353
|
-
"
|
|
1354
|
-
"type": "
|
|
1412
|
+
"name": "configProps",
|
|
1413
|
+
"description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
|
|
1414
|
+
"attribute": false,
|
|
1415
|
+
"type": "Partial<TimePickerProps>"
|
|
1355
1416
|
}
|
|
1356
1417
|
],
|
|
1357
1418
|
"events": [
|
|
1358
1419
|
{
|
|
1359
1420
|
"name": "change",
|
|
1360
|
-
"description": "
|
|
1421
|
+
"description": "时间变化时触发",
|
|
1361
1422
|
"detail": {
|
|
1362
|
-
"type": "
|
|
1423
|
+
"type": "string"
|
|
1424
|
+
}
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"name": "open",
|
|
1428
|
+
"description": "面板打开时触发, 传出当前时间值",
|
|
1429
|
+
"detail": {
|
|
1430
|
+
"type": "string"
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"name": "close",
|
|
1435
|
+
"description": "面板关闭时触发,传出当前时间值",
|
|
1436
|
+
"detail": {
|
|
1437
|
+
"type": "string"
|
|
1363
1438
|
}
|
|
1364
1439
|
}
|
|
1365
1440
|
],
|
|
1366
1441
|
"slots": [],
|
|
1367
1442
|
"methods": [],
|
|
1368
1443
|
"parts": [],
|
|
1369
|
-
"description": "
|
|
1444
|
+
"description": "时间选择器",
|
|
1370
1445
|
"category": "form-input-basic"
|
|
1371
1446
|
},
|
|
1372
1447
|
{
|
|
@@ -1452,81 +1527,6 @@
|
|
|
1452
1527
|
"description": "带候选项的输入框",
|
|
1453
1528
|
"category": "form-input-basic"
|
|
1454
1529
|
},
|
|
1455
|
-
{
|
|
1456
|
-
"name": "eo-time-picker",
|
|
1457
|
-
"properties": [
|
|
1458
|
-
{
|
|
1459
|
-
"name": "name",
|
|
1460
|
-
"description": "时间选择器字段名",
|
|
1461
|
-
"type": "string"
|
|
1462
|
-
},
|
|
1463
|
-
{
|
|
1464
|
-
"name": "label",
|
|
1465
|
-
"description": "时间选择器说明",
|
|
1466
|
-
"type": "string"
|
|
1467
|
-
},
|
|
1468
|
-
{
|
|
1469
|
-
"name": "value",
|
|
1470
|
-
"description": "时间选择器的初始值",
|
|
1471
|
-
"type": "string"
|
|
1472
|
-
},
|
|
1473
|
-
{
|
|
1474
|
-
"name": "placeholder",
|
|
1475
|
-
"description": "时间选择器占位说明",
|
|
1476
|
-
"type": "string"
|
|
1477
|
-
},
|
|
1478
|
-
{
|
|
1479
|
-
"name": "message",
|
|
1480
|
-
"description": "校验文本信息",
|
|
1481
|
-
"attribute": false,
|
|
1482
|
-
"type": "Record<string, string>"
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
"name": "disabled",
|
|
1486
|
-
"description": "是否禁用",
|
|
1487
|
-
"type": "boolean"
|
|
1488
|
-
},
|
|
1489
|
-
{
|
|
1490
|
-
"name": "required",
|
|
1491
|
-
"description": "是否必填",
|
|
1492
|
-
"type": "boolean"
|
|
1493
|
-
},
|
|
1494
|
-
{
|
|
1495
|
-
"name": "configProps",
|
|
1496
|
-
"description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
|
|
1497
|
-
"attribute": false,
|
|
1498
|
-
"type": "Partial<TimePickerProps>"
|
|
1499
|
-
}
|
|
1500
|
-
],
|
|
1501
|
-
"events": [
|
|
1502
|
-
{
|
|
1503
|
-
"name": "change",
|
|
1504
|
-
"description": "时间变化时触发",
|
|
1505
|
-
"detail": {
|
|
1506
|
-
"type": "string"
|
|
1507
|
-
}
|
|
1508
|
-
},
|
|
1509
|
-
{
|
|
1510
|
-
"name": "open",
|
|
1511
|
-
"description": "面板打开时触发, 传出当前时间值",
|
|
1512
|
-
"detail": {
|
|
1513
|
-
"type": "string"
|
|
1514
|
-
}
|
|
1515
|
-
},
|
|
1516
|
-
{
|
|
1517
|
-
"name": "close",
|
|
1518
|
-
"description": "面板关闭时触发,传出当前时间值",
|
|
1519
|
-
"detail": {
|
|
1520
|
-
"type": "string"
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
],
|
|
1524
|
-
"slots": [],
|
|
1525
|
-
"methods": [],
|
|
1526
|
-
"parts": [],
|
|
1527
|
-
"description": "时间选择器",
|
|
1528
|
-
"category": "form-input-basic"
|
|
1529
|
-
},
|
|
1530
1530
|
{
|
|
1531
1531
|
"name": "eo-date-picker",
|
|
1532
1532
|
"properties": [
|
|
@@ -1628,27 +1628,24 @@
|
|
|
1628
1628
|
"category": "form-input-basic"
|
|
1629
1629
|
},
|
|
1630
1630
|
{
|
|
1631
|
-
"name": "eo-
|
|
1631
|
+
"name": "eo-time-range-picker",
|
|
1632
1632
|
"properties": [
|
|
1633
1633
|
{
|
|
1634
1634
|
"name": "name",
|
|
1635
|
-
"description": "
|
|
1635
|
+
"description": "时间段选择器字段名",
|
|
1636
1636
|
"type": "string"
|
|
1637
1637
|
},
|
|
1638
1638
|
{
|
|
1639
1639
|
"name": "label",
|
|
1640
|
-
"description": "
|
|
1640
|
+
"description": "时间段选择器说明",
|
|
1641
1641
|
"type": "string"
|
|
1642
1642
|
},
|
|
1643
1643
|
{
|
|
1644
1644
|
"name": "value",
|
|
1645
|
-
"description": "
|
|
1646
|
-
"
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
"name": "defaultValue",
|
|
1650
|
-
"description": "颜色默认的值",
|
|
1651
|
-
"type": "string | Color"
|
|
1645
|
+
"description": "时间段选择器的初始值",
|
|
1646
|
+
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1647
|
+
"attribute": false,
|
|
1648
|
+
"type": "TimeRange"
|
|
1652
1649
|
},
|
|
1653
1650
|
{
|
|
1654
1651
|
"name": "required",
|
|
@@ -1656,74 +1653,72 @@
|
|
|
1656
1653
|
"type": "boolean"
|
|
1657
1654
|
},
|
|
1658
1655
|
{
|
|
1659
|
-
"name": "
|
|
1660
|
-
"description": "
|
|
1661
|
-
"type": "boolean"
|
|
1662
|
-
},
|
|
1663
|
-
{
|
|
1664
|
-
"name": "size",
|
|
1665
|
-
"description": "设置触发器大小",
|
|
1666
|
-
"default": "middle",
|
|
1656
|
+
"name": "rangeType",
|
|
1657
|
+
"description": "时间段类型",
|
|
1667
1658
|
"attribute": false,
|
|
1668
|
-
"type": "
|
|
1659
|
+
"type": "RangeType"
|
|
1669
1660
|
},
|
|
1670
1661
|
{
|
|
1671
|
-
"name": "
|
|
1672
|
-
"description": "
|
|
1673
|
-
"type": "
|
|
1662
|
+
"name": "selectNearDays",
|
|
1663
|
+
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1664
|
+
"type": "number"
|
|
1674
1665
|
},
|
|
1675
1666
|
{
|
|
1676
|
-
"name": "
|
|
1677
|
-
"description": "
|
|
1667
|
+
"name": "emitChangeOnInit",
|
|
1668
|
+
"description": "",
|
|
1669
|
+
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1678
1670
|
"type": "boolean"
|
|
1679
1671
|
},
|
|
1680
1672
|
{
|
|
1681
|
-
"name": "
|
|
1682
|
-
"description": "
|
|
1683
|
-
"default": "
|
|
1673
|
+
"name": "presetRanges",
|
|
1674
|
+
"description": "",
|
|
1675
|
+
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1684
1676
|
"attribute": false,
|
|
1685
|
-
"type": "
|
|
1677
|
+
"type": "presetRangeType[]"
|
|
1686
1678
|
},
|
|
1687
1679
|
{
|
|
1688
|
-
"name": "
|
|
1689
|
-
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1680
|
+
"name": "validator",
|
|
1690
1681
|
"attribute": false,
|
|
1691
|
-
"type": "
|
|
1682
|
+
"type": "((value: any) => MessageBody | string)"
|
|
1692
1683
|
}
|
|
1693
1684
|
],
|
|
1694
1685
|
"events": [
|
|
1695
1686
|
{
|
|
1696
1687
|
"name": "change",
|
|
1697
|
-
"description": "
|
|
1688
|
+
"description": "时间段变化时触发",
|
|
1698
1689
|
"detail": {
|
|
1699
|
-
"type": "
|
|
1690
|
+
"type": "TimeRange"
|
|
1700
1691
|
}
|
|
1701
1692
|
}
|
|
1702
1693
|
],
|
|
1703
1694
|
"slots": [],
|
|
1704
1695
|
"methods": [],
|
|
1705
1696
|
"parts": [],
|
|
1706
|
-
"description": "
|
|
1697
|
+
"description": "时间区间选择器",
|
|
1698
|
+
"category": "form-input-basic"
|
|
1707
1699
|
},
|
|
1708
1700
|
{
|
|
1709
|
-
"name": "eo-
|
|
1701
|
+
"name": "eo-color-picker",
|
|
1710
1702
|
"properties": [
|
|
1711
1703
|
{
|
|
1712
1704
|
"name": "name",
|
|
1713
|
-
"description": "
|
|
1705
|
+
"description": "字段名称",
|
|
1714
1706
|
"type": "string"
|
|
1715
1707
|
},
|
|
1716
1708
|
{
|
|
1717
1709
|
"name": "label",
|
|
1718
|
-
"description": "
|
|
1710
|
+
"description": "字段说明",
|
|
1719
1711
|
"type": "string"
|
|
1720
1712
|
},
|
|
1721
1713
|
{
|
|
1722
1714
|
"name": "value",
|
|
1723
|
-
"description": "
|
|
1724
|
-
"
|
|
1725
|
-
|
|
1726
|
-
|
|
1715
|
+
"description": "值",
|
|
1716
|
+
"type": "string"
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"name": "defaultValue",
|
|
1720
|
+
"description": "颜色默认的值",
|
|
1721
|
+
"type": "string | Color"
|
|
1727
1722
|
},
|
|
1728
1723
|
{
|
|
1729
1724
|
"name": "required",
|
|
@@ -1731,49 +1726,54 @@
|
|
|
1731
1726
|
"type": "boolean"
|
|
1732
1727
|
},
|
|
1733
1728
|
{
|
|
1734
|
-
"name": "
|
|
1735
|
-
"description": "
|
|
1729
|
+
"name": "allowClear",
|
|
1730
|
+
"description": "允许清除选择的颜色",
|
|
1731
|
+
"type": "boolean"
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
"name": "size",
|
|
1735
|
+
"description": "设置触发器大小",
|
|
1736
|
+
"default": "middle",
|
|
1736
1737
|
"attribute": false,
|
|
1737
|
-
"type": "
|
|
1738
|
+
"type": "\"small\" | \"middle\" | \"large\""
|
|
1738
1739
|
},
|
|
1739
1740
|
{
|
|
1740
|
-
"name": "
|
|
1741
|
-
"description": "
|
|
1742
|
-
"type": "
|
|
1741
|
+
"name": "showText",
|
|
1742
|
+
"description": "显示颜色文本",
|
|
1743
|
+
"type": "boolean"
|
|
1743
1744
|
},
|
|
1744
1745
|
{
|
|
1745
|
-
"name": "
|
|
1746
|
-
"description": "",
|
|
1747
|
-
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1746
|
+
"name": "disabled",
|
|
1747
|
+
"description": "是否禁用",
|
|
1748
1748
|
"type": "boolean"
|
|
1749
1749
|
},
|
|
1750
1750
|
{
|
|
1751
|
-
"name": "
|
|
1752
|
-
"description": "",
|
|
1753
|
-
"default": "
|
|
1751
|
+
"name": "format",
|
|
1752
|
+
"description": "颜色格式",
|
|
1753
|
+
"default": "hex",
|
|
1754
1754
|
"attribute": false,
|
|
1755
|
-
"type": "
|
|
1755
|
+
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1756
1756
|
},
|
|
1757
1757
|
{
|
|
1758
|
-
"name": "
|
|
1758
|
+
"name": "configProps",
|
|
1759
|
+
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1759
1760
|
"attribute": false,
|
|
1760
|
-
"type": "
|
|
1761
|
+
"type": "Partial<ColorPickerProps>"
|
|
1761
1762
|
}
|
|
1762
1763
|
],
|
|
1763
1764
|
"events": [
|
|
1764
1765
|
{
|
|
1765
1766
|
"name": "change",
|
|
1766
|
-
"description": "
|
|
1767
|
+
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1767
1768
|
"detail": {
|
|
1768
|
-
"type": "
|
|
1769
|
+
"type": "string | undefined"
|
|
1769
1770
|
}
|
|
1770
1771
|
}
|
|
1771
1772
|
],
|
|
1772
1773
|
"slots": [],
|
|
1773
1774
|
"methods": [],
|
|
1774
1775
|
"parts": [],
|
|
1775
|
-
"description": "
|
|
1776
|
-
"category": "form-input-basic"
|
|
1776
|
+
"description": "构件 `eo-color-picker`"
|
|
1777
1777
|
}
|
|
1778
1778
|
],
|
|
1779
1779
|
"providers": []
|