@next-bricks/form 0.19.6 → 0.19.8
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 +3 -3
- package/dist/chunks/{1646.fe93b9f8.js → 1646.33efd73d.js} +2 -2
- package/dist/chunks/{1646.fe93b9f8.js.map → 1646.33efd73d.js.map} +1 -1
- package/dist/chunks/1874.8dc70082.js +2 -0
- package/dist/chunks/1874.8dc70082.js.map +1 -0
- package/dist/chunks/{2108.78a4798b.js → 2108.1406f5b3.js} +2 -2
- package/dist/chunks/2108.1406f5b3.js.map +1 -0
- package/dist/chunks/{2179.721df618.js → 2179.d76f76cf.js} +2 -2
- package/dist/chunks/{2179.721df618.js.map → 2179.d76f76cf.js.map} +1 -1
- package/dist/chunks/{3458.d68494f3.js → 3458.29f01ded.js} +2 -2
- package/dist/chunks/{3458.d68494f3.js.map → 3458.29f01ded.js.map} +1 -1
- package/dist/chunks/4049.5dee94b3.js +2 -0
- package/dist/chunks/{4049.6bf60bf4.js.map → 4049.5dee94b3.js.map} +1 -1
- package/dist/chunks/4540.1170f3d4.js +2 -0
- package/dist/chunks/4540.1170f3d4.js.map +1 -0
- package/dist/chunks/4635.17416f71.js +2 -0
- package/dist/chunks/4635.17416f71.js.map +1 -0
- package/dist/chunks/4669.77552bcd.js +2 -0
- package/dist/chunks/4669.77552bcd.js.map +1 -0
- package/dist/chunks/{4991.8548f1af.js → 4991.17baa638.js} +2 -2
- package/dist/chunks/4991.17baa638.js.map +1 -0
- package/dist/chunks/{5151.04c4e5c0.js → 5151.0e80d393.js} +2 -2
- package/dist/chunks/{5151.04c4e5c0.js.map → 5151.0e80d393.js.map} +1 -1
- package/dist/chunks/{5381.10acc8bf.js → 5381.a3bdb8ad.js} +2 -2
- package/dist/chunks/{5381.10acc8bf.js.map → 5381.a3bdb8ad.js.map} +1 -1
- package/dist/chunks/{5636.51dc47c0.js → 5636.45461fa4.js} +2 -2
- package/dist/chunks/{5636.51dc47c0.js.map → 5636.45461fa4.js.map} +1 -1
- package/dist/chunks/5725.efd1ed42.js +2 -0
- package/dist/chunks/{7672.20142710.js.map → 5725.efd1ed42.js.map} +1 -1
- package/dist/chunks/{5789.d59ac23c.js → 5789.041157a8.js} +3 -3
- package/dist/chunks/{5789.d59ac23c.js.map → 5789.041157a8.js.map} +1 -1
- package/dist/chunks/{6205.b4483c98.js → 6205.0e112eb2.js} +2 -2
- package/dist/chunks/{6205.b4483c98.js.map → 6205.0e112eb2.js.map} +1 -1
- package/dist/chunks/6473.cb66d617.js +2 -0
- package/dist/chunks/{6473.05851aa0.js.map → 6473.cb66d617.js.map} +1 -1
- package/dist/chunks/{6660.d0b9a51a.js → 6660.85e1c6c5.js} +2 -2
- package/dist/chunks/{6660.d0b9a51a.js.map → 6660.85e1c6c5.js.map} +1 -1
- package/dist/chunks/{7164.fe28f9c1.js → 7164.1a6b15bd.js} +2 -2
- package/dist/chunks/{7164.fe28f9c1.js.map → 7164.1a6b15bd.js.map} +1 -1
- package/dist/chunks/7672.d6ad6054.js +2 -0
- package/dist/chunks/{5725.fe510233.js.map → 7672.d6ad6054.js.map} +1 -1
- package/dist/chunks/{7746.03d4fe7e.js → 7746.9a3d0c85.js} +2 -2
- package/dist/chunks/{7746.03d4fe7e.js.map → 7746.9a3d0c85.js.map} +1 -1
- package/dist/chunks/8588.76934a20.js +2 -0
- package/dist/chunks/8588.76934a20.js.map +1 -0
- package/dist/chunks/{8691.d1c61340.js → 8691.c41b27dc.js} +2 -2
- package/dist/chunks/{8691.d1c61340.js.map → 8691.c41b27dc.js.map} +1 -1
- package/dist/chunks/eo-auto-complete.008e91e1.js +3 -0
- package/dist/chunks/eo-auto-complete.008e91e1.js.map +1 -0
- package/dist/chunks/eo-checkbox.4e27a318.js +2 -0
- package/dist/chunks/eo-checkbox.4e27a318.js.map +1 -0
- package/dist/chunks/eo-date-picker.527a1cf8.js +2 -0
- package/dist/chunks/eo-date-picker.527a1cf8.js.map +1 -0
- package/dist/chunks/eo-dynamic-form-item.d18dae3b.js +3 -0
- package/dist/chunks/eo-dynamic-form-item.d18dae3b.js.map +1 -0
- package/dist/chunks/eo-form-item.4add21fa.js +3 -0
- package/dist/chunks/eo-form-item.4add21fa.js.map +1 -0
- package/dist/chunks/eo-form.d80c1a20.js +2 -0
- package/dist/chunks/eo-form.d80c1a20.js.map +1 -0
- package/dist/chunks/eo-icon-select.f0e28eed.js +3 -0
- package/dist/chunks/eo-icon-select.f0e28eed.js.map +1 -0
- package/dist/chunks/eo-input.9ad60004.js +3 -0
- package/dist/chunks/eo-input.9ad60004.js.map +1 -0
- package/dist/chunks/eo-radio.174ab47f.js +3 -0
- package/dist/chunks/eo-radio.174ab47f.js.map +1 -0
- package/dist/chunks/eo-search.928f63d3.js +2 -0
- package/dist/chunks/eo-search.928f63d3.js.map +1 -0
- package/dist/chunks/eo-select.1d462f30.js +3 -0
- package/dist/chunks/eo-select.1d462f30.js.map +1 -0
- package/dist/chunks/eo-submit-buttons.b1efaef0.js +2 -0
- package/dist/chunks/eo-submit-buttons.b1efaef0.js.map +1 -0
- package/dist/chunks/eo-switch.41217802.js +3 -0
- package/dist/chunks/eo-switch.41217802.js.map +1 -0
- package/dist/chunks/eo-textarea.1bd07120.js +3 -0
- package/dist/chunks/eo-textarea.1bd07120.js.map +1 -0
- package/dist/chunks/eo-time-picker.f16f1cfd.js +2 -0
- package/dist/chunks/eo-time-picker.f16f1cfd.js.map +1 -0
- package/dist/chunks/eo-time-range-picker.9998e531.js +2 -0
- package/dist/chunks/eo-time-range-picker.9998e531.js.map +1 -0
- package/dist/chunks/eo-upload-file.4ff6bafc.js +3 -0
- package/dist/chunks/eo-upload-file.4ff6bafc.js.map +1 -0
- package/dist/chunks/eo-upload-image.717980aa.js +3 -0
- package/dist/chunks/eo-upload-image.717980aa.js.LICENSE.txt +5 -0
- package/dist/chunks/eo-upload-image.717980aa.js.map +1 -0
- package/dist/chunks/main.c2fe0d2b.js +2 -0
- package/dist/chunks/main.c2fe0d2b.js.map +1 -0
- package/dist/examples.json +4 -4
- package/dist/index.054cb467.js +2 -0
- package/dist/index.054cb467.js.map +1 -0
- package/dist/manifest.json +134 -90
- package/dist/types.json +310 -0
- package/dist-types/dynamic-form-item/index.d.ts +31 -0
- package/docs/eo-dynamic-form-item.md +34 -0
- package/package.json +4 -4
- package/dist/chunks/1874.42255692.js +0 -2
- package/dist/chunks/1874.42255692.js.map +0 -1
- package/dist/chunks/2108.78a4798b.js.map +0 -1
- package/dist/chunks/4049.6bf60bf4.js +0 -2
- package/dist/chunks/4540.4dd97c77.js +0 -2
- package/dist/chunks/4540.4dd97c77.js.map +0 -1
- package/dist/chunks/4669.acff5c45.js +0 -2
- package/dist/chunks/4669.acff5c45.js.map +0 -1
- package/dist/chunks/4991.8548f1af.js.map +0 -1
- package/dist/chunks/5491.533487b0.js +0 -2
- package/dist/chunks/5491.533487b0.js.map +0 -1
- package/dist/chunks/5725.fe510233.js +0 -2
- package/dist/chunks/6473.05851aa0.js +0 -2
- package/dist/chunks/7672.20142710.js +0 -2
- package/dist/chunks/8588.0c6b13bd.js +0 -2
- package/dist/chunks/8588.0c6b13bd.js.map +0 -1
- package/dist/chunks/eo-auto-complete.187d1ad3.js +0 -3
- package/dist/chunks/eo-auto-complete.187d1ad3.js.map +0 -1
- package/dist/chunks/eo-checkbox.f621cb90.js +0 -2
- package/dist/chunks/eo-checkbox.f621cb90.js.map +0 -1
- package/dist/chunks/eo-date-picker.02cf89ad.js +0 -2
- package/dist/chunks/eo-date-picker.02cf89ad.js.map +0 -1
- package/dist/chunks/eo-dynamic-form-item.5b7b57a3.js +0 -2
- package/dist/chunks/eo-dynamic-form-item.5b7b57a3.js.map +0 -1
- package/dist/chunks/eo-form-item.41b211ab.js +0 -3
- package/dist/chunks/eo-form-item.41b211ab.js.map +0 -1
- package/dist/chunks/eo-form.7dad74a8.js +0 -2
- package/dist/chunks/eo-form.7dad74a8.js.map +0 -1
- package/dist/chunks/eo-icon-select.19472f72.js +0 -3
- package/dist/chunks/eo-icon-select.19472f72.js.map +0 -1
- package/dist/chunks/eo-input.eb806140.js +0 -3
- package/dist/chunks/eo-input.eb806140.js.map +0 -1
- package/dist/chunks/eo-radio.533b5409.js +0 -3
- package/dist/chunks/eo-radio.533b5409.js.map +0 -1
- package/dist/chunks/eo-search.f0211ce1.js +0 -2
- package/dist/chunks/eo-search.f0211ce1.js.map +0 -1
- package/dist/chunks/eo-select.1dcade3f.js +0 -3
- package/dist/chunks/eo-select.1dcade3f.js.map +0 -1
- package/dist/chunks/eo-submit-buttons.8a5cfbe1.js +0 -2
- package/dist/chunks/eo-submit-buttons.8a5cfbe1.js.map +0 -1
- package/dist/chunks/eo-switch.e52b6438.js +0 -3
- package/dist/chunks/eo-switch.e52b6438.js.map +0 -1
- package/dist/chunks/eo-textarea.4f09d40c.js +0 -3
- package/dist/chunks/eo-textarea.4f09d40c.js.map +0 -1
- package/dist/chunks/eo-time-picker.51da9082.js +0 -2
- package/dist/chunks/eo-time-picker.51da9082.js.map +0 -1
- package/dist/chunks/eo-time-range-picker.785d88d2.js +0 -2
- package/dist/chunks/eo-time-range-picker.785d88d2.js.map +0 -1
- package/dist/chunks/eo-upload-file.2793b2de.js +0 -3
- package/dist/chunks/eo-upload-file.2793b2de.js.map +0 -1
- package/dist/chunks/eo-upload-image.0c001c76.js +0 -3
- package/dist/chunks/eo-upload-image.0c001c76.js.map +0 -1
- package/dist/chunks/main.1acf917e.js +0 -2
- package/dist/chunks/main.1acf917e.js.map +0 -1
- package/dist/index.48d8b3e5.js +0 -2
- package/dist/index.48d8b3e5.js.map +0 -1
- /package/dist/chunks/{5789.d59ac23c.js.LICENSE.txt → 5789.041157a8.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-auto-complete.187d1ad3.js.LICENSE.txt → eo-auto-complete.008e91e1.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.41b211ab.js.LICENSE.txt → eo-dynamic-form-item.d18dae3b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-icon-select.19472f72.js.LICENSE.txt → eo-form-item.4add21fa.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-input.eb806140.js.LICENSE.txt → eo-icon-select.f0e28eed.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.533b5409.js.LICENSE.txt → eo-input.9ad60004.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.1dcade3f.js.LICENSE.txt → eo-radio.174ab47f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-switch.e52b6438.js.LICENSE.txt → eo-select.1d462f30.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-textarea.4f09d40c.js.LICENSE.txt → eo-switch.41217802.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.2793b2de.js.LICENSE.txt → eo-textarea.1bd07120.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.0c001c76.js.LICENSE.txt → eo-upload-file.4ff6bafc.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -2632,6 +2632,243 @@
|
|
|
2632
2632
|
}
|
|
2633
2633
|
}
|
|
2634
2634
|
},
|
|
2635
|
+
{
|
|
2636
|
+
"name": "message",
|
|
2637
|
+
"annotation": {
|
|
2638
|
+
"type": "reference",
|
|
2639
|
+
"typeName": {
|
|
2640
|
+
"type": "identifier",
|
|
2641
|
+
"name": "Record"
|
|
2642
|
+
},
|
|
2643
|
+
"typeParameters": {
|
|
2644
|
+
"type": "typeParameterInstantiation",
|
|
2645
|
+
"params": [
|
|
2646
|
+
{
|
|
2647
|
+
"type": "keyword",
|
|
2648
|
+
"value": "string"
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
"type": "keyword",
|
|
2652
|
+
"value": "string"
|
|
2653
|
+
}
|
|
2654
|
+
]
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
},
|
|
2658
|
+
{
|
|
2659
|
+
"name": "hideRemoveButton",
|
|
2660
|
+
"annotation": {
|
|
2661
|
+
"type": "union",
|
|
2662
|
+
"types": [
|
|
2663
|
+
{
|
|
2664
|
+
"type": "keyword",
|
|
2665
|
+
"value": "boolean"
|
|
2666
|
+
},
|
|
2667
|
+
{
|
|
2668
|
+
"type": "parenthesizedType",
|
|
2669
|
+
"annotation": {
|
|
2670
|
+
"type": "function",
|
|
2671
|
+
"parameters": [
|
|
2672
|
+
{
|
|
2673
|
+
"type": "identifier",
|
|
2674
|
+
"name": "row",
|
|
2675
|
+
"annotation": {
|
|
2676
|
+
"type": "reference",
|
|
2677
|
+
"typeName": {
|
|
2678
|
+
"type": "identifier",
|
|
2679
|
+
"name": "Record"
|
|
2680
|
+
},
|
|
2681
|
+
"typeParameters": {
|
|
2682
|
+
"type": "typeParameterInstantiation",
|
|
2683
|
+
"params": [
|
|
2684
|
+
{
|
|
2685
|
+
"type": "keyword",
|
|
2686
|
+
"value": "string"
|
|
2687
|
+
},
|
|
2688
|
+
{
|
|
2689
|
+
"type": "keyword",
|
|
2690
|
+
"value": "any"
|
|
2691
|
+
}
|
|
2692
|
+
]
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
"type": "identifier",
|
|
2698
|
+
"name": "index",
|
|
2699
|
+
"annotation": {
|
|
2700
|
+
"type": "keyword",
|
|
2701
|
+
"value": "number"
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
],
|
|
2705
|
+
"annotation": {
|
|
2706
|
+
"type": "keyword",
|
|
2707
|
+
"value": "boolean"
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
]
|
|
2712
|
+
}
|
|
2713
|
+
},
|
|
2714
|
+
{
|
|
2715
|
+
"name": "disabledRemoveButton",
|
|
2716
|
+
"annotation": {
|
|
2717
|
+
"type": "union",
|
|
2718
|
+
"types": [
|
|
2719
|
+
{
|
|
2720
|
+
"type": "keyword",
|
|
2721
|
+
"value": "boolean"
|
|
2722
|
+
},
|
|
2723
|
+
{
|
|
2724
|
+
"type": "parenthesizedType",
|
|
2725
|
+
"annotation": {
|
|
2726
|
+
"type": "function",
|
|
2727
|
+
"parameters": [
|
|
2728
|
+
{
|
|
2729
|
+
"type": "identifier",
|
|
2730
|
+
"name": "row",
|
|
2731
|
+
"annotation": {
|
|
2732
|
+
"type": "reference",
|
|
2733
|
+
"typeName": {
|
|
2734
|
+
"type": "identifier",
|
|
2735
|
+
"name": "Record"
|
|
2736
|
+
},
|
|
2737
|
+
"typeParameters": {
|
|
2738
|
+
"type": "typeParameterInstantiation",
|
|
2739
|
+
"params": [
|
|
2740
|
+
{
|
|
2741
|
+
"type": "keyword",
|
|
2742
|
+
"value": "string"
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
"type": "keyword",
|
|
2746
|
+
"value": "any"
|
|
2747
|
+
}
|
|
2748
|
+
]
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
},
|
|
2752
|
+
{
|
|
2753
|
+
"type": "identifier",
|
|
2754
|
+
"name": "index",
|
|
2755
|
+
"annotation": {
|
|
2756
|
+
"type": "keyword",
|
|
2757
|
+
"value": "number"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
],
|
|
2761
|
+
"annotation": {
|
|
2762
|
+
"type": "keyword",
|
|
2763
|
+
"value": "boolean"
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
]
|
|
2768
|
+
}
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
"name": "hideAddButton",
|
|
2772
|
+
"annotation": {
|
|
2773
|
+
"type": "union",
|
|
2774
|
+
"types": [
|
|
2775
|
+
{
|
|
2776
|
+
"type": "keyword",
|
|
2777
|
+
"value": "boolean"
|
|
2778
|
+
},
|
|
2779
|
+
{
|
|
2780
|
+
"type": "parenthesizedType",
|
|
2781
|
+
"annotation": {
|
|
2782
|
+
"type": "function",
|
|
2783
|
+
"parameters": [
|
|
2784
|
+
{
|
|
2785
|
+
"type": "identifier",
|
|
2786
|
+
"name": "value",
|
|
2787
|
+
"annotation": {
|
|
2788
|
+
"type": "array",
|
|
2789
|
+
"elementType": {
|
|
2790
|
+
"type": "reference",
|
|
2791
|
+
"typeName": {
|
|
2792
|
+
"type": "identifier",
|
|
2793
|
+
"name": "Record"
|
|
2794
|
+
},
|
|
2795
|
+
"typeParameters": {
|
|
2796
|
+
"type": "typeParameterInstantiation",
|
|
2797
|
+
"params": [
|
|
2798
|
+
{
|
|
2799
|
+
"type": "keyword",
|
|
2800
|
+
"value": "string"
|
|
2801
|
+
},
|
|
2802
|
+
{
|
|
2803
|
+
"type": "keyword",
|
|
2804
|
+
"value": "any"
|
|
2805
|
+
}
|
|
2806
|
+
]
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
],
|
|
2812
|
+
"annotation": {
|
|
2813
|
+
"type": "keyword",
|
|
2814
|
+
"value": "boolean"
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
]
|
|
2819
|
+
}
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
"name": "disabledAddButton",
|
|
2823
|
+
"annotation": {
|
|
2824
|
+
"type": "union",
|
|
2825
|
+
"types": [
|
|
2826
|
+
{
|
|
2827
|
+
"type": "keyword",
|
|
2828
|
+
"value": "boolean"
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
"type": "parenthesizedType",
|
|
2832
|
+
"annotation": {
|
|
2833
|
+
"type": "function",
|
|
2834
|
+
"parameters": [
|
|
2835
|
+
{
|
|
2836
|
+
"type": "identifier",
|
|
2837
|
+
"name": "value",
|
|
2838
|
+
"annotation": {
|
|
2839
|
+
"type": "array",
|
|
2840
|
+
"elementType": {
|
|
2841
|
+
"type": "reference",
|
|
2842
|
+
"typeName": {
|
|
2843
|
+
"type": "identifier",
|
|
2844
|
+
"name": "Record"
|
|
2845
|
+
},
|
|
2846
|
+
"typeParameters": {
|
|
2847
|
+
"type": "typeParameterInstantiation",
|
|
2848
|
+
"params": [
|
|
2849
|
+
{
|
|
2850
|
+
"type": "keyword",
|
|
2851
|
+
"value": "string"
|
|
2852
|
+
},
|
|
2853
|
+
{
|
|
2854
|
+
"type": "keyword",
|
|
2855
|
+
"value": "any"
|
|
2856
|
+
}
|
|
2857
|
+
]
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
],
|
|
2863
|
+
"annotation": {
|
|
2864
|
+
"type": "keyword",
|
|
2865
|
+
"value": "boolean"
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
]
|
|
2870
|
+
}
|
|
2871
|
+
},
|
|
2635
2872
|
{
|
|
2636
2873
|
"name": "useBrick",
|
|
2637
2874
|
"annotation": {
|
|
@@ -2658,6 +2895,30 @@
|
|
|
2658
2895
|
}
|
|
2659
2896
|
}
|
|
2660
2897
|
}
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
"name": "row.add",
|
|
2901
|
+
"detail": {
|
|
2902
|
+
"annotation": {
|
|
2903
|
+
"type": "reference",
|
|
2904
|
+
"typeName": {
|
|
2905
|
+
"type": "identifier",
|
|
2906
|
+
"name": "rowDataType"
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
"name": "row.remove",
|
|
2913
|
+
"detail": {
|
|
2914
|
+
"annotation": {
|
|
2915
|
+
"type": "reference",
|
|
2916
|
+
"typeName": {
|
|
2917
|
+
"type": "identifier",
|
|
2918
|
+
"name": "rowDataType"
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2661
2922
|
}
|
|
2662
2923
|
],
|
|
2663
2924
|
"methods": [],
|
|
@@ -2685,6 +2946,55 @@
|
|
|
2685
2946
|
]
|
|
2686
2947
|
}
|
|
2687
2948
|
}
|
|
2949
|
+
},
|
|
2950
|
+
{
|
|
2951
|
+
"type": "typeAlias",
|
|
2952
|
+
"name": "rowDataType",
|
|
2953
|
+
"annotation": {
|
|
2954
|
+
"type": "typeLiteral",
|
|
2955
|
+
"members": [
|
|
2956
|
+
{
|
|
2957
|
+
"type": "propertySignature",
|
|
2958
|
+
"key": {
|
|
2959
|
+
"type": "identifier",
|
|
2960
|
+
"name": "detail"
|
|
2961
|
+
},
|
|
2962
|
+
"annotation": {
|
|
2963
|
+
"type": "reference",
|
|
2964
|
+
"typeName": {
|
|
2965
|
+
"type": "identifier",
|
|
2966
|
+
"name": "Record"
|
|
2967
|
+
},
|
|
2968
|
+
"typeParameters": {
|
|
2969
|
+
"type": "typeParameterInstantiation",
|
|
2970
|
+
"params": [
|
|
2971
|
+
{
|
|
2972
|
+
"type": "keyword",
|
|
2973
|
+
"value": "string"
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
"type": "keyword",
|
|
2977
|
+
"value": "any"
|
|
2978
|
+
}
|
|
2979
|
+
]
|
|
2980
|
+
}
|
|
2981
|
+
},
|
|
2982
|
+
"computed": false
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
"type": "propertySignature",
|
|
2986
|
+
"key": {
|
|
2987
|
+
"type": "identifier",
|
|
2988
|
+
"name": "index"
|
|
2989
|
+
},
|
|
2990
|
+
"annotation": {
|
|
2991
|
+
"type": "keyword",
|
|
2992
|
+
"value": "number"
|
|
2993
|
+
},
|
|
2994
|
+
"computed": false
|
|
2995
|
+
}
|
|
2996
|
+
]
|
|
2997
|
+
}
|
|
2688
2998
|
}
|
|
2689
2999
|
]
|
|
2690
3000
|
},
|
|
@@ -14,7 +14,18 @@ interface DynamicFormItemProps extends FormItemProps {
|
|
|
14
14
|
needValidate?: boolean;
|
|
15
15
|
onChange?: (value: DynamicFormValuesItem[]) => void;
|
|
16
16
|
onValuesChange?: (values: DynamicFormValuesItem[]) => void;
|
|
17
|
+
onAdd?: (value: rowDataType) => void;
|
|
18
|
+
onRemove?: (value: rowDataType) => void;
|
|
19
|
+
hideRemoveButton?: boolean | ((row: Record<string, any>, index: number) => boolean);
|
|
20
|
+
disabledRemoveButton?: boolean | ((row: Record<string, any>, index: number) => boolean);
|
|
21
|
+
hideAddButton?: boolean | ((value: Record<string, any>[]) => boolean);
|
|
22
|
+
disabledAddButton?: boolean | ((value: Record<string, any>[]) => boolean);
|
|
17
23
|
}
|
|
24
|
+
type rowDataType = {
|
|
25
|
+
detail: Record<string, any>;
|
|
26
|
+
index: number;
|
|
27
|
+
};
|
|
28
|
+
export declare const getRealValue: (property: boolean | ((...args: any[]) => boolean), args: any[]) => boolean;
|
|
18
29
|
/**
|
|
19
30
|
* 动态表单
|
|
20
31
|
* @author sailor
|
|
@@ -37,6 +48,26 @@ declare class DynamicFormItem extends FormItemElementBase {
|
|
|
37
48
|
* 值
|
|
38
49
|
*/
|
|
39
50
|
accessor value: DynamicFormValuesItem[] | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* 校验文本
|
|
53
|
+
*/
|
|
54
|
+
accessor message: Record<string, string> | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* 是否隐藏每一行删除的按钮
|
|
57
|
+
*/
|
|
58
|
+
accessor hideRemoveButton: boolean | ((row: Record<string, any>, index: number) => boolean) | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* 是否禁止每一行删除的按钮
|
|
61
|
+
*/
|
|
62
|
+
accessor disabledRemoveButton: boolean | ((row: Record<string, any>, index: number) => boolean) | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* 是否隐藏添加的按钮
|
|
65
|
+
*/
|
|
66
|
+
accessor hideAddButton: boolean | ((value: Record<string, any>[]) => boolean) | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* 是否禁止添加的按钮
|
|
69
|
+
*/
|
|
70
|
+
accessor disabledAddButton: boolean | ((value: Record<string, any>[]) => boolean) | undefined;
|
|
40
71
|
/**
|
|
41
72
|
* 动态表单子项构件列表
|
|
42
73
|
*/
|
|
@@ -93,6 +93,36 @@
|
|
|
93
93
|
- Shenzhen
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
+
### hideRemoveButton、disabledRemoveButton;hideAddButton、disabledAddButton
|
|
97
|
+
|
|
98
|
+
```yaml preview
|
|
99
|
+
- brick: eo-dynamic-form-item
|
|
100
|
+
properties:
|
|
101
|
+
hideAddButton: <% (value)=>value.length===5 %>
|
|
102
|
+
disabledAddButton: <% (value)=>value.length===4 %>
|
|
103
|
+
hideRemoveButton: <% (value,row)=>row===1 %>
|
|
104
|
+
disabledRemoveButton: <% (value,row)=>row===0 %>
|
|
105
|
+
value:
|
|
106
|
+
- input: hello1
|
|
107
|
+
select: abc1
|
|
108
|
+
- input: hello2
|
|
109
|
+
select: abc2
|
|
110
|
+
- input: hello3
|
|
111
|
+
select: abc3
|
|
112
|
+
useBrick:
|
|
113
|
+
- brick: eo-input
|
|
114
|
+
properties:
|
|
115
|
+
name: input
|
|
116
|
+
- brick: eo-select
|
|
117
|
+
properties:
|
|
118
|
+
name: select
|
|
119
|
+
options:
|
|
120
|
+
- abc1
|
|
121
|
+
- abc2
|
|
122
|
+
- abc2
|
|
123
|
+
- abc4
|
|
124
|
+
```
|
|
125
|
+
|
|
96
126
|
### Event
|
|
97
127
|
|
|
98
128
|
```yaml preview
|
|
@@ -112,6 +142,10 @@
|
|
|
112
142
|
- Guangzhou
|
|
113
143
|
- Shenzhen
|
|
114
144
|
events:
|
|
145
|
+
row.remove:
|
|
146
|
+
action: console.log
|
|
147
|
+
row.add:
|
|
148
|
+
action: console.log
|
|
115
149
|
change:
|
|
116
150
|
- action: message.success
|
|
117
151
|
args:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/form",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.8",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"postpublish": "mv package.json.bak package.json"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@next-core/build-next-bricks": "^1.14.
|
|
38
|
-
"@next-core/test-next": "^1.0.
|
|
37
|
+
"@next-core/build-next-bricks": "^1.14.3",
|
|
38
|
+
"@next-core/test-next": "^1.0.11"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "637bb42177c8d3b436edf906cafed40708c0ed44"
|
|
41
41
|
}
|