@next-bricks/form 1.7.1 → 1.7.2
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 +29 -29
- package/dist/chunks/{1337.60ffcfc4.js → 1337.7e9e13e9.js} +2 -2
- package/dist/chunks/1337.7e9e13e9.js.map +1 -0
- package/dist/chunks/eo-form.d33471f7.js +2 -0
- package/dist/chunks/eo-form.d33471f7.js.map +1 -0
- package/dist/chunks/{main.1d36a307.js → main.0fd836f4.js} +2 -2
- package/dist/chunks/{main.1d36a307.js.map → main.0fd836f4.js.map} +1 -1
- package/dist/examples.json +10 -10
- package/dist/{index.b813ef0f.js → index.1444308e.js} +2 -2
- package/dist/{index.b813ef0f.js.map → index.1444308e.js.map} +1 -1
- package/dist/manifest.json +342 -342
- package/dist/types.json +180 -180
- package/package.json +2 -2
- package/dist/chunks/1337.60ffcfc4.js.map +0 -1
- package/dist/chunks/eo-form.e49f4233.js +0 -2
- package/dist/chunks/eo-form.e49f4233.js.map +0 -1
package/dist/manifest.json
CHANGED
|
@@ -189,11 +189,21 @@
|
|
|
189
189
|
"category": "form-input-basic"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
"name": "eo-
|
|
192
|
+
"name": "eo-form-item",
|
|
193
193
|
"alias": [
|
|
194
|
-
"form.general-
|
|
194
|
+
"form.general-form-item"
|
|
195
195
|
],
|
|
196
196
|
"properties": [
|
|
197
|
+
{
|
|
198
|
+
"name": "formElement",
|
|
199
|
+
"attribute": false,
|
|
200
|
+
"type": "Form"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "curElement",
|
|
204
|
+
"attribute": false,
|
|
205
|
+
"type": "HTMLElement"
|
|
206
|
+
},
|
|
197
207
|
{
|
|
198
208
|
"name": "name",
|
|
199
209
|
"description": "字段名称",
|
|
@@ -201,82 +211,178 @@
|
|
|
201
211
|
},
|
|
202
212
|
{
|
|
203
213
|
"name": "label",
|
|
204
|
-
"description": "标签文字",
|
|
205
214
|
"type": "string"
|
|
206
215
|
},
|
|
216
|
+
{
|
|
217
|
+
"name": "pattern",
|
|
218
|
+
"type": "string"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "message",
|
|
222
|
+
"attribute": false,
|
|
223
|
+
"type": "Record<string, string>"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "max",
|
|
227
|
+
"type": "number"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "min",
|
|
231
|
+
"type": "number"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "required",
|
|
235
|
+
"description": "表单项是否必填",
|
|
236
|
+
"type": "boolean"
|
|
237
|
+
},
|
|
207
238
|
{
|
|
208
239
|
"name": "value",
|
|
209
|
-
"description": "
|
|
240
|
+
"description": "初始值",
|
|
210
241
|
"type": "string"
|
|
211
242
|
},
|
|
212
243
|
{
|
|
213
|
-
"name": "
|
|
214
|
-
"description": "占位说明",
|
|
244
|
+
"name": "valuePropsName",
|
|
215
245
|
"type": "string"
|
|
216
246
|
},
|
|
217
247
|
{
|
|
218
|
-
"name": "
|
|
219
|
-
"
|
|
220
|
-
"type": "boolean"
|
|
248
|
+
"name": "layout",
|
|
249
|
+
"type": "Layout"
|
|
221
250
|
},
|
|
222
251
|
{
|
|
223
|
-
"name": "
|
|
224
|
-
"
|
|
225
|
-
"type": "number"
|
|
252
|
+
"name": "size",
|
|
253
|
+
"type": "ComponentSize"
|
|
226
254
|
},
|
|
227
255
|
{
|
|
228
|
-
"name": "
|
|
229
|
-
"description": "
|
|
230
|
-
"
|
|
256
|
+
"name": "trim",
|
|
257
|
+
"description": "是否自动去除前后的空白字符",
|
|
258
|
+
"default": "true"
|
|
231
259
|
},
|
|
232
260
|
{
|
|
233
|
-
"name": "
|
|
234
|
-
"description": "
|
|
261
|
+
"name": "trigger",
|
|
262
|
+
"description": "事件触发方法名",
|
|
263
|
+
"type": "string"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "validator",
|
|
267
|
+
"description": "表单项校验方法",
|
|
235
268
|
"attribute": false,
|
|
236
|
-
"type": "
|
|
269
|
+
"type": "((value: any) => MessageBody)"
|
|
237
270
|
},
|
|
238
271
|
{
|
|
239
|
-
"name": "
|
|
240
|
-
"description": "
|
|
272
|
+
"name": "needValidate",
|
|
273
|
+
"description": "值变化时是否主动出发校验",
|
|
241
274
|
"type": "boolean"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"events": [],
|
|
278
|
+
"slots": [
|
|
279
|
+
{
|
|
280
|
+
"name": null,
|
|
281
|
+
"description": "表单项内容"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"methods": [],
|
|
285
|
+
"parts": [],
|
|
286
|
+
"description": "通用输入框构件",
|
|
287
|
+
"category": "form-input-basic",
|
|
288
|
+
"insider": true
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "eo-radio",
|
|
292
|
+
"alias": [
|
|
293
|
+
"form.general-radio"
|
|
294
|
+
],
|
|
295
|
+
"properties": [
|
|
296
|
+
{
|
|
297
|
+
"name": "name",
|
|
298
|
+
"description": "下拉框字段名",
|
|
299
|
+
"type": "string"
|
|
242
300
|
},
|
|
243
301
|
{
|
|
244
|
-
"name": "
|
|
245
|
-
"description": "
|
|
246
|
-
"type": "
|
|
302
|
+
"name": "label",
|
|
303
|
+
"description": "单选框字段说明",
|
|
304
|
+
"type": "string"
|
|
247
305
|
},
|
|
248
306
|
{
|
|
249
|
-
"name": "
|
|
250
|
-
"description": "
|
|
251
|
-
"
|
|
307
|
+
"name": "options",
|
|
308
|
+
"description": "单选框选项表",
|
|
309
|
+
"required": true,
|
|
310
|
+
"attribute": false,
|
|
311
|
+
"type": "GeneralOption[]"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "value",
|
|
315
|
+
"description": "单选框当前选中始值",
|
|
316
|
+
"attribute": false,
|
|
317
|
+
"type": "any"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "required",
|
|
321
|
+
"description": "是否必填",
|
|
322
|
+
"type": "boolean"
|
|
252
323
|
},
|
|
253
324
|
{
|
|
254
325
|
"name": "message",
|
|
255
|
-
"description": "
|
|
326
|
+
"description": "校验文本信息",
|
|
256
327
|
"attribute": false,
|
|
257
328
|
"type": "Record<string, string>"
|
|
258
329
|
},
|
|
259
330
|
{
|
|
260
|
-
"name": "
|
|
261
|
-
"description": "
|
|
331
|
+
"name": "disabled",
|
|
332
|
+
"description": "是否禁用",
|
|
333
|
+
"type": "boolean"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "type",
|
|
337
|
+
"description": "单选框样式类型",
|
|
338
|
+
"default": "\"default\"",
|
|
339
|
+
"type": "RadioType"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "ui",
|
|
343
|
+
"description": "UI样式",
|
|
344
|
+
"default": "\"default\"",
|
|
345
|
+
"type": "UIType"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "size",
|
|
349
|
+
"description": "大小,只对按钮样式生效",
|
|
350
|
+
"default": "\"medium\"",
|
|
351
|
+
"type": "ComponentSize"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "customStyle",
|
|
355
|
+
"description": "自定义radio的外层样式",
|
|
262
356
|
"attribute": false,
|
|
263
357
|
"type": "React.CSSProperties"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "useBrick",
|
|
361
|
+
"description": "自定义radio的内容",
|
|
362
|
+
"attribute": false,
|
|
363
|
+
"type": "UseSingleBrickConf"
|
|
264
364
|
}
|
|
265
365
|
],
|
|
266
366
|
"events": [
|
|
267
367
|
{
|
|
268
368
|
"name": "change",
|
|
269
|
-
"description": "",
|
|
369
|
+
"description": "值变化事件",
|
|
270
370
|
"detail": {
|
|
271
|
-
"
|
|
272
|
-
|
|
371
|
+
"type": "GeneralComplexOption | undefined"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "options.change",
|
|
376
|
+
"description": "选项列表变化事件",
|
|
377
|
+
"detail": {
|
|
378
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
273
379
|
}
|
|
274
380
|
}
|
|
275
381
|
],
|
|
276
382
|
"slots": [],
|
|
277
383
|
"methods": [],
|
|
278
384
|
"parts": [],
|
|
279
|
-
"description": "
|
|
385
|
+
"description": "通用单选构件",
|
|
280
386
|
"category": "form-input-basic"
|
|
281
387
|
},
|
|
282
388
|
{
|
|
@@ -415,21 +521,11 @@
|
|
|
415
521
|
"category": "form-input-basic"
|
|
416
522
|
},
|
|
417
523
|
{
|
|
418
|
-
"name": "eo-
|
|
524
|
+
"name": "eo-textarea",
|
|
419
525
|
"alias": [
|
|
420
|
-
"form.general-
|
|
526
|
+
"form.general-textarea"
|
|
421
527
|
],
|
|
422
528
|
"properties": [
|
|
423
|
-
{
|
|
424
|
-
"name": "formElement",
|
|
425
|
-
"attribute": false,
|
|
426
|
-
"type": "Form"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"name": "curElement",
|
|
430
|
-
"attribute": false,
|
|
431
|
-
"type": "HTMLElement"
|
|
432
|
-
},
|
|
433
529
|
{
|
|
434
530
|
"name": "name",
|
|
435
531
|
"description": "字段名称",
|
|
@@ -437,110 +533,39 @@
|
|
|
437
533
|
},
|
|
438
534
|
{
|
|
439
535
|
"name": "label",
|
|
536
|
+
"description": "标签文字",
|
|
440
537
|
"type": "string"
|
|
441
538
|
},
|
|
442
|
-
{
|
|
443
|
-
"name": "pattern",
|
|
444
|
-
"type": "string"
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
"name": "message",
|
|
448
|
-
"attribute": false,
|
|
449
|
-
"type": "Record<string, string>"
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
"name": "max",
|
|
453
|
-
"type": "number"
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
"name": "min",
|
|
457
|
-
"type": "number"
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"name": "required",
|
|
461
|
-
"description": "表单项是否必填",
|
|
462
|
-
"type": "boolean"
|
|
463
|
-
},
|
|
464
539
|
{
|
|
465
540
|
"name": "value",
|
|
466
|
-
"description": "
|
|
467
|
-
"type": "string"
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
"name": "valuePropsName",
|
|
541
|
+
"description": "值",
|
|
471
542
|
"type": "string"
|
|
472
543
|
},
|
|
473
544
|
{
|
|
474
|
-
"name": "
|
|
475
|
-
"
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"name": "size",
|
|
479
|
-
"type": "ComponentSize"
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
"name": "trim",
|
|
483
|
-
"description": "是否自动去除前后的空白字符",
|
|
484
|
-
"default": "true"
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
"name": "trigger",
|
|
488
|
-
"description": "事件触发方法名",
|
|
545
|
+
"name": "placeholder",
|
|
546
|
+
"description": "占位说明",
|
|
489
547
|
"type": "string"
|
|
490
548
|
},
|
|
491
549
|
{
|
|
492
|
-
"name": "
|
|
493
|
-
"description": "
|
|
494
|
-
"attribute": false,
|
|
495
|
-
"type": "((value: any) => MessageBody)"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"name": "needValidate",
|
|
499
|
-
"description": "值变化时是否主动出发校验",
|
|
550
|
+
"name": "disabled",
|
|
551
|
+
"description": "是否禁用",
|
|
500
552
|
"type": "boolean"
|
|
501
|
-
}
|
|
502
|
-
],
|
|
503
|
-
"events": [],
|
|
504
|
-
"slots": [
|
|
505
|
-
{
|
|
506
|
-
"name": null,
|
|
507
|
-
"description": "表单项内容"
|
|
508
|
-
}
|
|
509
|
-
],
|
|
510
|
-
"methods": [],
|
|
511
|
-
"parts": [],
|
|
512
|
-
"description": "通用输入框构件",
|
|
513
|
-
"category": "form-input-basic",
|
|
514
|
-
"insider": true
|
|
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
553
|
},
|
|
527
554
|
{
|
|
528
|
-
"name": "
|
|
529
|
-
"description": "
|
|
530
|
-
"type": "
|
|
555
|
+
"name": "minLength",
|
|
556
|
+
"description": "最小长度",
|
|
557
|
+
"type": "number"
|
|
531
558
|
},
|
|
532
559
|
{
|
|
533
|
-
"name": "
|
|
534
|
-
"description": "
|
|
535
|
-
"
|
|
536
|
-
"attribute": false,
|
|
537
|
-
"type": "GeneralOption[]"
|
|
560
|
+
"name": "maxLength",
|
|
561
|
+
"description": "最大长度",
|
|
562
|
+
"type": "number"
|
|
538
563
|
},
|
|
539
564
|
{
|
|
540
|
-
"name": "
|
|
541
|
-
"description": "
|
|
565
|
+
"name": "autoSize",
|
|
566
|
+
"description": "大小自适应",
|
|
542
567
|
"attribute": false,
|
|
543
|
-
"type": "
|
|
568
|
+
"type": "AutoSize"
|
|
544
569
|
},
|
|
545
570
|
{
|
|
546
571
|
"name": "required",
|
|
@@ -548,67 +573,42 @@
|
|
|
548
573
|
"type": "boolean"
|
|
549
574
|
},
|
|
550
575
|
{
|
|
551
|
-
"name": "
|
|
552
|
-
"description": "
|
|
553
|
-
"
|
|
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"
|
|
576
|
+
"name": "max",
|
|
577
|
+
"description": "表单校验最大长度",
|
|
578
|
+
"type": "number"
|
|
572
579
|
},
|
|
573
580
|
{
|
|
574
|
-
"name": "
|
|
575
|
-
"description": "
|
|
576
|
-
"
|
|
577
|
-
"type": "ComponentSize"
|
|
581
|
+
"name": "min",
|
|
582
|
+
"description": "表单校验最小长度",
|
|
583
|
+
"type": "number"
|
|
578
584
|
},
|
|
579
585
|
{
|
|
580
|
-
"name": "
|
|
581
|
-
"description": "
|
|
586
|
+
"name": "message",
|
|
587
|
+
"description": "校验信息",
|
|
582
588
|
"attribute": false,
|
|
583
|
-
"type": "
|
|
589
|
+
"type": "Record<string, string>"
|
|
584
590
|
},
|
|
585
591
|
{
|
|
586
|
-
"name": "
|
|
587
|
-
"description": "
|
|
592
|
+
"name": "textareaStyle",
|
|
593
|
+
"description": "自定义样式",
|
|
588
594
|
"attribute": false,
|
|
589
|
-
"type": "
|
|
595
|
+
"type": "React.CSSProperties"
|
|
590
596
|
}
|
|
591
597
|
],
|
|
592
598
|
"events": [
|
|
593
599
|
{
|
|
594
600
|
"name": "change",
|
|
595
|
-
"description": "
|
|
596
|
-
"detail": {
|
|
597
|
-
"type": "GeneralComplexOption | undefined"
|
|
598
|
-
}
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
"name": "options.change",
|
|
602
|
-
"description": "选项列表变化事件",
|
|
601
|
+
"description": "",
|
|
603
602
|
"detail": {
|
|
604
|
-
"
|
|
603
|
+
"description": null,
|
|
604
|
+
"type": "string"
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
],
|
|
608
608
|
"slots": [],
|
|
609
609
|
"methods": [],
|
|
610
610
|
"parts": [],
|
|
611
|
-
"description": "
|
|
611
|
+
"description": "通用多行文本输入框构件",
|
|
612
612
|
"category": "form-input-basic"
|
|
613
613
|
},
|
|
614
614
|
{
|
|
@@ -685,132 +685,72 @@
|
|
|
685
685
|
{
|
|
686
686
|
"name": "suffix",
|
|
687
687
|
"description": "",
|
|
688
|
-
"attribute": false,
|
|
689
|
-
"type": "UseSingleBrickConf"
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
"name": "clearable",
|
|
693
|
-
"description": "是否支持清除",
|
|
694
|
-
"default": "true",
|
|
695
|
-
"type": "boolean"
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
"name": "fields",
|
|
699
|
-
"description": "列表指定字段作为 label 和 value",
|
|
700
|
-
"attribute": false,
|
|
701
|
-
"type": "{ label?: string; value?: string }"
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
"name": "useBackend",
|
|
705
|
-
"description": "后端搜索",
|
|
706
|
-
"attribute": false,
|
|
707
|
-
"type": "UseBackendConf"
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
"name": "debounceSearchDelay",
|
|
711
|
-
"type": "number"
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
"name": "inputStyle",
|
|
715
|
-
"description": "输入框样式",
|
|
716
|
-
"attribute": false,
|
|
717
|
-
"type": "React.CSSProperties"
|
|
718
|
-
}
|
|
719
|
-
],
|
|
720
|
-
"events": [
|
|
721
|
-
{
|
|
722
|
-
"name": "change",
|
|
723
|
-
"description": "下拉选择事件",
|
|
724
|
-
"detail": {
|
|
725
|
-
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
726
|
-
}
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"name": "search",
|
|
730
|
-
"description": "下拉框search事件",
|
|
731
|
-
"detail": {
|
|
732
|
-
"type": "{\n value: string;\n }"
|
|
733
|
-
}
|
|
734
|
-
},
|
|
735
|
-
{
|
|
736
|
-
"name": "focus",
|
|
737
|
-
"description": "下拉框focus事件",
|
|
738
|
-
"detail": {
|
|
739
|
-
"type": "void"
|
|
740
|
-
}
|
|
741
|
-
},
|
|
742
|
-
{
|
|
743
|
-
"name": "options.change",
|
|
744
|
-
"description": "选项列表变化事件",
|
|
745
|
-
"detail": {
|
|
746
|
-
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
],
|
|
750
|
-
"slots": [],
|
|
751
|
-
"methods": [],
|
|
752
|
-
"parts": [],
|
|
753
|
-
"description": "通用下拉选择构件",
|
|
754
|
-
"category": "form-input-basic"
|
|
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"
|
|
688
|
+
"attribute": false,
|
|
689
|
+
"type": "UseSingleBrickConf"
|
|
772
690
|
},
|
|
773
691
|
{
|
|
774
|
-
"name": "
|
|
775
|
-
"description": "
|
|
692
|
+
"name": "clearable",
|
|
693
|
+
"description": "是否支持清除",
|
|
694
|
+
"default": "true",
|
|
776
695
|
"type": "boolean"
|
|
777
696
|
},
|
|
778
697
|
{
|
|
779
|
-
"name": "
|
|
780
|
-
"description": "
|
|
781
|
-
"
|
|
698
|
+
"name": "fields",
|
|
699
|
+
"description": "列表指定字段作为 label 和 value",
|
|
700
|
+
"attribute": false,
|
|
701
|
+
"type": "{ label?: string; value?: string }"
|
|
782
702
|
},
|
|
783
703
|
{
|
|
784
|
-
"name": "
|
|
785
|
-
"description": "
|
|
786
|
-
"
|
|
704
|
+
"name": "useBackend",
|
|
705
|
+
"description": "后端搜索",
|
|
706
|
+
"attribute": false,
|
|
707
|
+
"type": "UseBackendConf"
|
|
787
708
|
},
|
|
788
709
|
{
|
|
789
|
-
"name": "
|
|
790
|
-
"
|
|
791
|
-
|
|
710
|
+
"name": "debounceSearchDelay",
|
|
711
|
+
"type": "number"
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"name": "inputStyle",
|
|
715
|
+
"description": "输入框样式",
|
|
716
|
+
"attribute": false,
|
|
717
|
+
"type": "React.CSSProperties"
|
|
792
718
|
}
|
|
793
719
|
],
|
|
794
720
|
"events": [
|
|
795
721
|
{
|
|
796
|
-
"name": "
|
|
797
|
-
"description": "
|
|
722
|
+
"name": "change",
|
|
723
|
+
"description": "下拉选择事件",
|
|
798
724
|
"detail": {
|
|
799
|
-
"type": "
|
|
725
|
+
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
800
726
|
}
|
|
801
727
|
},
|
|
802
728
|
{
|
|
803
|
-
"name": "
|
|
804
|
-
"description": "
|
|
729
|
+
"name": "search",
|
|
730
|
+
"description": "下拉框search事件",
|
|
731
|
+
"detail": {
|
|
732
|
+
"type": "{\n value: string;\n }"
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"name": "focus",
|
|
737
|
+
"description": "下拉框focus事件",
|
|
805
738
|
"detail": {
|
|
806
739
|
"type": "void"
|
|
807
740
|
}
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"name": "options.change",
|
|
744
|
+
"description": "选项列表变化事件",
|
|
745
|
+
"detail": {
|
|
746
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
747
|
+
}
|
|
808
748
|
}
|
|
809
749
|
],
|
|
810
750
|
"slots": [],
|
|
811
751
|
"methods": [],
|
|
812
752
|
"parts": [],
|
|
813
|
-
"description": "
|
|
753
|
+
"description": "通用下拉选择构件",
|
|
814
754
|
"category": "form-input-basic"
|
|
815
755
|
},
|
|
816
756
|
{
|
|
@@ -905,6 +845,66 @@
|
|
|
905
845
|
"description": "表单复选框构件",
|
|
906
846
|
"category": "form-input-basic"
|
|
907
847
|
},
|
|
848
|
+
{
|
|
849
|
+
"name": "eo-submit-buttons",
|
|
850
|
+
"alias": [
|
|
851
|
+
"form.submit-buttons"
|
|
852
|
+
],
|
|
853
|
+
"properties": [
|
|
854
|
+
{
|
|
855
|
+
"name": "submitText",
|
|
856
|
+
"description": "提交按钮的文字",
|
|
857
|
+
"default": "\"提交\"",
|
|
858
|
+
"type": "string"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"name": "cancelText",
|
|
862
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
863
|
+
"type": "string"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "disableAfterClick",
|
|
867
|
+
"description": "点击确定按钮后自动禁用",
|
|
868
|
+
"type": "boolean"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"name": "submitDisabled",
|
|
872
|
+
"description": "禁用提交按钮",
|
|
873
|
+
"type": "boolean"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"name": "submitType",
|
|
877
|
+
"description": "提交按钮类型",
|
|
878
|
+
"type": "ButtonType"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"name": "cancelType",
|
|
882
|
+
"description": "取消按钮类型",
|
|
883
|
+
"type": "ButtonType"
|
|
884
|
+
}
|
|
885
|
+
],
|
|
886
|
+
"events": [
|
|
887
|
+
{
|
|
888
|
+
"name": "submit",
|
|
889
|
+
"description": "点击提交按钮触发的事件",
|
|
890
|
+
"detail": {
|
|
891
|
+
"type": "void"
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"name": "cancel",
|
|
896
|
+
"description": "点击取消按钮触发的事件",
|
|
897
|
+
"detail": {
|
|
898
|
+
"type": "void"
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
],
|
|
902
|
+
"slots": [],
|
|
903
|
+
"methods": [],
|
|
904
|
+
"parts": [],
|
|
905
|
+
"description": "表单提交按钮",
|
|
906
|
+
"category": "form-input-basic"
|
|
907
|
+
},
|
|
908
908
|
{
|
|
909
909
|
"name": "eo-dynamic-form-item",
|
|
910
910
|
"alias": [
|
|
@@ -1181,75 +1181,6 @@
|
|
|
1181
1181
|
"description": "上传图片构件",
|
|
1182
1182
|
"category": "form-input-basic"
|
|
1183
1183
|
},
|
|
1184
|
-
{
|
|
1185
|
-
"name": "eo-switch",
|
|
1186
|
-
"alias": [
|
|
1187
|
-
"form.general-switch"
|
|
1188
|
-
],
|
|
1189
|
-
"properties": [
|
|
1190
|
-
{
|
|
1191
|
-
"name": "name",
|
|
1192
|
-
"description": "字段名称",
|
|
1193
|
-
"type": "string"
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"name": "label",
|
|
1197
|
-
"description": "字段文本",
|
|
1198
|
-
"type": "string"
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
"name": "value",
|
|
1202
|
-
"description": "初始值",
|
|
1203
|
-
"type": "boolean"
|
|
1204
|
-
},
|
|
1205
|
-
{
|
|
1206
|
-
"name": "disabled",
|
|
1207
|
-
"description": "是否禁用",
|
|
1208
|
-
"type": "boolean"
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
"name": "size",
|
|
1212
|
-
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
1213
|
-
"type": "ComponentSize"
|
|
1214
|
-
},
|
|
1215
|
-
{
|
|
1216
|
-
"name": "checkedText",
|
|
1217
|
-
"description": "选中时的文本",
|
|
1218
|
-
"type": "string"
|
|
1219
|
-
},
|
|
1220
|
-
{
|
|
1221
|
-
"name": "unCheckedText",
|
|
1222
|
-
"description": "非选中时的文本",
|
|
1223
|
-
"type": "string"
|
|
1224
|
-
},
|
|
1225
|
-
{
|
|
1226
|
-
"name": "checkedIcon",
|
|
1227
|
-
"description": "选中时的图标",
|
|
1228
|
-
"attribute": false,
|
|
1229
|
-
"type": "GeneralIconProps"
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
"name": "unCheckedIcon",
|
|
1233
|
-
"description": "非选中时的文本",
|
|
1234
|
-
"attribute": false,
|
|
1235
|
-
"type": "GeneralIconProps"
|
|
1236
|
-
}
|
|
1237
|
-
],
|
|
1238
|
-
"events": [
|
|
1239
|
-
{
|
|
1240
|
-
"name": "switch",
|
|
1241
|
-
"description": "开关改变时触发",
|
|
1242
|
-
"detail": {
|
|
1243
|
-
"type": "boolean"
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
],
|
|
1247
|
-
"slots": [],
|
|
1248
|
-
"methods": [],
|
|
1249
|
-
"parts": [],
|
|
1250
|
-
"description": "开关",
|
|
1251
|
-
"category": "form-input-basic"
|
|
1252
|
-
},
|
|
1253
1184
|
{
|
|
1254
1185
|
"name": "eo-upload-file",
|
|
1255
1186
|
"properties": [
|
|
@@ -1373,6 +1304,75 @@
|
|
|
1373
1304
|
"description": "上传文件",
|
|
1374
1305
|
"category": "form-input-basic"
|
|
1375
1306
|
},
|
|
1307
|
+
{
|
|
1308
|
+
"name": "eo-switch",
|
|
1309
|
+
"alias": [
|
|
1310
|
+
"form.general-switch"
|
|
1311
|
+
],
|
|
1312
|
+
"properties": [
|
|
1313
|
+
{
|
|
1314
|
+
"name": "name",
|
|
1315
|
+
"description": "字段名称",
|
|
1316
|
+
"type": "string"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"name": "label",
|
|
1320
|
+
"description": "字段文本",
|
|
1321
|
+
"type": "string"
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"name": "value",
|
|
1325
|
+
"description": "初始值",
|
|
1326
|
+
"type": "boolean"
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
"name": "disabled",
|
|
1330
|
+
"description": "是否禁用",
|
|
1331
|
+
"type": "boolean"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"name": "size",
|
|
1335
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
1336
|
+
"type": "ComponentSize"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"name": "checkedText",
|
|
1340
|
+
"description": "选中时的文本",
|
|
1341
|
+
"type": "string"
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
"name": "unCheckedText",
|
|
1345
|
+
"description": "非选中时的文本",
|
|
1346
|
+
"type": "string"
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"name": "checkedIcon",
|
|
1350
|
+
"description": "选中时的图标",
|
|
1351
|
+
"attribute": false,
|
|
1352
|
+
"type": "GeneralIconProps"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"name": "unCheckedIcon",
|
|
1356
|
+
"description": "非选中时的文本",
|
|
1357
|
+
"attribute": false,
|
|
1358
|
+
"type": "GeneralIconProps"
|
|
1359
|
+
}
|
|
1360
|
+
],
|
|
1361
|
+
"events": [
|
|
1362
|
+
{
|
|
1363
|
+
"name": "switch",
|
|
1364
|
+
"description": "开关改变时触发",
|
|
1365
|
+
"detail": {
|
|
1366
|
+
"type": "boolean"
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
],
|
|
1370
|
+
"slots": [],
|
|
1371
|
+
"methods": [],
|
|
1372
|
+
"parts": [],
|
|
1373
|
+
"description": "开关",
|
|
1374
|
+
"category": "form-input-basic"
|
|
1375
|
+
},
|
|
1376
1376
|
{
|
|
1377
1377
|
"name": "eo-auto-complete",
|
|
1378
1378
|
"properties": [
|