@next-bricks/form 1.7.2 → 1.7.3
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 +34 -34
- package/dist/chunks/{1337.7e9e13e9.js → 1337.c8051a50.js} +2 -2
- package/dist/chunks/{1337.7e9e13e9.js.map → 1337.c8051a50.js.map} +1 -1
- package/dist/chunks/{9061.d00f49db.js → 1860.e250642a.js} +2 -2
- package/dist/chunks/1860.e250642a.js.map +1 -0
- package/dist/chunks/{1972.bf3af78d.js → 1972.d5fc1b3e.js} +2 -2
- package/dist/chunks/{1972.bf3af78d.js.map → 1972.d5fc1b3e.js.map} +1 -1
- package/dist/chunks/{9591.851ec81f.js → 9591.f9213ab2.js} +2 -2
- package/dist/chunks/{9591.851ec81f.js.map → 9591.f9213ab2.js.map} +1 -1
- package/dist/chunks/{eo-color-picker.67e6f403.js → eo-color-picker.66998157.js} +2 -2
- package/dist/chunks/{eo-color-picker.67e6f403.js.map → eo-color-picker.66998157.js.map} +1 -1
- package/dist/chunks/{eo-date-picker.638bb867.js → eo-date-picker.28200038.js} +2 -2
- package/dist/chunks/{eo-date-picker.638bb867.js.map → eo-date-picker.28200038.js.map} +1 -1
- package/dist/chunks/{eo-dynamic-form-item.c5de969e.js → eo-dynamic-form-item.8a6e7a9b.js} +3 -3
- package/dist/chunks/{eo-dynamic-form-item.c5de969e.js.map → eo-dynamic-form-item.8a6e7a9b.js.map} +1 -1
- package/dist/chunks/{eo-form-item.c0c1f58a.js → eo-form-item.b21c297e.js} +3 -3
- package/dist/chunks/{eo-form-item.c0c1f58a.js.map → eo-form-item.b21c297e.js.map} +1 -1
- package/dist/chunks/{eo-radio.9c3eace0.js → eo-radio.0cd3d54c.js} +3 -3
- package/dist/chunks/{eo-radio.9c3eace0.js.map → eo-radio.0cd3d54c.js.map} +1 -1
- package/dist/chunks/{eo-select.90ca4a92.js → eo-select.75b52f12.js} +3 -3
- package/dist/chunks/{eo-select.90ca4a92.js.map → eo-select.75b52f12.js.map} +1 -1
- package/dist/chunks/{eo-time-picker.3bf6748f.js → eo-time-picker.bc8cd0db.js} +2 -2
- package/dist/chunks/{eo-time-picker.3bf6748f.js.map → eo-time-picker.bc8cd0db.js.map} +1 -1
- package/dist/chunks/{eo-time-range-picker.ac31409f.js → eo-time-range-picker.cac818c8.js} +2 -2
- package/dist/chunks/{eo-time-range-picker.ac31409f.js.map → eo-time-range-picker.cac818c8.js.map} +1 -1
- package/dist/chunks/{eo-upload-file.c5b8eb39.js → eo-upload-file.3da8f66f.js} +3 -3
- package/dist/chunks/{eo-upload-file.c5b8eb39.js.map → eo-upload-file.3da8f66f.js.map} +1 -1
- package/dist/chunks/{eo-upload-image.b7988668.js → eo-upload-image.dcec5ea8.js} +3 -3
- package/dist/chunks/{eo-upload-image.b7988668.js.map → eo-upload-image.dcec5ea8.js.map} +1 -1
- package/dist/chunks/{main.0fd836f4.js → main.4570817e.js} +2 -2
- package/dist/chunks/{main.0fd836f4.js.map → main.4570817e.js.map} +1 -1
- package/dist/examples.json +13 -13
- package/dist/{index.1444308e.js → index.254038b0.js} +2 -2
- package/dist/{index.1444308e.js.map → index.254038b0.js.map} +1 -1
- package/dist/manifest.json +403 -403
- package/dist/types.json +589 -589
- package/package.json +2 -2
- package/dist/chunks/9061.d00f49db.js.map +0 -1
- /package/dist/chunks/{eo-dynamic-form-item.c5de969e.js.LICENSE.txt → eo-dynamic-form-item.8a6e7a9b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.c0c1f58a.js.LICENSE.txt → eo-form-item.b21c297e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.9c3eace0.js.LICENSE.txt → eo-radio.0cd3d54c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.90ca4a92.js.LICENSE.txt → eo-select.75b52f12.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.c5b8eb39.js.LICENSE.txt → eo-upload-file.3da8f66f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.b7988668.js.LICENSE.txt → eo-upload-image.dcec5ea8.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,119 @@
|
|
|
521
415
|
"category": "form-input-basic"
|
|
522
416
|
},
|
|
523
417
|
{
|
|
524
|
-
"name": "eo-
|
|
418
|
+
"name": "eo-radio",
|
|
525
419
|
"alias": [
|
|
526
|
-
"form.general-
|
|
420
|
+
"form.general-radio"
|
|
527
421
|
],
|
|
528
422
|
"properties": [
|
|
423
|
+
{
|
|
424
|
+
"name": "name",
|
|
425
|
+
"description": "下拉框字段名",
|
|
426
|
+
"type": "string"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "label",
|
|
430
|
+
"description": "单选框字段说明",
|
|
431
|
+
"type": "string"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"name": "options",
|
|
435
|
+
"description": "单选框选项表",
|
|
436
|
+
"required": true,
|
|
437
|
+
"attribute": false,
|
|
438
|
+
"type": "GeneralOption[]"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"name": "value",
|
|
442
|
+
"description": "单选框当前选中始值",
|
|
443
|
+
"attribute": false,
|
|
444
|
+
"type": "any"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"name": "required",
|
|
448
|
+
"description": "是否必填",
|
|
449
|
+
"type": "boolean"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "message",
|
|
453
|
+
"description": "校验文本信息",
|
|
454
|
+
"attribute": false,
|
|
455
|
+
"type": "Record<string, string>"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "disabled",
|
|
459
|
+
"description": "是否禁用",
|
|
460
|
+
"type": "boolean"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "type",
|
|
464
|
+
"description": "单选框样式类型",
|
|
465
|
+
"default": "\"default\"",
|
|
466
|
+
"type": "RadioType"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "ui",
|
|
470
|
+
"description": "UI样式",
|
|
471
|
+
"default": "\"default\"",
|
|
472
|
+
"type": "UIType"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "size",
|
|
476
|
+
"description": "大小,只对按钮样式生效",
|
|
477
|
+
"default": "\"medium\"",
|
|
478
|
+
"type": "ComponentSize"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "customStyle",
|
|
482
|
+
"description": "自定义radio的外层样式",
|
|
483
|
+
"attribute": false,
|
|
484
|
+
"type": "React.CSSProperties"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "useBrick",
|
|
488
|
+
"description": "自定义radio的内容",
|
|
489
|
+
"attribute": false,
|
|
490
|
+
"type": "UseSingleBrickConf"
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
"events": [
|
|
494
|
+
{
|
|
495
|
+
"name": "change",
|
|
496
|
+
"description": "值变化事件",
|
|
497
|
+
"detail": {
|
|
498
|
+
"type": "GeneralComplexOption | undefined"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "options.change",
|
|
503
|
+
"description": "选项列表变化事件",
|
|
504
|
+
"detail": {
|
|
505
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
],
|
|
509
|
+
"slots": [],
|
|
510
|
+
"methods": [],
|
|
511
|
+
"parts": [],
|
|
512
|
+
"description": "通用单选构件",
|
|
513
|
+
"category": "form-input-basic"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "eo-form-item",
|
|
517
|
+
"alias": [
|
|
518
|
+
"form.general-form-item"
|
|
519
|
+
],
|
|
520
|
+
"properties": [
|
|
521
|
+
{
|
|
522
|
+
"name": "formElement",
|
|
523
|
+
"attribute": false,
|
|
524
|
+
"type": "Form"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "curElement",
|
|
528
|
+
"attribute": false,
|
|
529
|
+
"type": "HTMLElement"
|
|
530
|
+
},
|
|
529
531
|
{
|
|
530
532
|
"name": "name",
|
|
531
533
|
"description": "字段名称",
|
|
@@ -533,83 +535,81 @@
|
|
|
533
535
|
},
|
|
534
536
|
{
|
|
535
537
|
"name": "label",
|
|
536
|
-
"description": "标签文字",
|
|
537
538
|
"type": "string"
|
|
538
539
|
},
|
|
539
540
|
{
|
|
540
|
-
"name": "
|
|
541
|
-
"
|
|
542
|
-
|
|
541
|
+
"name": "pattern",
|
|
542
|
+
"type": "string"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"name": "message",
|
|
546
|
+
"attribute": false,
|
|
547
|
+
"type": "Record<string, string>"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"name": "max",
|
|
551
|
+
"type": "number"
|
|
543
552
|
},
|
|
544
553
|
{
|
|
545
|
-
"name": "
|
|
546
|
-
"
|
|
547
|
-
"type": "string"
|
|
554
|
+
"name": "min",
|
|
555
|
+
"type": "number"
|
|
548
556
|
},
|
|
549
557
|
{
|
|
550
|
-
"name": "
|
|
551
|
-
"description": "
|
|
558
|
+
"name": "required",
|
|
559
|
+
"description": "表单项是否必填",
|
|
552
560
|
"type": "boolean"
|
|
553
561
|
},
|
|
554
562
|
{
|
|
555
|
-
"name": "
|
|
556
|
-
"description": "
|
|
557
|
-
"type": "
|
|
563
|
+
"name": "value",
|
|
564
|
+
"description": "初始值",
|
|
565
|
+
"type": "string"
|
|
558
566
|
},
|
|
559
567
|
{
|
|
560
|
-
"name": "
|
|
561
|
-
"
|
|
562
|
-
"type": "number"
|
|
568
|
+
"name": "valuePropsName",
|
|
569
|
+
"type": "string"
|
|
563
570
|
},
|
|
564
571
|
{
|
|
565
|
-
"name": "
|
|
566
|
-
"
|
|
567
|
-
"attribute": false,
|
|
568
|
-
"type": "AutoSize"
|
|
572
|
+
"name": "layout",
|
|
573
|
+
"type": "Layout"
|
|
569
574
|
},
|
|
570
575
|
{
|
|
571
|
-
"name": "
|
|
572
|
-
"
|
|
573
|
-
"type": "boolean"
|
|
576
|
+
"name": "size",
|
|
577
|
+
"type": "ComponentSize"
|
|
574
578
|
},
|
|
575
579
|
{
|
|
576
|
-
"name": "
|
|
577
|
-
"description": "
|
|
578
|
-
"
|
|
580
|
+
"name": "trim",
|
|
581
|
+
"description": "是否自动去除前后的空白字符",
|
|
582
|
+
"default": "true"
|
|
579
583
|
},
|
|
580
584
|
{
|
|
581
|
-
"name": "
|
|
582
|
-
"description": "
|
|
583
|
-
"type": "
|
|
585
|
+
"name": "trigger",
|
|
586
|
+
"description": "事件触发方法名",
|
|
587
|
+
"type": "string"
|
|
584
588
|
},
|
|
585
589
|
{
|
|
586
|
-
"name": "
|
|
587
|
-
"description": "
|
|
590
|
+
"name": "validator",
|
|
591
|
+
"description": "表单项校验方法",
|
|
588
592
|
"attribute": false,
|
|
589
|
-
"type": "
|
|
593
|
+
"type": "((value: any) => MessageBody)"
|
|
590
594
|
},
|
|
591
595
|
{
|
|
592
|
-
"name": "
|
|
593
|
-
"description": "
|
|
594
|
-
"
|
|
595
|
-
"type": "React.CSSProperties"
|
|
596
|
+
"name": "needValidate",
|
|
597
|
+
"description": "值变化时是否主动出发校验",
|
|
598
|
+
"type": "boolean"
|
|
596
599
|
}
|
|
597
600
|
],
|
|
598
|
-
"events": [
|
|
601
|
+
"events": [],
|
|
602
|
+
"slots": [
|
|
599
603
|
{
|
|
600
|
-
"name":
|
|
601
|
-
"description": ""
|
|
602
|
-
"detail": {
|
|
603
|
-
"description": null,
|
|
604
|
-
"type": "string"
|
|
605
|
-
}
|
|
604
|
+
"name": null,
|
|
605
|
+
"description": "表单项内容"
|
|
606
606
|
}
|
|
607
607
|
],
|
|
608
|
-
"slots": [],
|
|
609
608
|
"methods": [],
|
|
610
609
|
"parts": [],
|
|
611
|
-
"description": "
|
|
612
|
-
"category": "form-input-basic"
|
|
610
|
+
"description": "通用输入框构件",
|
|
611
|
+
"category": "form-input-basic",
|
|
612
|
+
"insider": true
|
|
613
613
|
},
|
|
614
614
|
{
|
|
615
615
|
"name": "eo-select",
|
|
@@ -753,6 +753,66 @@
|
|
|
753
753
|
"description": "通用下拉选择构件",
|
|
754
754
|
"category": "form-input-basic"
|
|
755
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
|
+
},
|
|
756
816
|
{
|
|
757
817
|
"name": "eo-checkbox",
|
|
758
818
|
"alias": [
|
|
@@ -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": [
|
|
@@ -1140,45 +1140,114 @@
|
|
|
1140
1140
|
"type": "string"
|
|
1141
1141
|
},
|
|
1142
1142
|
{
|
|
1143
|
-
"name": "maxCount",
|
|
1144
|
-
"description": "最大上传数量",
|
|
1145
|
-
"type": "number"
|
|
1143
|
+
"name": "maxCount",
|
|
1144
|
+
"description": "最大上传数量",
|
|
1145
|
+
"type": "number"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"name": "multiple",
|
|
1149
|
+
"description": "是否支持选定的多张图片",
|
|
1150
|
+
"type": "boolean"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"name": "limitSize",
|
|
1154
|
+
"description": "上传大小限制(单位为 MB)",
|
|
1155
|
+
"type": "number"
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"name": "required",
|
|
1159
|
+
"description": "是否必填",
|
|
1160
|
+
"type": "boolean"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"name": "message",
|
|
1164
|
+
"description": "校验文本信息",
|
|
1165
|
+
"attribute": false,
|
|
1166
|
+
"type": "Record<string, string>"
|
|
1167
|
+
}
|
|
1168
|
+
],
|
|
1169
|
+
"events": [
|
|
1170
|
+
{
|
|
1171
|
+
"name": "change",
|
|
1172
|
+
"description": "值变化时触发",
|
|
1173
|
+
"detail": {
|
|
1174
|
+
"type": "ImageData[]"
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
],
|
|
1178
|
+
"slots": [],
|
|
1179
|
+
"methods": [],
|
|
1180
|
+
"parts": [],
|
|
1181
|
+
"description": "上传图片构件",
|
|
1182
|
+
"category": "form-input-basic"
|
|
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"
|
|
1146
1204
|
},
|
|
1147
1205
|
{
|
|
1148
|
-
"name": "
|
|
1149
|
-
"description": "
|
|
1206
|
+
"name": "disabled",
|
|
1207
|
+
"description": "是否禁用",
|
|
1150
1208
|
"type": "boolean"
|
|
1151
1209
|
},
|
|
1152
1210
|
{
|
|
1153
|
-
"name": "
|
|
1154
|
-
"description": "
|
|
1155
|
-
"type": "
|
|
1211
|
+
"name": "size",
|
|
1212
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
1213
|
+
"type": "ComponentSize"
|
|
1156
1214
|
},
|
|
1157
1215
|
{
|
|
1158
|
-
"name": "
|
|
1159
|
-
"description": "
|
|
1160
|
-
"type": "
|
|
1216
|
+
"name": "checkedText",
|
|
1217
|
+
"description": "选中时的文本",
|
|
1218
|
+
"type": "string"
|
|
1161
1219
|
},
|
|
1162
1220
|
{
|
|
1163
|
-
"name": "
|
|
1164
|
-
"description": "
|
|
1221
|
+
"name": "unCheckedText",
|
|
1222
|
+
"description": "非选中时的文本",
|
|
1223
|
+
"type": "string"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"name": "checkedIcon",
|
|
1227
|
+
"description": "选中时的图标",
|
|
1165
1228
|
"attribute": false,
|
|
1166
|
-
"type": "
|
|
1229
|
+
"type": "GeneralIconProps"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"name": "unCheckedIcon",
|
|
1233
|
+
"description": "非选中时的文本",
|
|
1234
|
+
"attribute": false,
|
|
1235
|
+
"type": "GeneralIconProps"
|
|
1167
1236
|
}
|
|
1168
1237
|
],
|
|
1169
1238
|
"events": [
|
|
1170
1239
|
{
|
|
1171
|
-
"name": "
|
|
1172
|
-
"description": "
|
|
1240
|
+
"name": "switch",
|
|
1241
|
+
"description": "开关改变时触发",
|
|
1173
1242
|
"detail": {
|
|
1174
|
-
"type": "
|
|
1243
|
+
"type": "boolean"
|
|
1175
1244
|
}
|
|
1176
1245
|
}
|
|
1177
1246
|
],
|
|
1178
1247
|
"slots": [],
|
|
1179
1248
|
"methods": [],
|
|
1180
1249
|
"parts": [],
|
|
1181
|
-
"description": "
|
|
1250
|
+
"description": "开关",
|
|
1182
1251
|
"category": "form-input-basic"
|
|
1183
1252
|
},
|
|
1184
1253
|
{
|
|
@@ -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": [
|
|
@@ -1531,6 +1531,76 @@
|
|
|
1531
1531
|
"description": "时间选择器",
|
|
1532
1532
|
"category": "form-input-basic"
|
|
1533
1533
|
},
|
|
1534
|
+
{
|
|
1535
|
+
"name": "eo-time-range-picker",
|
|
1536
|
+
"properties": [
|
|
1537
|
+
{
|
|
1538
|
+
"name": "name",
|
|
1539
|
+
"description": "时间段选择器字段名",
|
|
1540
|
+
"type": "string"
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
"name": "label",
|
|
1544
|
+
"description": "时间段选择器说明",
|
|
1545
|
+
"type": "string"
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
"name": "value",
|
|
1549
|
+
"description": "时间段选择器的初始值",
|
|
1550
|
+
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1551
|
+
"attribute": false,
|
|
1552
|
+
"type": "TimeRange"
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"name": "required",
|
|
1556
|
+
"description": "是否必填",
|
|
1557
|
+
"type": "boolean"
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"name": "rangeType",
|
|
1561
|
+
"description": "时间段类型",
|
|
1562
|
+
"attribute": false,
|
|
1563
|
+
"type": "RangeType"
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
"name": "selectNearDays",
|
|
1567
|
+
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1568
|
+
"type": "number"
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
"name": "emitChangeOnInit",
|
|
1572
|
+
"description": "",
|
|
1573
|
+
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1574
|
+
"type": "boolean"
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
"name": "presetRanges",
|
|
1578
|
+
"description": "",
|
|
1579
|
+
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1580
|
+
"attribute": false,
|
|
1581
|
+
"type": "presetRangeType[]"
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
"name": "validator",
|
|
1585
|
+
"attribute": false,
|
|
1586
|
+
"type": "((value: any) => MessageBody | string)"
|
|
1587
|
+
}
|
|
1588
|
+
],
|
|
1589
|
+
"events": [
|
|
1590
|
+
{
|
|
1591
|
+
"name": "change",
|
|
1592
|
+
"description": "时间段变化时触发",
|
|
1593
|
+
"detail": {
|
|
1594
|
+
"type": "TimeRange"
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
],
|
|
1598
|
+
"slots": [],
|
|
1599
|
+
"methods": [],
|
|
1600
|
+
"parts": [],
|
|
1601
|
+
"description": "时间区间选择器",
|
|
1602
|
+
"category": "form-input-basic"
|
|
1603
|
+
},
|
|
1534
1604
|
{
|
|
1535
1605
|
"name": "eo-date-picker",
|
|
1536
1606
|
"properties": [
|
|
@@ -1631,76 +1701,6 @@
|
|
|
1631
1701
|
"description": "日期选择器",
|
|
1632
1702
|
"category": "form-input-basic"
|
|
1633
1703
|
},
|
|
1634
|
-
{
|
|
1635
|
-
"name": "eo-time-range-picker",
|
|
1636
|
-
"properties": [
|
|
1637
|
-
{
|
|
1638
|
-
"name": "name",
|
|
1639
|
-
"description": "时间段选择器字段名",
|
|
1640
|
-
"type": "string"
|
|
1641
|
-
},
|
|
1642
|
-
{
|
|
1643
|
-
"name": "label",
|
|
1644
|
-
"description": "时间段选择器说明",
|
|
1645
|
-
"type": "string"
|
|
1646
|
-
},
|
|
1647
|
-
{
|
|
1648
|
-
"name": "value",
|
|
1649
|
-
"description": "时间段选择器的初始值",
|
|
1650
|
-
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1651
|
-
"attribute": false,
|
|
1652
|
-
"type": "TimeRange"
|
|
1653
|
-
},
|
|
1654
|
-
{
|
|
1655
|
-
"name": "required",
|
|
1656
|
-
"description": "是否必填",
|
|
1657
|
-
"type": "boolean"
|
|
1658
|
-
},
|
|
1659
|
-
{
|
|
1660
|
-
"name": "rangeType",
|
|
1661
|
-
"description": "时间段类型",
|
|
1662
|
-
"attribute": false,
|
|
1663
|
-
"type": "RangeType"
|
|
1664
|
-
},
|
|
1665
|
-
{
|
|
1666
|
-
"name": "selectNearDays",
|
|
1667
|
-
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1668
|
-
"type": "number"
|
|
1669
|
-
},
|
|
1670
|
-
{
|
|
1671
|
-
"name": "emitChangeOnInit",
|
|
1672
|
-
"description": "",
|
|
1673
|
-
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1674
|
-
"type": "boolean"
|
|
1675
|
-
},
|
|
1676
|
-
{
|
|
1677
|
-
"name": "presetRanges",
|
|
1678
|
-
"description": "",
|
|
1679
|
-
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1680
|
-
"attribute": false,
|
|
1681
|
-
"type": "presetRangeType[]"
|
|
1682
|
-
},
|
|
1683
|
-
{
|
|
1684
|
-
"name": "validator",
|
|
1685
|
-
"attribute": false,
|
|
1686
|
-
"type": "((value: any) => MessageBody | string)"
|
|
1687
|
-
}
|
|
1688
|
-
],
|
|
1689
|
-
"events": [
|
|
1690
|
-
{
|
|
1691
|
-
"name": "change",
|
|
1692
|
-
"description": "时间段变化时触发",
|
|
1693
|
-
"detail": {
|
|
1694
|
-
"type": "TimeRange"
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
],
|
|
1698
|
-
"slots": [],
|
|
1699
|
-
"methods": [],
|
|
1700
|
-
"parts": [],
|
|
1701
|
-
"description": "时间区间选择器",
|
|
1702
|
-
"category": "form-input-basic"
|
|
1703
|
-
},
|
|
1704
1704
|
{
|
|
1705
1705
|
"name": "eo-color-picker",
|
|
1706
1706
|
"properties": [
|