@next-bricks/form 0.17.12 → 0.17.14

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.
Files changed (86) hide show
  1. package/dist/bricks.json +44 -39
  2. package/dist/chunks/1303.3f73197e.js +2 -0
  3. package/dist/chunks/1303.3f73197e.js.map +1 -0
  4. package/dist/chunks/{2108.71cfaae3.js → 2108.78a4798b.js} +2 -2
  5. package/dist/chunks/{2108.71cfaae3.js.map → 2108.78a4798b.js.map} +1 -1
  6. package/dist/chunks/2947.264ca47d.js +3 -0
  7. package/dist/chunks/2947.264ca47d.js.map +1 -0
  8. package/dist/chunks/3438.c8f8f676.js +2 -0
  9. package/dist/chunks/3438.c8f8f676.js.map +1 -0
  10. package/dist/chunks/5381.bcd60bf5.js +2 -0
  11. package/dist/chunks/5381.bcd60bf5.js.map +1 -0
  12. package/dist/chunks/5491.9ab05368.js +2 -0
  13. package/dist/chunks/5491.9ab05368.js.map +1 -0
  14. package/dist/chunks/6653.cefcd443.js +2 -0
  15. package/dist/chunks/6653.cefcd443.js.map +1 -0
  16. package/dist/chunks/6660.dc20c77a.js +2 -0
  17. package/dist/chunks/6660.dc20c77a.js.map +1 -0
  18. package/dist/chunks/7067.e029c6ab.js +2 -0
  19. package/dist/chunks/7067.e029c6ab.js.map +1 -0
  20. package/dist/chunks/8498.1e33ce1c.js +2 -0
  21. package/dist/chunks/8498.1e33ce1c.js.map +1 -0
  22. package/dist/chunks/{9431.cabf049c.js → 9431.95901c72.js} +2 -2
  23. package/dist/chunks/{9431.cabf049c.js.map → 9431.95901c72.js.map} +1 -1
  24. package/dist/chunks/eo-date-picker.14642f8f.js +2 -0
  25. package/dist/chunks/eo-date-picker.14642f8f.js.map +1 -0
  26. package/dist/chunks/{eo-dynamic-form-item.c96413c0.js → eo-dynamic-form-item.62b5dc74.js} +2 -2
  27. package/dist/chunks/{eo-dynamic-form-item.c96413c0.js.map → eo-dynamic-form-item.62b5dc74.js.map} +1 -1
  28. package/dist/chunks/{eo-form-item.879dcecf.js → eo-form-item.4b5d7b6d.js} +3 -3
  29. package/dist/chunks/{eo-form-item.879dcecf.js.map → eo-form-item.4b5d7b6d.js.map} +1 -1
  30. package/dist/chunks/{eo-radio.cf87a833.js → eo-radio.777667f5.js} +3 -3
  31. package/dist/chunks/{eo-radio.cf87a833.js.map → eo-radio.777667f5.js.map} +1 -1
  32. package/dist/chunks/eo-select.417b1e64.js +3 -0
  33. package/dist/chunks/eo-select.417b1e64.js.map +1 -0
  34. package/dist/chunks/eo-time-picker.21fe89f7.js +2 -0
  35. package/dist/chunks/eo-time-picker.21fe89f7.js.map +1 -0
  36. package/dist/chunks/{eo-upload-file.e6e8b159.js → eo-upload-file.eb086303.js} +3 -3
  37. package/dist/chunks/{eo-upload-file.e6e8b159.js.map → eo-upload-file.eb086303.js.map} +1 -1
  38. package/dist/chunks/eo-upload-image.5009f45b.js +3 -0
  39. package/dist/chunks/{eo-upload-image.43ed58ea.js.map → eo-upload-image.5009f45b.js.map} +1 -1
  40. package/dist/chunks/main.954ae652.js +2 -0
  41. package/dist/chunks/main.954ae652.js.map +1 -0
  42. package/dist/examples.json +12 -9
  43. package/dist/index.c5958a76.js +2 -0
  44. package/dist/index.c5958a76.js.map +1 -0
  45. package/dist/manifest.json +395 -296
  46. package/dist/types.json +1355 -990
  47. package/dist-types/bootstrap.d.ts +1 -0
  48. package/dist-types/date-picker/i18n.d.ts +30 -0
  49. package/dist-types/date-picker/index.d.ts +93 -0
  50. package/dist-types/date-picker/index.spec.d.ts +1 -0
  51. package/dist-types/interface.d.ts +11 -0
  52. package/docs/eo-date-picker.md +105 -0
  53. package/package.json +2 -2
  54. package/dist/chunks/3914.74fe616b.js +0 -2
  55. package/dist/chunks/3914.74fe616b.js.map +0 -1
  56. package/dist/chunks/5202.8821035d.js +0 -2
  57. package/dist/chunks/5202.8821035d.js.map +0 -1
  58. package/dist/chunks/5381.6727ec9a.js +0 -2
  59. package/dist/chunks/5381.6727ec9a.js.map +0 -1
  60. package/dist/chunks/6550.edddeb1d.js +0 -3
  61. package/dist/chunks/6550.edddeb1d.js.map +0 -1
  62. package/dist/chunks/6653.33aaf526.js +0 -2
  63. package/dist/chunks/6653.33aaf526.js.map +0 -1
  64. package/dist/chunks/6660.97196e16.js +0 -2
  65. package/dist/chunks/6660.97196e16.js.map +0 -1
  66. package/dist/chunks/7003.c59ddcb7.js +0 -2
  67. package/dist/chunks/7003.c59ddcb7.js.map +0 -1
  68. package/dist/chunks/7782.c2f60c9d.js +0 -2
  69. package/dist/chunks/7782.c2f60c9d.js.map +0 -1
  70. package/dist/chunks/8498.5c946349.js +0 -2
  71. package/dist/chunks/8498.5c946349.js.map +0 -1
  72. package/dist/chunks/eo-select.a011486e.js +0 -3
  73. package/dist/chunks/eo-select.a011486e.js.map +0 -1
  74. package/dist/chunks/eo-time-picker.3ac42462.js +0 -2
  75. package/dist/chunks/eo-time-picker.3ac42462.js.map +0 -1
  76. package/dist/chunks/eo-upload-image.43ed58ea.js +0 -3
  77. package/dist/chunks/main.4165463c.js +0 -2
  78. package/dist/chunks/main.4165463c.js.map +0 -1
  79. package/dist/index.c5e3715f.js +0 -2
  80. package/dist/index.c5e3715f.js.map +0 -1
  81. /package/dist/chunks/{6550.edddeb1d.js.LICENSE.txt → 2947.264ca47d.js.LICENSE.txt} +0 -0
  82. /package/dist/chunks/{eo-form-item.879dcecf.js.LICENSE.txt → eo-form-item.4b5d7b6d.js.LICENSE.txt} +0 -0
  83. /package/dist/chunks/{eo-radio.cf87a833.js.LICENSE.txt → eo-radio.777667f5.js.LICENSE.txt} +0 -0
  84. /package/dist/chunks/{eo-select.a011486e.js.LICENSE.txt → eo-select.417b1e64.js.LICENSE.txt} +0 -0
  85. /package/dist/chunks/{eo-upload-file.e6e8b159.js.LICENSE.txt → eo-upload-file.eb086303.js.LICENSE.txt} +0 -0
  86. /package/dist/chunks/{eo-upload-image.43ed58ea.js.LICENSE.txt → eo-upload-image.5009f45b.js.LICENSE.txt} +0 -0
@@ -187,6 +187,313 @@
187
187
  ],
188
188
  "description": "通用输入框构件"
189
189
  },
190
+ {
191
+ "name": "eo-textarea",
192
+ "alias": [
193
+ "form.general-textarea"
194
+ ],
195
+ "properties": [
196
+ {
197
+ "name": "name",
198
+ "description": "字段名称",
199
+ "type": "string"
200
+ },
201
+ {
202
+ "name": "label",
203
+ "description": "标签文字",
204
+ "type": "string"
205
+ },
206
+ {
207
+ "name": "value",
208
+ "description": "值",
209
+ "type": "string"
210
+ },
211
+ {
212
+ "name": "placeholder",
213
+ "description": "占位说明",
214
+ "type": "string"
215
+ },
216
+ {
217
+ "name": "disabled",
218
+ "description": "是否禁用",
219
+ "type": "boolean"
220
+ },
221
+ {
222
+ "name": "minLength",
223
+ "description": "最小长度",
224
+ "type": "number"
225
+ },
226
+ {
227
+ "name": "maxLength",
228
+ "description": "最大长度",
229
+ "type": "number"
230
+ },
231
+ {
232
+ "name": "autoSize",
233
+ "description": "大小自适应",
234
+ "attribute": false,
235
+ "type": "AutoSize"
236
+ },
237
+ {
238
+ "name": "required",
239
+ "description": "是否必填",
240
+ "type": "boolean"
241
+ },
242
+ {
243
+ "name": "max",
244
+ "description": "表单校验最大长度",
245
+ "type": "number"
246
+ },
247
+ {
248
+ "name": "min",
249
+ "description": "表单校验最小长度",
250
+ "type": "number"
251
+ },
252
+ {
253
+ "name": "message",
254
+ "description": "校验信息",
255
+ "attribute": false,
256
+ "type": "Record<string, string>"
257
+ },
258
+ {
259
+ "name": "textareaStyle",
260
+ "description": "自定义样式",
261
+ "attribute": false,
262
+ "type": "React.CSSProperties"
263
+ }
264
+ ],
265
+ "events": [
266
+ {
267
+ "name": "change",
268
+ "description": "",
269
+ "detail": {
270
+ "description": null,
271
+ "type": "string"
272
+ }
273
+ }
274
+ ],
275
+ "slots": [],
276
+ "methods": [],
277
+ "parts": [],
278
+ "description": "通用多行文本输入框构件"
279
+ },
280
+ {
281
+ "name": "eo-form",
282
+ "alias": [
283
+ "form.general-form"
284
+ ],
285
+ "properties": [
286
+ {
287
+ "name": "layout",
288
+ "description": "布局方式",
289
+ "type": "Layout"
290
+ },
291
+ {
292
+ "name": "size",
293
+ "description": "表单组件尺寸",
294
+ "type": "ComponentSize"
295
+ },
296
+ {
297
+ "name": "formStyle",
298
+ "attribute": false,
299
+ "type": "React.CSSProperties"
300
+ }
301
+ ],
302
+ "events": [
303
+ {
304
+ "name": "values.change",
305
+ "description": "表单值变更事件",
306
+ "detail": {
307
+ "description": null,
308
+ "type": "Record<string, unknown>"
309
+ }
310
+ },
311
+ {
312
+ "name": "validate.success",
313
+ "description": "表单验证成功时触发事件",
314
+ "detail": {
315
+ "type": "Record<string, unknown>"
316
+ }
317
+ },
318
+ {
319
+ "name": "validate.error",
320
+ "description": "表单验证报错时触发事件",
321
+ "detail": {
322
+ "type": "MessageBody[]"
323
+ }
324
+ }
325
+ ],
326
+ "slots": [
327
+ {
328
+ "name": null,
329
+ "description": "表单内容"
330
+ }
331
+ ],
332
+ "methods": [
333
+ {
334
+ "name": "validate",
335
+ "params": [],
336
+ "description": "表单校验方法",
337
+ "returns": {
338
+ "type": "boolean | Record<string, unknown>"
339
+ }
340
+ },
341
+ {
342
+ "name": "setInitValue",
343
+ "params": [
344
+ {
345
+ "name": "values",
346
+ "type": "Record<string, unknown>"
347
+ }
348
+ ],
349
+ "description": "表单设置值方法",
350
+ "returns": {}
351
+ },
352
+ {
353
+ "name": "resetFields",
354
+ "params": [
355
+ {
356
+ "name": "name",
357
+ "type": "string"
358
+ }
359
+ ],
360
+ "description": "表单重置值方法",
361
+ "returns": {}
362
+ },
363
+ {
364
+ "name": "getFieldsValue",
365
+ "params": [
366
+ {
367
+ "name": "name",
368
+ "type": "string"
369
+ }
370
+ ],
371
+ "description": "获取表单值方法",
372
+ "returns": {}
373
+ },
374
+ {
375
+ "name": "validateField",
376
+ "params": [
377
+ {
378
+ "name": "name",
379
+ "type": "string"
380
+ }
381
+ ],
382
+ "description": "校验表单字段方法",
383
+ "returns": {}
384
+ },
385
+ {
386
+ "name": "resetValidateState",
387
+ "params": [],
388
+ "description": "重置表单校验状态方法",
389
+ "returns": {}
390
+ }
391
+ ],
392
+ "parts": [],
393
+ "description": "表单构件"
394
+ },
395
+ {
396
+ "name": "eo-form-item",
397
+ "alias": [
398
+ "form.general-form-item"
399
+ ],
400
+ "properties": [
401
+ {
402
+ "name": "formElement",
403
+ "attribute": false,
404
+ "type": "Form"
405
+ },
406
+ {
407
+ "name": "curElement",
408
+ "attribute": false,
409
+ "type": "HTMLElement"
410
+ },
411
+ {
412
+ "name": "name",
413
+ "description": "字段名称",
414
+ "type": "string"
415
+ },
416
+ {
417
+ "name": "label",
418
+ "type": "string"
419
+ },
420
+ {
421
+ "name": "pattern",
422
+ "type": "string"
423
+ },
424
+ {
425
+ "name": "message",
426
+ "attribute": false,
427
+ "type": "Record<string, string>"
428
+ },
429
+ {
430
+ "name": "max",
431
+ "type": "number"
432
+ },
433
+ {
434
+ "name": "min",
435
+ "type": "number"
436
+ },
437
+ {
438
+ "name": "required",
439
+ "description": "表单项是否必填",
440
+ "type": "boolean"
441
+ },
442
+ {
443
+ "name": "value",
444
+ "description": "初始值",
445
+ "type": "string"
446
+ },
447
+ {
448
+ "name": "labelCol",
449
+ "description": "表单项 label 标签布局",
450
+ "type": "string"
451
+ },
452
+ {
453
+ "name": "wrapperCol",
454
+ "description": "表单项控件布局",
455
+ "type": "string"
456
+ },
457
+ {
458
+ "name": "valuePropsName",
459
+ "type": "string"
460
+ },
461
+ {
462
+ "name": "layout",
463
+ "type": "Layout"
464
+ },
465
+ {
466
+ "name": "size",
467
+ "type": "ComponentSize"
468
+ },
469
+ {
470
+ "name": "trim",
471
+ "description": "是否自动去除前后的空白字符",
472
+ "default": "true"
473
+ },
474
+ {
475
+ "name": "trigger",
476
+ "description": "事件触发方法名",
477
+ "type": "string"
478
+ },
479
+ {
480
+ "name": "validator",
481
+ "description": "表单项校验方法",
482
+ "attribute": false,
483
+ "type": "((value: any) => MessageBody)"
484
+ },
485
+ {
486
+ "name": "needValidate",
487
+ "description": "值变化时是否主动出发校验",
488
+ "type": "boolean"
489
+ }
490
+ ],
491
+ "events": [],
492
+ "slots": [],
493
+ "methods": [],
494
+ "parts": [],
495
+ "description": "通用输入框构件"
496
+ },
190
497
  {
191
498
  "name": "eo-radio",
192
499
  "alias": [
@@ -447,9 +754,9 @@
447
754
  "description": "用于general-forms的通用按钮"
448
755
  },
449
756
  {
450
- "name": "eo-textarea",
757
+ "name": "eo-checkbox",
451
758
  "alias": [
452
- "form.general-textarea"
759
+ "form.general-checkbox"
453
760
  ],
454
761
  "properties": [
455
762
  {
@@ -459,18 +766,28 @@
459
766
  },
460
767
  {
461
768
  "name": "label",
462
- "description": "标签文字",
769
+ "description": "字段说明",
463
770
  "type": "string"
464
771
  },
465
772
  {
466
773
  "name": "value",
467
774
  "description": "值",
468
- "type": "string"
775
+ "attribute": false,
776
+ "type": "CheckboxValueType[]"
469
777
  },
470
778
  {
471
- "name": "placeholder",
472
- "description": "占位说明",
473
- "type": "string"
779
+ "name": "options",
780
+ "description": "多选框选项表",
781
+ "required": true,
782
+ "default": "[]",
783
+ "attribute": false,
784
+ "type": "CheckboxOptionType[]"
785
+ },
786
+ {
787
+ "name": "type",
788
+ "description": "类型",
789
+ "default": "\"default\"",
790
+ "type": "CheckboxType"
474
791
  },
475
792
  {
476
793
  "name": "disabled",
@@ -478,63 +795,43 @@
478
795
  "type": "boolean"
479
796
  },
480
797
  {
481
- "name": "minLength",
482
- "description": "最小长度",
483
- "type": "number"
484
- },
485
- {
486
- "name": "maxLength",
487
- "description": "最大长度",
488
- "type": "number"
489
- },
490
- {
491
- "name": "autoSize",
492
- "description": "大小自适应",
493
- "attribute": false,
494
- "type": "AutoSize"
798
+ "name": "isCustom",
799
+ "description": "是否为自定义",
800
+ "default": "false",
801
+ "type": "boolean"
495
802
  },
496
803
  {
497
804
  "name": "required",
498
805
  "description": "是否必填",
499
806
  "type": "boolean"
500
807
  },
501
- {
502
- "name": "max",
503
- "description": "表单校验最大长度",
504
- "type": "number"
505
- },
506
- {
507
- "name": "min",
508
- "description": "表单校验最小长度",
509
- "type": "number"
510
- },
511
808
  {
512
809
  "name": "message",
513
- "description": "校验信息",
810
+ "description": "校验文本",
514
811
  "attribute": false,
515
812
  "type": "Record<string, string>"
516
- },
517
- {
518
- "name": "textareaStyle",
519
- "description": "自定义样式",
520
- "attribute": false,
521
- "type": "React.CSSProperties"
522
813
  }
523
814
  ],
524
815
  "events": [
525
816
  {
526
817
  "name": "change",
527
- "description": "",
818
+ "description": "复选框变化事件",
528
819
  "detail": {
529
- "description": null,
530
- "type": "string"
820
+ "type": "CheckboxOptionType[]"
821
+ }
822
+ },
823
+ {
824
+ "name": "options.change",
825
+ "description": "复选框变化事件",
826
+ "detail": {
827
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
531
828
  }
532
829
  }
533
830
  ],
534
831
  "slots": [],
535
832
  "methods": [],
536
833
  "parts": [],
537
- "description": "通用多行文本输入框构件"
834
+ "description": "表单复选框构件"
538
835
  },
539
836
  {
540
837
  "name": "eo-dynamic-form-item",
@@ -644,9 +941,9 @@
644
941
  "description": "搜索框"
645
942
  },
646
943
  {
647
- "name": "eo-checkbox",
944
+ "name": "eo-icon-select",
648
945
  "alias": [
649
- "form.general-checkbox"
946
+ "form.icon-select"
650
947
  ],
651
948
  "properties": [
652
949
  {
@@ -663,33 +960,13 @@
663
960
  "name": "value",
664
961
  "description": "值",
665
962
  "attribute": false,
666
- "type": "CheckboxValueType[]"
667
- },
668
- {
669
- "name": "options",
670
- "description": "多选框选项表",
671
- "required": true,
672
- "default": "[]",
673
- "attribute": false,
674
- "type": "CheckboxOptionType[]"
675
- },
676
- {
677
- "name": "type",
678
- "description": "类型",
679
- "default": "\"default\"",
680
- "type": "CheckboxType"
963
+ "type": "Icon"
681
964
  },
682
965
  {
683
966
  "name": "disabled",
684
967
  "description": "是否禁用",
685
968
  "type": "boolean"
686
969
  },
687
- {
688
- "name": "isCustom",
689
- "description": "是否为自定义",
690
- "default": "false",
691
- "type": "boolean"
692
- },
693
970
  {
694
971
  "name": "required",
695
972
  "description": "是否必填",
@@ -697,7 +974,7 @@
697
974
  },
698
975
  {
699
976
  "name": "message",
700
- "description": "校验文本",
977
+ "description": "是否必填",
701
978
  "attribute": false,
702
979
  "type": "Record<string, string>"
703
980
  }
@@ -705,23 +982,16 @@
705
982
  "events": [
706
983
  {
707
984
  "name": "change",
708
- "description": "复选框变化事件",
709
- "detail": {
710
- "type": "CheckboxOptionType[]"
711
- }
712
- },
713
- {
714
- "name": "options.change",
715
- "description": "复选框变化事件",
985
+ "description": "值变化时触发",
716
986
  "detail": {
717
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
987
+ "type": "Icon | undefined"
718
988
  }
719
989
  }
720
990
  ],
721
991
  "slots": [],
722
992
  "methods": [],
723
993
  "parts": [],
724
- "description": "表单复选框构件"
994
+ "description": "图标选择构件"
725
995
  },
726
996
  {
727
997
  "name": "eo-upload-image",
@@ -1079,7 +1349,7 @@
1079
1349
  "events": [
1080
1350
  {
1081
1351
  "name": "change",
1082
- "description": "输入变化时被触发,时间变化时触发",
1352
+ "description": "时间变化时触发",
1083
1353
  "detail": {
1084
1354
  "type": "string"
1085
1355
  }
@@ -1105,274 +1375,103 @@
1105
1375
  "description": "构件 `eo-time-picker`"
1106
1376
  },
1107
1377
  {
1108
- "name": "eo-form",
1109
- "alias": [
1110
- "form.general-form"
1111
- ],
1112
- "properties": [
1113
- {
1114
- "name": "layout",
1115
- "description": "布局方式",
1116
- "type": "Layout"
1117
- },
1118
- {
1119
- "name": "size",
1120
- "description": "表单组件尺寸",
1121
- "type": "ComponentSize"
1122
- },
1123
- {
1124
- "name": "formStyle",
1125
- "attribute": false,
1126
- "type": "React.CSSProperties"
1127
- }
1128
- ],
1129
- "events": [
1130
- {
1131
- "name": "values.change",
1132
- "description": "表单值变更事件",
1133
- "detail": {
1134
- "description": null,
1135
- "type": "Record<string, unknown>"
1136
- }
1137
- },
1138
- {
1139
- "name": "validate.success",
1140
- "description": "表单验证成功时触发事件",
1141
- "detail": {
1142
- "type": "Record<string, unknown>"
1143
- }
1144
- },
1145
- {
1146
- "name": "validate.error",
1147
- "description": "表单验证报错时触发事件",
1148
- "detail": {
1149
- "type": "MessageBody[]"
1150
- }
1151
- }
1152
- ],
1153
- "slots": [
1154
- {
1155
- "name": null,
1156
- "description": "表单内容"
1157
- }
1158
- ],
1159
- "methods": [
1160
- {
1161
- "name": "validate",
1162
- "params": [],
1163
- "description": "表单校验方法",
1164
- "returns": {
1165
- "type": "boolean | Record<string, unknown>"
1166
- }
1167
- },
1168
- {
1169
- "name": "setInitValue",
1170
- "params": [
1171
- {
1172
- "name": "values",
1173
- "type": "Record<string, unknown>"
1174
- }
1175
- ],
1176
- "description": "表单设置值方法",
1177
- "returns": {}
1178
- },
1179
- {
1180
- "name": "resetFields",
1181
- "params": [
1182
- {
1183
- "name": "name",
1184
- "type": "string"
1185
- }
1186
- ],
1187
- "description": "表单重置值方法",
1188
- "returns": {}
1189
- },
1190
- {
1191
- "name": "getFieldsValue",
1192
- "params": [
1193
- {
1194
- "name": "name",
1195
- "type": "string"
1196
- }
1197
- ],
1198
- "description": "获取表单值方法",
1199
- "returns": {}
1200
- },
1201
- {
1202
- "name": "validateField",
1203
- "params": [
1204
- {
1205
- "name": "name",
1206
- "type": "string"
1207
- }
1208
- ],
1209
- "description": "校验表单字段方法",
1210
- "returns": {}
1211
- },
1212
- {
1213
- "name": "resetValidateState",
1214
- "params": [],
1215
- "description": "重置表单校验状态方法",
1216
- "returns": {}
1217
- }
1218
- ],
1219
- "parts": [],
1220
- "description": "表单构件"
1221
- },
1222
- {
1223
- "name": "eo-icon-select",
1224
- "alias": [
1225
- "form.icon-select"
1226
- ],
1378
+ "name": "eo-date-picker",
1227
1379
  "properties": [
1228
1380
  {
1229
1381
  "name": "name",
1230
- "description": "字段名称",
1382
+ "description": "日期选择器字段名",
1231
1383
  "type": "string"
1232
1384
  },
1233
1385
  {
1234
1386
  "name": "label",
1235
- "description": "字段说明",
1387
+ "description": "日期选择器说明",
1236
1388
  "type": "string"
1237
1389
  },
1238
1390
  {
1239
1391
  "name": "value",
1240
- "description": "",
1241
- "attribute": false,
1242
- "type": "Icon"
1243
- },
1244
- {
1245
- "name": "disabled",
1246
- "description": "是否禁用",
1247
- "type": "boolean"
1248
- },
1249
- {
1250
- "name": "required",
1251
- "description": "是否必填",
1252
- "type": "boolean"
1253
- },
1254
- {
1255
- "name": "message",
1256
- "description": "是否必填",
1257
- "attribute": false,
1258
- "type": "Record<string, string>"
1259
- }
1260
- ],
1261
- "events": [
1262
- {
1263
- "name": "change",
1264
- "description": "值变化时触发",
1265
- "detail": {
1266
- "type": "Icon | undefined"
1267
- }
1268
- }
1269
- ],
1270
- "slots": [],
1271
- "methods": [],
1272
- "parts": [],
1273
- "description": "图标选择构件"
1274
- },
1275
- {
1276
- "name": "eo-form-item",
1277
- "alias": [
1278
- "form.general-form-item"
1279
- ],
1280
- "properties": [
1281
- {
1282
- "name": "formElement",
1283
- "attribute": false,
1284
- "type": "Form"
1285
- },
1286
- {
1287
- "name": "curElement",
1288
- "attribute": false,
1289
- "type": "HTMLElement"
1290
- },
1291
- {
1292
- "name": "name",
1293
- "description": "字段名称",
1294
- "type": "string"
1295
- },
1296
- {
1297
- "name": "label",
1392
+ "description": "日期选择器的初始值",
1298
1393
  "type": "string"
1299
1394
  },
1300
1395
  {
1301
- "name": "pattern",
1396
+ "name": "placeholder",
1397
+ "description": "日期选择器占位说明",
1302
1398
  "type": "string"
1303
1399
  },
1304
1400
  {
1305
1401
  "name": "message",
1402
+ "description": "校验文本信息",
1306
1403
  "attribute": false,
1307
1404
  "type": "Record<string, string>"
1308
1405
  },
1309
1406
  {
1310
- "name": "max",
1311
- "type": "number"
1312
- },
1313
- {
1314
- "name": "min",
1315
- "type": "number"
1407
+ "name": "disabled",
1408
+ "description": "是否禁用",
1409
+ "type": "boolean"
1316
1410
  },
1317
1411
  {
1318
1412
  "name": "required",
1319
- "description": "表单项是否必填",
1413
+ "description": "是否必填",
1320
1414
  "type": "boolean"
1321
1415
  },
1322
1416
  {
1323
- "name": "value",
1324
- "description": "初始值",
1325
- "type": "string"
1326
- },
1327
- {
1328
- "name": "labelCol",
1329
- "description": "表单项 label 标签布局",
1330
- "type": "string"
1331
- },
1332
- {
1333
- "name": "wrapperCol",
1334
- "description": "表单项控件布局",
1335
- "type": "string"
1417
+ "name": "showTime",
1418
+ "description": "是否显示时间, 当设为 `true` 时, 请同时设置 `format` 为 `YYYY-MM-DD HH:mm:ss` 使其也显示具体时,分,秒 的时间",
1419
+ "type": "boolean"
1336
1420
  },
1337
1421
  {
1338
- "name": "valuePropsName",
1422
+ "name": "format",
1423
+ "description": "显示预览的格式,具体配置参考 [dayjs](https://day.js.org/docs/zh-CN/display/format#%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%8D%A0%E4%BD%8D%E7%AC%A6%E5%88%97%E8%A1%A8),注意,这里并非是定义给后台的数据格式,给后台的数据格式定义请参考 `general-form` 构件的 [valueTypes](developers/brick-book/brick/forms.general-form) 属性",
1339
1424
  "type": "string"
1340
1425
  },
1341
1426
  {
1342
- "name": "layout",
1343
- "type": "Layout"
1427
+ "name": "picker",
1428
+ "description": "设置选择器类型",
1429
+ "attribute": false,
1430
+ "type": "PickerMode"
1344
1431
  },
1345
1432
  {
1346
- "name": "size",
1347
- "type": "ComponentSize"
1433
+ "name": "futureDateDisabled",
1434
+ "description": "不可选择未来日期,优先级高于disabledDate",
1435
+ "type": "boolean"
1348
1436
  },
1349
1437
  {
1350
- "name": "trim",
1351
- "description": "是否自动去除前后的空白字符",
1352
- "default": "true"
1438
+ "name": "disabledDate",
1439
+ "description": "不可选择的日期",
1440
+ "attribute": false,
1441
+ "type": "DisabledDateType"
1353
1442
  },
1354
1443
  {
1355
- "name": "trigger",
1356
- "description": "事件触发方法名",
1357
- "type": "string"
1444
+ "name": "useFastSelectBtn",
1445
+ "description": "快速选项",
1446
+ "type": "boolean"
1358
1447
  },
1359
1448
  {
1360
- "name": "validator",
1361
- "description": "表单项校验方法",
1449
+ "name": "inputBoxStyle",
1450
+ "description": "输入框样式",
1362
1451
  "attribute": false,
1363
- "type": "((value: any) => MessageBody)"
1452
+ "type": "CSSProperties"
1453
+ }
1454
+ ],
1455
+ "events": [
1456
+ {
1457
+ "name": "change",
1458
+ "description": "日期变化时触发",
1459
+ "detail": {
1460
+ "type": "string"
1461
+ }
1364
1462
  },
1365
1463
  {
1366
- "name": "needValidate",
1367
- "description": "值变化时是否主动出发校验",
1368
- "type": "boolean"
1464
+ "name": "ok",
1465
+ "description": "点击确定按钮触发(showTime 为 true 使用)",
1466
+ "detail": {
1467
+ "type": "string"
1468
+ }
1369
1469
  }
1370
1470
  ],
1371
- "events": [],
1372
1471
  "slots": [],
1373
1472
  "methods": [],
1374
1473
  "parts": [],
1375
- "description": "通用输入框构件"
1474
+ "description": "构件 `eo-date-picker`"
1376
1475
  }
1377
1476
  ],
1378
1477
  "providers": []