@next-bricks/form 0.20.12 → 0.21.1
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 +15 -13
- package/dist/chunks/{2108.f26af09c.js → 2108.81691a0f.js} +2 -2
- package/dist/chunks/{2108.f26af09c.js.map → 2108.81691a0f.js.map} +1 -1
- package/dist/chunks/{4635.de7c669a.js → 3669.ca91bd61.js} +2 -2
- package/dist/chunks/3669.ca91bd61.js.map +1 -0
- package/dist/chunks/4669.fb8753db.js +2 -0
- package/dist/chunks/4669.fb8753db.js.map +1 -0
- package/dist/chunks/{5381.c32cc19e.js → 5381.0d64e137.js} +2 -2
- package/dist/chunks/{5381.c32cc19e.js.map → 5381.0d64e137.js.map} +1 -1
- package/dist/chunks/{5789.041157a8.js → 5789.d59ac23c.js} +3 -3
- package/dist/chunks/{5789.041157a8.js.map → 5789.d59ac23c.js.map} +1 -1
- package/dist/chunks/{6660.3afbb9c1.js → 6660.a6dc1b14.js} +2 -2
- package/dist/chunks/{6660.3afbb9c1.js.map → 6660.a6dc1b14.js.map} +1 -1
- package/dist/chunks/{eo-auto-complete.cc7b564f.js → eo-auto-complete.4d86216b.js} +3 -3
- package/dist/chunks/{eo-auto-complete.cc7b564f.js.map → eo-auto-complete.4d86216b.js.map} +1 -1
- package/dist/chunks/{eo-checkbox.d6890ea6.js → eo-checkbox.3c9a4133.js} +2 -2
- package/dist/chunks/{eo-checkbox.d6890ea6.js.map → eo-checkbox.3c9a4133.js.map} +1 -1
- package/dist/chunks/{eo-date-picker.5f3593e6.js → eo-date-picker.e4d9bbec.js} +2 -2
- package/dist/chunks/{eo-date-picker.5f3593e6.js.map → eo-date-picker.e4d9bbec.js.map} +1 -1
- package/dist/chunks/{eo-dynamic-form-item.928fd0e1.js → eo-dynamic-form-item.e085273a.js} +3 -3
- package/dist/chunks/{eo-dynamic-form-item.928fd0e1.js.map → eo-dynamic-form-item.e085273a.js.map} +1 -1
- package/dist/chunks/{eo-form-item.62061d5a.js → eo-form-item.5bdc2f6b.js} +3 -3
- package/dist/chunks/{eo-form-item.62061d5a.js.map → eo-form-item.5bdc2f6b.js.map} +1 -1
- package/dist/chunks/{eo-icon-select.4f0234c7.js → eo-icon-select.7690257c.js} +3 -3
- package/dist/chunks/{eo-icon-select.4f0234c7.js.map → eo-icon-select.7690257c.js.map} +1 -1
- package/dist/chunks/{eo-input.7edf20dc.js → eo-input.2826174e.js} +3 -3
- package/dist/chunks/{eo-input.7edf20dc.js.map → eo-input.2826174e.js.map} +1 -1
- package/dist/chunks/{eo-radio.83c21605.js → eo-radio.a72fb693.js} +3 -3
- package/dist/chunks/{eo-radio.83c21605.js.map → eo-radio.a72fb693.js.map} +1 -1
- package/dist/chunks/{eo-search.d01b8eeb.js → eo-search.4769ada9.js} +2 -2
- package/dist/chunks/{eo-search.d01b8eeb.js.map → eo-search.4769ada9.js.map} +1 -1
- package/dist/chunks/{eo-select.bbdd3769.js → eo-select.4c2aca56.js} +3 -3
- package/dist/chunks/{eo-select.bbdd3769.js.map → eo-select.4c2aca56.js.map} +1 -1
- package/dist/chunks/{eo-switch.ea353857.js → eo-switch.aab79828.js} +3 -3
- package/dist/chunks/{eo-switch.ea353857.js.map → eo-switch.aab79828.js.map} +1 -1
- package/dist/chunks/{eo-textarea.476cd368.js → eo-textarea.c6ecb40f.js} +3 -3
- package/dist/chunks/{eo-textarea.476cd368.js.map → eo-textarea.c6ecb40f.js.map} +1 -1
- package/dist/chunks/{eo-time-picker.e7048e0c.js → eo-time-picker.47bbf984.js} +2 -2
- package/dist/chunks/{eo-time-picker.e7048e0c.js.map → eo-time-picker.47bbf984.js.map} +1 -1
- package/dist/chunks/{eo-time-range-picker.912016ee.js → eo-time-range-picker.e6957d7b.js} +2 -2
- package/dist/chunks/{eo-time-range-picker.912016ee.js.map → eo-time-range-picker.e6957d7b.js.map} +1 -1
- package/dist/chunks/eo-upload-file.aade1f90.js +3 -0
- package/dist/chunks/eo-upload-file.aade1f90.js.map +1 -0
- package/dist/chunks/eo-upload-image.390c1ab2.js +3 -0
- package/dist/chunks/eo-upload-image.390c1ab2.js.map +1 -0
- package/dist/chunks/{main.a62cbb23.js → main.5048c92a.js} +2 -2
- package/dist/chunks/{main.a62cbb23.js.map → main.5048c92a.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/{index.3e8cabf1.js → index.b5d773db.js} +2 -2
- package/dist/{index.3e8cabf1.js.map → index.b5d773db.js.map} +1 -1
- package/dist/manifest.json +184 -184
- package/dist-types/upload/Upload.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunks/4635.de7c669a.js.map +0 -1
- package/dist/chunks/4669.ab458a8e.js +0 -2
- package/dist/chunks/4669.ab458a8e.js.map +0 -1
- package/dist/chunks/eo-upload-file.94ce25bd.js +0 -3
- package/dist/chunks/eo-upload-file.94ce25bd.js.map +0 -1
- package/dist/chunks/eo-upload-image.7804d787.js +0 -3
- package/dist/chunks/eo-upload-image.7804d787.js.map +0 -1
- /package/dist/chunks/{5789.041157a8.js.LICENSE.txt → 5789.d59ac23c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-auto-complete.cc7b564f.js.LICENSE.txt → eo-auto-complete.4d86216b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-dynamic-form-item.928fd0e1.js.LICENSE.txt → eo-dynamic-form-item.e085273a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.62061d5a.js.LICENSE.txt → eo-form-item.5bdc2f6b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-icon-select.4f0234c7.js.LICENSE.txt → eo-icon-select.7690257c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-input.7edf20dc.js.LICENSE.txt → eo-input.2826174e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.83c21605.js.LICENSE.txt → eo-radio.a72fb693.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.bbdd3769.js.LICENSE.txt → eo-select.4c2aca56.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-switch.ea353857.js.LICENSE.txt → eo-switch.aab79828.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-textarea.476cd368.js.LICENSE.txt → eo-textarea.c6ecb40f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.94ce25bd.js.LICENSE.txt → eo-upload-file.aade1f90.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.7804d787.js.LICENSE.txt → eo-upload-image.390c1ab2.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -277,108 +277,6 @@
|
|
|
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
|
-
},
|
|
382
280
|
{
|
|
383
281
|
"name": "eo-form",
|
|
384
282
|
"alias": [
|
|
@@ -494,6 +392,108 @@
|
|
|
494
392
|
"parts": [],
|
|
495
393
|
"description": "表单构件"
|
|
496
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
|
+
},
|
|
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-
|
|
795
|
+
"name": "eo-checkbox",
|
|
796
796
|
"alias": [
|
|
797
|
-
"form.
|
|
797
|
+
"form.general-checkbox"
|
|
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
|
-
},
|
|
815
810
|
{
|
|
816
811
|
"name": "value",
|
|
817
812
|
"description": "值",
|
|
818
813
|
"attribute": false,
|
|
819
|
-
"type": "
|
|
814
|
+
"type": "CheckboxValueType[]"
|
|
820
815
|
},
|
|
821
816
|
{
|
|
822
|
-
"name": "
|
|
823
|
-
"description": "
|
|
817
|
+
"name": "options",
|
|
818
|
+
"description": "多选框选项表",
|
|
819
|
+
"required": true,
|
|
820
|
+
"default": "[]",
|
|
824
821
|
"attribute": false,
|
|
825
|
-
"type": "
|
|
822
|
+
"type": "CheckboxOptionType[]"
|
|
826
823
|
},
|
|
827
824
|
{
|
|
828
|
-
"name": "
|
|
829
|
-
"description": "
|
|
830
|
-
"
|
|
831
|
-
"type": "
|
|
825
|
+
"name": "type",
|
|
826
|
+
"description": "类型",
|
|
827
|
+
"default": "\"default\"",
|
|
828
|
+
"type": "CheckboxType"
|
|
832
829
|
},
|
|
833
830
|
{
|
|
834
|
-
"name": "
|
|
835
|
-
"description": "
|
|
836
|
-
"
|
|
837
|
-
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
831
|
+
"name": "disabled",
|
|
832
|
+
"description": "是否禁用",
|
|
833
|
+
"type": "boolean"
|
|
838
834
|
},
|
|
839
835
|
{
|
|
840
|
-
"name": "
|
|
841
|
-
"description": "
|
|
842
|
-
"
|
|
843
|
-
"type": "boolean
|
|
836
|
+
"name": "isCustom",
|
|
837
|
+
"description": "是否为自定义",
|
|
838
|
+
"default": "false",
|
|
839
|
+
"type": "boolean"
|
|
844
840
|
},
|
|
845
841
|
{
|
|
846
|
-
"name": "
|
|
847
|
-
"description": "
|
|
842
|
+
"name": "required",
|
|
843
|
+
"description": "是否必填",
|
|
844
|
+
"type": "boolean"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"name": "message",
|
|
848
|
+
"description": "校验文本",
|
|
848
849
|
"attribute": false,
|
|
849
|
-
"type": "
|
|
850
|
+
"type": "Record<string, string>"
|
|
850
851
|
},
|
|
851
852
|
{
|
|
852
|
-
"name": "
|
|
853
|
-
"description": "
|
|
853
|
+
"name": "isGroup",
|
|
854
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
855
|
+
"type": "boolean"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"name": "optionGroups",
|
|
859
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
854
860
|
"attribute": false,
|
|
855
|
-
"type": "
|
|
861
|
+
"type": "OptionGroup[]"
|
|
856
862
|
}
|
|
857
863
|
],
|
|
858
864
|
"events": [
|
|
859
865
|
{
|
|
860
866
|
"name": "change",
|
|
867
|
+
"description": "复选框变化事件",
|
|
861
868
|
"detail": {
|
|
862
|
-
"type": "
|
|
863
|
-
}
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
"name": "row.add",
|
|
867
|
-
"description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
|
|
868
|
-
"detail": {
|
|
869
|
-
"type": "rowDataType"
|
|
869
|
+
"type": "CheckboxOptionType[]"
|
|
870
870
|
}
|
|
871
871
|
},
|
|
872
872
|
{
|
|
873
|
-
"name": "
|
|
874
|
-
"description": "
|
|
873
|
+
"name": "options.change",
|
|
874
|
+
"description": "复选框变化事件",
|
|
875
875
|
"detail": {
|
|
876
|
-
"type": "
|
|
876
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
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-
|
|
886
|
+
"name": "eo-dynamic-form-item",
|
|
887
887
|
"alias": [
|
|
888
|
-
"form.
|
|
888
|
+
"form.dynamic-form-item"
|
|
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
|
+
},
|
|
901
906
|
{
|
|
902
907
|
"name": "value",
|
|
903
908
|
"description": "值",
|
|
904
909
|
"attribute": false,
|
|
905
|
-
"type": "
|
|
910
|
+
"type": "DynamicFormValuesItem[]"
|
|
906
911
|
},
|
|
907
912
|
{
|
|
908
|
-
"name": "
|
|
909
|
-
"description": "
|
|
910
|
-
"required": true,
|
|
911
|
-
"default": "[]",
|
|
913
|
+
"name": "message",
|
|
914
|
+
"description": "校验文本",
|
|
912
915
|
"attribute": false,
|
|
913
|
-
"type": "
|
|
914
|
-
},
|
|
915
|
-
{
|
|
916
|
-
"name": "type",
|
|
917
|
-
"description": "类型",
|
|
918
|
-
"default": "\"default\"",
|
|
919
|
-
"type": "CheckboxType"
|
|
920
|
-
},
|
|
921
|
-
{
|
|
922
|
-
"name": "disabled",
|
|
923
|
-
"description": "是否禁用",
|
|
924
|
-
"type": "boolean"
|
|
916
|
+
"type": "Record<string, string>"
|
|
925
917
|
},
|
|
926
918
|
{
|
|
927
|
-
"name": "
|
|
928
|
-
"description": "
|
|
929
|
-
"
|
|
930
|
-
"type": "boolean"
|
|
919
|
+
"name": "hideRemoveButton",
|
|
920
|
+
"description": "是否隐藏每一行删除的按钮",
|
|
921
|
+
"attribute": false,
|
|
922
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
931
923
|
},
|
|
932
924
|
{
|
|
933
|
-
"name": "
|
|
934
|
-
"description": "
|
|
935
|
-
"
|
|
925
|
+
"name": "disabledRemoveButton",
|
|
926
|
+
"description": "是否禁止每一行删除的按钮",
|
|
927
|
+
"attribute": false,
|
|
928
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
936
929
|
},
|
|
937
930
|
{
|
|
938
|
-
"name": "
|
|
939
|
-
"description": "
|
|
931
|
+
"name": "hideAddButton",
|
|
932
|
+
"description": "是否隐藏添加的按钮",
|
|
940
933
|
"attribute": false,
|
|
941
|
-
"type": "Record<string,
|
|
934
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
942
935
|
},
|
|
943
936
|
{
|
|
944
|
-
"name": "
|
|
945
|
-
"description": "
|
|
946
|
-
"
|
|
937
|
+
"name": "disabledAddButton",
|
|
938
|
+
"description": "是否禁止添加的按钮",
|
|
939
|
+
"attribute": false,
|
|
940
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
947
941
|
},
|
|
948
942
|
{
|
|
949
|
-
"name": "
|
|
950
|
-
"description": "
|
|
943
|
+
"name": "useBrick",
|
|
944
|
+
"description": "动态表单子项构件列表",
|
|
951
945
|
"attribute": false,
|
|
952
|
-
"type": "
|
|
946
|
+
"type": "UseBrickConf"
|
|
953
947
|
}
|
|
954
948
|
],
|
|
955
949
|
"events": [
|
|
956
950
|
{
|
|
957
951
|
"name": "change",
|
|
958
|
-
"description": "复选框变化事件",
|
|
959
952
|
"detail": {
|
|
960
|
-
"type": "
|
|
953
|
+
"type": "DynamicFormValuesItem[]"
|
|
961
954
|
}
|
|
962
955
|
},
|
|
963
956
|
{
|
|
964
|
-
"name": "
|
|
965
|
-
"description": "
|
|
957
|
+
"name": "row.add",
|
|
958
|
+
"description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
|
|
966
959
|
"detail": {
|
|
967
|
-
"type": "
|
|
960
|
+
"type": "rowDataType"
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"name": "row.remove",
|
|
965
|
+
"description": "移除一行时触发,detail为该行的值,index为该行的位置",
|
|
966
|
+
"detail": {
|
|
967
|
+
"type": "rowDataType"
|
|
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",
|
|
@@ -10,7 +10,7 @@ export interface ItemActions {
|
|
|
10
10
|
}
|
|
11
11
|
export interface UploadProps {
|
|
12
12
|
children: (fileDataList: FileData[], uploadActions: UploadActions) => React.ReactElement;
|
|
13
|
-
itemRender: (fileData: FileData, fileDataList: FileData[], actions: ItemActions) => React.ReactElement;
|
|
13
|
+
itemRender: (fileData: FileData, fileDataList: FileData[], actions: ItemActions, index: number) => React.ReactElement;
|
|
14
14
|
fileList?: FileData[];
|
|
15
15
|
autoUpload?: boolean;
|
|
16
16
|
uploadName?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/form",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
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": "
|
|
40
|
+
"gitHead": "901d3eb13694e922edfdc889b3e665e045d77ff0"
|
|
41
41
|
}
|