@next-bricks/form 1.7.2 → 1.8.1
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.3111f726.js +2 -0
- package/dist/chunks/1337.3111f726.js.map +1 -0
- package/dist/chunks/5669.c57417b7.js +2 -0
- package/dist/chunks/5669.c57417b7.js.map +1 -0
- package/dist/chunks/7733.f25ce4b9.js +2 -0
- package/dist/chunks/7733.f25ce4b9.js.map +1 -0
- package/dist/chunks/8050.c0fecb7f.js +2 -0
- package/dist/chunks/8050.c0fecb7f.js.map +1 -0
- package/dist/chunks/8954.923a942b.js +2 -0
- package/dist/chunks/8954.923a942b.js.map +1 -0
- package/dist/chunks/{eo-color-picker.67e6f403.js → eo-color-picker.3da1b157.js} +2 -2
- package/dist/chunks/{eo-color-picker.67e6f403.js.map → eo-color-picker.3da1b157.js.map} +1 -1
- package/dist/chunks/{eo-date-picker.638bb867.js → eo-date-picker.237ff62c.js} +2 -2
- package/dist/chunks/{eo-date-picker.638bb867.js.map → eo-date-picker.237ff62c.js.map} +1 -1
- package/dist/chunks/{eo-dynamic-form-item.c5de969e.js → eo-dynamic-form-item.e35bd01c.js} +3 -3
- package/dist/chunks/{eo-dynamic-form-item.c5de969e.js.map → eo-dynamic-form-item.e35bd01c.js.map} +1 -1
- package/dist/chunks/{eo-form-item.c0c1f58a.js → eo-form-item.76c0d8a8.js} +3 -3
- package/dist/chunks/{eo-form-item.c0c1f58a.js.map → eo-form-item.76c0d8a8.js.map} +1 -1
- package/dist/chunks/{eo-radio.9c3eace0.js → eo-radio.2db40c70.js} +3 -3
- package/dist/chunks/{eo-radio.9c3eace0.js.map → eo-radio.2db40c70.js.map} +1 -1
- package/dist/chunks/eo-select.ed8df3c4.js +3 -0
- package/dist/chunks/{eo-select.90ca4a92.js.map → eo-select.ed8df3c4.js.map} +1 -1
- package/dist/chunks/eo-textarea.93b1a14c.js.map +1 -1
- package/dist/chunks/{eo-time-picker.3bf6748f.js → eo-time-picker.97a5c371.js} +2 -2
- package/dist/chunks/{eo-time-picker.3bf6748f.js.map → eo-time-picker.97a5c371.js.map} +1 -1
- package/dist/chunks/{eo-time-range-picker.ac31409f.js → eo-time-range-picker.2b97f6fd.js} +2 -2
- package/dist/chunks/{eo-time-range-picker.ac31409f.js.map → eo-time-range-picker.2b97f6fd.js.map} +1 -1
- package/dist/chunks/{eo-upload-file.c5b8eb39.js → eo-upload-file.a9d79cea.js} +3 -3
- package/dist/chunks/{eo-upload-file.c5b8eb39.js.map → eo-upload-file.a9d79cea.js.map} +1 -1
- package/dist/chunks/eo-upload-image.1cc660a4.js +3 -0
- package/dist/chunks/{eo-upload-image.b7988668.js.map → eo-upload-image.1cc660a4.js.map} +1 -1
- package/dist/chunks/main.d80729a2.js +2 -0
- package/dist/chunks/main.d80729a2.js.map +1 -0
- package/dist/examples.json +10 -10
- package/dist/index.2410563c.js +2 -0
- package/dist/index.2410563c.js.map +1 -0
- package/dist/manifest.json +340 -340
- package/dist/types.json +180 -180
- package/dist-types/textarea/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunks/1337.7e9e13e9.js +0 -2
- package/dist/chunks/1337.7e9e13e9.js.map +0 -1
- package/dist/chunks/1972.bf3af78d.js +0 -2
- package/dist/chunks/1972.bf3af78d.js.map +0 -1
- package/dist/chunks/7733.ade83ba7.js +0 -2
- package/dist/chunks/7733.ade83ba7.js.map +0 -1
- package/dist/chunks/9061.d00f49db.js +0 -2
- package/dist/chunks/9061.d00f49db.js.map +0 -1
- package/dist/chunks/9591.851ec81f.js +0 -2
- package/dist/chunks/9591.851ec81f.js.map +0 -1
- package/dist/chunks/eo-select.90ca4a92.js +0 -3
- package/dist/chunks/eo-upload-image.b7988668.js +0 -3
- package/dist/chunks/main.0fd836f4.js +0 -2
- package/dist/chunks/main.0fd836f4.js.map +0 -1
- package/dist/index.1444308e.js +0 -2
- package/dist/index.1444308e.js.map +0 -1
- /package/dist/chunks/{eo-dynamic-form-item.c5de969e.js.LICENSE.txt → eo-dynamic-form-item.e35bd01c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.c0c1f58a.js.LICENSE.txt → eo-form-item.76c0d8a8.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.9c3eace0.js.LICENSE.txt → eo-radio.2db40c70.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.90ca4a92.js.LICENSE.txt → eo-select.ed8df3c4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.c5b8eb39.js.LICENSE.txt → eo-upload-file.a9d79cea.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.b7988668.js.LICENSE.txt → eo-upload-image.1cc660a4.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -189,21 +189,11 @@
|
|
|
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
|
-
{
|
|
198
|
-
"name": "formElement",
|
|
199
|
-
"attribute": false,
|
|
200
|
-
"type": "Form"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"name": "curElement",
|
|
204
|
-
"attribute": false,
|
|
205
|
-
"type": "HTMLElement"
|
|
206
|
-
},
|
|
207
197
|
{
|
|
208
198
|
"name": "name",
|
|
209
199
|
"description": "字段名称",
|
|
@@ -211,110 +201,39 @@
|
|
|
211
201
|
},
|
|
212
202
|
{
|
|
213
203
|
"name": "label",
|
|
204
|
+
"description": "标签文字",
|
|
214
205
|
"type": "string"
|
|
215
206
|
},
|
|
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
|
-
},
|
|
238
207
|
{
|
|
239
208
|
"name": "value",
|
|
240
|
-
"description": "
|
|
241
|
-
"type": "string"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"name": "valuePropsName",
|
|
209
|
+
"description": "值",
|
|
245
210
|
"type": "string"
|
|
246
211
|
},
|
|
247
212
|
{
|
|
248
|
-
"name": "
|
|
249
|
-
"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"name": "size",
|
|
253
|
-
"type": "ComponentSize"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"name": "trim",
|
|
257
|
-
"description": "是否自动去除前后的空白字符",
|
|
258
|
-
"default": "true"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"name": "trigger",
|
|
262
|
-
"description": "事件触发方法名",
|
|
213
|
+
"name": "placeholder",
|
|
214
|
+
"description": "占位说明",
|
|
263
215
|
"type": "string"
|
|
264
216
|
},
|
|
265
217
|
{
|
|
266
|
-
"name": "
|
|
267
|
-
"description": "
|
|
268
|
-
"attribute": false,
|
|
269
|
-
"type": "((value: any) => MessageBody)"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"name": "needValidate",
|
|
273
|
-
"description": "值变化时是否主动出发校验",
|
|
218
|
+
"name": "disabled",
|
|
219
|
+
"description": "是否禁用",
|
|
274
220
|
"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"
|
|
300
221
|
},
|
|
301
222
|
{
|
|
302
|
-
"name": "
|
|
303
|
-
"description": "
|
|
304
|
-
"type": "
|
|
223
|
+
"name": "minLength",
|
|
224
|
+
"description": "最小长度",
|
|
225
|
+
"type": "number"
|
|
305
226
|
},
|
|
306
227
|
{
|
|
307
|
-
"name": "
|
|
308
|
-
"description": "
|
|
309
|
-
"
|
|
310
|
-
"attribute": false,
|
|
311
|
-
"type": "GeneralOption[]"
|
|
228
|
+
"name": "maxLength",
|
|
229
|
+
"description": "最大长度",
|
|
230
|
+
"type": "number"
|
|
312
231
|
},
|
|
313
232
|
{
|
|
314
|
-
"name": "
|
|
315
|
-
"description": "
|
|
233
|
+
"name": "autoSize",
|
|
234
|
+
"description": "大小自适应",
|
|
316
235
|
"attribute": false,
|
|
317
|
-
"type": "
|
|
236
|
+
"type": "AutoSize"
|
|
318
237
|
},
|
|
319
238
|
{
|
|
320
239
|
"name": "required",
|
|
@@ -322,67 +241,42 @@
|
|
|
322
241
|
"type": "boolean"
|
|
323
242
|
},
|
|
324
243
|
{
|
|
325
|
-
"name": "
|
|
326
|
-
"description": "
|
|
327
|
-
"
|
|
328
|
-
"type": "Record<string, string>"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
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"
|
|
244
|
+
"name": "max",
|
|
245
|
+
"description": "表单校验最大长度",
|
|
246
|
+
"type": "number"
|
|
346
247
|
},
|
|
347
248
|
{
|
|
348
|
-
"name": "
|
|
349
|
-
"description": "
|
|
350
|
-
"
|
|
351
|
-
"type": "ComponentSize"
|
|
249
|
+
"name": "min",
|
|
250
|
+
"description": "表单校验最小长度",
|
|
251
|
+
"type": "number"
|
|
352
252
|
},
|
|
353
253
|
{
|
|
354
|
-
"name": "
|
|
355
|
-
"description": "
|
|
254
|
+
"name": "message",
|
|
255
|
+
"description": "校验信息",
|
|
356
256
|
"attribute": false,
|
|
357
|
-
"type": "
|
|
257
|
+
"type": "Record<string, string>"
|
|
358
258
|
},
|
|
359
259
|
{
|
|
360
|
-
"name": "
|
|
361
|
-
"description": "
|
|
260
|
+
"name": "textareaStyle",
|
|
261
|
+
"description": "自定义样式",
|
|
362
262
|
"attribute": false,
|
|
363
|
-
"type": "
|
|
263
|
+
"type": "React.CSSProperties"
|
|
364
264
|
}
|
|
365
265
|
],
|
|
366
266
|
"events": [
|
|
367
267
|
{
|
|
368
268
|
"name": "change",
|
|
369
|
-
"description": "
|
|
370
|
-
"detail": {
|
|
371
|
-
"type": "GeneralComplexOption | undefined"
|
|
372
|
-
}
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"name": "options.change",
|
|
376
|
-
"description": "选项列表变化事件",
|
|
269
|
+
"description": "",
|
|
377
270
|
"detail": {
|
|
378
|
-
"
|
|
271
|
+
"description": null,
|
|
272
|
+
"type": "string"
|
|
379
273
|
}
|
|
380
274
|
}
|
|
381
275
|
],
|
|
382
276
|
"slots": [],
|
|
383
277
|
"methods": [],
|
|
384
278
|
"parts": [],
|
|
385
|
-
"description": "
|
|
279
|
+
"description": "通用多行文本输入框构件",
|
|
386
280
|
"category": "form-input-basic"
|
|
387
281
|
},
|
|
388
282
|
{
|
|
@@ -521,11 +415,21 @@
|
|
|
521
415
|
"category": "form-input-basic"
|
|
522
416
|
},
|
|
523
417
|
{
|
|
524
|
-
"name": "eo-
|
|
418
|
+
"name": "eo-form-item",
|
|
525
419
|
"alias": [
|
|
526
|
-
"form.general-
|
|
420
|
+
"form.general-form-item"
|
|
527
421
|
],
|
|
528
422
|
"properties": [
|
|
423
|
+
{
|
|
424
|
+
"name": "formElement",
|
|
425
|
+
"attribute": false,
|
|
426
|
+
"type": "Form"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "curElement",
|
|
430
|
+
"attribute": false,
|
|
431
|
+
"type": "HTMLElement"
|
|
432
|
+
},
|
|
529
433
|
{
|
|
530
434
|
"name": "name",
|
|
531
435
|
"description": "字段名称",
|
|
@@ -533,82 +437,178 @@
|
|
|
533
437
|
},
|
|
534
438
|
{
|
|
535
439
|
"name": "label",
|
|
536
|
-
"description": "标签文字",
|
|
537
440
|
"type": "string"
|
|
538
441
|
},
|
|
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
|
+
},
|
|
539
464
|
{
|
|
540
465
|
"name": "value",
|
|
541
|
-
"description": "
|
|
466
|
+
"description": "初始值",
|
|
542
467
|
"type": "string"
|
|
543
468
|
},
|
|
544
469
|
{
|
|
545
|
-
"name": "
|
|
546
|
-
"description": "占位说明",
|
|
470
|
+
"name": "valuePropsName",
|
|
547
471
|
"type": "string"
|
|
548
472
|
},
|
|
549
473
|
{
|
|
550
|
-
"name": "
|
|
551
|
-
"
|
|
552
|
-
"type": "boolean"
|
|
474
|
+
"name": "layout",
|
|
475
|
+
"type": "Layout"
|
|
553
476
|
},
|
|
554
477
|
{
|
|
555
|
-
"name": "
|
|
556
|
-
"
|
|
557
|
-
"type": "number"
|
|
478
|
+
"name": "size",
|
|
479
|
+
"type": "ComponentSize"
|
|
558
480
|
},
|
|
559
481
|
{
|
|
560
|
-
"name": "
|
|
561
|
-
"description": "
|
|
562
|
-
"
|
|
482
|
+
"name": "trim",
|
|
483
|
+
"description": "是否自动去除前后的空白字符",
|
|
484
|
+
"default": "true"
|
|
563
485
|
},
|
|
564
486
|
{
|
|
565
|
-
"name": "
|
|
566
|
-
"description": "
|
|
487
|
+
"name": "trigger",
|
|
488
|
+
"description": "事件触发方法名",
|
|
489
|
+
"type": "string"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "validator",
|
|
493
|
+
"description": "表单项校验方法",
|
|
567
494
|
"attribute": false,
|
|
568
|
-
"type": "
|
|
495
|
+
"type": "((value: any) => MessageBody)"
|
|
569
496
|
},
|
|
570
497
|
{
|
|
571
|
-
"name": "
|
|
572
|
-
"description": "
|
|
498
|
+
"name": "needValidate",
|
|
499
|
+
"description": "值变化时是否主动出发校验",
|
|
573
500
|
"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"
|
|
574
526
|
},
|
|
575
527
|
{
|
|
576
|
-
"name": "
|
|
577
|
-
"description": "
|
|
578
|
-
"type": "
|
|
528
|
+
"name": "label",
|
|
529
|
+
"description": "单选框字段说明",
|
|
530
|
+
"type": "string"
|
|
579
531
|
},
|
|
580
532
|
{
|
|
581
|
-
"name": "
|
|
582
|
-
"description": "
|
|
583
|
-
"
|
|
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"
|
|
584
549
|
},
|
|
585
550
|
{
|
|
586
551
|
"name": "message",
|
|
587
|
-
"description": "
|
|
552
|
+
"description": "校验文本信息",
|
|
588
553
|
"attribute": false,
|
|
589
554
|
"type": "Record<string, string>"
|
|
590
555
|
},
|
|
591
556
|
{
|
|
592
|
-
"name": "
|
|
593
|
-
"description": "
|
|
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的外层样式",
|
|
594
582
|
"attribute": false,
|
|
595
583
|
"type": "React.CSSProperties"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"name": "useBrick",
|
|
587
|
+
"description": "自定义radio的内容",
|
|
588
|
+
"attribute": false,
|
|
589
|
+
"type": "UseSingleBrickConf"
|
|
596
590
|
}
|
|
597
591
|
],
|
|
598
592
|
"events": [
|
|
599
593
|
{
|
|
600
594
|
"name": "change",
|
|
601
|
-
"description": "",
|
|
595
|
+
"description": "值变化事件",
|
|
602
596
|
"detail": {
|
|
603
|
-
"
|
|
604
|
-
|
|
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
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
|
{
|
|
@@ -689,68 +689,128 @@
|
|
|
689
689
|
"type": "UseSingleBrickConf"
|
|
690
690
|
},
|
|
691
691
|
{
|
|
692
|
-
"name": "clearable",
|
|
693
|
-
"description": "是否支持清除",
|
|
694
|
-
"default": "true",
|
|
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"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "disableAfterClick",
|
|
775
|
+
"description": "点击确定按钮后自动禁用",
|
|
695
776
|
"type": "boolean"
|
|
696
777
|
},
|
|
697
778
|
{
|
|
698
|
-
"name": "
|
|
699
|
-
"description": "
|
|
700
|
-
"
|
|
701
|
-
"type": "{ label?: string; value?: string }"
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
"name": "useBackend",
|
|
705
|
-
"description": "后端搜索",
|
|
706
|
-
"attribute": false,
|
|
707
|
-
"type": "UseBackendConf"
|
|
779
|
+
"name": "submitDisabled",
|
|
780
|
+
"description": "禁用提交按钮",
|
|
781
|
+
"type": "boolean"
|
|
708
782
|
},
|
|
709
783
|
{
|
|
710
|
-
"name": "
|
|
711
|
-
"
|
|
784
|
+
"name": "submitType",
|
|
785
|
+
"description": "提交按钮类型",
|
|
786
|
+
"type": "ButtonType"
|
|
712
787
|
},
|
|
713
788
|
{
|
|
714
|
-
"name": "
|
|
715
|
-
"description": "
|
|
716
|
-
"
|
|
717
|
-
"type": "React.CSSProperties"
|
|
789
|
+
"name": "cancelType",
|
|
790
|
+
"description": "取消按钮类型",
|
|
791
|
+
"type": "ButtonType"
|
|
718
792
|
}
|
|
719
793
|
],
|
|
720
794
|
"events": [
|
|
721
795
|
{
|
|
722
|
-
"name": "
|
|
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事件",
|
|
796
|
+
"name": "submit",
|
|
797
|
+
"description": "点击提交按钮触发的事件",
|
|
738
798
|
"detail": {
|
|
739
799
|
"type": "void"
|
|
740
800
|
}
|
|
741
801
|
},
|
|
742
802
|
{
|
|
743
|
-
"name": "
|
|
744
|
-
"description": "
|
|
803
|
+
"name": "cancel",
|
|
804
|
+
"description": "点击取消按钮触发的事件",
|
|
745
805
|
"detail": {
|
|
746
|
-
"type": "
|
|
806
|
+
"type": "void"
|
|
747
807
|
}
|
|
748
808
|
}
|
|
749
809
|
],
|
|
750
810
|
"slots": [],
|
|
751
811
|
"methods": [],
|
|
752
812
|
"parts": [],
|
|
753
|
-
"description": "
|
|
813
|
+
"description": "表单提交按钮",
|
|
754
814
|
"category": "form-input-basic"
|
|
755
815
|
},
|
|
756
816
|
{
|
|
@@ -845,66 +905,6 @@
|
|
|
845
905
|
"description": "表单复选框构件",
|
|
846
906
|
"category": "form-input-basic"
|
|
847
907
|
},
|
|
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,6 +1181,75 @@
|
|
|
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
|
+
},
|
|
1184
1253
|
{
|
|
1185
1254
|
"name": "eo-upload-file",
|
|
1186
1255
|
"properties": [
|
|
@@ -1304,75 +1373,6 @@
|
|
|
1304
1373
|
"description": "上传文件",
|
|
1305
1374
|
"category": "form-input-basic"
|
|
1306
1375
|
},
|
|
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": [
|