@next-bricks/form 1.10.9 → 1.10.10
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 +33 -33
- package/dist/chunks/{4947.e4665990.js → 3533.e004c608.js} +3 -3
- package/dist/chunks/3533.e004c608.js.map +1 -0
- package/dist/chunks/{9259.43385314.js → 9259.a5242da6.js} +3 -3
- package/dist/chunks/9259.a5242da6.js.map +1 -0
- package/dist/chunks/{eo-checkbox.b0af3bff.js → eo-checkbox.ff46fd8d.js} +2 -2
- package/dist/chunks/{eo-checkbox.b0af3bff.js.map → eo-checkbox.ff46fd8d.js.map} +1 -1
- package/dist/chunks/eo-form-item.2977d047.js.map +1 -1
- package/dist/chunks/{main.ba7df5cf.js → main.664cfa57.js} +2 -2
- package/dist/chunks/{main.ba7df5cf.js.map → main.664cfa57.js.map} +1 -1
- package/dist/examples.json +11 -11
- package/dist/{index.b7e5e657.js → index.eac2691b.js} +2 -2
- package/dist/{index.b7e5e657.js.map → index.eac2691b.js.map} +1 -1
- package/dist/manifest.json +331 -331
- package/dist/types.json +220 -220
- package/dist-types/form-item/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunks/4947.e4665990.js.map +0 -1
- package/dist/chunks/9259.43385314.js.map +0 -1
- /package/dist/chunks/{4947.e4665990.js.LICENSE.txt → 3533.e004c608.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9259.43385314.js.LICENSE.txt → 9259.a5242da6.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -2584,226 +2584,6 @@
|
|
|
2584
2584
|
}
|
|
2585
2585
|
]
|
|
2586
2586
|
},
|
|
2587
|
-
"eo-form-item": {
|
|
2588
|
-
"properties": [
|
|
2589
|
-
{
|
|
2590
|
-
"name": "formElement",
|
|
2591
|
-
"annotation": {
|
|
2592
|
-
"type": "reference",
|
|
2593
|
-
"typeName": {
|
|
2594
|
-
"type": "identifier",
|
|
2595
|
-
"name": "Form"
|
|
2596
|
-
}
|
|
2597
|
-
}
|
|
2598
|
-
},
|
|
2599
|
-
{
|
|
2600
|
-
"name": "curElement",
|
|
2601
|
-
"annotation": {
|
|
2602
|
-
"type": "reference",
|
|
2603
|
-
"typeName": {
|
|
2604
|
-
"type": "identifier",
|
|
2605
|
-
"name": "HTMLElement"
|
|
2606
|
-
}
|
|
2607
|
-
}
|
|
2608
|
-
},
|
|
2609
|
-
{
|
|
2610
|
-
"name": "name",
|
|
2611
|
-
"annotation": {
|
|
2612
|
-
"type": "keyword",
|
|
2613
|
-
"value": "string"
|
|
2614
|
-
}
|
|
2615
|
-
},
|
|
2616
|
-
{
|
|
2617
|
-
"name": "label",
|
|
2618
|
-
"annotation": {
|
|
2619
|
-
"type": "keyword",
|
|
2620
|
-
"value": "string"
|
|
2621
|
-
}
|
|
2622
|
-
},
|
|
2623
|
-
{
|
|
2624
|
-
"name": "pattern",
|
|
2625
|
-
"annotation": {
|
|
2626
|
-
"type": "keyword",
|
|
2627
|
-
"value": "string"
|
|
2628
|
-
}
|
|
2629
|
-
},
|
|
2630
|
-
{
|
|
2631
|
-
"name": "message",
|
|
2632
|
-
"annotation": {
|
|
2633
|
-
"type": "reference",
|
|
2634
|
-
"typeName": {
|
|
2635
|
-
"type": "identifier",
|
|
2636
|
-
"name": "Record"
|
|
2637
|
-
},
|
|
2638
|
-
"typeParameters": {
|
|
2639
|
-
"type": "typeParameterInstantiation",
|
|
2640
|
-
"params": [
|
|
2641
|
-
{
|
|
2642
|
-
"type": "keyword",
|
|
2643
|
-
"value": "string"
|
|
2644
|
-
},
|
|
2645
|
-
{
|
|
2646
|
-
"type": "keyword",
|
|
2647
|
-
"value": "string"
|
|
2648
|
-
}
|
|
2649
|
-
]
|
|
2650
|
-
}
|
|
2651
|
-
}
|
|
2652
|
-
},
|
|
2653
|
-
{
|
|
2654
|
-
"name": "max",
|
|
2655
|
-
"annotation": {
|
|
2656
|
-
"type": "keyword",
|
|
2657
|
-
"value": "number"
|
|
2658
|
-
}
|
|
2659
|
-
},
|
|
2660
|
-
{
|
|
2661
|
-
"name": "min",
|
|
2662
|
-
"annotation": {
|
|
2663
|
-
"type": "keyword",
|
|
2664
|
-
"value": "number"
|
|
2665
|
-
}
|
|
2666
|
-
},
|
|
2667
|
-
{
|
|
2668
|
-
"name": "required",
|
|
2669
|
-
"annotation": {
|
|
2670
|
-
"type": "keyword",
|
|
2671
|
-
"value": "boolean"
|
|
2672
|
-
}
|
|
2673
|
-
},
|
|
2674
|
-
{
|
|
2675
|
-
"name": "value",
|
|
2676
|
-
"annotation": {
|
|
2677
|
-
"type": "keyword",
|
|
2678
|
-
"value": "string"
|
|
2679
|
-
}
|
|
2680
|
-
},
|
|
2681
|
-
{
|
|
2682
|
-
"name": "valuePropsName",
|
|
2683
|
-
"annotation": {
|
|
2684
|
-
"type": "keyword",
|
|
2685
|
-
"value": "string"
|
|
2686
|
-
}
|
|
2687
|
-
},
|
|
2688
|
-
{
|
|
2689
|
-
"name": "layout",
|
|
2690
|
-
"annotation": {
|
|
2691
|
-
"type": "reference",
|
|
2692
|
-
"typeName": {
|
|
2693
|
-
"type": "identifier",
|
|
2694
|
-
"name": "Layout"
|
|
2695
|
-
}
|
|
2696
|
-
}
|
|
2697
|
-
},
|
|
2698
|
-
{
|
|
2699
|
-
"name": "size",
|
|
2700
|
-
"annotation": {
|
|
2701
|
-
"type": "reference",
|
|
2702
|
-
"typeName": {
|
|
2703
|
-
"type": "identifier",
|
|
2704
|
-
"name": "ComponentSize"
|
|
2705
|
-
}
|
|
2706
|
-
}
|
|
2707
|
-
},
|
|
2708
|
-
{
|
|
2709
|
-
"name": "trim",
|
|
2710
|
-
"annotation": {
|
|
2711
|
-
"type": "keyword",
|
|
2712
|
-
"value": "boolean"
|
|
2713
|
-
}
|
|
2714
|
-
},
|
|
2715
|
-
{
|
|
2716
|
-
"name": "trigger",
|
|
2717
|
-
"annotation": {
|
|
2718
|
-
"type": "keyword",
|
|
2719
|
-
"value": "string"
|
|
2720
|
-
}
|
|
2721
|
-
},
|
|
2722
|
-
{
|
|
2723
|
-
"name": "validator",
|
|
2724
|
-
"annotation": {
|
|
2725
|
-
"type": "parenthesizedType",
|
|
2726
|
-
"annotation": {
|
|
2727
|
-
"type": "function",
|
|
2728
|
-
"parameters": [
|
|
2729
|
-
{
|
|
2730
|
-
"type": "identifier",
|
|
2731
|
-
"name": "value",
|
|
2732
|
-
"annotation": {
|
|
2733
|
-
"type": "keyword",
|
|
2734
|
-
"value": "any"
|
|
2735
|
-
}
|
|
2736
|
-
}
|
|
2737
|
-
],
|
|
2738
|
-
"annotation": {
|
|
2739
|
-
"type": "reference",
|
|
2740
|
-
"typeName": {
|
|
2741
|
-
"type": "identifier",
|
|
2742
|
-
"name": "MessageBody"
|
|
2743
|
-
}
|
|
2744
|
-
}
|
|
2745
|
-
}
|
|
2746
|
-
}
|
|
2747
|
-
},
|
|
2748
|
-
{
|
|
2749
|
-
"name": "needValidate",
|
|
2750
|
-
"annotation": {
|
|
2751
|
-
"type": "keyword",
|
|
2752
|
-
"value": "boolean"
|
|
2753
|
-
}
|
|
2754
|
-
}
|
|
2755
|
-
],
|
|
2756
|
-
"events": [],
|
|
2757
|
-
"methods": [],
|
|
2758
|
-
"types": [
|
|
2759
|
-
{
|
|
2760
|
-
"type": "typeAlias",
|
|
2761
|
-
"name": "Layout",
|
|
2762
|
-
"annotation": {
|
|
2763
|
-
"type": "union",
|
|
2764
|
-
"types": [
|
|
2765
|
-
{
|
|
2766
|
-
"type": "jsLiteral",
|
|
2767
|
-
"value": "horizontal"
|
|
2768
|
-
},
|
|
2769
|
-
{
|
|
2770
|
-
"type": "jsLiteral",
|
|
2771
|
-
"value": "vertical"
|
|
2772
|
-
},
|
|
2773
|
-
{
|
|
2774
|
-
"type": "jsLiteral",
|
|
2775
|
-
"value": "inline"
|
|
2776
|
-
}
|
|
2777
|
-
]
|
|
2778
|
-
}
|
|
2779
|
-
},
|
|
2780
|
-
{
|
|
2781
|
-
"type": "typeAlias",
|
|
2782
|
-
"name": "ComponentSize",
|
|
2783
|
-
"annotation": {
|
|
2784
|
-
"type": "union",
|
|
2785
|
-
"types": [
|
|
2786
|
-
{
|
|
2787
|
-
"type": "jsLiteral",
|
|
2788
|
-
"value": "large"
|
|
2789
|
-
},
|
|
2790
|
-
{
|
|
2791
|
-
"type": "jsLiteral",
|
|
2792
|
-
"value": "medium"
|
|
2793
|
-
},
|
|
2794
|
-
{
|
|
2795
|
-
"type": "jsLiteral",
|
|
2796
|
-
"value": "small"
|
|
2797
|
-
},
|
|
2798
|
-
{
|
|
2799
|
-
"type": "jsLiteral",
|
|
2800
|
-
"value": "xs"
|
|
2801
|
-
}
|
|
2802
|
-
]
|
|
2803
|
-
}
|
|
2804
|
-
}
|
|
2805
|
-
]
|
|
2806
|
-
},
|
|
2807
2587
|
"eo-dynamic-form-item": {
|
|
2808
2588
|
"properties": [
|
|
2809
2589
|
{
|
|
@@ -3328,6 +3108,226 @@
|
|
|
3328
3108
|
}
|
|
3329
3109
|
]
|
|
3330
3110
|
},
|
|
3111
|
+
"eo-form-item": {
|
|
3112
|
+
"properties": [
|
|
3113
|
+
{
|
|
3114
|
+
"name": "formElement",
|
|
3115
|
+
"annotation": {
|
|
3116
|
+
"type": "reference",
|
|
3117
|
+
"typeName": {
|
|
3118
|
+
"type": "identifier",
|
|
3119
|
+
"name": "Form"
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
},
|
|
3123
|
+
{
|
|
3124
|
+
"name": "curElement",
|
|
3125
|
+
"annotation": {
|
|
3126
|
+
"type": "reference",
|
|
3127
|
+
"typeName": {
|
|
3128
|
+
"type": "identifier",
|
|
3129
|
+
"name": "HTMLElement"
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
},
|
|
3133
|
+
{
|
|
3134
|
+
"name": "name",
|
|
3135
|
+
"annotation": {
|
|
3136
|
+
"type": "keyword",
|
|
3137
|
+
"value": "string"
|
|
3138
|
+
}
|
|
3139
|
+
},
|
|
3140
|
+
{
|
|
3141
|
+
"name": "label",
|
|
3142
|
+
"annotation": {
|
|
3143
|
+
"type": "keyword",
|
|
3144
|
+
"value": "string"
|
|
3145
|
+
}
|
|
3146
|
+
},
|
|
3147
|
+
{
|
|
3148
|
+
"name": "pattern",
|
|
3149
|
+
"annotation": {
|
|
3150
|
+
"type": "keyword",
|
|
3151
|
+
"value": "string"
|
|
3152
|
+
}
|
|
3153
|
+
},
|
|
3154
|
+
{
|
|
3155
|
+
"name": "message",
|
|
3156
|
+
"annotation": {
|
|
3157
|
+
"type": "reference",
|
|
3158
|
+
"typeName": {
|
|
3159
|
+
"type": "identifier",
|
|
3160
|
+
"name": "Record"
|
|
3161
|
+
},
|
|
3162
|
+
"typeParameters": {
|
|
3163
|
+
"type": "typeParameterInstantiation",
|
|
3164
|
+
"params": [
|
|
3165
|
+
{
|
|
3166
|
+
"type": "keyword",
|
|
3167
|
+
"value": "string"
|
|
3168
|
+
},
|
|
3169
|
+
{
|
|
3170
|
+
"type": "keyword",
|
|
3171
|
+
"value": "string"
|
|
3172
|
+
}
|
|
3173
|
+
]
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
"name": "max",
|
|
3179
|
+
"annotation": {
|
|
3180
|
+
"type": "keyword",
|
|
3181
|
+
"value": "number"
|
|
3182
|
+
}
|
|
3183
|
+
},
|
|
3184
|
+
{
|
|
3185
|
+
"name": "min",
|
|
3186
|
+
"annotation": {
|
|
3187
|
+
"type": "keyword",
|
|
3188
|
+
"value": "number"
|
|
3189
|
+
}
|
|
3190
|
+
},
|
|
3191
|
+
{
|
|
3192
|
+
"name": "required",
|
|
3193
|
+
"annotation": {
|
|
3194
|
+
"type": "keyword",
|
|
3195
|
+
"value": "boolean"
|
|
3196
|
+
}
|
|
3197
|
+
},
|
|
3198
|
+
{
|
|
3199
|
+
"name": "value",
|
|
3200
|
+
"annotation": {
|
|
3201
|
+
"type": "keyword",
|
|
3202
|
+
"value": "string"
|
|
3203
|
+
}
|
|
3204
|
+
},
|
|
3205
|
+
{
|
|
3206
|
+
"name": "valuePropsName",
|
|
3207
|
+
"annotation": {
|
|
3208
|
+
"type": "keyword",
|
|
3209
|
+
"value": "string"
|
|
3210
|
+
}
|
|
3211
|
+
},
|
|
3212
|
+
{
|
|
3213
|
+
"name": "layout",
|
|
3214
|
+
"annotation": {
|
|
3215
|
+
"type": "reference",
|
|
3216
|
+
"typeName": {
|
|
3217
|
+
"type": "identifier",
|
|
3218
|
+
"name": "Layout"
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
"name": "size",
|
|
3224
|
+
"annotation": {
|
|
3225
|
+
"type": "reference",
|
|
3226
|
+
"typeName": {
|
|
3227
|
+
"type": "identifier",
|
|
3228
|
+
"name": "ComponentSize"
|
|
3229
|
+
}
|
|
3230
|
+
}
|
|
3231
|
+
},
|
|
3232
|
+
{
|
|
3233
|
+
"name": "trim",
|
|
3234
|
+
"annotation": {
|
|
3235
|
+
"type": "keyword",
|
|
3236
|
+
"value": "boolean"
|
|
3237
|
+
}
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
"name": "trigger",
|
|
3241
|
+
"annotation": {
|
|
3242
|
+
"type": "keyword",
|
|
3243
|
+
"value": "string"
|
|
3244
|
+
}
|
|
3245
|
+
},
|
|
3246
|
+
{
|
|
3247
|
+
"name": "validator",
|
|
3248
|
+
"annotation": {
|
|
3249
|
+
"type": "parenthesizedType",
|
|
3250
|
+
"annotation": {
|
|
3251
|
+
"type": "function",
|
|
3252
|
+
"parameters": [
|
|
3253
|
+
{
|
|
3254
|
+
"type": "identifier",
|
|
3255
|
+
"name": "value",
|
|
3256
|
+
"annotation": {
|
|
3257
|
+
"type": "keyword",
|
|
3258
|
+
"value": "any"
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
],
|
|
3262
|
+
"annotation": {
|
|
3263
|
+
"type": "reference",
|
|
3264
|
+
"typeName": {
|
|
3265
|
+
"type": "identifier",
|
|
3266
|
+
"name": "MessageBody"
|
|
3267
|
+
}
|
|
3268
|
+
}
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
},
|
|
3272
|
+
{
|
|
3273
|
+
"name": "needValidate",
|
|
3274
|
+
"annotation": {
|
|
3275
|
+
"type": "keyword",
|
|
3276
|
+
"value": "boolean"
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
],
|
|
3280
|
+
"events": [],
|
|
3281
|
+
"methods": [],
|
|
3282
|
+
"types": [
|
|
3283
|
+
{
|
|
3284
|
+
"type": "typeAlias",
|
|
3285
|
+
"name": "Layout",
|
|
3286
|
+
"annotation": {
|
|
3287
|
+
"type": "union",
|
|
3288
|
+
"types": [
|
|
3289
|
+
{
|
|
3290
|
+
"type": "jsLiteral",
|
|
3291
|
+
"value": "horizontal"
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
"type": "jsLiteral",
|
|
3295
|
+
"value": "vertical"
|
|
3296
|
+
},
|
|
3297
|
+
{
|
|
3298
|
+
"type": "jsLiteral",
|
|
3299
|
+
"value": "inline"
|
|
3300
|
+
}
|
|
3301
|
+
]
|
|
3302
|
+
}
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
"type": "typeAlias",
|
|
3306
|
+
"name": "ComponentSize",
|
|
3307
|
+
"annotation": {
|
|
3308
|
+
"type": "union",
|
|
3309
|
+
"types": [
|
|
3310
|
+
{
|
|
3311
|
+
"type": "jsLiteral",
|
|
3312
|
+
"value": "large"
|
|
3313
|
+
},
|
|
3314
|
+
{
|
|
3315
|
+
"type": "jsLiteral",
|
|
3316
|
+
"value": "medium"
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
"type": "jsLiteral",
|
|
3320
|
+
"value": "small"
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
"type": "jsLiteral",
|
|
3324
|
+
"value": "xs"
|
|
3325
|
+
}
|
|
3326
|
+
]
|
|
3327
|
+
}
|
|
3328
|
+
}
|
|
3329
|
+
]
|
|
3330
|
+
},
|
|
3331
3331
|
"eo-date-picker": {
|
|
3332
3332
|
"properties": [
|
|
3333
3333
|
{
|
|
@@ -57,7 +57,7 @@ declare class FormItem extends FormItemElementBase implements FormItemProps {
|
|
|
57
57
|
accessor max: number | undefined;
|
|
58
58
|
accessor min: number | undefined;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* 表单项是否为必填
|
|
61
61
|
* @group basicFormItem
|
|
62
62
|
*/
|
|
63
63
|
accessor required: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/form",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.10",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@next-bricks/icons": "*",
|
|
45
45
|
"@next-bricks/illustrations": "*"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "88a835522a6f18b85a7ce7c20e0e8cca485a7dc0"
|
|
48
48
|
}
|