@next-bricks/form 0.17.1 → 0.17.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.
Files changed (156) hide show
  1. package/dist/bricks.json +8 -2
  2. package/dist/chunks/{1646.23e95ff8.js → 1646.27e1c127.js} +2 -2
  3. package/dist/chunks/{1646.23e95ff8.js.map → 1646.27e1c127.js.map} +1 -1
  4. package/dist/chunks/1874.42255692.js +2 -0
  5. package/dist/chunks/1874.42255692.js.map +1 -0
  6. package/dist/chunks/{2179.3978ec8e.js → 2179.b0d8286f.js} +2 -2
  7. package/dist/chunks/{2179.3978ec8e.js.map → 2179.b0d8286f.js.map} +1 -1
  8. package/dist/chunks/3458.0b13e21e.js +2 -0
  9. package/dist/chunks/{3458.d461b3bc.js.map → 3458.0b13e21e.js.map} +1 -1
  10. package/dist/chunks/{4049.e0c217f2.js → 4049.2763572b.js} +2 -2
  11. package/dist/chunks/4049.2763572b.js.map +1 -0
  12. package/dist/chunks/443.3a28ae12.js +2 -0
  13. package/dist/chunks/443.3a28ae12.js.map +1 -0
  14. package/dist/chunks/4540.4dd97c77.js +2 -0
  15. package/dist/chunks/4540.4dd97c77.js.map +1 -0
  16. package/dist/chunks/4717.4f4beb01.js.map +1 -1
  17. package/dist/chunks/4991.8548f1af.js +2 -0
  18. package/dist/chunks/4991.8548f1af.js.map +1 -0
  19. package/dist/chunks/{5151.c93ce6c1.js → 5151.04c4e5c0.js} +2 -2
  20. package/dist/chunks/5151.04c4e5c0.js.map +1 -0
  21. package/dist/chunks/5202.8821035d.js.map +1 -1
  22. package/dist/chunks/{5381.cd0e1c89.js → 5381.1918196f.js} +2 -2
  23. package/dist/chunks/{5381.cd0e1c89.js.map → 5381.1918196f.js.map} +1 -1
  24. package/dist/chunks/{5636.676bad66.js → 5636.51dc47c0.js} +2 -2
  25. package/dist/chunks/{5636.676bad66.js.map → 5636.51dc47c0.js.map} +1 -1
  26. package/dist/chunks/{5725.0778381b.js → 5725.5ce29d79.js} +2 -2
  27. package/dist/chunks/{7672.96369567.js.map → 5725.5ce29d79.js.map} +1 -1
  28. package/dist/chunks/{6205.2346b0f8.js → 6205.e4c2805d.js} +2 -2
  29. package/dist/chunks/{6205.2346b0f8.js.map → 6205.e4c2805d.js.map} +1 -1
  30. package/dist/chunks/{6473.3c8ba9ff.js → 6473.71593820.js} +2 -2
  31. package/dist/chunks/{6473.3c8ba9ff.js.map → 6473.71593820.js.map} +1 -1
  32. package/dist/chunks/6588.8163a616.js +2 -0
  33. package/dist/chunks/6588.8163a616.js.map +1 -0
  34. package/dist/chunks/{6660.e25f0c8c.js → 6660.df9ae169.js} +2 -2
  35. package/dist/chunks/{6660.e25f0c8c.js.map → 6660.df9ae169.js.map} +1 -1
  36. package/dist/chunks/7007.3625d844.js +3 -0
  37. package/dist/chunks/7007.3625d844.js.map +1 -0
  38. package/dist/chunks/{7164.55894c1f.js → 7164.9248fe3a.js} +2 -2
  39. package/dist/chunks/{7164.55894c1f.js.map → 7164.9248fe3a.js.map} +1 -1
  40. package/dist/chunks/{7672.96369567.js → 7672.173af46d.js} +2 -2
  41. package/dist/chunks/{5725.0778381b.js.map → 7672.173af46d.js.map} +1 -1
  42. package/dist/chunks/{7746.bf26e0a8.js → 7746.ac36f407.js} +2 -2
  43. package/dist/chunks/{7746.bf26e0a8.js.map → 7746.ac36f407.js.map} +1 -1
  44. package/dist/chunks/7782.5ae83019.js +2 -0
  45. package/dist/chunks/7782.5ae83019.js.map +1 -0
  46. package/dist/chunks/8498.5c946349.js.map +1 -1
  47. package/dist/chunks/8588.0c6b13bd.js +2 -0
  48. package/dist/chunks/8588.0c6b13bd.js.map +1 -0
  49. package/dist/chunks/8691.959c9280.js +2 -0
  50. package/dist/chunks/{8691.651a40a9.js.map → 8691.959c9280.js.map} +1 -1
  51. package/dist/chunks/9549.de31aced.js.map +1 -1
  52. package/dist/chunks/eo-auto-complete.b9e9cc9b.js +3 -0
  53. package/dist/chunks/eo-auto-complete.b9e9cc9b.js.map +1 -0
  54. package/dist/chunks/eo-checkbox.71457bfd.js +3 -0
  55. package/dist/chunks/eo-checkbox.71457bfd.js.map +1 -0
  56. package/dist/chunks/eo-dynamic-form-item.dc944ac8.js +2 -0
  57. package/dist/chunks/eo-dynamic-form-item.dc944ac8.js.map +1 -0
  58. package/dist/chunks/eo-form-item.ee3587d2.js +3 -0
  59. package/dist/chunks/eo-form-item.ee3587d2.js.map +1 -0
  60. package/dist/chunks/eo-form.97de4433.js +2 -0
  61. package/dist/chunks/eo-form.97de4433.js.map +1 -0
  62. package/dist/chunks/eo-icon-select.c1fd49ee.js +3 -0
  63. package/dist/chunks/eo-icon-select.c1fd49ee.js.map +1 -0
  64. package/dist/chunks/eo-input.3f5f7abc.js +3 -0
  65. package/dist/chunks/eo-input.3f5f7abc.js.map +1 -0
  66. package/dist/chunks/eo-radio.31ab90cd.js +3 -0
  67. package/dist/chunks/eo-radio.31ab90cd.js.map +1 -0
  68. package/dist/chunks/eo-search.b708170c.js +2 -0
  69. package/dist/chunks/eo-search.b708170c.js.map +1 -0
  70. package/dist/chunks/eo-select.e8831203.js +3 -0
  71. package/dist/chunks/eo-select.e8831203.js.map +1 -0
  72. package/dist/chunks/eo-submit-buttons.89422c1a.js +2 -0
  73. package/dist/chunks/eo-submit-buttons.89422c1a.js.map +1 -0
  74. package/dist/chunks/eo-switch.d655db5a.js +3 -0
  75. package/dist/chunks/eo-switch.d655db5a.js.map +1 -0
  76. package/dist/chunks/eo-textarea.b8fbe64c.js +3 -0
  77. package/dist/chunks/eo-textarea.b8fbe64c.js.map +1 -0
  78. package/dist/chunks/eo-upload-file.5333340e.js +2 -0
  79. package/dist/chunks/eo-upload-file.5333340e.js.map +1 -0
  80. package/dist/chunks/eo-upload-image.cc538980.js +2 -0
  81. package/dist/chunks/eo-upload-image.cc538980.js.map +1 -0
  82. package/dist/chunks/main.59545a10.js +2 -0
  83. package/dist/chunks/main.59545a10.js.map +1 -0
  84. package/dist/examples.json +3 -0
  85. package/dist/index.d731ecce.js +2 -0
  86. package/dist/index.d731ecce.js.map +1 -0
  87. package/dist/manifest.json +82 -0
  88. package/dist/types.json +267 -0
  89. package/dist-types/auto-complete/index.d.ts +80 -0
  90. package/dist-types/auto-complete/index.spec.d.ts +1 -0
  91. package/dist-types/bootstrap.d.ts +1 -0
  92. package/docs/eo-auto-complete.md +105 -0
  93. package/package.json +4 -4
  94. package/dist/chunks/1874.11744366.js +0 -2
  95. package/dist/chunks/1874.11744366.js.map +0 -1
  96. package/dist/chunks/1966.5be7af84.js +0 -2
  97. package/dist/chunks/1966.5be7af84.js.map +0 -1
  98. package/dist/chunks/2618.d0e2e643.js +0 -2
  99. package/dist/chunks/2618.d0e2e643.js.map +0 -1
  100. package/dist/chunks/2754.1313aa46.js +0 -2
  101. package/dist/chunks/2754.1313aa46.js.map +0 -1
  102. package/dist/chunks/3458.d461b3bc.js +0 -2
  103. package/dist/chunks/4049.e0c217f2.js.map +0 -1
  104. package/dist/chunks/4106.2c3ac870.js +0 -3
  105. package/dist/chunks/4106.2c3ac870.js.map +0 -1
  106. package/dist/chunks/4791.06b0142b.js +0 -2
  107. package/dist/chunks/4791.06b0142b.js.map +0 -1
  108. package/dist/chunks/5151.c93ce6c1.js.map +0 -1
  109. package/dist/chunks/7153.4476e036.js +0 -2
  110. package/dist/chunks/7153.4476e036.js.map +0 -1
  111. package/dist/chunks/7782.d942dcdf.js +0 -2
  112. package/dist/chunks/7782.d942dcdf.js.map +0 -1
  113. package/dist/chunks/8691.651a40a9.js +0 -2
  114. package/dist/chunks/eo-checkbox.f3f6e67c.js +0 -3
  115. package/dist/chunks/eo-checkbox.f3f6e67c.js.map +0 -1
  116. package/dist/chunks/eo-dynamic-form-item.c0cc4284.js +0 -2
  117. package/dist/chunks/eo-dynamic-form-item.c0cc4284.js.map +0 -1
  118. package/dist/chunks/eo-form-item.83e55b03.js +0 -3
  119. package/dist/chunks/eo-form-item.83e55b03.js.map +0 -1
  120. package/dist/chunks/eo-form.ea21fffb.js +0 -2
  121. package/dist/chunks/eo-form.ea21fffb.js.map +0 -1
  122. package/dist/chunks/eo-icon-select.1dfe2a56.js +0 -3
  123. package/dist/chunks/eo-icon-select.1dfe2a56.js.map +0 -1
  124. package/dist/chunks/eo-input.26d28bd2.js +0 -3
  125. package/dist/chunks/eo-input.26d28bd2.js.map +0 -1
  126. package/dist/chunks/eo-radio.0bcfd4c1.js +0 -3
  127. package/dist/chunks/eo-radio.0bcfd4c1.js.map +0 -1
  128. package/dist/chunks/eo-search.5523de54.js +0 -2
  129. package/dist/chunks/eo-search.5523de54.js.map +0 -1
  130. package/dist/chunks/eo-select.6a4726be.js +0 -3
  131. package/dist/chunks/eo-select.6a4726be.js.map +0 -1
  132. package/dist/chunks/eo-submit-buttons.308a07c3.js +0 -2
  133. package/dist/chunks/eo-submit-buttons.308a07c3.js.map +0 -1
  134. package/dist/chunks/eo-switch.bda4bf8c.js +0 -3
  135. package/dist/chunks/eo-switch.bda4bf8c.js.map +0 -1
  136. package/dist/chunks/eo-textarea.c39ca117.js +0 -3
  137. package/dist/chunks/eo-textarea.c39ca117.js.map +0 -1
  138. package/dist/chunks/eo-upload-file.08a5ad7f.js +0 -3
  139. package/dist/chunks/eo-upload-file.08a5ad7f.js.map +0 -1
  140. package/dist/chunks/eo-upload-image.d68610ef.js +0 -3
  141. package/dist/chunks/eo-upload-image.d68610ef.js.LICENSE.txt +0 -5
  142. package/dist/chunks/eo-upload-image.d68610ef.js.map +0 -1
  143. package/dist/chunks/main.1557f57d.js +0 -2
  144. package/dist/chunks/main.1557f57d.js.map +0 -1
  145. package/dist/index.df4d11aa.js +0 -2
  146. package/dist/index.df4d11aa.js.map +0 -1
  147. /package/dist/chunks/{4106.2c3ac870.js.LICENSE.txt → 7007.3625d844.js.LICENSE.txt} +0 -0
  148. /package/dist/chunks/{eo-checkbox.f3f6e67c.js.LICENSE.txt → eo-auto-complete.b9e9cc9b.js.LICENSE.txt} +0 -0
  149. /package/dist/chunks/{eo-form-item.83e55b03.js.LICENSE.txt → eo-checkbox.71457bfd.js.LICENSE.txt} +0 -0
  150. /package/dist/chunks/{eo-icon-select.1dfe2a56.js.LICENSE.txt → eo-form-item.ee3587d2.js.LICENSE.txt} +0 -0
  151. /package/dist/chunks/{eo-input.26d28bd2.js.LICENSE.txt → eo-icon-select.c1fd49ee.js.LICENSE.txt} +0 -0
  152. /package/dist/chunks/{eo-radio.0bcfd4c1.js.LICENSE.txt → eo-input.3f5f7abc.js.LICENSE.txt} +0 -0
  153. /package/dist/chunks/{eo-select.6a4726be.js.LICENSE.txt → eo-radio.31ab90cd.js.LICENSE.txt} +0 -0
  154. /package/dist/chunks/{eo-switch.bda4bf8c.js.LICENSE.txt → eo-select.e8831203.js.LICENSE.txt} +0 -0
  155. /package/dist/chunks/{eo-textarea.c39ca117.js.LICENSE.txt → eo-switch.d655db5a.js.LICENSE.txt} +0 -0
  156. /package/dist/chunks/{eo-upload-file.08a5ad7f.js.LICENSE.txt → eo-textarea.b8fbe64c.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -1438,6 +1438,273 @@
1438
1438
  ],
1439
1439
  "methods": []
1440
1440
  },
1441
+ "eo-auto-complete": {
1442
+ "properties": [
1443
+ {
1444
+ "name": "name",
1445
+ "annotation": {
1446
+ "type": "keyword",
1447
+ "value": "string"
1448
+ }
1449
+ },
1450
+ {
1451
+ "name": "placeholder",
1452
+ "annotation": {
1453
+ "type": "keyword",
1454
+ "value": "string"
1455
+ }
1456
+ },
1457
+ {
1458
+ "name": "label",
1459
+ "annotation": {
1460
+ "type": "keyword",
1461
+ "value": "string"
1462
+ }
1463
+ },
1464
+ {
1465
+ "name": "inputStyle",
1466
+ "annotation": {
1467
+ "type": "reference",
1468
+ "typeName": {
1469
+ "type": "qualifiedName",
1470
+ "left": {
1471
+ "type": "identifier",
1472
+ "name": "React"
1473
+ },
1474
+ "right": {
1475
+ "type": "identifier",
1476
+ "name": "CSSProperties"
1477
+ }
1478
+ }
1479
+ }
1480
+ },
1481
+ {
1482
+ "name": "disabled",
1483
+ "annotation": {
1484
+ "type": "keyword",
1485
+ "value": "boolean"
1486
+ }
1487
+ },
1488
+ {
1489
+ "name": "required",
1490
+ "annotation": {
1491
+ "type": "keyword",
1492
+ "value": "boolean"
1493
+ }
1494
+ },
1495
+ {
1496
+ "name": "value",
1497
+ "annotation": {
1498
+ "type": "keyword",
1499
+ "value": "string"
1500
+ }
1501
+ },
1502
+ {
1503
+ "name": "options",
1504
+ "annotation": {
1505
+ "type": "union",
1506
+ "types": [
1507
+ {
1508
+ "type": "array",
1509
+ "elementType": {
1510
+ "type": "keyword",
1511
+ "value": "string"
1512
+ }
1513
+ },
1514
+ {
1515
+ "type": "array",
1516
+ "elementType": {
1517
+ "type": "reference",
1518
+ "typeName": {
1519
+ "type": "identifier",
1520
+ "name": "OptionType"
1521
+ }
1522
+ }
1523
+ }
1524
+ ]
1525
+ }
1526
+ },
1527
+ {
1528
+ "name": "filterByCaption",
1529
+ "annotation": {
1530
+ "type": "keyword",
1531
+ "value": "boolean"
1532
+ }
1533
+ },
1534
+ {
1535
+ "name": "validator",
1536
+ "annotation": {
1537
+ "type": "parenthesizedType",
1538
+ "annotation": {
1539
+ "type": "function",
1540
+ "parameters": [
1541
+ {
1542
+ "type": "identifier",
1543
+ "name": "value",
1544
+ "annotation": {
1545
+ "type": "keyword",
1546
+ "value": "any"
1547
+ }
1548
+ }
1549
+ ],
1550
+ "annotation": {
1551
+ "type": "reference",
1552
+ "typeName": {
1553
+ "type": "identifier",
1554
+ "name": "MessageBody"
1555
+ }
1556
+ }
1557
+ }
1558
+ }
1559
+ },
1560
+ {
1561
+ "name": "pattern",
1562
+ "annotation": {
1563
+ "type": "keyword",
1564
+ "value": "string"
1565
+ }
1566
+ },
1567
+ {
1568
+ "name": "message",
1569
+ "annotation": {
1570
+ "type": "reference",
1571
+ "typeName": {
1572
+ "type": "identifier",
1573
+ "name": "Record"
1574
+ },
1575
+ "typeParameters": {
1576
+ "type": "typeParameterInstantiation",
1577
+ "params": [
1578
+ {
1579
+ "type": "keyword",
1580
+ "value": "string"
1581
+ },
1582
+ {
1583
+ "type": "keyword",
1584
+ "value": "string"
1585
+ }
1586
+ ]
1587
+ }
1588
+ }
1589
+ }
1590
+ ],
1591
+ "events": [
1592
+ {
1593
+ "name": "change",
1594
+ "detail": {
1595
+ "annotation": {
1596
+ "type": "keyword",
1597
+ "value": "string"
1598
+ }
1599
+ }
1600
+ }
1601
+ ],
1602
+ "methods": [],
1603
+ "types": [
1604
+ {
1605
+ "type": "typeAlias",
1606
+ "name": "OptionType",
1607
+ "annotation": {
1608
+ "type": "union",
1609
+ "types": [
1610
+ {
1611
+ "type": "reference",
1612
+ "typeName": {
1613
+ "type": "identifier",
1614
+ "name": "Option"
1615
+ }
1616
+ },
1617
+ {
1618
+ "type": "reference",
1619
+ "typeName": {
1620
+ "type": "identifier",
1621
+ "name": "OptionGroup"
1622
+ }
1623
+ }
1624
+ ]
1625
+ }
1626
+ },
1627
+ {
1628
+ "type": "interface",
1629
+ "name": "Option",
1630
+ "body": [
1631
+ {
1632
+ "type": "propertySignature",
1633
+ "key": {
1634
+ "type": "identifier",
1635
+ "name": "label"
1636
+ },
1637
+ "annotation": {
1638
+ "type": "keyword",
1639
+ "value": "string"
1640
+ },
1641
+ "computed": false
1642
+ },
1643
+ {
1644
+ "type": "propertySignature",
1645
+ "key": {
1646
+ "type": "identifier",
1647
+ "name": "caption"
1648
+ },
1649
+ "annotation": {
1650
+ "type": "keyword",
1651
+ "value": "string"
1652
+ },
1653
+ "optional": true,
1654
+ "computed": false
1655
+ },
1656
+ {
1657
+ "type": "propertySignature",
1658
+ "key": {
1659
+ "type": "identifier",
1660
+ "name": "value"
1661
+ },
1662
+ "annotation": {
1663
+ "type": "keyword",
1664
+ "value": "any"
1665
+ },
1666
+ "computed": false
1667
+ }
1668
+ ]
1669
+ },
1670
+ {
1671
+ "type": "interface",
1672
+ "name": "OptionGroup",
1673
+ "body": [
1674
+ {
1675
+ "type": "propertySignature",
1676
+ "key": {
1677
+ "type": "identifier",
1678
+ "name": "label"
1679
+ },
1680
+ "annotation": {
1681
+ "type": "keyword",
1682
+ "value": "string"
1683
+ },
1684
+ "computed": false
1685
+ },
1686
+ {
1687
+ "type": "propertySignature",
1688
+ "key": {
1689
+ "type": "identifier",
1690
+ "name": "options"
1691
+ },
1692
+ "annotation": {
1693
+ "type": "array",
1694
+ "elementType": {
1695
+ "type": "reference",
1696
+ "typeName": {
1697
+ "type": "identifier",
1698
+ "name": "Option"
1699
+ }
1700
+ }
1701
+ },
1702
+ "computed": false
1703
+ }
1704
+ ]
1705
+ }
1706
+ ]
1707
+ },
1441
1708
  "eo-input": {
1442
1709
  "properties": [
1443
1710
  {
@@ -0,0 +1,80 @@
1
+ import React from "react";
2
+ import "@next-core/theme";
3
+ import { FormItemElementBase, MessageBody } from "@next-shared/form";
4
+ import type { FormItemProps } from "../form-item/index.jsx";
5
+ interface EoAutoCompleteComponentProps extends FormItemProps {
6
+ curElement?: HTMLElement;
7
+ value?: any;
8
+ options?: string[] | OptionType[];
9
+ placeholder?: string;
10
+ inputStyle?: React.CSSProperties;
11
+ disabled?: boolean;
12
+ filterByCaption?: boolean;
13
+ onChange?: (value: any) => void;
14
+ }
15
+ export interface Option {
16
+ label: string;
17
+ caption?: string;
18
+ value: any;
19
+ }
20
+ export interface OptionGroup {
21
+ label: string;
22
+ options: Option[];
23
+ }
24
+ export type OptionType = Option | OptionGroup;
25
+ /**
26
+ * 构件 `eo-auto-complete`
27
+ */
28
+ export declare class EoAutoComplete extends FormItemElementBase {
29
+ #private;
30
+ /**
31
+ * 字段名称
32
+ */
33
+ accessor name: string | undefined;
34
+ /**
35
+ * 占位说明
36
+ */
37
+ accessor placeholder: string | undefined;
38
+ /**
39
+ * 字段文本
40
+ */
41
+ accessor label: string | undefined;
42
+ /**
43
+ * 输入框样式
44
+ */
45
+ accessor inputStyle: React.CSSProperties | undefined;
46
+ /**
47
+ * 是否禁用
48
+ */
49
+ accessor disabled: boolean | undefined;
50
+ /**
51
+ * 是否必填
52
+ */
53
+ accessor required: boolean | undefined;
54
+ accessor value: string | undefined;
55
+ /**
56
+ * 选项列表
57
+ * @required
58
+ */
59
+ accessor options: string[] | OptionType[] | undefined;
60
+ /**
61
+ * 搜索时是否根据caption过滤options
62
+ */
63
+ accessor filterByCaption: boolean | undefined;
64
+ /**
65
+ * 表单项校验方法
66
+ */
67
+ accessor validator: ((value: any) => MessageBody) | undefined;
68
+ /**
69
+ * 正则校验规则
70
+ */
71
+ accessor pattern: string | undefined;
72
+ /**
73
+ * 校验文本信息
74
+ */
75
+ accessor message: Record<string, string> | undefined;
76
+ handleInputChange: (value: string) => void;
77
+ render(): JSX.Element;
78
+ }
79
+ export declare function EoAutoCompleteComponent(props: EoAutoCompleteComponentProps): JSX.Element;
80
+ export {};
@@ -0,0 +1 @@
1
+ import "./";
@@ -12,3 +12,4 @@ import "./icon-select/index.js";
12
12
  import "./upload/upload-image/index.js";
13
13
  import "./general-switch/index.js";
14
14
  import "./upload/upload-file/index.js";
15
+ import "./auto-complete/index.js";
@@ -0,0 +1,105 @@
1
+ 构件 `eo-auto-complete`
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: eo-auto-complete
9
+ properties:
10
+ options:
11
+ - Beijing
12
+ - Shanghai
13
+ - Guangzhou
14
+ - Shenzhen
15
+ ```
16
+
17
+ ### caption
18
+
19
+ ```yaml preview
20
+ - brick: eo-auto-complete
21
+ properties:
22
+ options:
23
+ - label: 选项1
24
+ value: "1"
25
+ caption: 说明1
26
+ - label: 选项2
27
+ value: "2"
28
+ caption: 说明2
29
+ - label: 选项3
30
+ value: "3"
31
+ caption: 说明3
32
+ ```
33
+
34
+ ### 分组
35
+
36
+ ```yaml preview
37
+ - brick: eo-auto-complete
38
+ properties:
39
+ options:
40
+ - label: 选项1
41
+ value: "1"
42
+ caption: 说明1
43
+ - label: 选项2
44
+ value: "2"
45
+ caption: 说明2
46
+ - label: 分组1
47
+ options:
48
+ - label: 选项3-1
49
+ value: 3-1
50
+ caption: 说明3-1
51
+ - label: 选项3-1
52
+ value: 3-2
53
+ caption: 说明3-2
54
+ ```
55
+
56
+ ### filterByCaption
57
+
58
+ ```yaml preview
59
+ - brick: eo-auto-complete
60
+ properties:
61
+ filterByCaption: true
62
+ options:
63
+ - label: 选项1
64
+ value: "1"
65
+ caption: 说明1
66
+ - label: 选项2
67
+ value: "2"
68
+ caption: 说明2
69
+ - label: 分组1
70
+ options:
71
+ - label: 选项3-1
72
+ value: 3-1
73
+ caption: 说明3-1
74
+ - label: 选项3-1
75
+ value: 3-2
76
+ caption: 说明3-2
77
+ ```
78
+
79
+ ### disabled
80
+
81
+ ```yaml preview
82
+ - brick: eo-auto-complete
83
+ properties:
84
+ disabled: true
85
+ options:
86
+ - Beijing
87
+ - Shanghai
88
+ - Guangzhou
89
+ - Shenzhen
90
+ ```
91
+
92
+ ### events
93
+
94
+ ```yaml preview
95
+ - brick: eo-auto-complete
96
+ events:
97
+ change:
98
+ - action: console.log
99
+ properties:
100
+ options:
101
+ - Beijing
102
+ - Shanghai
103
+ - Guangzhou
104
+ - Shenzhen
105
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/form",
3
- "version": "0.17.1",
3
+ "version": "0.17.3",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,8 +34,8 @@
34
34
  "postpublish": "mv package.json.bak package.json"
35
35
  },
36
36
  "devDependencies": {
37
- "@next-core/build-next-bricks": "^1.14.0",
38
- "@next-core/test-next": "^1.0.8"
37
+ "@next-core/build-next-bricks": "^1.14.1",
38
+ "@next-core/test-next": "^1.0.9"
39
39
  },
40
- "gitHead": "380880dd2b549b5c9f2894c1fee09b8b0f7b785a"
40
+ "gitHead": "cc28d319b4e142b332cac648af193b8430273eb5"
41
41
  }