@next-bricks/form 1.13.12 → 1.13.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -188,244 +188,6 @@
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
- {
279
- "name": "focusTextarea",
280
- "params": [],
281
- "description": "focus",
282
- "returns": {}
283
- }
284
- ],
285
- "parts": [],
286
- "description": "通用多行文本输入框构件",
287
- "category": "form-input-basic"
288
- },
289
- {
290
- "name": "eo-form",
291
- "alias": [
292
- "form.general-form"
293
- ],
294
- "properties": [
295
- {
296
- "name": "staticValues",
297
- "attribute": false,
298
- "type": "Record<string, unknown>"
299
- },
300
- {
301
- "name": "layout",
302
- "description": "布局方式(默认 vertical 布局)",
303
- "default": "vertical",
304
- "type": "Layout"
305
- },
306
- {
307
- "name": "size",
308
- "description": "表单组件尺寸",
309
- "type": "ComponentSize"
310
- },
311
- {
312
- "name": "labelCol",
313
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
314
- "default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
315
- "attribute": false,
316
- "type": "ColProps"
317
- },
318
- {
319
- "name": "wrapperCol",
320
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
321
- "default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
322
- "attribute": false,
323
- "type": "ColProps"
324
- },
325
- {
326
- "name": "formStyle",
327
- "attribute": false,
328
- "type": "React.CSSProperties"
329
- }
330
- ],
331
- "events": [
332
- {
333
- "name": "values.change",
334
- "description": "表单值变更事件",
335
- "detail": {
336
- "description": null,
337
- "type": "Record<string, unknown>"
338
- }
339
- },
340
- {
341
- "name": "validate.success",
342
- "description": "表单验证成功时触发事件",
343
- "detail": {
344
- "type": "Record<string, unknown>"
345
- }
346
- },
347
- {
348
- "name": "validate.error",
349
- "description": "表单验证报错时触发事件",
350
- "detail": {
351
- "type": "(MessageBody & { name: string })[]"
352
- }
353
- }
354
- ],
355
- "slots": [
356
- {
357
- "name": null,
358
- "description": "表单内容"
359
- }
360
- ],
361
- "methods": [
362
- {
363
- "name": "validate",
364
- "params": [],
365
- "description": "表单校验方法",
366
- "returns": {
367
- "type": "boolean | Record<string, unknown>"
368
- }
369
- },
370
- {
371
- "name": "setInitValue",
372
- "params": [
373
- {
374
- "name": "values",
375
- "type": "Record<string, unknown>"
376
- },
377
- {
378
- "name": "options",
379
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
380
- }
381
- ],
382
- "description": "表单设置值方法",
383
- "returns": {}
384
- },
385
- {
386
- "name": "resetFields",
387
- "params": [
388
- {
389
- "name": "name",
390
- "type": "string"
391
- }
392
- ],
393
- "description": "表单重置值方法",
394
- "returns": {}
395
- },
396
- {
397
- "name": "getFieldsValue",
398
- "params": [
399
- {
400
- "name": "name",
401
- "type": "string"
402
- }
403
- ],
404
- "description": "获取表单值方法",
405
- "returns": {}
406
- },
407
- {
408
- "name": "validateField",
409
- "params": [
410
- {
411
- "name": "name",
412
- "type": "string"
413
- }
414
- ],
415
- "description": "校验表单字段方法",
416
- "returns": {}
417
- },
418
- {
419
- "name": "resetValidateState",
420
- "params": [],
421
- "description": "重置表单校验状态方法",
422
- "returns": {}
423
- }
424
- ],
425
- "parts": [],
426
- "description": "表单构件",
427
- "category": "form-input-basic"
428
- },
429
191
  {
430
192
  "name": "eo-form-item",
431
193
  "alias": [
@@ -830,6 +592,104 @@
830
592
  "description": "表单提交按钮",
831
593
  "category": "form-input-basic"
832
594
  },
595
+ {
596
+ "name": "eo-textarea",
597
+ "alias": [
598
+ "form.general-textarea"
599
+ ],
600
+ "properties": [
601
+ {
602
+ "name": "name",
603
+ "description": "字段名称",
604
+ "type": "string"
605
+ },
606
+ {
607
+ "name": "label",
608
+ "description": "标签文字",
609
+ "type": "string"
610
+ },
611
+ {
612
+ "name": "value",
613
+ "description": "值",
614
+ "type": "string"
615
+ },
616
+ {
617
+ "name": "placeholder",
618
+ "description": "占位说明",
619
+ "type": "string"
620
+ },
621
+ {
622
+ "name": "disabled",
623
+ "description": "是否禁用",
624
+ "type": "boolean"
625
+ },
626
+ {
627
+ "name": "minLength",
628
+ "description": "最小长度",
629
+ "type": "number"
630
+ },
631
+ {
632
+ "name": "maxLength",
633
+ "description": "最大长度",
634
+ "type": "number"
635
+ },
636
+ {
637
+ "name": "autoSize",
638
+ "description": "大小自适应",
639
+ "attribute": false,
640
+ "type": "AutoSize"
641
+ },
642
+ {
643
+ "name": "required",
644
+ "description": "是否必填",
645
+ "type": "boolean"
646
+ },
647
+ {
648
+ "name": "max",
649
+ "description": "表单校验最大长度",
650
+ "type": "number"
651
+ },
652
+ {
653
+ "name": "min",
654
+ "description": "表单校验最小长度",
655
+ "type": "number"
656
+ },
657
+ {
658
+ "name": "message",
659
+ "description": "校验信息",
660
+ "attribute": false,
661
+ "type": "Record<string, string>"
662
+ },
663
+ {
664
+ "name": "textareaStyle",
665
+ "description": "自定义样式",
666
+ "attribute": false,
667
+ "type": "React.CSSProperties"
668
+ }
669
+ ],
670
+ "events": [
671
+ {
672
+ "name": "change",
673
+ "description": "",
674
+ "detail": {
675
+ "description": null,
676
+ "type": "string"
677
+ }
678
+ }
679
+ ],
680
+ "slots": [],
681
+ "methods": [
682
+ {
683
+ "name": "focusTextarea",
684
+ "params": [],
685
+ "description": "focus",
686
+ "returns": {}
687
+ }
688
+ ],
689
+ "parts": [],
690
+ "description": "通用多行文本输入框构件",
691
+ "category": "form-input-basic"
692
+ },
833
693
  {
834
694
  "name": "eo-checkbox",
835
695
  "alias": [
@@ -867,59 +727,199 @@
867
727
  "type": "CheckboxType"
868
728
  },
869
729
  {
870
- "name": "disabled",
871
- "description": "是否禁用",
872
- "type": "boolean"
730
+ "name": "disabled",
731
+ "description": "是否禁用",
732
+ "type": "boolean"
733
+ },
734
+ {
735
+ "name": "isCustom",
736
+ "description": "是否为自定义",
737
+ "default": "false",
738
+ "type": "boolean"
739
+ },
740
+ {
741
+ "name": "required",
742
+ "description": "是否必填",
743
+ "type": "boolean"
744
+ },
745
+ {
746
+ "name": "message",
747
+ "description": "校验文本",
748
+ "attribute": false,
749
+ "type": "Record<string, string>"
750
+ },
751
+ {
752
+ "name": "isGroup",
753
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
754
+ "type": "boolean"
755
+ },
756
+ {
757
+ "name": "optionGroups",
758
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
759
+ "attribute": false,
760
+ "type": "OptionGroup[]"
761
+ }
762
+ ],
763
+ "events": [
764
+ {
765
+ "name": "change",
766
+ "description": "复选框变化事件",
767
+ "detail": {
768
+ "type": "CheckboxOptionType[]"
769
+ }
770
+ },
771
+ {
772
+ "name": "options.change",
773
+ "description": "复选框变化事件",
774
+ "detail": {
775
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
776
+ }
777
+ }
778
+ ],
779
+ "slots": [],
780
+ "methods": [],
781
+ "parts": [],
782
+ "description": "表单复选框构件",
783
+ "category": "form-input-basic"
784
+ },
785
+ {
786
+ "name": "eo-form",
787
+ "alias": [
788
+ "form.general-form"
789
+ ],
790
+ "properties": [
791
+ {
792
+ "name": "staticValues",
793
+ "attribute": false,
794
+ "type": "Record<string, unknown>"
873
795
  },
874
796
  {
875
- "name": "isCustom",
876
- "description": "是否为自定义",
877
- "default": "false",
878
- "type": "boolean"
797
+ "name": "layout",
798
+ "description": "布局方式(默认 vertical 布局)",
799
+ "default": "vertical",
800
+ "type": "Layout"
879
801
  },
880
802
  {
881
- "name": "required",
882
- "description": "是否必填",
883
- "type": "boolean"
803
+ "name": "size",
804
+ "description": "表单组件尺寸",
805
+ "type": "ComponentSize"
884
806
  },
885
807
  {
886
- "name": "message",
887
- "description": "校验文本",
808
+ "name": "labelCol",
809
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
810
+ "default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
888
811
  "attribute": false,
889
- "type": "Record<string, string>"
812
+ "type": "ColProps"
890
813
  },
891
814
  {
892
- "name": "isGroup",
893
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
894
- "type": "boolean"
815
+ "name": "wrapperCol",
816
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
817
+ "default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
818
+ "attribute": false,
819
+ "type": "ColProps"
895
820
  },
896
821
  {
897
- "name": "optionGroups",
898
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
822
+ "name": "formStyle",
899
823
  "attribute": false,
900
- "type": "OptionGroup[]"
824
+ "type": "React.CSSProperties"
901
825
  }
902
826
  ],
903
827
  "events": [
904
828
  {
905
- "name": "change",
906
- "description": "复选框变化事件",
829
+ "name": "values.change",
830
+ "description": "表单值变更事件",
907
831
  "detail": {
908
- "type": "CheckboxOptionType[]"
832
+ "description": null,
833
+ "type": "Record<string, unknown>"
909
834
  }
910
835
  },
911
836
  {
912
- "name": "options.change",
913
- "description": "复选框变化事件",
837
+ "name": "validate.success",
838
+ "description": "表单验证成功时触发事件",
914
839
  "detail": {
915
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
840
+ "type": "Record<string, unknown>"
841
+ }
842
+ },
843
+ {
844
+ "name": "validate.error",
845
+ "description": "表单验证报错时触发事件",
846
+ "detail": {
847
+ "type": "(MessageBody & { name: string })[]"
916
848
  }
917
849
  }
918
850
  ],
919
- "slots": [],
920
- "methods": [],
851
+ "slots": [
852
+ {
853
+ "name": null,
854
+ "description": "表单内容"
855
+ }
856
+ ],
857
+ "methods": [
858
+ {
859
+ "name": "validate",
860
+ "params": [],
861
+ "description": "表单校验方法",
862
+ "returns": {
863
+ "type": "boolean | Record<string, unknown>"
864
+ }
865
+ },
866
+ {
867
+ "name": "setInitValue",
868
+ "params": [
869
+ {
870
+ "name": "values",
871
+ "type": "Record<string, unknown>"
872
+ },
873
+ {
874
+ "name": "options",
875
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
876
+ }
877
+ ],
878
+ "description": "表单设置值方法",
879
+ "returns": {}
880
+ },
881
+ {
882
+ "name": "resetFields",
883
+ "params": [
884
+ {
885
+ "name": "name",
886
+ "type": "string"
887
+ }
888
+ ],
889
+ "description": "表单重置值方法",
890
+ "returns": {}
891
+ },
892
+ {
893
+ "name": "getFieldsValue",
894
+ "params": [
895
+ {
896
+ "name": "name",
897
+ "type": "string"
898
+ }
899
+ ],
900
+ "description": "获取表单值方法",
901
+ "returns": {}
902
+ },
903
+ {
904
+ "name": "validateField",
905
+ "params": [
906
+ {
907
+ "name": "name",
908
+ "type": "string"
909
+ }
910
+ ],
911
+ "description": "校验表单字段方法",
912
+ "returns": {}
913
+ },
914
+ {
915
+ "name": "resetValidateState",
916
+ "params": [],
917
+ "description": "重置表单校验状态方法",
918
+ "returns": {}
919
+ }
920
+ ],
921
921
  "parts": [],
922
- "description": "表单复选框构件",
922
+ "description": "表单构件",
923
923
  "category": "form-input-basic"
924
924
  },
925
925
  {
@@ -1655,24 +1655,27 @@
1655
1655
  "category": "form-input-basic"
1656
1656
  },
1657
1657
  {
1658
- "name": "eo-time-range-picker",
1658
+ "name": "eo-color-picker",
1659
1659
  "properties": [
1660
1660
  {
1661
1661
  "name": "name",
1662
- "description": "时间段选择器字段名",
1662
+ "description": "字段名称",
1663
1663
  "type": "string"
1664
1664
  },
1665
1665
  {
1666
1666
  "name": "label",
1667
- "description": "时间段选择器说明",
1667
+ "description": "字段说明",
1668
1668
  "type": "string"
1669
1669
  },
1670
1670
  {
1671
1671
  "name": "value",
1672
- "description": "时间段选择器的初始值",
1673
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1674
- "attribute": false,
1675
- "type": "TimeRange"
1672
+ "description": "",
1673
+ "type": "string"
1674
+ },
1675
+ {
1676
+ "name": "defaultValue",
1677
+ "description": "颜色默认的值",
1678
+ "type": "string | Color"
1676
1679
  },
1677
1680
  {
1678
1681
  "name": "required",
@@ -1680,72 +1683,74 @@
1680
1683
  "type": "boolean"
1681
1684
  },
1682
1685
  {
1683
- "name": "rangeType",
1684
- "description": "时间段类型",
1686
+ "name": "allowClear",
1687
+ "description": "允许清除选择的颜色",
1688
+ "type": "boolean"
1689
+ },
1690
+ {
1691
+ "name": "size",
1692
+ "description": "设置触发器大小",
1693
+ "default": "middle",
1685
1694
  "attribute": false,
1686
- "type": "RangeType"
1695
+ "type": "\"small\" | \"middle\" | \"large\""
1687
1696
  },
1688
1697
  {
1689
- "name": "selectNearDays",
1690
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1691
- "type": "number"
1698
+ "name": "showText",
1699
+ "description": "显示颜色文本",
1700
+ "type": "boolean"
1692
1701
  },
1693
1702
  {
1694
- "name": "emitChangeOnInit",
1695
- "description": "",
1696
- "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1703
+ "name": "disabled",
1704
+ "description": "是否禁用",
1697
1705
  "type": "boolean"
1698
1706
  },
1699
1707
  {
1700
- "name": "presetRanges",
1701
- "description": "",
1702
- "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1708
+ "name": "format",
1709
+ "description": "颜色格式",
1710
+ "default": "hex",
1703
1711
  "attribute": false,
1704
- "type": "presetRangeType[]"
1712
+ "type": "\"rgb\" | \"hex\" | \"hsb\""
1705
1713
  },
1706
1714
  {
1707
- "name": "validator",
1715
+ "name": "configProps",
1716
+ "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1708
1717
  "attribute": false,
1709
- "type": "((value: any) => MessageBody | string)"
1718
+ "type": "Partial<ColorPickerProps>"
1710
1719
  }
1711
1720
  ],
1712
1721
  "events": [
1713
1722
  {
1714
1723
  "name": "change",
1715
- "description": "时间段变化时触发",
1724
+ "description": "颜色变化事件, 返回值格式和`format`格式一致",
1716
1725
  "detail": {
1717
- "type": "TimeRange"
1726
+ "type": "string | undefined"
1718
1727
  }
1719
1728
  }
1720
1729
  ],
1721
1730
  "slots": [],
1722
1731
  "methods": [],
1723
1732
  "parts": [],
1724
- "description": "时间区间选择器",
1725
- "category": "form-input-basic"
1733
+ "description": "构件 `eo-color-picker`"
1726
1734
  },
1727
1735
  {
1728
- "name": "eo-color-picker",
1736
+ "name": "eo-time-range-picker",
1729
1737
  "properties": [
1730
1738
  {
1731
1739
  "name": "name",
1732
- "description": "字段名称",
1740
+ "description": "时间段选择器字段名",
1733
1741
  "type": "string"
1734
1742
  },
1735
1743
  {
1736
1744
  "name": "label",
1737
- "description": "字段说明",
1745
+ "description": "时间段选择器说明",
1738
1746
  "type": "string"
1739
1747
  },
1740
1748
  {
1741
1749
  "name": "value",
1742
- "description": "",
1743
- "type": "string"
1744
- },
1745
- {
1746
- "name": "defaultValue",
1747
- "description": "颜色默认的值",
1748
- "type": "string | Color"
1750
+ "description": "时间段选择器的初始值",
1751
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1752
+ "attribute": false,
1753
+ "type": "TimeRange"
1749
1754
  },
1750
1755
  {
1751
1756
  "name": "required",
@@ -1753,54 +1758,49 @@
1753
1758
  "type": "boolean"
1754
1759
  },
1755
1760
  {
1756
- "name": "allowClear",
1757
- "description": "允许清除选择的颜色",
1758
- "type": "boolean"
1759
- },
1760
- {
1761
- "name": "size",
1762
- "description": "设置触发器大小",
1763
- "default": "middle",
1761
+ "name": "rangeType",
1762
+ "description": "时间段类型",
1764
1763
  "attribute": false,
1765
- "type": "\"small\" | \"middle\" | \"large\""
1764
+ "type": "RangeType"
1766
1765
  },
1767
1766
  {
1768
- "name": "showText",
1769
- "description": "显示颜色文本",
1770
- "type": "boolean"
1767
+ "name": "selectNearDays",
1768
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1769
+ "type": "number"
1771
1770
  },
1772
1771
  {
1773
- "name": "disabled",
1774
- "description": "是否禁用",
1772
+ "name": "emitChangeOnInit",
1773
+ "description": "",
1774
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1775
1775
  "type": "boolean"
1776
1776
  },
1777
1777
  {
1778
- "name": "format",
1779
- "description": "颜色格式",
1780
- "default": "hex",
1778
+ "name": "presetRanges",
1779
+ "description": "",
1780
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1781
1781
  "attribute": false,
1782
- "type": "\"rgb\" | \"hex\" | \"hsb\""
1782
+ "type": "presetRangeType[]"
1783
1783
  },
1784
1784
  {
1785
- "name": "configProps",
1786
- "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1785
+ "name": "validator",
1787
1786
  "attribute": false,
1788
- "type": "Partial<ColorPickerProps>"
1787
+ "type": "((value: any) => MessageBody | string)"
1789
1788
  }
1790
1789
  ],
1791
1790
  "events": [
1792
1791
  {
1793
1792
  "name": "change",
1794
- "description": "颜色变化事件, 返回值格式和`format`格式一致",
1793
+ "description": "时间段变化时触发",
1795
1794
  "detail": {
1796
- "type": "string | undefined"
1795
+ "type": "TimeRange"
1797
1796
  }
1798
1797
  }
1799
1798
  ],
1800
1799
  "slots": [],
1801
1800
  "methods": [],
1802
1801
  "parts": [],
1803
- "description": "构件 `eo-color-picker`"
1802
+ "description": "时间区间选择器",
1803
+ "category": "form-input-basic"
1804
1804
  }
1805
1805
  ],
1806
1806
  "providers": []