@next-bricks/form 1.9.3 → 1.9.4
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 +24 -24
- package/dist/chunks/1337.86078f5e.js +2 -0
- package/dist/chunks/1337.86078f5e.js.map +1 -0
- package/dist/chunks/7721.09baecc4.js +3 -0
- package/dist/chunks/7721.09baecc4.js.map +1 -0
- package/dist/chunks/eo-auto-complete.02f91029.js +3 -0
- package/dist/chunks/eo-auto-complete.02f91029.js.map +1 -0
- package/dist/chunks/{eo-checkbox.b4956dea.js → eo-checkbox.d15b0afb.js} +2 -2
- package/dist/chunks/eo-checkbox.d15b0afb.js.map +1 -0
- package/dist/chunks/{eo-form.950a4fa5.js → eo-form.19913e06.js} +2 -2
- package/dist/chunks/eo-form.19913e06.js.map +1 -0
- package/dist/chunks/eo-radio.53354dcb.js +3 -0
- package/dist/chunks/eo-radio.53354dcb.js.map +1 -0
- package/dist/chunks/eo-select.05fa1a1e.js +3 -0
- package/dist/chunks/eo-select.05fa1a1e.js.map +1 -0
- package/dist/chunks/{main.de47e189.js → main.d7b902bd.js} +2 -2
- package/dist/chunks/{main.de47e189.js.map → main.d7b902bd.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/{index.27987d36.js → index.8f4158a0.js} +2 -2
- package/dist/{index.27987d36.js.map → index.8f4158a0.js.map} +1 -1
- package/dist/manifest.json +342 -342
- package/dist/types.json +1211 -1211
- package/package.json +2 -2
- package/dist/chunks/1337.8d586b6b.js +0 -2
- package/dist/chunks/1337.8d586b6b.js.map +0 -1
- package/dist/chunks/7721.d538ed46.js +0 -3
- package/dist/chunks/7721.d538ed46.js.map +0 -1
- package/dist/chunks/eo-auto-complete.bf5ea5a8.js +0 -3
- package/dist/chunks/eo-auto-complete.bf5ea5a8.js.map +0 -1
- package/dist/chunks/eo-checkbox.b4956dea.js.map +0 -1
- package/dist/chunks/eo-form.950a4fa5.js.map +0 -1
- package/dist/chunks/eo-radio.bde94bc4.js +0 -3
- package/dist/chunks/eo-radio.bde94bc4.js.map +0 -1
- package/dist/chunks/eo-select.6485c749.js +0 -3
- package/dist/chunks/eo-select.6485c749.js.map +0 -1
- /package/dist/chunks/{7721.d538ed46.js.LICENSE.txt → 7721.09baecc4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-auto-complete.bf5ea5a8.js.LICENSE.txt → eo-auto-complete.02f91029.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.bde94bc4.js.LICENSE.txt → eo-radio.53354dcb.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.6485c749.js.LICENSE.txt → eo-select.05fa1a1e.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -189,101 +189,229 @@
|
|
|
189
189
|
"category": "form-input-basic"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
"name": "eo-
|
|
192
|
+
"name": "eo-textarea",
|
|
193
193
|
"alias": [
|
|
194
|
-
"form.general-
|
|
194
|
+
"form.general-textarea"
|
|
195
195
|
],
|
|
196
196
|
"properties": [
|
|
197
197
|
{
|
|
198
198
|
"name": "name",
|
|
199
|
-
"description": "
|
|
199
|
+
"description": "字段名称",
|
|
200
200
|
"type": "string"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"name": "label",
|
|
204
|
-
"description": "
|
|
204
|
+
"description": "标签文字",
|
|
205
205
|
"type": "string"
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
"name": "
|
|
209
|
-
"description": "
|
|
210
|
-
"
|
|
211
|
-
"attribute": false,
|
|
212
|
-
"type": "GeneralOption[]"
|
|
208
|
+
"name": "value",
|
|
209
|
+
"description": "值",
|
|
210
|
+
"type": "string"
|
|
213
211
|
},
|
|
214
212
|
{
|
|
215
|
-
"name": "
|
|
216
|
-
"description": "
|
|
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": "大小自适应",
|
|
217
235
|
"attribute": false,
|
|
218
|
-
"type": "
|
|
236
|
+
"type": "AutoSize"
|
|
219
237
|
},
|
|
220
238
|
{
|
|
221
239
|
"name": "required",
|
|
222
240
|
"description": "是否必填",
|
|
223
241
|
"type": "boolean"
|
|
224
242
|
},
|
|
243
|
+
{
|
|
244
|
+
"name": "max",
|
|
245
|
+
"description": "表单校验最大长度",
|
|
246
|
+
"type": "number"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "min",
|
|
250
|
+
"description": "表单校验最小长度",
|
|
251
|
+
"type": "number"
|
|
252
|
+
},
|
|
225
253
|
{
|
|
226
254
|
"name": "message",
|
|
227
|
-
"description": "
|
|
255
|
+
"description": "校验信息",
|
|
228
256
|
"attribute": false,
|
|
229
257
|
"type": "Record<string, string>"
|
|
230
258
|
},
|
|
231
259
|
{
|
|
232
|
-
"name": "
|
|
233
|
-
"description": "
|
|
234
|
-
"
|
|
235
|
-
|
|
260
|
+
"name": "textareaStyle",
|
|
261
|
+
"description": "自定义样式",
|
|
262
|
+
"attribute": false,
|
|
263
|
+
"type": "React.CSSProperties"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"events": [
|
|
236
267
|
{
|
|
237
|
-
"name": "
|
|
238
|
-
"description": "
|
|
239
|
-
"
|
|
240
|
-
|
|
241
|
-
|
|
268
|
+
"name": "change",
|
|
269
|
+
"description": "",
|
|
270
|
+
"detail": {
|
|
271
|
+
"description": null,
|
|
272
|
+
"type": "string"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"slots": [],
|
|
277
|
+
"methods": [],
|
|
278
|
+
"parts": [],
|
|
279
|
+
"description": "通用多行文本输入框构件",
|
|
280
|
+
"category": "form-input-basic"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "eo-form",
|
|
284
|
+
"alias": [
|
|
285
|
+
"form.general-form"
|
|
286
|
+
],
|
|
287
|
+
"properties": [
|
|
242
288
|
{
|
|
243
|
-
"name": "
|
|
244
|
-
"description": "
|
|
245
|
-
"default": "
|
|
246
|
-
"type": "
|
|
289
|
+
"name": "layout",
|
|
290
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
291
|
+
"default": "vertical",
|
|
292
|
+
"type": "Layout"
|
|
247
293
|
},
|
|
248
294
|
{
|
|
249
295
|
"name": "size",
|
|
250
|
-
"description": "
|
|
251
|
-
"default": "\"medium\"",
|
|
296
|
+
"description": "表单组件尺寸",
|
|
252
297
|
"type": "ComponentSize"
|
|
253
298
|
},
|
|
254
299
|
{
|
|
255
|
-
"name": "
|
|
256
|
-
"description": "
|
|
300
|
+
"name": "labelCol",
|
|
301
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
302
|
+
"default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
|
|
257
303
|
"attribute": false,
|
|
258
|
-
"type": "
|
|
304
|
+
"type": "ColProps"
|
|
259
305
|
},
|
|
260
306
|
{
|
|
261
|
-
"name": "
|
|
262
|
-
"description": "
|
|
307
|
+
"name": "wrapperCol",
|
|
308
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
309
|
+
"default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
|
|
263
310
|
"attribute": false,
|
|
264
|
-
"type": "
|
|
311
|
+
"type": "ColProps"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "formStyle",
|
|
315
|
+
"attribute": false,
|
|
316
|
+
"type": "React.CSSProperties"
|
|
265
317
|
}
|
|
266
318
|
],
|
|
267
319
|
"events": [
|
|
268
320
|
{
|
|
269
|
-
"name": "change",
|
|
270
|
-
"description": "
|
|
321
|
+
"name": "values.change",
|
|
322
|
+
"description": "表单值变更事件",
|
|
271
323
|
"detail": {
|
|
272
|
-
"
|
|
324
|
+
"description": null,
|
|
325
|
+
"type": "Record<string, unknown>"
|
|
273
326
|
}
|
|
274
327
|
},
|
|
275
328
|
{
|
|
276
|
-
"name": "
|
|
277
|
-
"description": "
|
|
329
|
+
"name": "validate.success",
|
|
330
|
+
"description": "表单验证成功时触发事件",
|
|
278
331
|
"detail": {
|
|
279
|
-
"type": "
|
|
332
|
+
"type": "Record<string, unknown>"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "validate.error",
|
|
337
|
+
"description": "表单验证报错时触发事件",
|
|
338
|
+
"detail": {
|
|
339
|
+
"type": "MessageBody[]"
|
|
280
340
|
}
|
|
281
341
|
}
|
|
282
342
|
],
|
|
283
|
-
"slots": [
|
|
284
|
-
|
|
343
|
+
"slots": [
|
|
344
|
+
{
|
|
345
|
+
"name": null,
|
|
346
|
+
"description": "表单内容"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"methods": [
|
|
350
|
+
{
|
|
351
|
+
"name": "validate",
|
|
352
|
+
"params": [],
|
|
353
|
+
"description": "表单校验方法",
|
|
354
|
+
"returns": {
|
|
355
|
+
"type": "boolean | Record<string, unknown>"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "setInitValue",
|
|
360
|
+
"params": [
|
|
361
|
+
{
|
|
362
|
+
"name": "values",
|
|
363
|
+
"type": "Record<string, unknown>"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "options",
|
|
367
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"description": "表单设置值方法",
|
|
371
|
+
"returns": {}
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "resetFields",
|
|
375
|
+
"params": [
|
|
376
|
+
{
|
|
377
|
+
"name": "name",
|
|
378
|
+
"type": "string"
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
"description": "表单重置值方法",
|
|
382
|
+
"returns": {}
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"name": "getFieldsValue",
|
|
386
|
+
"params": [
|
|
387
|
+
{
|
|
388
|
+
"name": "name",
|
|
389
|
+
"type": "string"
|
|
390
|
+
}
|
|
391
|
+
],
|
|
392
|
+
"description": "获取表单值方法",
|
|
393
|
+
"returns": {}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "validateField",
|
|
397
|
+
"params": [
|
|
398
|
+
{
|
|
399
|
+
"name": "name",
|
|
400
|
+
"type": "string"
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
"description": "校验表单字段方法",
|
|
404
|
+
"returns": {}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "resetValidateState",
|
|
408
|
+
"params": [],
|
|
409
|
+
"description": "重置表单校验状态方法",
|
|
410
|
+
"returns": {}
|
|
411
|
+
}
|
|
412
|
+
],
|
|
285
413
|
"parts": [],
|
|
286
|
-
"description": "
|
|
414
|
+
"description": "表单构件",
|
|
287
415
|
"category": "form-input-basic"
|
|
288
416
|
},
|
|
289
417
|
{
|
|
@@ -385,6 +513,104 @@
|
|
|
385
513
|
"category": "form-input-basic",
|
|
386
514
|
"insider": true
|
|
387
515
|
},
|
|
516
|
+
{
|
|
517
|
+
"name": "eo-radio",
|
|
518
|
+
"alias": [
|
|
519
|
+
"form.general-radio"
|
|
520
|
+
],
|
|
521
|
+
"properties": [
|
|
522
|
+
{
|
|
523
|
+
"name": "name",
|
|
524
|
+
"description": "下拉框字段名",
|
|
525
|
+
"type": "string"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"name": "label",
|
|
529
|
+
"description": "单选框字段说明",
|
|
530
|
+
"type": "string"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"name": "options",
|
|
534
|
+
"description": "单选框选项表",
|
|
535
|
+
"required": true,
|
|
536
|
+
"attribute": false,
|
|
537
|
+
"type": "GeneralOption[]"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "value",
|
|
541
|
+
"description": "单选框当前选中始值",
|
|
542
|
+
"attribute": false,
|
|
543
|
+
"type": "any"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"name": "required",
|
|
547
|
+
"description": "是否必填",
|
|
548
|
+
"type": "boolean"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"name": "message",
|
|
552
|
+
"description": "校验文本信息",
|
|
553
|
+
"attribute": false,
|
|
554
|
+
"type": "Record<string, string>"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "disabled",
|
|
558
|
+
"description": "是否禁用",
|
|
559
|
+
"type": "boolean"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"name": "type",
|
|
563
|
+
"description": "单选框样式类型",
|
|
564
|
+
"default": "\"default\"",
|
|
565
|
+
"type": "RadioType"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "ui",
|
|
569
|
+
"description": "UI样式",
|
|
570
|
+
"default": "\"default\"",
|
|
571
|
+
"type": "UIType"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"name": "size",
|
|
575
|
+
"description": "大小,只对按钮样式生效",
|
|
576
|
+
"default": "\"medium\"",
|
|
577
|
+
"type": "ComponentSize"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"name": "customStyle",
|
|
581
|
+
"description": "自定义radio的外层样式",
|
|
582
|
+
"attribute": false,
|
|
583
|
+
"type": "React.CSSProperties"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"name": "useBrick",
|
|
587
|
+
"description": "自定义radio的内容",
|
|
588
|
+
"attribute": false,
|
|
589
|
+
"type": "UseSingleBrickConf"
|
|
590
|
+
}
|
|
591
|
+
],
|
|
592
|
+
"events": [
|
|
593
|
+
{
|
|
594
|
+
"name": "change",
|
|
595
|
+
"description": "值变化事件",
|
|
596
|
+
"detail": {
|
|
597
|
+
"type": "GeneralComplexOption | undefined"
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"name": "options.change",
|
|
602
|
+
"description": "选项列表变化事件",
|
|
603
|
+
"detail": {
|
|
604
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
],
|
|
608
|
+
"slots": [],
|
|
609
|
+
"methods": [],
|
|
610
|
+
"parts": [],
|
|
611
|
+
"description": "通用单选构件",
|
|
612
|
+
"category": "form-input-basic"
|
|
613
|
+
},
|
|
388
614
|
{
|
|
389
615
|
"name": "eo-select",
|
|
390
616
|
"alias": [
|
|
@@ -527,6 +753,66 @@
|
|
|
527
753
|
"description": "通用下拉选择构件",
|
|
528
754
|
"category": "form-input-basic"
|
|
529
755
|
},
|
|
756
|
+
{
|
|
757
|
+
"name": "eo-submit-buttons",
|
|
758
|
+
"alias": [
|
|
759
|
+
"form.submit-buttons"
|
|
760
|
+
],
|
|
761
|
+
"properties": [
|
|
762
|
+
{
|
|
763
|
+
"name": "submitText",
|
|
764
|
+
"description": "提交按钮的文字",
|
|
765
|
+
"default": "\"提交\"",
|
|
766
|
+
"type": "string"
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"name": "cancelText",
|
|
770
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
771
|
+
"type": "string"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "disableAfterClick",
|
|
775
|
+
"description": "点击确定按钮后自动禁用",
|
|
776
|
+
"type": "boolean"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"name": "submitDisabled",
|
|
780
|
+
"description": "禁用提交按钮",
|
|
781
|
+
"type": "boolean"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"name": "submitType",
|
|
785
|
+
"description": "提交按钮类型",
|
|
786
|
+
"type": "ButtonType"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"name": "cancelType",
|
|
790
|
+
"description": "取消按钮类型",
|
|
791
|
+
"type": "ButtonType"
|
|
792
|
+
}
|
|
793
|
+
],
|
|
794
|
+
"events": [
|
|
795
|
+
{
|
|
796
|
+
"name": "submit",
|
|
797
|
+
"description": "点击提交按钮触发的事件",
|
|
798
|
+
"detail": {
|
|
799
|
+
"type": "void"
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"name": "cancel",
|
|
804
|
+
"description": "点击取消按钮触发的事件",
|
|
805
|
+
"detail": {
|
|
806
|
+
"type": "void"
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
],
|
|
810
|
+
"slots": [],
|
|
811
|
+
"methods": [],
|
|
812
|
+
"parts": [],
|
|
813
|
+
"description": "表单提交按钮",
|
|
814
|
+
"category": "form-input-basic"
|
|
815
|
+
},
|
|
530
816
|
{
|
|
531
817
|
"name": "eo-checkbox",
|
|
532
818
|
"alias": [
|
|
@@ -586,97 +872,37 @@
|
|
|
586
872
|
"type": "Record<string, string>"
|
|
587
873
|
},
|
|
588
874
|
{
|
|
589
|
-
"name": "isGroup",
|
|
590
|
-
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
591
|
-
"type": "boolean"
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"name": "optionGroups",
|
|
595
|
-
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
596
|
-
"attribute": false,
|
|
597
|
-
"type": "OptionGroup[]"
|
|
598
|
-
}
|
|
599
|
-
],
|
|
600
|
-
"events": [
|
|
601
|
-
{
|
|
602
|
-
"name": "change",
|
|
603
|
-
"description": "复选框变化事件",
|
|
604
|
-
"detail": {
|
|
605
|
-
"type": "CheckboxOptionType[]"
|
|
606
|
-
}
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
"name": "options.change",
|
|
610
|
-
"description": "复选框变化事件",
|
|
611
|
-
"detail": {
|
|
612
|
-
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
],
|
|
616
|
-
"slots": [],
|
|
617
|
-
"methods": [],
|
|
618
|
-
"parts": [],
|
|
619
|
-
"description": "表单复选框构件",
|
|
620
|
-
"category": "form-input-basic"
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
"name": "eo-submit-buttons",
|
|
624
|
-
"alias": [
|
|
625
|
-
"form.submit-buttons"
|
|
626
|
-
],
|
|
627
|
-
"properties": [
|
|
628
|
-
{
|
|
629
|
-
"name": "submitText",
|
|
630
|
-
"description": "提交按钮的文字",
|
|
631
|
-
"default": "\"提交\"",
|
|
632
|
-
"type": "string"
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
"name": "cancelText",
|
|
636
|
-
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
637
|
-
"type": "string"
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
"name": "disableAfterClick",
|
|
641
|
-
"description": "点击确定按钮后自动禁用",
|
|
642
|
-
"type": "boolean"
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"name": "submitDisabled",
|
|
646
|
-
"description": "禁用提交按钮",
|
|
875
|
+
"name": "isGroup",
|
|
876
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
647
877
|
"type": "boolean"
|
|
648
878
|
},
|
|
649
879
|
{
|
|
650
|
-
"name": "
|
|
651
|
-
"description": "
|
|
652
|
-
"
|
|
653
|
-
|
|
654
|
-
{
|
|
655
|
-
"name": "cancelType",
|
|
656
|
-
"description": "取消按钮类型",
|
|
657
|
-
"type": "ButtonType"
|
|
880
|
+
"name": "optionGroups",
|
|
881
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
882
|
+
"attribute": false,
|
|
883
|
+
"type": "OptionGroup[]"
|
|
658
884
|
}
|
|
659
885
|
],
|
|
660
886
|
"events": [
|
|
661
887
|
{
|
|
662
|
-
"name": "
|
|
663
|
-
"description": "
|
|
888
|
+
"name": "change",
|
|
889
|
+
"description": "复选框变化事件",
|
|
664
890
|
"detail": {
|
|
665
|
-
"type": "
|
|
891
|
+
"type": "CheckboxOptionType[]"
|
|
666
892
|
}
|
|
667
893
|
},
|
|
668
894
|
{
|
|
669
|
-
"name": "
|
|
670
|
-
"description": "
|
|
895
|
+
"name": "options.change",
|
|
896
|
+
"description": "复选框变化事件",
|
|
671
897
|
"detail": {
|
|
672
|
-
"type": "
|
|
898
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
673
899
|
}
|
|
674
900
|
}
|
|
675
901
|
],
|
|
676
902
|
"slots": [],
|
|
677
903
|
"methods": [],
|
|
678
904
|
"parts": [],
|
|
679
|
-
"description": "
|
|
905
|
+
"description": "表单复选框构件",
|
|
680
906
|
"category": "form-input-basic"
|
|
681
907
|
},
|
|
682
908
|
{
|
|
@@ -1024,97 +1250,6 @@
|
|
|
1024
1250
|
"description": "开关",
|
|
1025
1251
|
"category": "form-input-basic"
|
|
1026
1252
|
},
|
|
1027
|
-
{
|
|
1028
|
-
"name": "eo-textarea",
|
|
1029
|
-
"alias": [
|
|
1030
|
-
"form.general-textarea"
|
|
1031
|
-
],
|
|
1032
|
-
"properties": [
|
|
1033
|
-
{
|
|
1034
|
-
"name": "name",
|
|
1035
|
-
"description": "字段名称",
|
|
1036
|
-
"type": "string"
|
|
1037
|
-
},
|
|
1038
|
-
{
|
|
1039
|
-
"name": "label",
|
|
1040
|
-
"description": "标签文字",
|
|
1041
|
-
"type": "string"
|
|
1042
|
-
},
|
|
1043
|
-
{
|
|
1044
|
-
"name": "value",
|
|
1045
|
-
"description": "值",
|
|
1046
|
-
"type": "string"
|
|
1047
|
-
},
|
|
1048
|
-
{
|
|
1049
|
-
"name": "placeholder",
|
|
1050
|
-
"description": "占位说明",
|
|
1051
|
-
"type": "string"
|
|
1052
|
-
},
|
|
1053
|
-
{
|
|
1054
|
-
"name": "disabled",
|
|
1055
|
-
"description": "是否禁用",
|
|
1056
|
-
"type": "boolean"
|
|
1057
|
-
},
|
|
1058
|
-
{
|
|
1059
|
-
"name": "minLength",
|
|
1060
|
-
"description": "最小长度",
|
|
1061
|
-
"type": "number"
|
|
1062
|
-
},
|
|
1063
|
-
{
|
|
1064
|
-
"name": "maxLength",
|
|
1065
|
-
"description": "最大长度",
|
|
1066
|
-
"type": "number"
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
"name": "autoSize",
|
|
1070
|
-
"description": "大小自适应",
|
|
1071
|
-
"attribute": false,
|
|
1072
|
-
"type": "AutoSize"
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
"name": "required",
|
|
1076
|
-
"description": "是否必填",
|
|
1077
|
-
"type": "boolean"
|
|
1078
|
-
},
|
|
1079
|
-
{
|
|
1080
|
-
"name": "max",
|
|
1081
|
-
"description": "表单校验最大长度",
|
|
1082
|
-
"type": "number"
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
"name": "min",
|
|
1086
|
-
"description": "表单校验最小长度",
|
|
1087
|
-
"type": "number"
|
|
1088
|
-
},
|
|
1089
|
-
{
|
|
1090
|
-
"name": "message",
|
|
1091
|
-
"description": "校验信息",
|
|
1092
|
-
"attribute": false,
|
|
1093
|
-
"type": "Record<string, string>"
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
"name": "textareaStyle",
|
|
1097
|
-
"description": "自定义样式",
|
|
1098
|
-
"attribute": false,
|
|
1099
|
-
"type": "React.CSSProperties"
|
|
1100
|
-
}
|
|
1101
|
-
],
|
|
1102
|
-
"events": [
|
|
1103
|
-
{
|
|
1104
|
-
"name": "change",
|
|
1105
|
-
"description": "",
|
|
1106
|
-
"detail": {
|
|
1107
|
-
"description": null,
|
|
1108
|
-
"type": "string"
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
],
|
|
1112
|
-
"slots": [],
|
|
1113
|
-
"methods": [],
|
|
1114
|
-
"parts": [],
|
|
1115
|
-
"description": "通用多行文本输入框构件",
|
|
1116
|
-
"category": "form-input-basic"
|
|
1117
|
-
},
|
|
1118
1253
|
{
|
|
1119
1254
|
"name": "eo-upload-file",
|
|
1120
1255
|
"properties": [
|
|
@@ -1321,141 +1456,6 @@
|
|
|
1321
1456
|
"description": "带候选项的输入框",
|
|
1322
1457
|
"category": "form-input-basic"
|
|
1323
1458
|
},
|
|
1324
|
-
{
|
|
1325
|
-
"name": "eo-form",
|
|
1326
|
-
"alias": [
|
|
1327
|
-
"form.general-form"
|
|
1328
|
-
],
|
|
1329
|
-
"properties": [
|
|
1330
|
-
{
|
|
1331
|
-
"name": "layout",
|
|
1332
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
1333
|
-
"default": "vertical",
|
|
1334
|
-
"type": "Layout"
|
|
1335
|
-
},
|
|
1336
|
-
{
|
|
1337
|
-
"name": "size",
|
|
1338
|
-
"description": "表单组件尺寸",
|
|
1339
|
-
"type": "ComponentSize"
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
"name": "labelCol",
|
|
1343
|
-
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
1344
|
-
"default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
|
|
1345
|
-
"attribute": false,
|
|
1346
|
-
"type": "ColProps"
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
"name": "wrapperCol",
|
|
1350
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
1351
|
-
"default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
|
|
1352
|
-
"attribute": false,
|
|
1353
|
-
"type": "ColProps"
|
|
1354
|
-
},
|
|
1355
|
-
{
|
|
1356
|
-
"name": "formStyle",
|
|
1357
|
-
"attribute": false,
|
|
1358
|
-
"type": "React.CSSProperties"
|
|
1359
|
-
}
|
|
1360
|
-
],
|
|
1361
|
-
"events": [
|
|
1362
|
-
{
|
|
1363
|
-
"name": "values.change",
|
|
1364
|
-
"description": "表单值变更事件",
|
|
1365
|
-
"detail": {
|
|
1366
|
-
"description": null,
|
|
1367
|
-
"type": "Record<string, unknown>"
|
|
1368
|
-
}
|
|
1369
|
-
},
|
|
1370
|
-
{
|
|
1371
|
-
"name": "validate.success",
|
|
1372
|
-
"description": "表单验证成功时触发事件",
|
|
1373
|
-
"detail": {
|
|
1374
|
-
"type": "Record<string, unknown>"
|
|
1375
|
-
}
|
|
1376
|
-
},
|
|
1377
|
-
{
|
|
1378
|
-
"name": "validate.error",
|
|
1379
|
-
"description": "表单验证报错时触发事件",
|
|
1380
|
-
"detail": {
|
|
1381
|
-
"type": "MessageBody[]"
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
],
|
|
1385
|
-
"slots": [
|
|
1386
|
-
{
|
|
1387
|
-
"name": null,
|
|
1388
|
-
"description": "表单内容"
|
|
1389
|
-
}
|
|
1390
|
-
],
|
|
1391
|
-
"methods": [
|
|
1392
|
-
{
|
|
1393
|
-
"name": "validate",
|
|
1394
|
-
"params": [],
|
|
1395
|
-
"description": "表单校验方法",
|
|
1396
|
-
"returns": {
|
|
1397
|
-
"type": "boolean | Record<string, unknown>"
|
|
1398
|
-
}
|
|
1399
|
-
},
|
|
1400
|
-
{
|
|
1401
|
-
"name": "setInitValue",
|
|
1402
|
-
"params": [
|
|
1403
|
-
{
|
|
1404
|
-
"name": "values",
|
|
1405
|
-
"type": "Record<string, unknown>"
|
|
1406
|
-
},
|
|
1407
|
-
{
|
|
1408
|
-
"name": "options",
|
|
1409
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
1410
|
-
}
|
|
1411
|
-
],
|
|
1412
|
-
"description": "表单设置值方法",
|
|
1413
|
-
"returns": {}
|
|
1414
|
-
},
|
|
1415
|
-
{
|
|
1416
|
-
"name": "resetFields",
|
|
1417
|
-
"params": [
|
|
1418
|
-
{
|
|
1419
|
-
"name": "name",
|
|
1420
|
-
"type": "string"
|
|
1421
|
-
}
|
|
1422
|
-
],
|
|
1423
|
-
"description": "表单重置值方法",
|
|
1424
|
-
"returns": {}
|
|
1425
|
-
},
|
|
1426
|
-
{
|
|
1427
|
-
"name": "getFieldsValue",
|
|
1428
|
-
"params": [
|
|
1429
|
-
{
|
|
1430
|
-
"name": "name",
|
|
1431
|
-
"type": "string"
|
|
1432
|
-
}
|
|
1433
|
-
],
|
|
1434
|
-
"description": "获取表单值方法",
|
|
1435
|
-
"returns": {}
|
|
1436
|
-
},
|
|
1437
|
-
{
|
|
1438
|
-
"name": "validateField",
|
|
1439
|
-
"params": [
|
|
1440
|
-
{
|
|
1441
|
-
"name": "name",
|
|
1442
|
-
"type": "string"
|
|
1443
|
-
}
|
|
1444
|
-
],
|
|
1445
|
-
"description": "校验表单字段方法",
|
|
1446
|
-
"returns": {}
|
|
1447
|
-
},
|
|
1448
|
-
{
|
|
1449
|
-
"name": "resetValidateState",
|
|
1450
|
-
"params": [],
|
|
1451
|
-
"description": "重置表单校验状态方法",
|
|
1452
|
-
"returns": {}
|
|
1453
|
-
}
|
|
1454
|
-
],
|
|
1455
|
-
"parts": [],
|
|
1456
|
-
"description": "表单构件",
|
|
1457
|
-
"category": "form-input-basic"
|
|
1458
|
-
},
|
|
1459
1459
|
{
|
|
1460
1460
|
"name": "eo-time-picker",
|
|
1461
1461
|
"properties": [
|