@next-bricks/form 0.20.11 → 0.20.12

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.
@@ -277,6 +277,108 @@
277
277
  "parts": [],
278
278
  "description": "通用多行文本输入框构件"
279
279
  },
280
+ {
281
+ "name": "eo-form-item",
282
+ "alias": [
283
+ "form.general-form-item"
284
+ ],
285
+ "properties": [
286
+ {
287
+ "name": "formElement",
288
+ "attribute": false,
289
+ "type": "Form"
290
+ },
291
+ {
292
+ "name": "curElement",
293
+ "attribute": false,
294
+ "type": "HTMLElement"
295
+ },
296
+ {
297
+ "name": "name",
298
+ "description": "字段名称",
299
+ "type": "string"
300
+ },
301
+ {
302
+ "name": "label",
303
+ "type": "string"
304
+ },
305
+ {
306
+ "name": "pattern",
307
+ "type": "string"
308
+ },
309
+ {
310
+ "name": "message",
311
+ "attribute": false,
312
+ "type": "Record<string, string>"
313
+ },
314
+ {
315
+ "name": "max",
316
+ "type": "number"
317
+ },
318
+ {
319
+ "name": "min",
320
+ "type": "number"
321
+ },
322
+ {
323
+ "name": "required",
324
+ "description": "表单项是否必填",
325
+ "type": "boolean"
326
+ },
327
+ {
328
+ "name": "value",
329
+ "description": "初始值",
330
+ "type": "string"
331
+ },
332
+ {
333
+ "name": "labelCol",
334
+ "description": "表单项 label 标签布局",
335
+ "type": "string"
336
+ },
337
+ {
338
+ "name": "wrapperCol",
339
+ "description": "表单项控件布局",
340
+ "type": "string"
341
+ },
342
+ {
343
+ "name": "valuePropsName",
344
+ "type": "string"
345
+ },
346
+ {
347
+ "name": "layout",
348
+ "type": "Layout"
349
+ },
350
+ {
351
+ "name": "size",
352
+ "type": "ComponentSize"
353
+ },
354
+ {
355
+ "name": "trim",
356
+ "description": "是否自动去除前后的空白字符",
357
+ "default": "true"
358
+ },
359
+ {
360
+ "name": "trigger",
361
+ "description": "事件触发方法名",
362
+ "type": "string"
363
+ },
364
+ {
365
+ "name": "validator",
366
+ "description": "表单项校验方法",
367
+ "attribute": false,
368
+ "type": "((value: any) => MessageBody)"
369
+ },
370
+ {
371
+ "name": "needValidate",
372
+ "description": "值变化时是否主动出发校验",
373
+ "type": "boolean"
374
+ }
375
+ ],
376
+ "events": [],
377
+ "slots": [],
378
+ "methods": [],
379
+ "parts": [],
380
+ "description": "通用输入框构件"
381
+ },
280
382
  {
281
383
  "name": "eo-form",
282
384
  "alias": [
@@ -392,108 +494,6 @@
392
494
  "parts": [],
393
495
  "description": "表单构件"
394
496
  },
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
- },
497
497
  {
498
498
  "name": "eo-radio",
499
499
  "alias": [
@@ -792,9 +792,9 @@
792
792
  "description": "用于general-forms的通用按钮"
793
793
  },
794
794
  {
795
- "name": "eo-checkbox",
795
+ "name": "eo-dynamic-form-item",
796
796
  "alias": [
797
- "form.general-checkbox"
797
+ "form.dynamic-form-item"
798
798
  ],
799
799
  "properties": [
800
800
  {
@@ -807,85 +807,85 @@
807
807
  "description": "字段说明",
808
808
  "type": "string"
809
809
  },
810
+ {
811
+ "name": "required",
812
+ "description": "是否必填",
813
+ "type": "boolean"
814
+ },
810
815
  {
811
816
  "name": "value",
812
817
  "description": "值",
813
818
  "attribute": false,
814
- "type": "CheckboxValueType[]"
819
+ "type": "DynamicFormValuesItem[]"
815
820
  },
816
821
  {
817
- "name": "options",
818
- "description": "多选框选项表",
819
- "required": true,
820
- "default": "[]",
822
+ "name": "message",
823
+ "description": "校验文本",
821
824
  "attribute": false,
822
- "type": "CheckboxOptionType[]"
823
- },
824
- {
825
- "name": "type",
826
- "description": "类型",
827
- "default": "\"default\"",
828
- "type": "CheckboxType"
829
- },
830
- {
831
- "name": "disabled",
832
- "description": "是否禁用",
833
- "type": "boolean"
825
+ "type": "Record<string, string>"
834
826
  },
835
827
  {
836
- "name": "isCustom",
837
- "description": "是否为自定义",
838
- "default": "false",
839
- "type": "boolean"
828
+ "name": "hideRemoveButton",
829
+ "description": "是否隐藏每一行删除的按钮",
830
+ "attribute": false,
831
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
840
832
  },
841
833
  {
842
- "name": "required",
843
- "description": "是否必填",
844
- "type": "boolean"
834
+ "name": "disabledRemoveButton",
835
+ "description": "是否禁止每一行删除的按钮",
836
+ "attribute": false,
837
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
845
838
  },
846
839
  {
847
- "name": "message",
848
- "description": "校验文本",
840
+ "name": "hideAddButton",
841
+ "description": "是否隐藏添加的按钮",
849
842
  "attribute": false,
850
- "type": "Record<string, string>"
843
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
851
844
  },
852
845
  {
853
- "name": "isGroup",
854
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
855
- "type": "boolean"
846
+ "name": "disabledAddButton",
847
+ "description": "是否禁止添加的按钮",
848
+ "attribute": false,
849
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
856
850
  },
857
851
  {
858
- "name": "optionGroups",
859
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
852
+ "name": "useBrick",
853
+ "description": "动态表单子项构件列表",
860
854
  "attribute": false,
861
- "type": "OptionGroup[]"
855
+ "type": "UseBrickConf"
862
856
  }
863
857
  ],
864
858
  "events": [
865
859
  {
866
860
  "name": "change",
867
- "description": "复选框变化事件",
868
861
  "detail": {
869
- "type": "CheckboxOptionType[]"
862
+ "type": "DynamicFormValuesItem[]"
870
863
  }
871
864
  },
872
865
  {
873
- "name": "options.change",
874
- "description": "复选框变化事件",
866
+ "name": "row.add",
867
+ "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
875
868
  "detail": {
876
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
869
+ "type": "rowDataType"
870
+ }
871
+ },
872
+ {
873
+ "name": "row.remove",
874
+ "description": "移除一行时触发,detail为该行的值,index为该行的位置",
875
+ "detail": {
876
+ "type": "rowDataType"
877
877
  }
878
878
  }
879
879
  ],
880
880
  "slots": [],
881
881
  "methods": [],
882
882
  "parts": [],
883
- "description": "表单复选框构件"
883
+ "description": "动态表单"
884
884
  },
885
885
  {
886
- "name": "eo-dynamic-form-item",
886
+ "name": "eo-checkbox",
887
887
  "alias": [
888
- "form.dynamic-form-item"
888
+ "form.general-checkbox"
889
889
  ],
890
890
  "properties": [
891
891
  {
@@ -898,80 +898,80 @@
898
898
  "description": "字段说明",
899
899
  "type": "string"
900
900
  },
901
- {
902
- "name": "required",
903
- "description": "是否必填",
904
- "type": "boolean"
905
- },
906
901
  {
907
902
  "name": "value",
908
903
  "description": "值",
909
904
  "attribute": false,
910
- "type": "DynamicFormValuesItem[]"
905
+ "type": "CheckboxValueType[]"
911
906
  },
912
907
  {
913
- "name": "message",
914
- "description": "校验文本",
908
+ "name": "options",
909
+ "description": "多选框选项表",
910
+ "required": true,
911
+ "default": "[]",
915
912
  "attribute": false,
916
- "type": "Record<string, string>"
913
+ "type": "CheckboxOptionType[]"
917
914
  },
918
915
  {
919
- "name": "hideRemoveButton",
920
- "description": "是否隐藏每一行删除的按钮",
921
- "attribute": false,
922
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
916
+ "name": "type",
917
+ "description": "类型",
918
+ "default": "\"default\"",
919
+ "type": "CheckboxType"
923
920
  },
924
921
  {
925
- "name": "disabledRemoveButton",
926
- "description": "是否禁止每一行删除的按钮",
927
- "attribute": false,
928
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
922
+ "name": "disabled",
923
+ "description": "是否禁用",
924
+ "type": "boolean"
929
925
  },
930
926
  {
931
- "name": "hideAddButton",
932
- "description": "是否隐藏添加的按钮",
933
- "attribute": false,
934
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
927
+ "name": "isCustom",
928
+ "description": "是否为自定义",
929
+ "default": "false",
930
+ "type": "boolean"
935
931
  },
936
932
  {
937
- "name": "disabledAddButton",
938
- "description": "是否禁止添加的按钮",
933
+ "name": "required",
934
+ "description": "是否必填",
935
+ "type": "boolean"
936
+ },
937
+ {
938
+ "name": "message",
939
+ "description": "校验文本",
939
940
  "attribute": false,
940
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
941
+ "type": "Record<string, string>"
941
942
  },
942
943
  {
943
- "name": "useBrick",
944
- "description": "动态表单子项构件列表",
944
+ "name": "isGroup",
945
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
946
+ "type": "boolean"
947
+ },
948
+ {
949
+ "name": "optionGroups",
950
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
945
951
  "attribute": false,
946
- "type": "UseBrickConf"
952
+ "type": "OptionGroup[]"
947
953
  }
948
954
  ],
949
955
  "events": [
950
956
  {
951
957
  "name": "change",
958
+ "description": "复选框变化事件",
952
959
  "detail": {
953
- "type": "DynamicFormValuesItem[]"
954
- }
955
- },
956
- {
957
- "name": "row.add",
958
- "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
959
- "detail": {
960
- "type": "rowDataType"
960
+ "type": "CheckboxOptionType[]"
961
961
  }
962
962
  },
963
963
  {
964
- "name": "row.remove",
965
- "description": "移除一行时触发,detail为该行的值,index为该行的位置",
964
+ "name": "options.change",
965
+ "description": "复选框变化事件",
966
966
  "detail": {
967
- "type": "rowDataType"
967
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
968
968
  }
969
969
  }
970
970
  ],
971
971
  "slots": [],
972
972
  "methods": [],
973
973
  "parts": [],
974
- "description": "动态表单"
974
+ "description": "表单复选框构件"
975
975
  },
976
976
  {
977
977
  "name": "eo-search",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/form",
3
- "version": "0.20.11",
3
+ "version": "0.20.12",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,5 +37,5 @@
37
37
  "@next-core/build-next-bricks": "^1.14.3",
38
38
  "@next-core/test-next": "^1.0.11"
39
39
  },
40
- "gitHead": "1db29585f6a22edc47c39bec9d9d9135f9e5d58c"
40
+ "gitHead": "ad3650c3d0cbe36ac80c2cd313184fa16fc007bf"
41
41
  }