@next-bricks/form 1.15.1 → 1.15.2

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 (47) hide show
  1. package/dist/bricks.json +15 -15
  2. package/dist/chunks/{4837.ee78a559.js → 4837.99ba6b49.js} +2 -2
  3. package/dist/chunks/{4837.ee78a559.js.map → 4837.99ba6b49.js.map} +1 -1
  4. package/dist/chunks/5582.a2d37704.js +3 -0
  5. package/dist/chunks/5582.a2d37704.js.map +1 -0
  6. package/dist/chunks/{7218.8a34ac8c.js → 7218.abb44809.js} +2 -2
  7. package/dist/chunks/{7218.8a34ac8c.js.map → 7218.abb44809.js.map} +1 -1
  8. package/dist/chunks/{7623.5b51a117.js → 7623.3cfd20ae.js} +3 -3
  9. package/dist/chunks/{7623.5b51a117.js.map → 7623.3cfd20ae.js.map} +1 -1
  10. package/dist/chunks/{eo-color-picker.bf777bdd.js → eo-color-picker.894384c2.js} +2 -2
  11. package/dist/chunks/{eo-color-picker.bf777bdd.js.map → eo-color-picker.894384c2.js.map} +1 -1
  12. package/dist/chunks/{eo-date-picker.5fd6b30b.js → eo-date-picker.b0e2f71f.js} +2 -2
  13. package/dist/chunks/{eo-date-picker.5fd6b30b.js.map → eo-date-picker.b0e2f71f.js.map} +1 -1
  14. package/dist/chunks/{eo-dynamic-form-item.97ca5f2f.js → eo-dynamic-form-item.27eaab38.js} +3 -3
  15. package/dist/chunks/{eo-dynamic-form-item.97ca5f2f.js.map → eo-dynamic-form-item.27eaab38.js.map} +1 -1
  16. package/dist/chunks/{eo-form-item.786f3204.js → eo-form-item.e19d56f2.js} +3 -3
  17. package/dist/chunks/{eo-form-item.786f3204.js.map → eo-form-item.e19d56f2.js.map} +1 -1
  18. package/dist/chunks/{eo-radio.b560225d.js → eo-radio.df600962.js} +3 -3
  19. package/dist/chunks/{eo-radio.b560225d.js.map → eo-radio.df600962.js.map} +1 -1
  20. package/dist/chunks/{eo-select.d390e692.js → eo-select.a77cd87a.js} +3 -3
  21. package/dist/chunks/{eo-select.d390e692.js.map → eo-select.a77cd87a.js.map} +1 -1
  22. package/dist/chunks/{eo-time-picker.6972ed66.js → eo-time-picker.ca5206bb.js} +2 -2
  23. package/dist/chunks/{eo-time-picker.6972ed66.js.map → eo-time-picker.ca5206bb.js.map} +1 -1
  24. package/dist/chunks/{eo-time-range-picker.78522a35.js → eo-time-range-picker.cb070817.js} +2 -2
  25. package/dist/chunks/{eo-time-range-picker.78522a35.js.map → eo-time-range-picker.cb070817.js.map} +1 -1
  26. package/dist/chunks/{eo-upload-file.ffa88448.js → eo-upload-file.e1e302b9.js} +3 -3
  27. package/dist/chunks/{eo-upload-file.ffa88448.js.map → eo-upload-file.e1e302b9.js.map} +1 -1
  28. package/dist/chunks/{eo-upload-image.6c530fa8.js → eo-upload-image.dc763654.js} +3 -3
  29. package/dist/chunks/{eo-upload-image.6c530fa8.js.map → eo-upload-image.dc763654.js.map} +1 -1
  30. package/dist/chunks/{main.c46fbb43.js → main.aa417aca.js} +2 -2
  31. package/dist/chunks/{main.c46fbb43.js.map → main.aa417aca.js.map} +1 -1
  32. package/dist/examples.json +6 -6
  33. package/dist/{index.b0bff028.js → index.507ab014.js} +2 -2
  34. package/dist/{index.b0bff028.js.map → index.507ab014.js.map} +1 -1
  35. package/dist/manifest.json +294 -294
  36. package/dist/types.json +1186 -1186
  37. package/package.json +2 -2
  38. package/dist/chunks/4411.4c063ae9.js +0 -3
  39. package/dist/chunks/4411.4c063ae9.js.map +0 -1
  40. /package/dist/chunks/{4411.4c063ae9.js.LICENSE.txt → 5582.a2d37704.js.LICENSE.txt} +0 -0
  41. /package/dist/chunks/{7623.5b51a117.js.LICENSE.txt → 7623.3cfd20ae.js.LICENSE.txt} +0 -0
  42. /package/dist/chunks/{eo-dynamic-form-item.97ca5f2f.js.LICENSE.txt → eo-dynamic-form-item.27eaab38.js.LICENSE.txt} +0 -0
  43. /package/dist/chunks/{eo-form-item.786f3204.js.LICENSE.txt → eo-form-item.e19d56f2.js.LICENSE.txt} +0 -0
  44. /package/dist/chunks/{eo-radio.b560225d.js.LICENSE.txt → eo-radio.df600962.js.LICENSE.txt} +0 -0
  45. /package/dist/chunks/{eo-select.d390e692.js.LICENSE.txt → eo-select.a77cd87a.js.LICENSE.txt} +0 -0
  46. /package/dist/chunks/{eo-upload-file.ffa88448.js.LICENSE.txt → eo-upload-file.e1e302b9.js.LICENSE.txt} +0 -0
  47. /package/dist/chunks/{eo-upload-image.6c530fa8.js.LICENSE.txt → eo-upload-image.dc763654.js.LICENSE.txt} +0 -0
@@ -188,6 +188,249 @@
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
+ "name": "textContent",
332
+ "type": "string",
333
+ "description": "文本内容"
334
+ }
335
+ ],
336
+ "events": [
337
+ {
338
+ "name": "values.change",
339
+ "description": "表单值变更事件",
340
+ "detail": {
341
+ "description": null,
342
+ "type": "Record<string, unknown>"
343
+ }
344
+ },
345
+ {
346
+ "name": "validate.success",
347
+ "description": "表单验证成功时触发事件",
348
+ "detail": {
349
+ "type": "Record<string, unknown>"
350
+ }
351
+ },
352
+ {
353
+ "name": "validate.error",
354
+ "description": "表单验证报错时触发事件",
355
+ "detail": {
356
+ "type": "(MessageBody & { name: string })[]"
357
+ }
358
+ }
359
+ ],
360
+ "slots": [
361
+ {
362
+ "name": null,
363
+ "description": "表单内容"
364
+ }
365
+ ],
366
+ "methods": [
367
+ {
368
+ "name": "validate",
369
+ "params": [],
370
+ "description": "表单校验方法",
371
+ "returns": {
372
+ "type": "boolean | Record<string, unknown>"
373
+ }
374
+ },
375
+ {
376
+ "name": "setInitValue",
377
+ "params": [
378
+ {
379
+ "name": "values",
380
+ "type": "Record<string, unknown>"
381
+ },
382
+ {
383
+ "name": "options",
384
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
385
+ }
386
+ ],
387
+ "description": "表单设置值方法",
388
+ "returns": {}
389
+ },
390
+ {
391
+ "name": "resetFields",
392
+ "params": [
393
+ {
394
+ "name": "name",
395
+ "type": "string"
396
+ }
397
+ ],
398
+ "description": "表单重置值方法",
399
+ "returns": {}
400
+ },
401
+ {
402
+ "name": "getFieldsValue",
403
+ "params": [
404
+ {
405
+ "name": "name",
406
+ "type": "string"
407
+ }
408
+ ],
409
+ "description": "获取表单值方法",
410
+ "returns": {}
411
+ },
412
+ {
413
+ "name": "validateField",
414
+ "params": [
415
+ {
416
+ "name": "name",
417
+ "type": "string"
418
+ }
419
+ ],
420
+ "description": "校验表单字段方法",
421
+ "returns": {}
422
+ },
423
+ {
424
+ "name": "resetValidateState",
425
+ "params": [],
426
+ "description": "重置表单校验状态方法",
427
+ "returns": {}
428
+ }
429
+ ],
430
+ "parts": [],
431
+ "description": "表单构件",
432
+ "category": "form-input-basic"
433
+ },
191
434
  {
192
435
  "name": "eo-form-item",
193
436
  "alias": [
@@ -297,101 +540,101 @@
297
540
  "insider": true
298
541
  },
299
542
  {
300
- "name": "eo-textarea",
543
+ "name": "eo-radio",
301
544
  "alias": [
302
- "form.general-textarea"
545
+ "form.general-radio"
303
546
  ],
304
547
  "properties": [
305
548
  {
306
549
  "name": "name",
307
- "description": "字段名称",
550
+ "description": "下拉框字段名",
308
551
  "type": "string"
309
552
  },
310
553
  {
311
554
  "name": "label",
312
- "description": "标签文字",
555
+ "description": "单选框字段说明",
313
556
  "type": "string"
314
557
  },
315
558
  {
316
- "name": "value",
317
- "description": "",
318
- "type": "string"
559
+ "name": "options",
560
+ "description": "单选框选项表",
561
+ "required": true,
562
+ "attribute": false,
563
+ "type": "GeneralOption[]"
319
564
  },
320
565
  {
321
- "name": "placeholder",
322
- "description": "占位说明",
323
- "type": "string"
566
+ "name": "value",
567
+ "description": "单选框当前选中始值",
568
+ "attribute": false,
569
+ "type": "any"
324
570
  },
325
571
  {
326
- "name": "disabled",
327
- "description": "是否禁用",
572
+ "name": "required",
573
+ "description": "是否必填",
328
574
  "type": "boolean"
329
575
  },
330
576
  {
331
- "name": "minLength",
332
- "description": "最小长度",
333
- "type": "number"
334
- },
335
- {
336
- "name": "maxLength",
337
- "description": "最大长度",
338
- "type": "number"
339
- },
340
- {
341
- "name": "autoSize",
342
- "description": "大小自适应",
577
+ "name": "message",
578
+ "description": "校验文本信息",
343
579
  "attribute": false,
344
- "type": "AutoSize"
580
+ "type": "Record<string, string>"
345
581
  },
346
582
  {
347
- "name": "required",
348
- "description": "是否必填",
583
+ "name": "disabled",
584
+ "description": "是否禁用",
349
585
  "type": "boolean"
350
586
  },
351
587
  {
352
- "name": "max",
353
- "description": "表单校验最大长度",
354
- "type": "number"
588
+ "name": "type",
589
+ "description": "单选框样式类型",
590
+ "default": "\"default\"",
591
+ "type": "RadioType"
355
592
  },
356
593
  {
357
- "name": "min",
358
- "description": "表单校验最小长度",
359
- "type": "number"
594
+ "name": "ui",
595
+ "description": "UI样式",
596
+ "default": "\"default\"",
597
+ "type": "UIType"
360
598
  },
361
599
  {
362
- "name": "message",
363
- "description": "校验信息",
364
- "attribute": false,
365
- "type": "Record<string, string>"
600
+ "name": "size",
601
+ "description": "大小,只对按钮样式生效",
602
+ "default": "\"medium\"",
603
+ "type": "ComponentSize"
366
604
  },
367
605
  {
368
- "name": "textareaStyle",
369
- "description": "自定义样式",
606
+ "name": "customStyle",
607
+ "description": "自定义radio的外层样式",
370
608
  "attribute": false,
371
609
  "type": "React.CSSProperties"
610
+ },
611
+ {
612
+ "name": "useBrick",
613
+ "description": "自定义radio的内容",
614
+ "attribute": false,
615
+ "type": "UseSingleBrickConf"
372
616
  }
373
617
  ],
374
618
  "events": [
375
619
  {
376
620
  "name": "change",
377
- "description": "",
621
+ "description": "值变化事件",
378
622
  "detail": {
379
- "description": null,
380
- "type": "string"
623
+ "type": "GeneralComplexOption | undefined"
624
+ }
625
+ },
626
+ {
627
+ "name": "options.change",
628
+ "description": "选项列表变化事件",
629
+ "detail": {
630
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
381
631
  }
382
632
  }
383
633
  ],
384
634
  "slots": [],
385
- "methods": [
386
- {
387
- "name": "focusTextarea",
388
- "params": [],
389
- "description": "focus",
390
- "returns": {}
391
- }
392
- ],
635
+ "methods": [],
393
636
  "parts": [],
394
- "description": "通用多行文本输入框构件",
637
+ "description": "通用单选构件",
395
638
  "category": "form-input-basic"
396
639
  },
397
640
  {
@@ -694,104 +937,6 @@
694
937
  "description": "表单复选框构件",
695
938
  "category": "form-input-basic"
696
939
  },
697
- {
698
- "name": "eo-radio",
699
- "alias": [
700
- "form.general-radio"
701
- ],
702
- "properties": [
703
- {
704
- "name": "name",
705
- "description": "下拉框字段名",
706
- "type": "string"
707
- },
708
- {
709
- "name": "label",
710
- "description": "单选框字段说明",
711
- "type": "string"
712
- },
713
- {
714
- "name": "options",
715
- "description": "单选框选项表",
716
- "required": true,
717
- "attribute": false,
718
- "type": "GeneralOption[]"
719
- },
720
- {
721
- "name": "value",
722
- "description": "单选框当前选中始值",
723
- "attribute": false,
724
- "type": "any"
725
- },
726
- {
727
- "name": "required",
728
- "description": "是否必填",
729
- "type": "boolean"
730
- },
731
- {
732
- "name": "message",
733
- "description": "校验文本信息",
734
- "attribute": false,
735
- "type": "Record<string, string>"
736
- },
737
- {
738
- "name": "disabled",
739
- "description": "是否禁用",
740
- "type": "boolean"
741
- },
742
- {
743
- "name": "type",
744
- "description": "单选框样式类型",
745
- "default": "\"default\"",
746
- "type": "RadioType"
747
- },
748
- {
749
- "name": "ui",
750
- "description": "UI样式",
751
- "default": "\"default\"",
752
- "type": "UIType"
753
- },
754
- {
755
- "name": "size",
756
- "description": "大小,只对按钮样式生效",
757
- "default": "\"medium\"",
758
- "type": "ComponentSize"
759
- },
760
- {
761
- "name": "customStyle",
762
- "description": "自定义radio的外层样式",
763
- "attribute": false,
764
- "type": "React.CSSProperties"
765
- },
766
- {
767
- "name": "useBrick",
768
- "description": "自定义radio的内容",
769
- "attribute": false,
770
- "type": "UseSingleBrickConf"
771
- }
772
- ],
773
- "events": [
774
- {
775
- "name": "change",
776
- "description": "值变化事件",
777
- "detail": {
778
- "type": "GeneralComplexOption | undefined"
779
- }
780
- },
781
- {
782
- "name": "options.change",
783
- "description": "选项列表变化事件",
784
- "detail": {
785
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
786
- }
787
- }
788
- ],
789
- "slots": [],
790
- "methods": [],
791
- "parts": [],
792
- "description": "通用单选构件",
793
- "category": "form-input-basic"
794
- },
795
940
  {
796
941
  "name": "eo-dynamic-form-item",
797
942
  "alias": [
@@ -884,151 +1029,6 @@
884
1029
  "description": "动态表单",
885
1030
  "category": "form-input-basic"
886
1031
  },
887
- {
888
- "name": "eo-form",
889
- "alias": [
890
- "form.general-form"
891
- ],
892
- "properties": [
893
- {
894
- "name": "staticValues",
895
- "attribute": false,
896
- "type": "Record<string, unknown>"
897
- },
898
- {
899
- "name": "layout",
900
- "description": "布局方式(默认 vertical 布局)",
901
- "default": "vertical",
902
- "type": "Layout"
903
- },
904
- {
905
- "name": "size",
906
- "description": "表单组件尺寸",
907
- "type": "ComponentSize"
908
- },
909
- {
910
- "name": "labelCol",
911
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
912
- "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 }",
913
- "attribute": false,
914
- "type": "ColProps"
915
- },
916
- {
917
- "name": "wrapperCol",
918
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
919
- "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 }",
920
- "attribute": false,
921
- "type": "ColProps"
922
- },
923
- {
924
- "name": "formStyle",
925
- "attribute": false,
926
- "type": "React.CSSProperties"
927
- },
928
- {
929
- "name": "textContent",
930
- "type": "string",
931
- "description": "文本内容"
932
- }
933
- ],
934
- "events": [
935
- {
936
- "name": "values.change",
937
- "description": "表单值变更事件",
938
- "detail": {
939
- "description": null,
940
- "type": "Record<string, unknown>"
941
- }
942
- },
943
- {
944
- "name": "validate.success",
945
- "description": "表单验证成功时触发事件",
946
- "detail": {
947
- "type": "Record<string, unknown>"
948
- }
949
- },
950
- {
951
- "name": "validate.error",
952
- "description": "表单验证报错时触发事件",
953
- "detail": {
954
- "type": "(MessageBody & { name: string })[]"
955
- }
956
- }
957
- ],
958
- "slots": [
959
- {
960
- "name": null,
961
- "description": "表单内容"
962
- }
963
- ],
964
- "methods": [
965
- {
966
- "name": "validate",
967
- "params": [],
968
- "description": "表单校验方法",
969
- "returns": {
970
- "type": "boolean | Record<string, unknown>"
971
- }
972
- },
973
- {
974
- "name": "setInitValue",
975
- "params": [
976
- {
977
- "name": "values",
978
- "type": "Record<string, unknown>"
979
- },
980
- {
981
- "name": "options",
982
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
983
- }
984
- ],
985
- "description": "表单设置值方法",
986
- "returns": {}
987
- },
988
- {
989
- "name": "resetFields",
990
- "params": [
991
- {
992
- "name": "name",
993
- "type": "string"
994
- }
995
- ],
996
- "description": "表单重置值方法",
997
- "returns": {}
998
- },
999
- {
1000
- "name": "getFieldsValue",
1001
- "params": [
1002
- {
1003
- "name": "name",
1004
- "type": "string"
1005
- }
1006
- ],
1007
- "description": "获取表单值方法",
1008
- "returns": {}
1009
- },
1010
- {
1011
- "name": "validateField",
1012
- "params": [
1013
- {
1014
- "name": "name",
1015
- "type": "string"
1016
- }
1017
- ],
1018
- "description": "校验表单字段方法",
1019
- "returns": {}
1020
- },
1021
- {
1022
- "name": "resetValidateState",
1023
- "params": [],
1024
- "description": "重置表单校验状态方法",
1025
- "returns": {}
1026
- }
1027
- ],
1028
- "parts": [],
1029
- "description": "表单构件",
1030
- "category": "form-input-basic"
1031
- },
1032
1032
  {
1033
1033
  "name": "eo-search",
1034
1034
  "alias": [