@next-bricks/form 1.13.4 → 1.13.5
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/9259.1eb7a074.js +3 -0
- package/dist/chunks/9259.1eb7a074.js.map +1 -0
- package/dist/chunks/eo-form-item.986d5f0f.js +3 -0
- package/dist/chunks/eo-form-item.986d5f0f.js.map +1 -0
- package/dist/chunks/{eo-form.52b0a429.js → eo-form.0218499b.js} +2 -2
- package/dist/chunks/eo-form.0218499b.js.map +1 -0
- package/dist/chunks/eo-input.721b4ee8.js +3 -0
- package/dist/chunks/eo-input.721b4ee8.js.map +1 -0
- package/dist/chunks/eo-radio.5a6590c0.js.map +1 -1
- package/dist/chunks/{main.b831a2de.js → main.a3960ab5.js} +2 -2
- package/dist/chunks/{main.b831a2de.js.map → main.a3960ab5.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/index.85ea0c83.js +2 -0
- package/dist/{index.d99480d8.js.map → index.85ea0c83.js.map} +1 -1
- package/dist/manifest.json +105 -101
- package/dist/types.json +195 -188
- package/dist-types/form-item/index.d.ts +2 -0
- package/dist-types/input/index.d.ts +5 -3
- package/dist-types/radio/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunks/9259.db79e3c6.js +0 -3
- package/dist/chunks/9259.db79e3c6.js.map +0 -1
- package/dist/chunks/eo-form-item.38e2e6cd.js +0 -3
- package/dist/chunks/eo-form-item.38e2e6cd.js.map +0 -1
- package/dist/chunks/eo-form.52b0a429.js.map +0 -1
- package/dist/chunks/eo-input.561ca56a.js +0 -3
- package/dist/chunks/eo-input.561ca56a.js.map +0 -1
- package/dist/index.d99480d8.js +0 -2
- /package/dist/chunks/{9259.db79e3c6.js.LICENSE.txt → 9259.1eb7a074.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.38e2e6cd.js.LICENSE.txt → eo-form-item.986d5f0f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-input.561ca56a.js.LICENSE.txt → eo-input.721b4ee8.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "max",
|
|
34
|
-
"description": "
|
|
34
|
+
"description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
|
|
35
35
|
"type": "number"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "min",
|
|
39
|
-
"description": "
|
|
39
|
+
"description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
|
|
40
40
|
"type": "number"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
"name": "maxLength",
|
|
97
|
-
"description": "
|
|
97
|
+
"description": "最大长度(用户无法输入超过此最大长度的字符串)",
|
|
98
98
|
"type": "number"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
@@ -188,104 +188,6 @@
|
|
|
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
191
|
{
|
|
290
192
|
"name": "eo-form",
|
|
291
193
|
"alias": [
|
|
@@ -460,6 +362,10 @@
|
|
|
460
362
|
"attribute": false,
|
|
461
363
|
"type": "Record<string, string>"
|
|
462
364
|
},
|
|
365
|
+
{
|
|
366
|
+
"name": "type",
|
|
367
|
+
"type": "string"
|
|
368
|
+
},
|
|
463
369
|
{
|
|
464
370
|
"name": "max",
|
|
465
371
|
"type": "number"
|
|
@@ -525,6 +431,104 @@
|
|
|
525
431
|
"category": "form-input-basic",
|
|
526
432
|
"insider": true
|
|
527
433
|
},
|
|
434
|
+
{
|
|
435
|
+
"name": "eo-textarea",
|
|
436
|
+
"alias": [
|
|
437
|
+
"form.general-textarea"
|
|
438
|
+
],
|
|
439
|
+
"properties": [
|
|
440
|
+
{
|
|
441
|
+
"name": "name",
|
|
442
|
+
"description": "字段名称",
|
|
443
|
+
"type": "string"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "label",
|
|
447
|
+
"description": "标签文字",
|
|
448
|
+
"type": "string"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "value",
|
|
452
|
+
"description": "值",
|
|
453
|
+
"type": "string"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "placeholder",
|
|
457
|
+
"description": "占位说明",
|
|
458
|
+
"type": "string"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "disabled",
|
|
462
|
+
"description": "是否禁用",
|
|
463
|
+
"type": "boolean"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "minLength",
|
|
467
|
+
"description": "最小长度",
|
|
468
|
+
"type": "number"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "maxLength",
|
|
472
|
+
"description": "最大长度",
|
|
473
|
+
"type": "number"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "autoSize",
|
|
477
|
+
"description": "大小自适应",
|
|
478
|
+
"attribute": false,
|
|
479
|
+
"type": "AutoSize"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "required",
|
|
483
|
+
"description": "是否必填",
|
|
484
|
+
"type": "boolean"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "max",
|
|
488
|
+
"description": "表单校验最大长度",
|
|
489
|
+
"type": "number"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "min",
|
|
493
|
+
"description": "表单校验最小长度",
|
|
494
|
+
"type": "number"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "message",
|
|
498
|
+
"description": "校验信息",
|
|
499
|
+
"attribute": false,
|
|
500
|
+
"type": "Record<string, string>"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"name": "textareaStyle",
|
|
504
|
+
"description": "自定义样式",
|
|
505
|
+
"attribute": false,
|
|
506
|
+
"type": "React.CSSProperties"
|
|
507
|
+
}
|
|
508
|
+
],
|
|
509
|
+
"events": [
|
|
510
|
+
{
|
|
511
|
+
"name": "change",
|
|
512
|
+
"description": "",
|
|
513
|
+
"detail": {
|
|
514
|
+
"description": null,
|
|
515
|
+
"type": "string"
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"slots": [],
|
|
520
|
+
"methods": [
|
|
521
|
+
{
|
|
522
|
+
"name": "focusTextarea",
|
|
523
|
+
"params": [],
|
|
524
|
+
"description": "focus",
|
|
525
|
+
"returns": {}
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
"parts": [],
|
|
529
|
+
"description": "通用多行文本输入框构件",
|
|
530
|
+
"category": "form-input-basic"
|
|
531
|
+
},
|
|
528
532
|
{
|
|
529
533
|
"name": "eo-radio",
|
|
530
534
|
"alias": [
|
package/dist/types.json
CHANGED
|
@@ -2452,194 +2452,6 @@
|
|
|
2452
2452
|
}
|
|
2453
2453
|
]
|
|
2454
2454
|
},
|
|
2455
|
-
"eo-textarea": {
|
|
2456
|
-
"properties": [
|
|
2457
|
-
{
|
|
2458
|
-
"name": "name",
|
|
2459
|
-
"annotation": {
|
|
2460
|
-
"type": "keyword",
|
|
2461
|
-
"value": "string"
|
|
2462
|
-
}
|
|
2463
|
-
},
|
|
2464
|
-
{
|
|
2465
|
-
"name": "label",
|
|
2466
|
-
"annotation": {
|
|
2467
|
-
"type": "keyword",
|
|
2468
|
-
"value": "string"
|
|
2469
|
-
}
|
|
2470
|
-
},
|
|
2471
|
-
{
|
|
2472
|
-
"name": "value",
|
|
2473
|
-
"annotation": {
|
|
2474
|
-
"type": "keyword",
|
|
2475
|
-
"value": "string"
|
|
2476
|
-
}
|
|
2477
|
-
},
|
|
2478
|
-
{
|
|
2479
|
-
"name": "placeholder",
|
|
2480
|
-
"annotation": {
|
|
2481
|
-
"type": "keyword",
|
|
2482
|
-
"value": "string"
|
|
2483
|
-
}
|
|
2484
|
-
},
|
|
2485
|
-
{
|
|
2486
|
-
"name": "disabled",
|
|
2487
|
-
"annotation": {
|
|
2488
|
-
"type": "keyword",
|
|
2489
|
-
"value": "boolean"
|
|
2490
|
-
}
|
|
2491
|
-
},
|
|
2492
|
-
{
|
|
2493
|
-
"name": "minLength",
|
|
2494
|
-
"annotation": {
|
|
2495
|
-
"type": "keyword",
|
|
2496
|
-
"value": "number"
|
|
2497
|
-
}
|
|
2498
|
-
},
|
|
2499
|
-
{
|
|
2500
|
-
"name": "maxLength",
|
|
2501
|
-
"annotation": {
|
|
2502
|
-
"type": "keyword",
|
|
2503
|
-
"value": "number"
|
|
2504
|
-
}
|
|
2505
|
-
},
|
|
2506
|
-
{
|
|
2507
|
-
"name": "autoSize",
|
|
2508
|
-
"annotation": {
|
|
2509
|
-
"type": "reference",
|
|
2510
|
-
"typeName": {
|
|
2511
|
-
"type": "identifier",
|
|
2512
|
-
"name": "AutoSize"
|
|
2513
|
-
}
|
|
2514
|
-
}
|
|
2515
|
-
},
|
|
2516
|
-
{
|
|
2517
|
-
"name": "required",
|
|
2518
|
-
"annotation": {
|
|
2519
|
-
"type": "keyword",
|
|
2520
|
-
"value": "boolean"
|
|
2521
|
-
}
|
|
2522
|
-
},
|
|
2523
|
-
{
|
|
2524
|
-
"name": "max",
|
|
2525
|
-
"annotation": {
|
|
2526
|
-
"type": "keyword",
|
|
2527
|
-
"value": "number"
|
|
2528
|
-
}
|
|
2529
|
-
},
|
|
2530
|
-
{
|
|
2531
|
-
"name": "min",
|
|
2532
|
-
"annotation": {
|
|
2533
|
-
"type": "keyword",
|
|
2534
|
-
"value": "number"
|
|
2535
|
-
}
|
|
2536
|
-
},
|
|
2537
|
-
{
|
|
2538
|
-
"name": "message",
|
|
2539
|
-
"annotation": {
|
|
2540
|
-
"type": "reference",
|
|
2541
|
-
"typeName": {
|
|
2542
|
-
"type": "identifier",
|
|
2543
|
-
"name": "Record"
|
|
2544
|
-
},
|
|
2545
|
-
"typeParameters": {
|
|
2546
|
-
"type": "typeParameterInstantiation",
|
|
2547
|
-
"params": [
|
|
2548
|
-
{
|
|
2549
|
-
"type": "keyword",
|
|
2550
|
-
"value": "string"
|
|
2551
|
-
},
|
|
2552
|
-
{
|
|
2553
|
-
"type": "keyword",
|
|
2554
|
-
"value": "string"
|
|
2555
|
-
}
|
|
2556
|
-
]
|
|
2557
|
-
}
|
|
2558
|
-
}
|
|
2559
|
-
},
|
|
2560
|
-
{
|
|
2561
|
-
"name": "textareaStyle",
|
|
2562
|
-
"annotation": {
|
|
2563
|
-
"type": "reference",
|
|
2564
|
-
"typeName": {
|
|
2565
|
-
"type": "qualifiedName",
|
|
2566
|
-
"left": {
|
|
2567
|
-
"type": "identifier",
|
|
2568
|
-
"name": "React"
|
|
2569
|
-
},
|
|
2570
|
-
"right": {
|
|
2571
|
-
"type": "identifier",
|
|
2572
|
-
"name": "CSSProperties"
|
|
2573
|
-
}
|
|
2574
|
-
}
|
|
2575
|
-
}
|
|
2576
|
-
}
|
|
2577
|
-
],
|
|
2578
|
-
"events": [
|
|
2579
|
-
{
|
|
2580
|
-
"name": "change",
|
|
2581
|
-
"detail": {
|
|
2582
|
-
"annotation": {
|
|
2583
|
-
"type": "keyword",
|
|
2584
|
-
"value": "string"
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2587
|
-
}
|
|
2588
|
-
],
|
|
2589
|
-
"methods": [
|
|
2590
|
-
{
|
|
2591
|
-
"name": "focusTextarea",
|
|
2592
|
-
"params": [],
|
|
2593
|
-
"returns": {}
|
|
2594
|
-
}
|
|
2595
|
-
],
|
|
2596
|
-
"types": [
|
|
2597
|
-
{
|
|
2598
|
-
"type": "typeAlias",
|
|
2599
|
-
"name": "AutoSize",
|
|
2600
|
-
"annotation": {
|
|
2601
|
-
"type": "union",
|
|
2602
|
-
"types": [
|
|
2603
|
-
{
|
|
2604
|
-
"type": "keyword",
|
|
2605
|
-
"value": "boolean"
|
|
2606
|
-
},
|
|
2607
|
-
{
|
|
2608
|
-
"type": "typeLiteral",
|
|
2609
|
-
"members": [
|
|
2610
|
-
{
|
|
2611
|
-
"type": "propertySignature",
|
|
2612
|
-
"key": {
|
|
2613
|
-
"type": "identifier",
|
|
2614
|
-
"name": "minRows"
|
|
2615
|
-
},
|
|
2616
|
-
"annotation": {
|
|
2617
|
-
"type": "keyword",
|
|
2618
|
-
"value": "number"
|
|
2619
|
-
},
|
|
2620
|
-
"optional": true,
|
|
2621
|
-
"computed": false
|
|
2622
|
-
},
|
|
2623
|
-
{
|
|
2624
|
-
"type": "propertySignature",
|
|
2625
|
-
"key": {
|
|
2626
|
-
"type": "identifier",
|
|
2627
|
-
"name": "maxRows"
|
|
2628
|
-
},
|
|
2629
|
-
"annotation": {
|
|
2630
|
-
"type": "keyword",
|
|
2631
|
-
"value": "number"
|
|
2632
|
-
},
|
|
2633
|
-
"optional": true,
|
|
2634
|
-
"computed": false
|
|
2635
|
-
}
|
|
2636
|
-
]
|
|
2637
|
-
}
|
|
2638
|
-
]
|
|
2639
|
-
}
|
|
2640
|
-
}
|
|
2641
|
-
]
|
|
2642
|
-
},
|
|
2643
2455
|
"eo-form-item": {
|
|
2644
2456
|
"properties": [
|
|
2645
2457
|
{
|
|
@@ -2706,6 +2518,13 @@
|
|
|
2706
2518
|
}
|
|
2707
2519
|
}
|
|
2708
2520
|
},
|
|
2521
|
+
{
|
|
2522
|
+
"name": "type",
|
|
2523
|
+
"annotation": {
|
|
2524
|
+
"type": "keyword",
|
|
2525
|
+
"value": "string"
|
|
2526
|
+
}
|
|
2527
|
+
},
|
|
2709
2528
|
{
|
|
2710
2529
|
"name": "max",
|
|
2711
2530
|
"annotation": {
|
|
@@ -2860,6 +2679,194 @@
|
|
|
2860
2679
|
}
|
|
2861
2680
|
]
|
|
2862
2681
|
},
|
|
2682
|
+
"eo-textarea": {
|
|
2683
|
+
"properties": [
|
|
2684
|
+
{
|
|
2685
|
+
"name": "name",
|
|
2686
|
+
"annotation": {
|
|
2687
|
+
"type": "keyword",
|
|
2688
|
+
"value": "string"
|
|
2689
|
+
}
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
"name": "label",
|
|
2693
|
+
"annotation": {
|
|
2694
|
+
"type": "keyword",
|
|
2695
|
+
"value": "string"
|
|
2696
|
+
}
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
"name": "value",
|
|
2700
|
+
"annotation": {
|
|
2701
|
+
"type": "keyword",
|
|
2702
|
+
"value": "string"
|
|
2703
|
+
}
|
|
2704
|
+
},
|
|
2705
|
+
{
|
|
2706
|
+
"name": "placeholder",
|
|
2707
|
+
"annotation": {
|
|
2708
|
+
"type": "keyword",
|
|
2709
|
+
"value": "string"
|
|
2710
|
+
}
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"name": "disabled",
|
|
2714
|
+
"annotation": {
|
|
2715
|
+
"type": "keyword",
|
|
2716
|
+
"value": "boolean"
|
|
2717
|
+
}
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
"name": "minLength",
|
|
2721
|
+
"annotation": {
|
|
2722
|
+
"type": "keyword",
|
|
2723
|
+
"value": "number"
|
|
2724
|
+
}
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
"name": "maxLength",
|
|
2728
|
+
"annotation": {
|
|
2729
|
+
"type": "keyword",
|
|
2730
|
+
"value": "number"
|
|
2731
|
+
}
|
|
2732
|
+
},
|
|
2733
|
+
{
|
|
2734
|
+
"name": "autoSize",
|
|
2735
|
+
"annotation": {
|
|
2736
|
+
"type": "reference",
|
|
2737
|
+
"typeName": {
|
|
2738
|
+
"type": "identifier",
|
|
2739
|
+
"name": "AutoSize"
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
},
|
|
2743
|
+
{
|
|
2744
|
+
"name": "required",
|
|
2745
|
+
"annotation": {
|
|
2746
|
+
"type": "keyword",
|
|
2747
|
+
"value": "boolean"
|
|
2748
|
+
}
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
"name": "max",
|
|
2752
|
+
"annotation": {
|
|
2753
|
+
"type": "keyword",
|
|
2754
|
+
"value": "number"
|
|
2755
|
+
}
|
|
2756
|
+
},
|
|
2757
|
+
{
|
|
2758
|
+
"name": "min",
|
|
2759
|
+
"annotation": {
|
|
2760
|
+
"type": "keyword",
|
|
2761
|
+
"value": "number"
|
|
2762
|
+
}
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
"name": "message",
|
|
2766
|
+
"annotation": {
|
|
2767
|
+
"type": "reference",
|
|
2768
|
+
"typeName": {
|
|
2769
|
+
"type": "identifier",
|
|
2770
|
+
"name": "Record"
|
|
2771
|
+
},
|
|
2772
|
+
"typeParameters": {
|
|
2773
|
+
"type": "typeParameterInstantiation",
|
|
2774
|
+
"params": [
|
|
2775
|
+
{
|
|
2776
|
+
"type": "keyword",
|
|
2777
|
+
"value": "string"
|
|
2778
|
+
},
|
|
2779
|
+
{
|
|
2780
|
+
"type": "keyword",
|
|
2781
|
+
"value": "string"
|
|
2782
|
+
}
|
|
2783
|
+
]
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
"name": "textareaStyle",
|
|
2789
|
+
"annotation": {
|
|
2790
|
+
"type": "reference",
|
|
2791
|
+
"typeName": {
|
|
2792
|
+
"type": "qualifiedName",
|
|
2793
|
+
"left": {
|
|
2794
|
+
"type": "identifier",
|
|
2795
|
+
"name": "React"
|
|
2796
|
+
},
|
|
2797
|
+
"right": {
|
|
2798
|
+
"type": "identifier",
|
|
2799
|
+
"name": "CSSProperties"
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
],
|
|
2805
|
+
"events": [
|
|
2806
|
+
{
|
|
2807
|
+
"name": "change",
|
|
2808
|
+
"detail": {
|
|
2809
|
+
"annotation": {
|
|
2810
|
+
"type": "keyword",
|
|
2811
|
+
"value": "string"
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
],
|
|
2816
|
+
"methods": [
|
|
2817
|
+
{
|
|
2818
|
+
"name": "focusTextarea",
|
|
2819
|
+
"params": [],
|
|
2820
|
+
"returns": {}
|
|
2821
|
+
}
|
|
2822
|
+
],
|
|
2823
|
+
"types": [
|
|
2824
|
+
{
|
|
2825
|
+
"type": "typeAlias",
|
|
2826
|
+
"name": "AutoSize",
|
|
2827
|
+
"annotation": {
|
|
2828
|
+
"type": "union",
|
|
2829
|
+
"types": [
|
|
2830
|
+
{
|
|
2831
|
+
"type": "keyword",
|
|
2832
|
+
"value": "boolean"
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
"type": "typeLiteral",
|
|
2836
|
+
"members": [
|
|
2837
|
+
{
|
|
2838
|
+
"type": "propertySignature",
|
|
2839
|
+
"key": {
|
|
2840
|
+
"type": "identifier",
|
|
2841
|
+
"name": "minRows"
|
|
2842
|
+
},
|
|
2843
|
+
"annotation": {
|
|
2844
|
+
"type": "keyword",
|
|
2845
|
+
"value": "number"
|
|
2846
|
+
},
|
|
2847
|
+
"optional": true,
|
|
2848
|
+
"computed": false
|
|
2849
|
+
},
|
|
2850
|
+
{
|
|
2851
|
+
"type": "propertySignature",
|
|
2852
|
+
"key": {
|
|
2853
|
+
"type": "identifier",
|
|
2854
|
+
"name": "maxRows"
|
|
2855
|
+
},
|
|
2856
|
+
"annotation": {
|
|
2857
|
+
"type": "keyword",
|
|
2858
|
+
"value": "number"
|
|
2859
|
+
},
|
|
2860
|
+
"optional": true,
|
|
2861
|
+
"computed": false
|
|
2862
|
+
}
|
|
2863
|
+
]
|
|
2864
|
+
}
|
|
2865
|
+
]
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
]
|
|
2869
|
+
},
|
|
2863
2870
|
"eo-dynamic-form-item": {
|
|
2864
2871
|
"properties": [
|
|
2865
2872
|
{
|
|
@@ -17,6 +17,7 @@ export interface FormItemProps {
|
|
|
17
17
|
current?: HTMLElement;
|
|
18
18
|
required?: boolean;
|
|
19
19
|
pattern?: string;
|
|
20
|
+
type?: string;
|
|
20
21
|
min?: number;
|
|
21
22
|
max?: number;
|
|
22
23
|
labelCol?: ColProps;
|
|
@@ -54,6 +55,7 @@ declare class FormItem extends FormItemElementBase implements FormItemProps {
|
|
|
54
55
|
accessor label: string | undefined;
|
|
55
56
|
accessor pattern: string | undefined;
|
|
56
57
|
accessor message: Record<string, string> | undefined;
|
|
58
|
+
accessor type: string | undefined;
|
|
57
59
|
accessor max: number | undefined;
|
|
58
60
|
accessor min: number | undefined;
|
|
59
61
|
/**
|
|
@@ -12,6 +12,8 @@ export interface InputProps extends FormItemProps {
|
|
|
12
12
|
autoFocus?: boolean;
|
|
13
13
|
type?: InputType;
|
|
14
14
|
size?: ComponentSize;
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
15
17
|
maxLength?: number;
|
|
16
18
|
minLength?: number;
|
|
17
19
|
validateState?: string;
|
|
@@ -61,11 +63,11 @@ export declare class Input extends FormItemElementBase {
|
|
|
61
63
|
*/
|
|
62
64
|
accessor pattern: string | undefined;
|
|
63
65
|
/**
|
|
64
|
-
*
|
|
66
|
+
* 表单校验最大长度(当 type 为 number 时,表示最大值)
|
|
65
67
|
*/
|
|
66
68
|
accessor max: number | undefined;
|
|
67
69
|
/**
|
|
68
|
-
*
|
|
70
|
+
* 表单校验最小长度(当 type 为 number 时,表示最小值)
|
|
69
71
|
*/
|
|
70
72
|
accessor min: number | undefined;
|
|
71
73
|
/**
|
|
@@ -111,7 +113,7 @@ export declare class Input extends FormItemElementBase {
|
|
|
111
113
|
*/
|
|
112
114
|
accessor minLength: number | undefined;
|
|
113
115
|
/**
|
|
114
|
-
*
|
|
116
|
+
* 最大长度(用户无法输入超过此最大长度的字符串)
|
|
115
117
|
*/
|
|
116
118
|
accessor maxLength: number | undefined;
|
|
117
119
|
/**
|
|
@@ -97,7 +97,7 @@ declare class Radio extends FormItemElementBase {
|
|
|
97
97
|
handleChange: (value: any) => void;
|
|
98
98
|
render(): React.JSX.Element;
|
|
99
99
|
}
|
|
100
|
-
interface RadioComponentProps extends RadioProps, FormItemProps {
|
|
100
|
+
interface RadioComponentProps extends RadioProps, Omit<FormItemProps, "type"> {
|
|
101
101
|
onChange?: (value: any) => void;
|
|
102
102
|
optionsChange?: (options: any, name: string) => void;
|
|
103
103
|
}
|