@next-bricks/form 1.5.0 → 1.6.0

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.
Files changed (32) hide show
  1. package/dist/bricks.json +7 -7
  2. package/dist/chunks/{1832.b1430978.js → 1832.303056c6.js} +2 -2
  3. package/dist/chunks/{1832.b1430978.js.map → 1832.303056c6.js.map} +1 -1
  4. package/dist/chunks/{2560.82aaec19.js → 2560.69257749.js} +2 -2
  5. package/dist/chunks/{2560.82aaec19.js.map → 2560.69257749.js.map} +1 -1
  6. package/dist/chunks/4036.5b205b8b.js +2 -0
  7. package/dist/chunks/4036.5b205b8b.js.map +1 -0
  8. package/dist/chunks/eo-auto-complete.25cbac01.js +3 -0
  9. package/dist/chunks/eo-auto-complete.25cbac01.js.map +1 -0
  10. package/dist/chunks/eo-form-item.7f4fdff7.js +3 -0
  11. package/dist/chunks/eo-form-item.7f4fdff7.js.map +1 -0
  12. package/dist/chunks/eo-textarea.d6733bd8.js +3 -0
  13. package/dist/chunks/eo-textarea.d6733bd8.js.map +1 -0
  14. package/dist/chunks/{main.62e4dc26.js → main.fcc7b748.js} +2 -2
  15. package/dist/chunks/{main.62e4dc26.js.map → main.fcc7b748.js.map} +1 -1
  16. package/dist/examples.json +6 -6
  17. package/dist/{index.361b3bf3.js → index.9494fd96.js} +2 -2
  18. package/dist/{index.361b3bf3.js.map → index.9494fd96.js.map} +1 -1
  19. package/dist/manifest.json +172 -172
  20. package/dist-types/form-item/index.d.ts +1 -0
  21. package/package.json +2 -2
  22. package/dist/chunks/4036.a2a3ee17.js +0 -2
  23. package/dist/chunks/4036.a2a3ee17.js.map +0 -1
  24. package/dist/chunks/eo-auto-complete.5e346e2a.js +0 -3
  25. package/dist/chunks/eo-auto-complete.5e346e2a.js.map +0 -1
  26. package/dist/chunks/eo-form-item.e87bfbf2.js +0 -3
  27. package/dist/chunks/eo-form-item.e87bfbf2.js.map +0 -1
  28. package/dist/chunks/eo-textarea.c632fed0.js +0 -3
  29. package/dist/chunks/eo-textarea.c632fed0.js.map +0 -1
  30. /package/dist/chunks/{eo-auto-complete.5e346e2a.js.LICENSE.txt → eo-auto-complete.25cbac01.js.LICENSE.txt} +0 -0
  31. /package/dist/chunks/{eo-form-item.e87bfbf2.js.LICENSE.txt → eo-form-item.7f4fdff7.js.LICENSE.txt} +0 -0
  32. /package/dist/chunks/{eo-textarea.c632fed0.js.LICENSE.txt → eo-textarea.d6733bd8.js.LICENSE.txt} +0 -0
@@ -378,104 +378,6 @@
378
378
  "category": "form-input-basic",
379
379
  "insider": true
380
380
  },
381
- {
382
- "name": "eo-radio",
383
- "alias": [
384
- "form.general-radio"
385
- ],
386
- "properties": [
387
- {
388
- "name": "name",
389
- "description": "下拉框字段名",
390
- "type": "string"
391
- },
392
- {
393
- "name": "label",
394
- "description": "单选框字段说明",
395
- "type": "string"
396
- },
397
- {
398
- "name": "options",
399
- "description": "单选框选项表",
400
- "required": true,
401
- "attribute": false,
402
- "type": "GeneralOption[]"
403
- },
404
- {
405
- "name": "value",
406
- "description": "单选框当前选中始值",
407
- "attribute": false,
408
- "type": "any"
409
- },
410
- {
411
- "name": "required",
412
- "description": "是否必填",
413
- "type": "boolean"
414
- },
415
- {
416
- "name": "message",
417
- "description": "校验文本信息",
418
- "attribute": false,
419
- "type": "Record<string, string>"
420
- },
421
- {
422
- "name": "disabled",
423
- "description": "是否禁用",
424
- "type": "boolean"
425
- },
426
- {
427
- "name": "type",
428
- "description": "单选框样式类型",
429
- "default": "\"default\"",
430
- "type": "RadioType"
431
- },
432
- {
433
- "name": "ui",
434
- "description": "UI样式",
435
- "default": "\"default\"",
436
- "type": "UIType"
437
- },
438
- {
439
- "name": "size",
440
- "description": "大小,只对按钮样式生效",
441
- "default": "\"medium\"",
442
- "type": "ComponentSize"
443
- },
444
- {
445
- "name": "customStyle",
446
- "description": "自定义radio的外层样式",
447
- "attribute": false,
448
- "type": "React.CSSProperties"
449
- },
450
- {
451
- "name": "useBrick",
452
- "description": "自定义radio的内容",
453
- "attribute": false,
454
- "type": "UseSingleBrickConf"
455
- }
456
- ],
457
- "events": [
458
- {
459
- "name": "change",
460
- "description": "值变化事件",
461
- "detail": {
462
- "type": "GeneralComplexOption | undefined"
463
- }
464
- },
465
- {
466
- "name": "options.change",
467
- "description": "选项列表变化事件",
468
- "detail": {
469
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
470
- }
471
- }
472
- ],
473
- "slots": [],
474
- "methods": [],
475
- "parts": [],
476
- "description": "通用单选构件",
477
- "category": "form-input-basic"
478
- },
479
381
  {
480
382
  "name": "eo-form",
481
383
  "alias": [
@@ -607,6 +509,104 @@
607
509
  "description": "表单构件",
608
510
  "category": "form-input-basic"
609
511
  },
512
+ {
513
+ "name": "eo-radio",
514
+ "alias": [
515
+ "form.general-radio"
516
+ ],
517
+ "properties": [
518
+ {
519
+ "name": "name",
520
+ "description": "下拉框字段名",
521
+ "type": "string"
522
+ },
523
+ {
524
+ "name": "label",
525
+ "description": "单选框字段说明",
526
+ "type": "string"
527
+ },
528
+ {
529
+ "name": "options",
530
+ "description": "单选框选项表",
531
+ "required": true,
532
+ "attribute": false,
533
+ "type": "GeneralOption[]"
534
+ },
535
+ {
536
+ "name": "value",
537
+ "description": "单选框当前选中始值",
538
+ "attribute": false,
539
+ "type": "any"
540
+ },
541
+ {
542
+ "name": "required",
543
+ "description": "是否必填",
544
+ "type": "boolean"
545
+ },
546
+ {
547
+ "name": "message",
548
+ "description": "校验文本信息",
549
+ "attribute": false,
550
+ "type": "Record<string, string>"
551
+ },
552
+ {
553
+ "name": "disabled",
554
+ "description": "是否禁用",
555
+ "type": "boolean"
556
+ },
557
+ {
558
+ "name": "type",
559
+ "description": "单选框样式类型",
560
+ "default": "\"default\"",
561
+ "type": "RadioType"
562
+ },
563
+ {
564
+ "name": "ui",
565
+ "description": "UI样式",
566
+ "default": "\"default\"",
567
+ "type": "UIType"
568
+ },
569
+ {
570
+ "name": "size",
571
+ "description": "大小,只对按钮样式生效",
572
+ "default": "\"medium\"",
573
+ "type": "ComponentSize"
574
+ },
575
+ {
576
+ "name": "customStyle",
577
+ "description": "自定义radio的外层样式",
578
+ "attribute": false,
579
+ "type": "React.CSSProperties"
580
+ },
581
+ {
582
+ "name": "useBrick",
583
+ "description": "自定义radio的内容",
584
+ "attribute": false,
585
+ "type": "UseSingleBrickConf"
586
+ }
587
+ ],
588
+ "events": [
589
+ {
590
+ "name": "change",
591
+ "description": "值变化事件",
592
+ "detail": {
593
+ "type": "GeneralComplexOption | undefined"
594
+ }
595
+ },
596
+ {
597
+ "name": "options.change",
598
+ "description": "选项列表变化事件",
599
+ "detail": {
600
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
601
+ }
602
+ }
603
+ ],
604
+ "slots": [],
605
+ "methods": [],
606
+ "parts": [],
607
+ "description": "通用单选构件",
608
+ "category": "form-input-basic"
609
+ },
610
610
  {
611
611
  "name": "eo-select",
612
612
  "alias": [
@@ -1370,28 +1370,33 @@
1370
1370
  "category": "form-input-basic"
1371
1371
  },
1372
1372
  {
1373
- "name": "eo-auto-complete",
1373
+ "name": "eo-time-picker",
1374
1374
  "properties": [
1375
1375
  {
1376
1376
  "name": "name",
1377
- "description": "字段名称",
1377
+ "description": "时间选择器字段名",
1378
1378
  "type": "string"
1379
1379
  },
1380
1380
  {
1381
- "name": "placeholder",
1382
- "description": "占位说明",
1381
+ "name": "label",
1382
+ "description": "时间选择器说明",
1383
1383
  "type": "string"
1384
1384
  },
1385
1385
  {
1386
- "name": "label",
1387
- "description": "字段文本",
1386
+ "name": "value",
1387
+ "description": "时间选择器的初始值",
1388
1388
  "type": "string"
1389
1389
  },
1390
1390
  {
1391
- "name": "inputStyle",
1392
- "description": "输入框样式",
1391
+ "name": "placeholder",
1392
+ "description": "时间选择器占位说明",
1393
+ "type": "string"
1394
+ },
1395
+ {
1396
+ "name": "message",
1397
+ "description": "校验文本信息",
1393
1398
  "attribute": false,
1394
- "type": "React.CSSProperties"
1399
+ "type": "Record<string, string>"
1395
1400
  },
1396
1401
  {
1397
1402
  "name": "disabled",
@@ -1404,43 +1409,30 @@
1404
1409
  "type": "boolean"
1405
1410
  },
1406
1411
  {
1407
- "name": "value",
1408
- "type": "string"
1409
- },
1410
- {
1411
- "name": "options",
1412
- "description": "选项列表",
1413
- "required": true,
1414
- "attribute": false,
1415
- "type": "string[] | OptionType[]"
1416
- },
1417
- {
1418
- "name": "filterByCaption",
1419
- "description": "搜索时是否根据caption过滤options",
1420
- "type": "boolean"
1421
- },
1422
- {
1423
- "name": "validator",
1424
- "description": "表单项校验方法",
1425
- "attribute": false,
1426
- "type": "((value: any) => MessageBody)"
1427
- },
1428
- {
1429
- "name": "pattern",
1430
- "description": "正则校验规则",
1431
- "type": "string"
1432
- },
1433
- {
1434
- "name": "message",
1435
- "description": "校验文本信息",
1412
+ "name": "configProps",
1413
+ "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1436
1414
  "attribute": false,
1437
- "type": "Record<string, string>"
1415
+ "type": "Partial<TimePickerProps>"
1438
1416
  }
1439
1417
  ],
1440
1418
  "events": [
1441
1419
  {
1442
1420
  "name": "change",
1443
- "description": "值改变事件",
1421
+ "description": "时间变化时触发",
1422
+ "detail": {
1423
+ "type": "string"
1424
+ }
1425
+ },
1426
+ {
1427
+ "name": "open",
1428
+ "description": "面板打开时触发, 传出当前时间值",
1429
+ "detail": {
1430
+ "type": "string"
1431
+ }
1432
+ },
1433
+ {
1434
+ "name": "close",
1435
+ "description": "面板关闭时触发,传出当前时间值",
1444
1436
  "detail": {
1445
1437
  "type": "string"
1446
1438
  }
@@ -1449,37 +1441,32 @@
1449
1441
  "slots": [],
1450
1442
  "methods": [],
1451
1443
  "parts": [],
1452
- "description": "带候选项的输入框",
1444
+ "description": "时间选择器",
1453
1445
  "category": "form-input-basic"
1454
1446
  },
1455
1447
  {
1456
- "name": "eo-time-picker",
1448
+ "name": "eo-auto-complete",
1457
1449
  "properties": [
1458
1450
  {
1459
1451
  "name": "name",
1460
- "description": "时间选择器字段名",
1461
- "type": "string"
1462
- },
1463
- {
1464
- "name": "label",
1465
- "description": "时间选择器说明",
1452
+ "description": "字段名称",
1466
1453
  "type": "string"
1467
1454
  },
1468
1455
  {
1469
- "name": "value",
1470
- "description": "时间选择器的初始值",
1456
+ "name": "placeholder",
1457
+ "description": "占位说明",
1471
1458
  "type": "string"
1472
1459
  },
1473
1460
  {
1474
- "name": "placeholder",
1475
- "description": "时间选择器占位说明",
1461
+ "name": "label",
1462
+ "description": "字段文本",
1476
1463
  "type": "string"
1477
1464
  },
1478
1465
  {
1479
- "name": "message",
1480
- "description": "校验文本信息",
1466
+ "name": "inputStyle",
1467
+ "description": "输入框样式",
1481
1468
  "attribute": false,
1482
- "type": "Record<string, string>"
1469
+ "type": "React.CSSProperties"
1483
1470
  },
1484
1471
  {
1485
1472
  "name": "disabled",
@@ -1492,30 +1479,43 @@
1492
1479
  "type": "boolean"
1493
1480
  },
1494
1481
  {
1495
- "name": "configProps",
1496
- "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1482
+ "name": "value",
1483
+ "type": "string"
1484
+ },
1485
+ {
1486
+ "name": "options",
1487
+ "description": "选项列表",
1488
+ "required": true,
1497
1489
  "attribute": false,
1498
- "type": "Partial<TimePickerProps>"
1499
- }
1500
- ],
1501
- "events": [
1490
+ "type": "string[] | OptionType[]"
1491
+ },
1502
1492
  {
1503
- "name": "change",
1504
- "description": "时间变化时触发",
1505
- "detail": {
1506
- "type": "string"
1507
- }
1493
+ "name": "filterByCaption",
1494
+ "description": "搜索时是否根据caption过滤options",
1495
+ "type": "boolean"
1508
1496
  },
1509
1497
  {
1510
- "name": "open",
1511
- "description": "面板打开时触发, 传出当前时间值",
1512
- "detail": {
1513
- "type": "string"
1514
- }
1498
+ "name": "validator",
1499
+ "description": "表单项校验方法",
1500
+ "attribute": false,
1501
+ "type": "((value: any) => MessageBody)"
1515
1502
  },
1516
1503
  {
1517
- "name": "close",
1518
- "description": "面板关闭时触发,传出当前时间值",
1504
+ "name": "pattern",
1505
+ "description": "正则校验规则",
1506
+ "type": "string"
1507
+ },
1508
+ {
1509
+ "name": "message",
1510
+ "description": "校验文本信息",
1511
+ "attribute": false,
1512
+ "type": "Record<string, string>"
1513
+ }
1514
+ ],
1515
+ "events": [
1516
+ {
1517
+ "name": "change",
1518
+ "description": "值改变事件",
1519
1519
  "detail": {
1520
1520
  "type": "string"
1521
1521
  }
@@ -1524,7 +1524,7 @@
1524
1524
  "slots": [],
1525
1525
  "methods": [],
1526
1526
  "parts": [],
1527
- "description": "时间选择器",
1527
+ "description": "带候选项的输入框",
1528
1528
  "category": "form-input-basic"
1529
1529
  },
1530
1530
  {
@@ -29,6 +29,7 @@ export interface FormItemProps {
29
29
  notRender?: boolean;
30
30
  helpBrick?: {
31
31
  useBrick: UseSingleBrickConf | UseSingleBrickConf[];
32
+ placement?: "right" | "bottom";
32
33
  };
33
34
  labelBrick?: {
34
35
  useBrick: UseSingleBrickConf | UseSingleBrickConf[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/form",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,5 +43,5 @@
43
43
  "@next-bricks/icons": "*",
44
44
  "@next-bricks/illustrations": "*"
45
45
  },
46
- "gitHead": "fe516f9a8844e037bceeb514ef042d082512a0b1"
46
+ "gitHead": "628c4457f77098c4134d97a90de449fd036c6b36"
47
47
  }