@next-bricks/form 1.13.15 → 1.14.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 +14 -14
- package/dist/chunks/{9259.e2fc3b35.js → 9259.c9118789.js} +3 -3
- package/dist/chunks/9259.c9118789.js.map +1 -0
- package/dist/chunks/eo-time-range-picker.bf6d37b2.js +2 -0
- package/dist/chunks/eo-time-range-picker.bf6d37b2.js.map +1 -0
- package/dist/chunks/{main.a4ade901.js → main.697a615b.js} +2 -2
- package/dist/chunks/{main.a4ade901.js.map → main.697a615b.js.map} +1 -1
- package/dist/examples.json +6 -6
- package/dist/{index.0610ed74.js → index.165dd6bf.js} +2 -2
- package/dist/{index.0610ed74.js.map → index.165dd6bf.js.map} +1 -1
- package/dist/manifest.json +208 -196
- package/dist/types.json +230 -188
- package/dist-types/time-range-picker/index.d.ts +11 -1
- package/package.json +2 -2
- package/dist/chunks/9259.e2fc3b35.js.map +0 -1
- package/dist/chunks/eo-time-range-picker.9bc8a20e.js +0 -2
- package/dist/chunks/eo-time-range-picker.9bc8a20e.js.map +0 -1
- /package/dist/chunks/{9259.e2fc3b35.js.LICENSE.txt → 9259.c9118789.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -286,146 +286,6 @@
|
|
|
286
286
|
"description": "通用多行文本输入框构件",
|
|
287
287
|
"category": "form-input-basic"
|
|
288
288
|
},
|
|
289
|
-
{
|
|
290
|
-
"name": "eo-form",
|
|
291
|
-
"alias": [
|
|
292
|
-
"form.general-form"
|
|
293
|
-
],
|
|
294
|
-
"properties": [
|
|
295
|
-
{
|
|
296
|
-
"name": "staticValues",
|
|
297
|
-
"attribute": false,
|
|
298
|
-
"type": "Record<string, unknown>"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"name": "layout",
|
|
302
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
303
|
-
"default": "vertical",
|
|
304
|
-
"type": "Layout"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"name": "size",
|
|
308
|
-
"description": "表单组件尺寸",
|
|
309
|
-
"type": "ComponentSize"
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"name": "labelCol",
|
|
313
|
-
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
314
|
-
"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 }",
|
|
315
|
-
"attribute": false,
|
|
316
|
-
"type": "ColProps"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"name": "wrapperCol",
|
|
320
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
321
|
-
"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 }",
|
|
322
|
-
"attribute": false,
|
|
323
|
-
"type": "ColProps"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"name": "formStyle",
|
|
327
|
-
"attribute": false,
|
|
328
|
-
"type": "React.CSSProperties"
|
|
329
|
-
}
|
|
330
|
-
],
|
|
331
|
-
"events": [
|
|
332
|
-
{
|
|
333
|
-
"name": "values.change",
|
|
334
|
-
"description": "表单值变更事件",
|
|
335
|
-
"detail": {
|
|
336
|
-
"description": null,
|
|
337
|
-
"type": "Record<string, unknown>"
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"name": "validate.success",
|
|
342
|
-
"description": "表单验证成功时触发事件",
|
|
343
|
-
"detail": {
|
|
344
|
-
"type": "Record<string, unknown>"
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"name": "validate.error",
|
|
349
|
-
"description": "表单验证报错时触发事件",
|
|
350
|
-
"detail": {
|
|
351
|
-
"type": "(MessageBody & { name: string })[]"
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
],
|
|
355
|
-
"slots": [
|
|
356
|
-
{
|
|
357
|
-
"name": null,
|
|
358
|
-
"description": "表单内容"
|
|
359
|
-
}
|
|
360
|
-
],
|
|
361
|
-
"methods": [
|
|
362
|
-
{
|
|
363
|
-
"name": "validate",
|
|
364
|
-
"params": [],
|
|
365
|
-
"description": "表单校验方法",
|
|
366
|
-
"returns": {
|
|
367
|
-
"type": "boolean | Record<string, unknown>"
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"name": "setInitValue",
|
|
372
|
-
"params": [
|
|
373
|
-
{
|
|
374
|
-
"name": "values",
|
|
375
|
-
"type": "Record<string, unknown>"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"name": "options",
|
|
379
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
380
|
-
}
|
|
381
|
-
],
|
|
382
|
-
"description": "表单设置值方法",
|
|
383
|
-
"returns": {}
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"name": "resetFields",
|
|
387
|
-
"params": [
|
|
388
|
-
{
|
|
389
|
-
"name": "name",
|
|
390
|
-
"type": "string"
|
|
391
|
-
}
|
|
392
|
-
],
|
|
393
|
-
"description": "表单重置值方法",
|
|
394
|
-
"returns": {}
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"name": "getFieldsValue",
|
|
398
|
-
"params": [
|
|
399
|
-
{
|
|
400
|
-
"name": "name",
|
|
401
|
-
"type": "string"
|
|
402
|
-
}
|
|
403
|
-
],
|
|
404
|
-
"description": "获取表单值方法",
|
|
405
|
-
"returns": {}
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
"name": "validateField",
|
|
409
|
-
"params": [
|
|
410
|
-
{
|
|
411
|
-
"name": "name",
|
|
412
|
-
"type": "string"
|
|
413
|
-
}
|
|
414
|
-
],
|
|
415
|
-
"description": "校验表单字段方法",
|
|
416
|
-
"returns": {}
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"name": "resetValidateState",
|
|
420
|
-
"params": [],
|
|
421
|
-
"description": "重置表单校验状态方法",
|
|
422
|
-
"returns": {}
|
|
423
|
-
}
|
|
424
|
-
],
|
|
425
|
-
"parts": [],
|
|
426
|
-
"description": "表单构件",
|
|
427
|
-
"category": "form-input-basic"
|
|
428
|
-
},
|
|
429
289
|
{
|
|
430
290
|
"name": "eo-form-item",
|
|
431
291
|
"alias": [
|
|
@@ -627,6 +487,146 @@
|
|
|
627
487
|
"description": "通用单选构件",
|
|
628
488
|
"category": "form-input-basic"
|
|
629
489
|
},
|
|
490
|
+
{
|
|
491
|
+
"name": "eo-form",
|
|
492
|
+
"alias": [
|
|
493
|
+
"form.general-form"
|
|
494
|
+
],
|
|
495
|
+
"properties": [
|
|
496
|
+
{
|
|
497
|
+
"name": "staticValues",
|
|
498
|
+
"attribute": false,
|
|
499
|
+
"type": "Record<string, unknown>"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "layout",
|
|
503
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
504
|
+
"default": "vertical",
|
|
505
|
+
"type": "Layout"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "size",
|
|
509
|
+
"description": "表单组件尺寸",
|
|
510
|
+
"type": "ComponentSize"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "labelCol",
|
|
514
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
515
|
+
"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 }",
|
|
516
|
+
"attribute": false,
|
|
517
|
+
"type": "ColProps"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "wrapperCol",
|
|
521
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
522
|
+
"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 }",
|
|
523
|
+
"attribute": false,
|
|
524
|
+
"type": "ColProps"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "formStyle",
|
|
528
|
+
"attribute": false,
|
|
529
|
+
"type": "React.CSSProperties"
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
"events": [
|
|
533
|
+
{
|
|
534
|
+
"name": "values.change",
|
|
535
|
+
"description": "表单值变更事件",
|
|
536
|
+
"detail": {
|
|
537
|
+
"description": null,
|
|
538
|
+
"type": "Record<string, unknown>"
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "validate.success",
|
|
543
|
+
"description": "表单验证成功时触发事件",
|
|
544
|
+
"detail": {
|
|
545
|
+
"type": "Record<string, unknown>"
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "validate.error",
|
|
550
|
+
"description": "表单验证报错时触发事件",
|
|
551
|
+
"detail": {
|
|
552
|
+
"type": "(MessageBody & { name: string })[]"
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
"slots": [
|
|
557
|
+
{
|
|
558
|
+
"name": null,
|
|
559
|
+
"description": "表单内容"
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
"methods": [
|
|
563
|
+
{
|
|
564
|
+
"name": "validate",
|
|
565
|
+
"params": [],
|
|
566
|
+
"description": "表单校验方法",
|
|
567
|
+
"returns": {
|
|
568
|
+
"type": "boolean | Record<string, unknown>"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "setInitValue",
|
|
573
|
+
"params": [
|
|
574
|
+
{
|
|
575
|
+
"name": "values",
|
|
576
|
+
"type": "Record<string, unknown>"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "options",
|
|
580
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
"description": "表单设置值方法",
|
|
584
|
+
"returns": {}
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"name": "resetFields",
|
|
588
|
+
"params": [
|
|
589
|
+
{
|
|
590
|
+
"name": "name",
|
|
591
|
+
"type": "string"
|
|
592
|
+
}
|
|
593
|
+
],
|
|
594
|
+
"description": "表单重置值方法",
|
|
595
|
+
"returns": {}
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "getFieldsValue",
|
|
599
|
+
"params": [
|
|
600
|
+
{
|
|
601
|
+
"name": "name",
|
|
602
|
+
"type": "string"
|
|
603
|
+
}
|
|
604
|
+
],
|
|
605
|
+
"description": "获取表单值方法",
|
|
606
|
+
"returns": {}
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"name": "validateField",
|
|
610
|
+
"params": [
|
|
611
|
+
{
|
|
612
|
+
"name": "name",
|
|
613
|
+
"type": "string"
|
|
614
|
+
}
|
|
615
|
+
],
|
|
616
|
+
"description": "校验表单字段方法",
|
|
617
|
+
"returns": {}
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"name": "resetValidateState",
|
|
621
|
+
"params": [],
|
|
622
|
+
"description": "重置表单校验状态方法",
|
|
623
|
+
"returns": {}
|
|
624
|
+
}
|
|
625
|
+
],
|
|
626
|
+
"parts": [],
|
|
627
|
+
"description": "表单构件",
|
|
628
|
+
"category": "form-input-basic"
|
|
629
|
+
},
|
|
630
630
|
{
|
|
631
631
|
"name": "eo-select",
|
|
632
632
|
"alias": [
|
|
@@ -1136,9 +1136,9 @@
|
|
|
1136
1136
|
"category": "form-input-basic"
|
|
1137
1137
|
},
|
|
1138
1138
|
{
|
|
1139
|
-
"name": "eo-
|
|
1139
|
+
"name": "eo-switch",
|
|
1140
1140
|
"alias": [
|
|
1141
|
-
"form.
|
|
1141
|
+
"form.general-switch"
|
|
1142
1142
|
],
|
|
1143
1143
|
"properties": [
|
|
1144
1144
|
{
|
|
@@ -1148,66 +1148,66 @@
|
|
|
1148
1148
|
},
|
|
1149
1149
|
{
|
|
1150
1150
|
"name": "label",
|
|
1151
|
-
"description": "
|
|
1151
|
+
"description": "字段文本",
|
|
1152
1152
|
"type": "string"
|
|
1153
1153
|
},
|
|
1154
1154
|
{
|
|
1155
1155
|
"name": "value",
|
|
1156
|
-
"description": "
|
|
1157
|
-
"
|
|
1158
|
-
"type": "ImageData[]"
|
|
1156
|
+
"description": "初始值",
|
|
1157
|
+
"type": "boolean"
|
|
1159
1158
|
},
|
|
1160
1159
|
{
|
|
1161
|
-
"name": "
|
|
1162
|
-
"description": "
|
|
1163
|
-
"type": "
|
|
1160
|
+
"name": "disabled",
|
|
1161
|
+
"description": "是否禁用",
|
|
1162
|
+
"type": "boolean"
|
|
1164
1163
|
},
|
|
1165
1164
|
{
|
|
1166
|
-
"name": "
|
|
1167
|
-
"description": "
|
|
1168
|
-
"type": "
|
|
1165
|
+
"name": "size",
|
|
1166
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
1167
|
+
"type": "ComponentSize"
|
|
1169
1168
|
},
|
|
1170
1169
|
{
|
|
1171
|
-
"name": "
|
|
1172
|
-
"description": "
|
|
1173
|
-
"type": "
|
|
1170
|
+
"name": "checkedText",
|
|
1171
|
+
"description": "选中时的文本",
|
|
1172
|
+
"type": "string"
|
|
1174
1173
|
},
|
|
1175
1174
|
{
|
|
1176
|
-
"name": "
|
|
1177
|
-
"description": "
|
|
1178
|
-
"type": "
|
|
1175
|
+
"name": "unCheckedText",
|
|
1176
|
+
"description": "非选中时的文本",
|
|
1177
|
+
"type": "string"
|
|
1179
1178
|
},
|
|
1180
1179
|
{
|
|
1181
|
-
"name": "
|
|
1182
|
-
"description": "
|
|
1183
|
-
"
|
|
1180
|
+
"name": "checkedIcon",
|
|
1181
|
+
"description": "选中时的图标",
|
|
1182
|
+
"attribute": false,
|
|
1183
|
+
"type": "GeneralIconProps"
|
|
1184
1184
|
},
|
|
1185
1185
|
{
|
|
1186
|
-
"name": "
|
|
1187
|
-
"description": "
|
|
1186
|
+
"name": "unCheckedIcon",
|
|
1187
|
+
"description": "非选中时的文本",
|
|
1188
1188
|
"attribute": false,
|
|
1189
|
-
"type": "
|
|
1189
|
+
"type": "GeneralIconProps"
|
|
1190
1190
|
}
|
|
1191
1191
|
],
|
|
1192
1192
|
"events": [
|
|
1193
1193
|
{
|
|
1194
|
-
"name": "
|
|
1195
|
-
"description": "
|
|
1194
|
+
"name": "switch",
|
|
1195
|
+
"description": "开关改变时触发",
|
|
1196
1196
|
"detail": {
|
|
1197
|
-
"type": "
|
|
1197
|
+
"type": "boolean"
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
],
|
|
1201
1201
|
"slots": [],
|
|
1202
1202
|
"methods": [],
|
|
1203
1203
|
"parts": [],
|
|
1204
|
-
"description": "
|
|
1204
|
+
"description": "开关",
|
|
1205
1205
|
"category": "form-input-basic"
|
|
1206
1206
|
},
|
|
1207
1207
|
{
|
|
1208
|
-
"name": "eo-
|
|
1208
|
+
"name": "eo-upload-image",
|
|
1209
1209
|
"alias": [
|
|
1210
|
-
"form.
|
|
1210
|
+
"form.upload-image"
|
|
1211
1211
|
],
|
|
1212
1212
|
"properties": [
|
|
1213
1213
|
{
|
|
@@ -1217,60 +1217,60 @@
|
|
|
1217
1217
|
},
|
|
1218
1218
|
{
|
|
1219
1219
|
"name": "label",
|
|
1220
|
-
"description": "
|
|
1220
|
+
"description": "字段说明",
|
|
1221
1221
|
"type": "string"
|
|
1222
1222
|
},
|
|
1223
1223
|
{
|
|
1224
1224
|
"name": "value",
|
|
1225
|
-
"description": "
|
|
1226
|
-
"
|
|
1225
|
+
"description": "值",
|
|
1226
|
+
"attribute": false,
|
|
1227
|
+
"type": "ImageData[]"
|
|
1227
1228
|
},
|
|
1228
1229
|
{
|
|
1229
|
-
"name": "
|
|
1230
|
-
"description": "
|
|
1231
|
-
"type": "
|
|
1230
|
+
"name": "bucketName",
|
|
1231
|
+
"description": "对象存储桶名字",
|
|
1232
|
+
"type": "string"
|
|
1232
1233
|
},
|
|
1233
1234
|
{
|
|
1234
|
-
"name": "
|
|
1235
|
-
"description": "
|
|
1236
|
-
"type": "
|
|
1235
|
+
"name": "maxCount",
|
|
1236
|
+
"description": "最大上传数量",
|
|
1237
|
+
"type": "number"
|
|
1237
1238
|
},
|
|
1238
1239
|
{
|
|
1239
|
-
"name": "
|
|
1240
|
-
"description": "
|
|
1241
|
-
"type": "
|
|
1240
|
+
"name": "multiple",
|
|
1241
|
+
"description": "是否支持选定的多张图片",
|
|
1242
|
+
"type": "boolean"
|
|
1242
1243
|
},
|
|
1243
1244
|
{
|
|
1244
|
-
"name": "
|
|
1245
|
-
"description": "
|
|
1246
|
-
"type": "
|
|
1245
|
+
"name": "limitSize",
|
|
1246
|
+
"description": "上传大小限制(单位为 MB)",
|
|
1247
|
+
"type": "number"
|
|
1247
1248
|
},
|
|
1248
1249
|
{
|
|
1249
|
-
"name": "
|
|
1250
|
-
"description": "
|
|
1251
|
-
"
|
|
1252
|
-
"type": "GeneralIconProps"
|
|
1250
|
+
"name": "required",
|
|
1251
|
+
"description": "是否必填",
|
|
1252
|
+
"type": "boolean"
|
|
1253
1253
|
},
|
|
1254
1254
|
{
|
|
1255
|
-
"name": "
|
|
1256
|
-
"description": "
|
|
1255
|
+
"name": "message",
|
|
1256
|
+
"description": "校验文本信息",
|
|
1257
1257
|
"attribute": false,
|
|
1258
|
-
"type": "
|
|
1258
|
+
"type": "Record<string, string>"
|
|
1259
1259
|
}
|
|
1260
1260
|
],
|
|
1261
1261
|
"events": [
|
|
1262
1262
|
{
|
|
1263
|
-
"name": "
|
|
1264
|
-
"description": "
|
|
1263
|
+
"name": "change",
|
|
1264
|
+
"description": "值变化时触发",
|
|
1265
1265
|
"detail": {
|
|
1266
|
-
"type": "
|
|
1266
|
+
"type": "ImageData[]"
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
1269
|
],
|
|
1270
1270
|
"slots": [],
|
|
1271
1271
|
"methods": [],
|
|
1272
1272
|
"parts": [],
|
|
1273
|
-
"description": "
|
|
1273
|
+
"description": "上传图片构件",
|
|
1274
1274
|
"category": "form-input-basic"
|
|
1275
1275
|
},
|
|
1276
1276
|
{
|
|
@@ -1685,6 +1685,18 @@
|
|
|
1685
1685
|
"attribute": false,
|
|
1686
1686
|
"type": "RangeType"
|
|
1687
1687
|
},
|
|
1688
|
+
{
|
|
1689
|
+
"name": "placeholder",
|
|
1690
|
+
"description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
|
|
1691
|
+
"attribute": false,
|
|
1692
|
+
"type": "string | [string, string]"
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"name": "inputStyle",
|
|
1696
|
+
"description": "输入框样式",
|
|
1697
|
+
"attribute": false,
|
|
1698
|
+
"type": "React.CSSProperties"
|
|
1699
|
+
},
|
|
1688
1700
|
{
|
|
1689
1701
|
"name": "selectNearDays",
|
|
1690
1702
|
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|