mdui 2.0.0 → 2.0.2

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 (96) hide show
  1. package/components/avatar/index.js +2 -1
  2. package/components/badge/index.js +2 -1
  3. package/components/bottom-app-bar/index.d.ts +2 -2
  4. package/components/bottom-app-bar/index.js +4 -3
  5. package/components/button/button-base.d.ts +2 -2
  6. package/components/button/button-base.js +15 -14
  7. package/components/button/index.js +2 -1
  8. package/components/button-icon/index.js +2 -1
  9. package/components/card/index.d.ts +1 -1
  10. package/components/card/index.js +5 -2
  11. package/components/checkbox/index.js +7 -10
  12. package/components/checkbox/style.js +1 -1
  13. package/components/chip/index.js +2 -1
  14. package/components/circular-progress/index.js +3 -3
  15. package/components/collapse/collapse-item-style.js +1 -1
  16. package/components/collapse/collapse-item.d.ts +2 -1
  17. package/components/collapse/collapse-item.js +23 -20
  18. package/components/collapse/collapse.d.ts +6 -6
  19. package/components/collapse/collapse.js +57 -34
  20. package/components/dialog/index.d.ts +3 -2
  21. package/components/dialog/index.js +27 -23
  22. package/components/divider/index.js +2 -1
  23. package/components/dropdown/index.d.ts +4 -5
  24. package/components/dropdown/index.js +56 -51
  25. package/components/fab/index.d.ts +1 -0
  26. package/components/fab/index.js +10 -5
  27. package/components/icon/index.js +2 -1
  28. package/components/layout/helper.d.ts +5 -6
  29. package/components/layout/helper.js +42 -48
  30. package/components/layout/layout-item-base.js +1 -2
  31. package/components/layout/layout-item.js +3 -3
  32. package/components/layout/layout-main.js +2 -1
  33. package/components/layout/layout.js +2 -1
  34. package/components/linear-progress/index.js +3 -3
  35. package/components/list/list-item.js +3 -2
  36. package/components/list/list-subheader.js +2 -1
  37. package/components/list/list.js +2 -1
  38. package/components/menu/menu-item.d.ts +1 -0
  39. package/components/menu/menu-item.js +45 -28
  40. package/components/menu/menu.d.ts +4 -1
  41. package/components/menu/menu.js +82 -56
  42. package/components/navigation-bar/navigation-bar-item-style.js +1 -1
  43. package/components/navigation-bar/navigation-bar-item.d.ts +6 -2
  44. package/components/navigation-bar/navigation-bar-item.js +26 -10
  45. package/components/navigation-bar/navigation-bar.d.ts +6 -6
  46. package/components/navigation-bar/navigation-bar.js +49 -42
  47. package/components/navigation-drawer/index.d.ts +5 -1
  48. package/components/navigation-drawer/index.js +62 -41
  49. package/components/navigation-rail/navigation-rail-item-style.js +1 -1
  50. package/components/navigation-rail/navigation-rail-item.d.ts +6 -2
  51. package/components/navigation-rail/navigation-rail-item.js +20 -8
  52. package/components/navigation-rail/navigation-rail.d.ts +4 -5
  53. package/components/navigation-rail/navigation-rail.js +51 -44
  54. package/components/radio/radio-group.d.ts +6 -4
  55. package/components/radio/radio-group.js +61 -48
  56. package/components/radio/radio-style.js +1 -1
  57. package/components/radio/radio.d.ts +3 -2
  58. package/components/radio/radio.js +24 -17
  59. package/components/range-slider/index.js +7 -9
  60. package/components/ripple/index.js +2 -1
  61. package/components/segmented-button/segmented-button-group.d.ts +6 -3
  62. package/components/segmented-button/segmented-button-group.js +84 -69
  63. package/components/segmented-button/segmented-button.d.ts +2 -2
  64. package/components/segmented-button/segmented-button.js +5 -4
  65. package/components/select/index.d.ts +2 -2
  66. package/components/select/index.js +26 -24
  67. package/components/slider/index.js +7 -9
  68. package/components/slider/slider-base-style.js +1 -1
  69. package/components/slider/slider-base.js +1 -5
  70. package/components/snackbar/index.js +2 -1
  71. package/components/switch/index.js +6 -9
  72. package/components/switch/style.js +1 -1
  73. package/components/tabs/tab-panel.js +2 -1
  74. package/components/tabs/tab-style.js +1 -1
  75. package/components/tabs/tab.js +10 -5
  76. package/components/tabs/tabs-style.js +1 -1
  77. package/components/tabs/tabs.d.ts +6 -5
  78. package/components/tabs/tabs.js +52 -38
  79. package/components/text-field/index.d.ts +2 -2
  80. package/components/text-field/index.js +32 -54
  81. package/components/text-field/style.js +1 -1
  82. package/components/tooltip/index.d.ts +5 -5
  83. package/components/tooltip/index.js +30 -25
  84. package/components/top-app-bar/top-app-bar-title-style.js +1 -1
  85. package/components/top-app-bar/top-app-bar-title.js +16 -12
  86. package/components/top-app-bar/top-app-bar.d.ts +2 -2
  87. package/components/top-app-bar/top-app-bar.js +6 -4
  88. package/custom-elements.json +3776 -3481
  89. package/functions/getTheme.js +3 -3
  90. package/functions/snackbar.js +1 -2
  91. package/functions/utils/colorScheme.js +2 -2
  92. package/html-data.zh-cn.json +727 -727
  93. package/mdui.esm.js +8 -8
  94. package/mdui.global.js +8 -8
  95. package/package.json +7 -7
  96. package/web-types.zh-cn.json +1265 -1265
@@ -398,12 +398,12 @@
398
398
  ]
399
399
  },
400
400
  {
401
- "name": "tabindex",
401
+ "name": "tabIndex",
402
402
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
403
403
  "references": [
404
404
  {
405
405
  "name": "开发文档",
406
- "url": "https://www.mdui.org/docs/2/components/button#attributes-tabindex"
406
+ "url": "https://www.mdui.org/docs/2/components/button#attributes-tabIndex"
407
407
  }
408
408
  ]
409
409
  },
@@ -784,12 +784,12 @@
784
784
  ]
785
785
  },
786
786
  {
787
- "name": "tabindex",
787
+ "name": "tabIndex",
788
788
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
789
789
  "references": [
790
790
  {
791
791
  "name": "开发文档",
792
- "url": "https://www.mdui.org/docs/2/components/button-icon#attributes-tabindex"
792
+ "url": "https://www.mdui.org/docs/2/components/button-icon#attributes-tabIndex"
793
793
  }
794
794
  ]
795
795
  },
@@ -971,6 +971,202 @@
971
971
  }
972
972
  ]
973
973
  },
974
+ {
975
+ "name": "mdui-card",
976
+ "description": "卡片组件\n\n```html\n<mdui-card>card content</mdui-card>\n```",
977
+ "attributes": [
978
+ {
979
+ "name": "variant",
980
+ "description": "卡片形状。可选值为:\n\n* `elevated`:具有阴影,与背景的分离度比 `filled` 更高,但小于 `outlined`\n* `filled`:与背景的分离度最小\n* `outlined`:具有边框,与背景的分离度最大",
981
+ "values": [
982
+ {
983
+ "name": "elevated",
984
+ "description": "具有阴影,与背景的分离度比 `filled` 更高,但小于 `outlined`"
985
+ },
986
+ {
987
+ "name": "filled",
988
+ "description": "与背景的分离度最小"
989
+ },
990
+ {
991
+ "name": "outlined",
992
+ "description": "具有边框,与背景的分离度最大"
993
+ }
994
+ ],
995
+ "references": [
996
+ {
997
+ "name": "开发文档",
998
+ "url": "https://www.mdui.org/docs/2/components/card#attributes-variant"
999
+ }
1000
+ ]
1001
+ },
1002
+ {
1003
+ "name": "clickable",
1004
+ "description": "是否可点击。为 `true` 时,会添加鼠标悬浮效果、及点击涟漪效果",
1005
+ "references": [
1006
+ {
1007
+ "name": "开发文档",
1008
+ "url": "https://www.mdui.org/docs/2/components/card#attributes-clickable"
1009
+ }
1010
+ ]
1011
+ },
1012
+ {
1013
+ "name": "disabled",
1014
+ "description": "是否禁用",
1015
+ "references": [
1016
+ {
1017
+ "name": "开发文档",
1018
+ "url": "https://www.mdui.org/docs/2/components/card#attributes-disabled"
1019
+ }
1020
+ ]
1021
+ },
1022
+ {
1023
+ "name": "href",
1024
+ "description": "链接指向的页面的 URL。\n\n若指定了该属性,则组件内部会渲染为 `<a>` 元素,并可以使用链接相关的属性",
1025
+ "references": [
1026
+ {
1027
+ "name": "开发文档",
1028
+ "url": "https://www.mdui.org/docs/2/components/card#attributes-href"
1029
+ }
1030
+ ]
1031
+ },
1032
+ {
1033
+ "name": "download",
1034
+ "description": "被下载的超链接目标。\n\n**Note**:仅在指定了 `href` 属性时可用",
1035
+ "references": [
1036
+ {
1037
+ "name": "开发文档",
1038
+ "url": "https://www.mdui.org/docs/2/components/card#attributes-download"
1039
+ }
1040
+ ]
1041
+ },
1042
+ {
1043
+ "name": "target",
1044
+ "description": "在何处打开链接。可选值为:\n\n* `_blank`:在新窗口中打开链接\n* `_parent`:在父框架中打开链接\n* `_self`:默认。在相同的框架中打开链接\n* `_top`:在整个窗口中打开链接\n\n**Note**:仅在指定了 `href` 属性时可用",
1045
+ "values": [
1046
+ {
1047
+ "name": "_blank",
1048
+ "description": "在新窗口中打开链接"
1049
+ },
1050
+ {
1051
+ "name": "_parent",
1052
+ "description": "在父框架中打开链接"
1053
+ },
1054
+ {
1055
+ "name": "_self",
1056
+ "description": "默认。在相同的框架中打开链接"
1057
+ },
1058
+ {
1059
+ "name": "_top",
1060
+ "description": "在整个窗口中打开链接"
1061
+ }
1062
+ ],
1063
+ "references": [
1064
+ {
1065
+ "name": "开发文档",
1066
+ "url": "https://www.mdui.org/docs/2/components/card#attributes-target"
1067
+ }
1068
+ ]
1069
+ },
1070
+ {
1071
+ "name": "rel",
1072
+ "description": "当前文档与被链接文档之间的关系。可选值为:\n\n* `alternate`:当前文档的替代描述\n* `author`:当前文档或文章的作者\n* `bookmark`:到最近祖先章节的永久链接\n* `external`:引用的文档与当前的文档不属于同一个站点\n* `help`:链接到上下文相关的帮助\n* `license`:表示当前文档的主要内容由被引用文件描述的版权许可所涵盖\n* `me`:表示当前文档代表拥有链接内容的人\n* `next`:表示当前文档是一个系列的一部分,被引用的文档是该系列中的下一个文档\n* `nofollow`:表示当前文档的原作者或出版商不认可被引用的文件\n* `noreferrer`:不会包含 `Referer` 标头。和 `noopener` 效果类似\n* `opener`:如果超链接会创建一个非辅助浏览上下文的顶级浏览上下文(即以 `_blank` 作为 `target` 属性值),则创建一个辅助浏览上下文\n* `prev`:表示当前文档是系列的一部分,被引用的文档是该系列中的上一个文档\n* `search`:给出一个资源的链接,可以用来搜索当前文件及其相关页面\n* `tag`:给出一个适用于当前文档的标签(由给定地址识别)\n\n**Note**:仅在指定了 `href` 属性时可用",
1073
+ "values": [
1074
+ {
1075
+ "name": "alternate",
1076
+ "description": "当前文档的替代描述"
1077
+ },
1078
+ {
1079
+ "name": "author",
1080
+ "description": "当前文档或文章的作者"
1081
+ },
1082
+ {
1083
+ "name": "bookmark",
1084
+ "description": "到最近祖先章节的永久链接"
1085
+ },
1086
+ {
1087
+ "name": "external",
1088
+ "description": "引用的文档与当前的文档不属于同一个站点"
1089
+ },
1090
+ {
1091
+ "name": "help",
1092
+ "description": "链接到上下文相关的帮助"
1093
+ },
1094
+ {
1095
+ "name": "license",
1096
+ "description": "表示当前文档的主要内容由被引用文件描述的版权许可所涵盖"
1097
+ },
1098
+ {
1099
+ "name": "me",
1100
+ "description": "表示当前文档代表拥有链接内容的人"
1101
+ },
1102
+ {
1103
+ "name": "next",
1104
+ "description": "表示当前文档是一个系列的一部分,被引用的文档是该系列中的下一个文档"
1105
+ },
1106
+ {
1107
+ "name": "nofollow",
1108
+ "description": "表示当前文档的原作者或出版商不认可被引用的文件"
1109
+ },
1110
+ {
1111
+ "name": "noreferrer",
1112
+ "description": "不会包含 `Referer` 标头。和 `noopener` 效果类似"
1113
+ },
1114
+ {
1115
+ "name": "opener",
1116
+ "description": "如果超链接会创建一个非辅助浏览上下文的顶级浏览上下文(即以 `_blank` 作为 `target` 属性值),则创建一个辅助浏览上下文"
1117
+ },
1118
+ {
1119
+ "name": "prev",
1120
+ "description": "表示当前文档是系列的一部分,被引用的文档是该系列中的上一个文档"
1121
+ },
1122
+ {
1123
+ "name": "search",
1124
+ "description": "给出一个资源的链接,可以用来搜索当前文件及其相关页面"
1125
+ },
1126
+ {
1127
+ "name": "tag",
1128
+ "description": "给出一个适用于当前文档的标签(由给定地址识别)"
1129
+ }
1130
+ ],
1131
+ "references": [
1132
+ {
1133
+ "name": "开发文档",
1134
+ "url": "https://www.mdui.org/docs/2/components/card#attributes-rel"
1135
+ }
1136
+ ]
1137
+ },
1138
+ {
1139
+ "name": "autofocus",
1140
+ "description": "是否在页面加载完成后自动获得焦点",
1141
+ "references": [
1142
+ {
1143
+ "name": "开发文档",
1144
+ "url": "https://www.mdui.org/docs/2/components/card#attributes-autofocus"
1145
+ }
1146
+ ]
1147
+ },
1148
+ {
1149
+ "name": "tabIndex",
1150
+ "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
1151
+ "references": [
1152
+ {
1153
+ "name": "开发文档",
1154
+ "url": "https://www.mdui.org/docs/2/components/card#attributes-tabIndex"
1155
+ }
1156
+ ]
1157
+ }
1158
+ ],
1159
+ "references": [
1160
+ {
1161
+ "name": "开发文档",
1162
+ "url": "https://www.mdui.org/docs/2/components/card"
1163
+ },
1164
+ {
1165
+ "name": "Github",
1166
+ "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/card/index.ts"
1167
+ }
1168
+ ]
1169
+ },
974
1170
  {
975
1171
  "name": "mdui-checkbox",
976
1172
  "description": "复选框组件\n\n```html\n<mdui-checkbox>Checkbox</mdui-checkbox>\n```",
@@ -1086,12 +1282,12 @@
1086
1282
  ]
1087
1283
  },
1088
1284
  {
1089
- "name": "tabindex",
1285
+ "name": "tabIndex",
1090
1286
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
1091
1287
  "references": [
1092
1288
  {
1093
1289
  "name": "开发文档",
1094
- "url": "https://www.mdui.org/docs/2/components/checkbox#attributes-tabindex"
1290
+ "url": "https://www.mdui.org/docs/2/components/checkbox#attributes-tabIndex"
1095
1291
  }
1096
1292
  ]
1097
1293
  }
@@ -1346,12 +1542,12 @@
1346
1542
  ]
1347
1543
  },
1348
1544
  {
1349
- "name": "tabindex",
1545
+ "name": "tabIndex",
1350
1546
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
1351
1547
  "references": [
1352
1548
  {
1353
1549
  "name": "开发文档",
1354
- "url": "https://www.mdui.org/docs/2/components/chip#attributes-tabindex"
1550
+ "url": "https://www.mdui.org/docs/2/components/chip#attributes-tabIndex"
1355
1551
  }
1356
1552
  ]
1357
1553
  },
@@ -1534,228 +1730,68 @@
1534
1730
  ]
1535
1731
  },
1536
1732
  {
1537
- "name": "mdui-card",
1538
- "description": "卡片组件\n\n```html\n<mdui-card>card content</mdui-card>\n```",
1733
+ "name": "mdui-circular-progress",
1734
+ "description": "圆形进度指示器组件\n\n```html\n<mdui-circular-progress></mdui-circular-progress>\n```",
1539
1735
  "attributes": [
1540
1736
  {
1541
- "name": "variant",
1542
- "description": "卡片形状。可选值为:\n\n* `elevated`:具有阴影,与背景的分离度比 `filled` 更高,但小于 `outlined`\n* `filled`:与背景的分离度最小\n* `outlined`:具有边框,与背景的分离度最大",
1543
- "values": [
1544
- {
1545
- "name": "elevated",
1546
- "description": "具有阴影,与背景的分离度比 `filled` 更高,但小于 `outlined`"
1547
- },
1548
- {
1549
- "name": "filled",
1550
- "description": "与背景的分离度最小"
1551
- },
1552
- {
1553
- "name": "outlined",
1554
- "description": "具有边框,与背景的分离度最大"
1555
- }
1556
- ],
1737
+ "name": "max",
1738
+ "description": "进度指示器的最大值,默认为 1",
1557
1739
  "references": [
1558
1740
  {
1559
1741
  "name": "开发文档",
1560
- "url": "https://www.mdui.org/docs/2/components/card#attributes-variant"
1742
+ "url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-max"
1561
1743
  }
1562
1744
  ]
1563
1745
  },
1564
1746
  {
1565
- "name": "clickable",
1566
- "description": "是否可点击。为 `true` 时,会添加鼠标悬浮效果、及点击涟漪效果",
1747
+ "name": "value",
1748
+ "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
1567
1749
  "references": [
1568
1750
  {
1569
1751
  "name": "开发文档",
1570
- "url": "https://www.mdui.org/docs/2/components/card#attributes-clickable"
1752
+ "url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-value"
1571
1753
  }
1572
1754
  ]
1755
+ }
1756
+ ],
1757
+ "references": [
1758
+ {
1759
+ "name": "开发文档",
1760
+ "url": "https://www.mdui.org/docs/2/components/circular-progress"
1573
1761
  },
1574
1762
  {
1575
- "name": "disabled",
1576
- "description": "是否禁用",
1763
+ "name": "Github",
1764
+ "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/circular-progress/index.ts"
1765
+ }
1766
+ ]
1767
+ },
1768
+ {
1769
+ "name": "mdui-collapse-item",
1770
+ "description": "折叠面板项组件。需与 `<mdui-collapse>` 组件配合使用\n\n```html\n<mdui-collapse>\n <mdui-collapse-item header=\"header-1\">content-1</mdui-collapse-item>\n <mdui-collapse-item header=\"header-2\">content-2</mdui-collapse-item>\n</mdui-collapse>\n```",
1771
+ "attributes": [
1772
+ {
1773
+ "name": "value",
1774
+ "description": "该折叠面板项的值",
1577
1775
  "references": [
1578
1776
  {
1579
1777
  "name": "开发文档",
1580
- "url": "https://www.mdui.org/docs/2/components/card#attributes-disabled"
1778
+ "url": "https://www.mdui.org/docs/2/components/collapse#collapse-item-attributes-value"
1581
1779
  }
1582
1780
  ]
1583
1781
  },
1584
1782
  {
1585
- "name": "href",
1586
- "description": "链接指向的页面的 URL。\n\n若指定了该属性,则组件内部会渲染为 `<a>` 元素,并可以使用链接相关的属性",
1783
+ "name": "header",
1784
+ "description": "该折叠面板项的头部文本",
1587
1785
  "references": [
1588
1786
  {
1589
1787
  "name": "开发文档",
1590
- "url": "https://www.mdui.org/docs/2/components/card#attributes-href"
1788
+ "url": "https://www.mdui.org/docs/2/components/collapse#collapse-item-attributes-header"
1591
1789
  }
1592
1790
  ]
1593
1791
  },
1594
1792
  {
1595
- "name": "download",
1596
- "description": "被下载的超链接目标。\n\n**Note**:仅在指定了 `href` 属性时可用",
1597
- "references": [
1598
- {
1599
- "name": "开发文档",
1600
- "url": "https://www.mdui.org/docs/2/components/card#attributes-download"
1601
- }
1602
- ]
1603
- },
1604
- {
1605
- "name": "target",
1606
- "description": "在何处打开链接。可选值为:\n\n* `_blank`:在新窗口中打开链接\n* `_parent`:在父框架中打开链接\n* `_self`:默认。在相同的框架中打开链接\n* `_top`:在整个窗口中打开链接\n\n**Note**:仅在指定了 `href` 属性时可用",
1607
- "values": [
1608
- {
1609
- "name": "_blank",
1610
- "description": "在新窗口中打开链接"
1611
- },
1612
- {
1613
- "name": "_parent",
1614
- "description": "在父框架中打开链接"
1615
- },
1616
- {
1617
- "name": "_self",
1618
- "description": "默认。在相同的框架中打开链接"
1619
- },
1620
- {
1621
- "name": "_top",
1622
- "description": "在整个窗口中打开链接"
1623
- }
1624
- ],
1625
- "references": [
1626
- {
1627
- "name": "开发文档",
1628
- "url": "https://www.mdui.org/docs/2/components/card#attributes-target"
1629
- }
1630
- ]
1631
- },
1632
- {
1633
- "name": "rel",
1634
- "description": "当前文档与被链接文档之间的关系。可选值为:\n\n* `alternate`:当前文档的替代描述\n* `author`:当前文档或文章的作者\n* `bookmark`:到最近祖先章节的永久链接\n* `external`:引用的文档与当前的文档不属于同一个站点\n* `help`:链接到上下文相关的帮助\n* `license`:表示当前文档的主要内容由被引用文件描述的版权许可所涵盖\n* `me`:表示当前文档代表拥有链接内容的人\n* `next`:表示当前文档是一个系列的一部分,被引用的文档是该系列中的下一个文档\n* `nofollow`:表示当前文档的原作者或出版商不认可被引用的文件\n* `noreferrer`:不会包含 `Referer` 标头。和 `noopener` 效果类似\n* `opener`:如果超链接会创建一个非辅助浏览上下文的顶级浏览上下文(即以 `_blank` 作为 `target` 属性值),则创建一个辅助浏览上下文\n* `prev`:表示当前文档是系列的一部分,被引用的文档是该系列中的上一个文档\n* `search`:给出一个资源的链接,可以用来搜索当前文件及其相关页面\n* `tag`:给出一个适用于当前文档的标签(由给定地址识别)\n\n**Note**:仅在指定了 `href` 属性时可用",
1635
- "values": [
1636
- {
1637
- "name": "alternate",
1638
- "description": "当前文档的替代描述"
1639
- },
1640
- {
1641
- "name": "author",
1642
- "description": "当前文档或文章的作者"
1643
- },
1644
- {
1645
- "name": "bookmark",
1646
- "description": "到最近祖先章节的永久链接"
1647
- },
1648
- {
1649
- "name": "external",
1650
- "description": "引用的文档与当前的文档不属于同一个站点"
1651
- },
1652
- {
1653
- "name": "help",
1654
- "description": "链接到上下文相关的帮助"
1655
- },
1656
- {
1657
- "name": "license",
1658
- "description": "表示当前文档的主要内容由被引用文件描述的版权许可所涵盖"
1659
- },
1660
- {
1661
- "name": "me",
1662
- "description": "表示当前文档代表拥有链接内容的人"
1663
- },
1664
- {
1665
- "name": "next",
1666
- "description": "表示当前文档是一个系列的一部分,被引用的文档是该系列中的下一个文档"
1667
- },
1668
- {
1669
- "name": "nofollow",
1670
- "description": "表示当前文档的原作者或出版商不认可被引用的文件"
1671
- },
1672
- {
1673
- "name": "noreferrer",
1674
- "description": "不会包含 `Referer` 标头。和 `noopener` 效果类似"
1675
- },
1676
- {
1677
- "name": "opener",
1678
- "description": "如果超链接会创建一个非辅助浏览上下文的顶级浏览上下文(即以 `_blank` 作为 `target` 属性值),则创建一个辅助浏览上下文"
1679
- },
1680
- {
1681
- "name": "prev",
1682
- "description": "表示当前文档是系列的一部分,被引用的文档是该系列中的上一个文档"
1683
- },
1684
- {
1685
- "name": "search",
1686
- "description": "给出一个资源的链接,可以用来搜索当前文件及其相关页面"
1687
- },
1688
- {
1689
- "name": "tag",
1690
- "description": "给出一个适用于当前文档的标签(由给定地址识别)"
1691
- }
1692
- ],
1693
- "references": [
1694
- {
1695
- "name": "开发文档",
1696
- "url": "https://www.mdui.org/docs/2/components/card#attributes-rel"
1697
- }
1698
- ]
1699
- },
1700
- {
1701
- "name": "autofocus",
1702
- "description": "是否在页面加载完成后自动获得焦点",
1703
- "references": [
1704
- {
1705
- "name": "开发文档",
1706
- "url": "https://www.mdui.org/docs/2/components/card#attributes-autofocus"
1707
- }
1708
- ]
1709
- },
1710
- {
1711
- "name": "tabindex",
1712
- "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
1713
- "references": [
1714
- {
1715
- "name": "开发文档",
1716
- "url": "https://www.mdui.org/docs/2/components/card#attributes-tabindex"
1717
- }
1718
- ]
1719
- }
1720
- ],
1721
- "references": [
1722
- {
1723
- "name": "开发文档",
1724
- "url": "https://www.mdui.org/docs/2/components/card"
1725
- },
1726
- {
1727
- "name": "Github",
1728
- "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/card/index.ts"
1729
- }
1730
- ]
1731
- },
1732
- {
1733
- "name": "mdui-collapse-item",
1734
- "description": "折叠面板项组件。需与 `<mdui-collapse>` 组件配合使用\n\n```html\n<mdui-collapse>\n <mdui-collapse-item header=\"header-1\">content-1</mdui-collapse-item>\n <mdui-collapse-item header=\"header-2\">content-2</mdui-collapse-item>\n</mdui-collapse>\n```",
1735
- "attributes": [
1736
- {
1737
- "name": "value",
1738
- "description": "该折叠面板项的值",
1739
- "references": [
1740
- {
1741
- "name": "开发文档",
1742
- "url": "https://www.mdui.org/docs/2/components/collapse#collapse-item-attributes-value"
1743
- }
1744
- ]
1745
- },
1746
- {
1747
- "name": "header",
1748
- "description": "该折叠面板项的头部文本",
1749
- "references": [
1750
- {
1751
- "name": "开发文档",
1752
- "url": "https://www.mdui.org/docs/2/components/collapse#collapse-item-attributes-header"
1753
- }
1754
- ]
1755
- },
1756
- {
1757
- "name": "disabled",
1758
- "description": "是否禁用该折叠面板项",
1793
+ "name": "disabled",
1794
+ "description": "是否禁用该折叠面板项",
1759
1795
  "references": [
1760
1796
  {
1761
1797
  "name": "开发文档",
@@ -1831,42 +1867,6 @@
1831
1867
  }
1832
1868
  ]
1833
1869
  },
1834
- {
1835
- "name": "mdui-circular-progress",
1836
- "description": "圆形进度指示器组件\n\n```html\n<mdui-circular-progress></mdui-circular-progress>\n```",
1837
- "attributes": [
1838
- {
1839
- "name": "max",
1840
- "description": "进度指示器的最大值,默认为 1",
1841
- "references": [
1842
- {
1843
- "name": "开发文档",
1844
- "url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-max"
1845
- }
1846
- ]
1847
- },
1848
- {
1849
- "name": "value",
1850
- "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
1851
- "references": [
1852
- {
1853
- "name": "开发文档",
1854
- "url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-value"
1855
- }
1856
- ]
1857
- }
1858
- ],
1859
- "references": [
1860
- {
1861
- "name": "开发文档",
1862
- "url": "https://www.mdui.org/docs/2/components/circular-progress"
1863
- },
1864
- {
1865
- "name": "Github",
1866
- "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/circular-progress/index.ts"
1867
- }
1868
- ]
1869
- },
1870
1870
  {
1871
1871
  "name": "mdui-dialog",
1872
1872
  "description": "对话框组件\n\n```html\n<mdui-dialog>content</mdui-dialog>\n```",
@@ -2010,266 +2010,58 @@
2010
2010
  ]
2011
2011
  },
2012
2012
  {
2013
- "name": "mdui-dropdown",
2014
- "description": "下拉组件\n\n```html\n<mdui-dropdown>\n <mdui-button slot=\"trigger\">open dropdown</mdui-button>\n <mdui-menu>\n <mdui-menu-item>Item 1</mdui-menu-item>\n <mdui-menu-item>Item 2</mdui-menu-item>\n </mdui-menu>\n</mdui-dropdown>\n```",
2013
+ "name": "mdui-fab",
2014
+ "description": "浮动操作按钮组件\n\n```html\n<mdui-fab icon=\"edit\"></mdui-fab>\n```",
2015
2015
  "attributes": [
2016
2016
  {
2017
- "name": "open",
2018
- "description": "dropdown 是否打开",
2019
- "references": [
2017
+ "name": "variant",
2018
+ "description": "FAB 形状,此组件的不同形状之间只有颜色不一样。可选值为:\n\n* `primary`:使用 Primary container 背景色\n* `surface`:使用 Surface container high 背景色\n* `secondary`:使用 Secondary container 背景色\n* `tertiary`:使用 Tertiary container 背景色",
2019
+ "values": [
2020
2020
  {
2021
- "name": "开发文档",
2022
- "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open"
2021
+ "name": "primary",
2022
+ "description": "使用 Primary container 背景色"
2023
+ },
2024
+ {
2025
+ "name": "surface",
2026
+ "description": "使用 Surface container high 背景色"
2027
+ },
2028
+ {
2029
+ "name": "secondary",
2030
+ "description": "使用 Secondary container 背景色"
2031
+ },
2032
+ {
2033
+ "name": "tertiary",
2034
+ "description": "使用 Tertiary container 背景色"
2023
2035
  }
2024
- ]
2025
- },
2026
- {
2027
- "name": "disabled",
2028
- "description": "是否禁用 dropdown",
2036
+ ],
2029
2037
  "references": [
2030
2038
  {
2031
2039
  "name": "开发文档",
2032
- "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-disabled"
2040
+ "url": "https://www.mdui.org/docs/2/components/fab#attributes-variant"
2033
2041
  }
2034
2042
  ]
2035
2043
  },
2036
2044
  {
2037
- "name": "trigger",
2038
- "description": "dropdown 的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击时触发\n* `hover`:鼠标悬浮触发\n* `focus`:聚焦时触发\n* `contextmenu`:鼠标右键点击、或触摸长按时触发\n* `manual`:使用了该值时,只能使用编程方式打开和关闭 dropdown,且不能再指定其他触发方式",
2045
+ "name": "size",
2046
+ "description": "FAB 大小。可选值为:\n* `normal`:普通大小 FAB\n* `small`:小型 FAB\n* `large`:大型 FAB",
2039
2047
  "values": [
2040
2048
  {
2041
- "name": "click",
2042
- "description": "点击时触发"
2043
- },
2044
- {
2045
- "name": "hover",
2046
- "description": "鼠标悬浮触发"
2047
- },
2048
- {
2049
- "name": "focus",
2050
- "description": "聚焦时触发"
2049
+ "name": "normal",
2050
+ "description": "普通大小 FAB"
2051
2051
  },
2052
2052
  {
2053
- "name": "contextmenu",
2054
- "description": "鼠标右键点击、或触摸长按时触发"
2053
+ "name": "small",
2054
+ "description": "小型 FAB"
2055
2055
  },
2056
2056
  {
2057
- "name": "manual",
2058
- "description": "使用了该值时,只能使用编程方式打开和关闭 dropdown,且不能再指定其他触发方式"
2057
+ "name": "large",
2058
+ "description": "大型 FAB"
2059
2059
  }
2060
2060
  ],
2061
2061
  "references": [
2062
2062
  {
2063
2063
  "name": "开发文档",
2064
- "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-trigger"
2065
- }
2066
- ]
2067
- },
2068
- {
2069
- "name": "placement",
2070
- "description": "dropdown 内容的位置。可选值为:\n\n* `auto`:自动判断位置\n* `top-start`:位于上方,且左对齐\n* `top`:位于上方,且居中对齐\n* `top-end`:位于上方,且右对齐\n* `bottom-start`:位于下方,且左对齐\n* `bottom`:位于下方,且居中对齐\n* `bottom-end`:位于下方,且右对齐\n* `left-start`:位于左侧,且顶部对齐\n* `left`:位于左侧,且居中对齐\n* `left-end`:位于左侧,且底部对齐\n* `right-start`:位于右侧,且顶部对齐\n* `right`:位于右侧,且居中对齐\n* `right-end`:位于右侧,且底部对齐",
2071
- "values": [
2072
- {
2073
- "name": "auto",
2074
- "description": "自动判断位置"
2075
- },
2076
- {
2077
- "name": "top-start",
2078
- "description": "位于上方,且左对齐"
2079
- },
2080
- {
2081
- "name": "top",
2082
- "description": "位于上方,且居中对齐"
2083
- },
2084
- {
2085
- "name": "top-end",
2086
- "description": "位于上方,且右对齐"
2087
- },
2088
- {
2089
- "name": "bottom-start",
2090
- "description": "位于下方,且左对齐"
2091
- },
2092
- {
2093
- "name": "bottom",
2094
- "description": "位于下方,且居中对齐"
2095
- },
2096
- {
2097
- "name": "bottom-end",
2098
- "description": "位于下方,且右对齐"
2099
- },
2100
- {
2101
- "name": "left-start",
2102
- "description": "位于左侧,且顶部对齐"
2103
- },
2104
- {
2105
- "name": "left",
2106
- "description": "位于左侧,且居中对齐"
2107
- },
2108
- {
2109
- "name": "left-end",
2110
- "description": "位于左侧,且底部对齐"
2111
- },
2112
- {
2113
- "name": "right-start",
2114
- "description": "位于右侧,且顶部对齐"
2115
- },
2116
- {
2117
- "name": "right",
2118
- "description": "位于右侧,且居中对齐"
2119
- },
2120
- {
2121
- "name": "right-end",
2122
- "description": "位于右侧,且底部对齐"
2123
- }
2124
- ],
2125
- "references": [
2126
- {
2127
- "name": "开发文档",
2128
- "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-placement"
2129
- }
2130
- ]
2131
- },
2132
- {
2133
- "name": "stay-open-on-click",
2134
- "description": "在点击 [`<mdui-menu-item>`](https://www.mdui.org/docs/2/components/menu#menu-item-api) 元素后,是否仍保持 dropdown 为打开状态",
2135
- "references": [
2136
- {
2137
- "name": "开发文档",
2138
- "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-stay-open-on-click"
2139
- }
2140
- ]
2141
- },
2142
- {
2143
- "name": "open-delay",
2144
- "description": "通过 hover 触发 dropdown 打开时的延时,单位为毫秒",
2145
- "references": [
2146
- {
2147
- "name": "开发文档",
2148
- "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open-delay"
2149
- }
2150
- ]
2151
- },
2152
- {
2153
- "name": "close-delay",
2154
- "description": "通过 hover 触发 dropdown 关闭时的延时,单位为毫秒",
2155
- "references": [
2156
- {
2157
- "name": "开发文档",
2158
- "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-close-delay"
2159
- }
2160
- ]
2161
- },
2162
- {
2163
- "name": "open-on-pointer",
2164
- "description": "是否在触发 dropdown 时的光标所在的位置打开 dropdown。通常用于在打开鼠标右键菜单时使用",
2165
- "references": [
2166
- {
2167
- "name": "开发文档",
2168
- "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open-on-pointer"
2169
- }
2170
- ]
2171
- }
2172
- ],
2173
- "references": [
2174
- {
2175
- "name": "开发文档",
2176
- "url": "https://www.mdui.org/docs/2/components/dropdown"
2177
- },
2178
- {
2179
- "name": "Github",
2180
- "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/dropdown/index.ts"
2181
- }
2182
- ]
2183
- },
2184
- {
2185
- "name": "mdui-icon",
2186
- "description": "图标组件\n\n```html\n<mdui-icon name=\"search\"></mdui-icon>\n```",
2187
- "attributes": [
2188
- {
2189
- "name": "name",
2190
- "description": "Material Icons 图标名",
2191
- "references": [
2192
- {
2193
- "name": "开发文档",
2194
- "url": "https://www.mdui.org/docs/2/components/icon#attributes-name"
2195
- }
2196
- ]
2197
- },
2198
- {
2199
- "name": "src",
2200
- "description": "svg 图标的路径",
2201
- "references": [
2202
- {
2203
- "name": "开发文档",
2204
- "url": "https://www.mdui.org/docs/2/components/icon#attributes-src"
2205
- }
2206
- ]
2207
- }
2208
- ],
2209
- "references": [
2210
- {
2211
- "name": "开发文档",
2212
- "url": "https://www.mdui.org/docs/2/components/icon"
2213
- },
2214
- {
2215
- "name": "Github",
2216
- "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/icon/index.ts"
2217
- }
2218
- ]
2219
- },
2220
- {
2221
- "name": "mdui-fab",
2222
- "description": "浮动操作按钮组件\n\n```html\n<mdui-fab icon=\"edit\"></mdui-fab>\n```",
2223
- "attributes": [
2224
- {
2225
- "name": "variant",
2226
- "description": "FAB 形状,此组件的不同形状之间只有颜色不一样。可选值为:\n\n* `primary`:使用 Primary container 背景色\n* `surface`:使用 Surface container high 背景色\n* `secondary`:使用 Secondary container 背景色\n* `tertiary`:使用 Tertiary container 背景色",
2227
- "values": [
2228
- {
2229
- "name": "primary",
2230
- "description": "使用 Primary container 背景色"
2231
- },
2232
- {
2233
- "name": "surface",
2234
- "description": "使用 Surface container high 背景色"
2235
- },
2236
- {
2237
- "name": "secondary",
2238
- "description": "使用 Secondary container 背景色"
2239
- },
2240
- {
2241
- "name": "tertiary",
2242
- "description": "使用 Tertiary container 背景色"
2243
- }
2244
- ],
2245
- "references": [
2246
- {
2247
- "name": "开发文档",
2248
- "url": "https://www.mdui.org/docs/2/components/fab#attributes-variant"
2249
- }
2250
- ]
2251
- },
2252
- {
2253
- "name": "size",
2254
- "description": "FAB 大小。可选值为:\n* `normal`:普通大小 FAB\n* `small`:小型 FAB\n* `large`:大型 FAB",
2255
- "values": [
2256
- {
2257
- "name": "normal",
2258
- "description": "普通大小 FAB"
2259
- },
2260
- {
2261
- "name": "small",
2262
- "description": "小型 FAB"
2263
- },
2264
- {
2265
- "name": "large",
2266
- "description": "大型 FAB"
2267
- }
2268
- ],
2269
- "references": [
2270
- {
2271
- "name": "开发文档",
2272
- "url": "https://www.mdui.org/docs/2/components/fab#attributes-size"
2064
+ "url": "https://www.mdui.org/docs/2/components/fab#attributes-size"
2273
2065
  }
2274
2066
  ]
2275
2067
  },
@@ -2420,12 +2212,12 @@
2420
2212
  ]
2421
2213
  },
2422
2214
  {
2423
- "name": "tabindex",
2215
+ "name": "tabIndex",
2424
2216
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
2425
2217
  "references": [
2426
2218
  {
2427
2219
  "name": "开发文档",
2428
- "url": "https://www.mdui.org/docs/2/components/fab#attributes-tabindex"
2220
+ "url": "https://www.mdui.org/docs/2/components/fab#attributes-tabIndex"
2429
2221
  }
2430
2222
  ]
2431
2223
  },
@@ -2607,6 +2399,42 @@
2607
2399
  }
2608
2400
  ]
2609
2401
  },
2402
+ {
2403
+ "name": "mdui-icon",
2404
+ "description": "图标组件\n\n```html\n<mdui-icon name=\"search\"></mdui-icon>\n```",
2405
+ "attributes": [
2406
+ {
2407
+ "name": "name",
2408
+ "description": "Material Icons 图标名",
2409
+ "references": [
2410
+ {
2411
+ "name": "开发文档",
2412
+ "url": "https://www.mdui.org/docs/2/components/icon#attributes-name"
2413
+ }
2414
+ ]
2415
+ },
2416
+ {
2417
+ "name": "src",
2418
+ "description": "svg 图标的路径",
2419
+ "references": [
2420
+ {
2421
+ "name": "开发文档",
2422
+ "url": "https://www.mdui.org/docs/2/components/icon#attributes-src"
2423
+ }
2424
+ ]
2425
+ }
2426
+ ],
2427
+ "references": [
2428
+ {
2429
+ "name": "开发文档",
2430
+ "url": "https://www.mdui.org/docs/2/components/icon"
2431
+ },
2432
+ {
2433
+ "name": "Github",
2434
+ "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/icon/index.ts"
2435
+ }
2436
+ ]
2437
+ },
2610
2438
  {
2611
2439
  "name": "mdui-layout-item",
2612
2440
  "description": "布局项组件\n\n```html\n<mdui-layout>\n <mdui-layout-item></mdui-layout-item>\n <mdui-layout-item></mdui-layout-item>\n <mdui-layout-main></mdui-layout-main>\n</mdui-layout>\n```",
@@ -2702,117 +2530,36 @@
2702
2530
  ]
2703
2531
  },
2704
2532
  {
2705
- "name": "mdui-linear-progress",
2706
- "description": "线性进度指示器组件\n\n```html\n<mdui-linear-progress></mdui-linear-progress>\n```",
2533
+ "name": "mdui-menu-item",
2534
+ "description": "菜单项组件\n\n```html\n<mdui-menu>\n <mdui-menu-item>Item 1</mdui-menu-item>\n <mdui-menu-item>Item 2</mdui-menu-item>\n</mdui-menu>\n```",
2707
2535
  "attributes": [
2708
2536
  {
2709
- "name": "max",
2710
- "description": "进度指示器的最大值,默认为 1",
2537
+ "name": "value",
2538
+ "description": "该菜单项的值",
2711
2539
  "references": [
2712
2540
  {
2713
2541
  "name": "开发文档",
2714
- "url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-max"
2542
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-value"
2715
2543
  }
2716
2544
  ]
2717
2545
  },
2718
2546
  {
2719
- "name": "value",
2720
- "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
2721
- "references": [
2722
- {
2723
- "name": "开发文档",
2724
- "url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-value"
2725
- }
2726
- ]
2727
- }
2728
- ],
2729
- "references": [
2730
- {
2731
- "name": "开发文档",
2732
- "url": "https://www.mdui.org/docs/2/components/linear-progress"
2733
- },
2734
- {
2735
- "name": "Github",
2736
- "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/linear-progress/index.ts"
2737
- }
2738
- ]
2739
- },
2740
- {
2741
- "name": "mdui-list-item",
2742
- "description": "列表项组件。需与 `<mdui-list>` 组件配合使用\n\n```html\n<mdui-list>\n <mdui-list-subheader>Subheader</mdui-list-subheader>\n <mdui-list-item>Item 1</mdui-list-item>\n <mdui-list-item>Item 2</mdui-list-item>\n</mdui-list>\n```",
2743
- "attributes": [
2744
- {
2745
- "name": "headline",
2746
- "description": "主文本。也可以通过 default slot 设置",
2747
- "references": [
2748
- {
2749
- "name": "开发文档",
2750
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline"
2751
- }
2752
- ]
2753
- },
2754
- {
2755
- "name": "headline-line",
2756
- "description": "主文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
2757
- "values": [
2758
- {
2759
- "name": "1",
2760
- "description": "显示单行文本,超出后截断显示"
2761
- },
2762
- {
2763
- "name": "2",
2764
- "description": "显示两行文本,超出后截断显示"
2765
- },
2766
- {
2767
- "name": "3",
2768
- "description": "显示三行文本,超出后截断显示"
2769
- }
2770
- ],
2771
- "references": [
2772
- {
2773
- "name": "开发文档",
2774
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline-line"
2775
- }
2776
- ]
2777
- },
2778
- {
2779
- "name": "description",
2780
- "description": "副文本。也可以通过 `slot=\"description\"` 设置",
2781
- "references": [
2782
- {
2783
- "name": "开发文档",
2784
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description"
2785
- }
2786
- ]
2787
- },
2788
- {
2789
- "name": "description-line",
2790
- "description": "副文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
2791
- "values": [
2792
- {
2793
- "name": "1"
2794
- },
2795
- {
2796
- "name": "2"
2797
- },
2798
- {
2799
- "name": "3"
2800
- }
2801
- ],
2547
+ "name": "disabled",
2548
+ "description": "是否禁用该菜单项",
2802
2549
  "references": [
2803
2550
  {
2804
2551
  "name": "开发文档",
2805
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description-line"
2552
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-disabled"
2806
2553
  }
2807
2554
  ]
2808
2555
  },
2809
2556
  {
2810
2557
  "name": "icon",
2811
- "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
2558
+ "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置\n\n如果需要在左侧留出一个图标的位置,可以传入空字符串进行占位",
2812
2559
  "references": [
2813
2560
  {
2814
2561
  "name": "开发文档",
2815
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-icon"
2562
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-icon"
2816
2563
  }
2817
2564
  ]
2818
2565
  },
@@ -2822,71 +2569,37 @@
2822
2569
  "references": [
2823
2570
  {
2824
2571
  "name": "开发文档",
2825
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-end-icon"
2826
- }
2827
- ]
2828
- },
2829
- {
2830
- "name": "disabled",
2831
- "description": "是否禁用该列表项,列表项将置灰,且其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等都将禁用",
2832
- "references": [
2833
- {
2834
- "name": "开发文档",
2835
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-disabled"
2836
- }
2837
- ]
2838
- },
2839
- {
2840
- "name": "active",
2841
- "description": "是否激活该列表项",
2842
- "references": [
2843
- {
2844
- "name": "开发文档",
2845
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-active"
2572
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-end-icon"
2846
2573
  }
2847
2574
  ]
2848
2575
  },
2849
2576
  {
2850
- "name": "nonclickable",
2851
- "description": "是否使列表项不可点击,但其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等仍可进行交互",
2577
+ "name": "end-text",
2578
+ "description": "右侧的文本。也可以通过 `slot=\"end-text\"` 设置",
2852
2579
  "references": [
2853
2580
  {
2854
2581
  "name": "开发文档",
2855
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-nonclickable"
2582
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-end-text"
2856
2583
  }
2857
2584
  ]
2858
2585
  },
2859
2586
  {
2860
- "name": "rounded",
2861
- "description": "使用圆角形状的列表项",
2587
+ "name": "selected-icon",
2588
+ "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
2862
2589
  "references": [
2863
2590
  {
2864
2591
  "name": "开发文档",
2865
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rounded"
2592
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-selected-icon"
2866
2593
  }
2867
2594
  ]
2868
2595
  },
2869
2596
  {
2870
- "name": "alignment",
2871
- "description": "列表项的垂直对齐方式。可选值为:\n\n* `start`:顶部对齐\n* `center`:居中对齐\n* `end`:底部对齐",
2872
- "values": [
2873
- {
2874
- "name": "start",
2875
- "description": "顶部对齐"
2876
- },
2877
- {
2878
- "name": "center",
2879
- "description": "居中对齐"
2880
- },
2881
- {
2882
- "name": "end",
2883
- "description": "底部对齐"
2884
- }
2885
- ],
2597
+ "name": "submenu-open",
2598
+ "description": "是否打开子菜单",
2886
2599
  "references": [
2887
2600
  {
2888
2601
  "name": "开发文档",
2889
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-alignment"
2602
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-submenu-open"
2890
2603
  }
2891
2604
  ]
2892
2605
  },
@@ -2896,7 +2609,7 @@
2896
2609
  "references": [
2897
2610
  {
2898
2611
  "name": "开发文档",
2899
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-href"
2612
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-href"
2900
2613
  }
2901
2614
  ]
2902
2615
  },
@@ -2906,7 +2619,7 @@
2906
2619
  "references": [
2907
2620
  {
2908
2621
  "name": "开发文档",
2909
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-download"
2622
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-download"
2910
2623
  }
2911
2624
  ]
2912
2625
  },
@@ -2934,7 +2647,7 @@
2934
2647
  "references": [
2935
2648
  {
2936
2649
  "name": "开发文档",
2937
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-target"
2650
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-target"
2938
2651
  }
2939
2652
  ]
2940
2653
  },
@@ -3002,7 +2715,7 @@
3002
2715
  "references": [
3003
2716
  {
3004
2717
  "name": "开发文档",
3005
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rel"
2718
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-rel"
3006
2719
  }
3007
2720
  ]
3008
2721
  },
@@ -3012,17 +2725,17 @@
3012
2725
  "references": [
3013
2726
  {
3014
2727
  "name": "开发文档",
3015
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-autofocus"
2728
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-autofocus"
3016
2729
  }
3017
2730
  ]
3018
2731
  },
3019
2732
  {
3020
- "name": "tabindex",
2733
+ "name": "tabIndex",
3021
2734
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
3022
2735
  "references": [
3023
2736
  {
3024
2737
  "name": "开发文档",
3025
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-tabindex"
2738
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-tabIndex"
3026
2739
  }
3027
2740
  ]
3028
2741
  }
@@ -3030,113 +2743,304 @@
3030
2743
  "references": [
3031
2744
  {
3032
2745
  "name": "开发文档",
3033
- "url": "https://www.mdui.org/docs/2/components/list"
2746
+ "url": "https://www.mdui.org/docs/2/components/menu"
3034
2747
  },
3035
2748
  {
3036
2749
  "name": "Github",
3037
- "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/list/list-item.ts"
2750
+ "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/menu/menu-item.ts"
3038
2751
  }
3039
2752
  ]
3040
2753
  },
3041
2754
  {
3042
- "name": "mdui-list-subheader",
3043
- "description": "列表标题组件。需与 `<mdui-list>` 组件配合使用\n\n```html\n<mdui-list>\n <mdui-list-subheader>Subheader</mdui-list-subheader>\n <mdui-list-item>Item 1</mdui-list-item>\n <mdui-list-item>Item 2</mdui-list-item>\n</mdui-list>\n```",
2755
+ "name": "mdui-menu",
2756
+ "description": "菜单组件。需与 `<mdui-menu-item>` 组件配合使用\n\n```html\n<mdui-menu>\n <mdui-menu-item>Item 1</mdui-menu-item>\n <mdui-menu-item>Item 2</mdui-menu-item>\n</mdui-menu>\n```",
2757
+ "attributes": [
2758
+ {
2759
+ "name": "selects",
2760
+ "description": "菜单项的可选中状态。默认为不可选中。可选值为:\n\n* `single`:最多只能选中一个\n* `multiple`:可以选中多个",
2761
+ "values": [
2762
+ {
2763
+ "name": "single",
2764
+ "description": "最多只能选中一个"
2765
+ },
2766
+ {
2767
+ "name": "multiple",
2768
+ "description": "可以选中多个"
2769
+ }
2770
+ ],
2771
+ "references": [
2772
+ {
2773
+ "name": "开发文档",
2774
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-selects"
2775
+ }
2776
+ ]
2777
+ },
2778
+ {
2779
+ "name": "value",
2780
+ "description": "当前选中的 `<mdui-menu-item>` 的值\n\nNote:\n该属性的 HTML 属性始终为字符串,且仅在 `selects=\"single\"` 时可以通过 HTML 属性设置初始值;\n该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串、在 `selects=\"multiple\"` 时为字符串数组。\n所以,在 `selects=\"multiple\"` 时,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
2781
+ "references": [
2782
+ {
2783
+ "name": "开发文档",
2784
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-value"
2785
+ }
2786
+ ]
2787
+ },
2788
+ {
2789
+ "name": "dense",
2790
+ "description": "菜单项是否使用更紧凑的布局",
2791
+ "references": [
2792
+ {
2793
+ "name": "开发文档",
2794
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-dense"
2795
+ }
2796
+ ]
2797
+ },
2798
+ {
2799
+ "name": "submenu-trigger",
2800
+ "description": "子菜单的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击菜单项时打开子菜单\n* `hover`:鼠标悬浮到菜单项上时打开子菜单\n* `focus`:聚焦到菜单项上时打开子菜单\n* `manual`:使用了该值时,只能使用编程方式打开和关闭子菜单,且不能再指定其他触发方式",
2801
+ "values": [
2802
+ {
2803
+ "name": "click",
2804
+ "description": "点击菜单项时打开子菜单"
2805
+ },
2806
+ {
2807
+ "name": "hover",
2808
+ "description": "鼠标悬浮到菜单项上时打开子菜单"
2809
+ },
2810
+ {
2811
+ "name": "focus",
2812
+ "description": "聚焦到菜单项上时打开子菜单"
2813
+ },
2814
+ {
2815
+ "name": "manual",
2816
+ "description": "使用了该值时,只能使用编程方式打开和关闭子菜单,且不能再指定其他触发方式"
2817
+ }
2818
+ ],
2819
+ "references": [
2820
+ {
2821
+ "name": "开发文档",
2822
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-trigger"
2823
+ }
2824
+ ]
2825
+ },
2826
+ {
2827
+ "name": "submenu-open-delay",
2828
+ "description": "通过 hover 触发子菜单打开时的延时,单位为毫秒",
2829
+ "references": [
2830
+ {
2831
+ "name": "开发文档",
2832
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-open-delay"
2833
+ }
2834
+ ]
2835
+ },
2836
+ {
2837
+ "name": "submenu-close-delay",
2838
+ "description": "通过 hover 触发子菜单关闭时的延时,单位为毫秒",
2839
+ "references": [
2840
+ {
2841
+ "name": "开发文档",
2842
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-close-delay"
2843
+ }
2844
+ ]
2845
+ }
2846
+ ],
3044
2847
  "references": [
3045
2848
  {
3046
2849
  "name": "开发文档",
3047
- "url": "https://www.mdui.org/docs/2/components/list"
2850
+ "url": "https://www.mdui.org/docs/2/components/menu"
3048
2851
  },
3049
2852
  {
3050
2853
  "name": "Github",
3051
- "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/list/list-subheader.ts"
2854
+ "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/menu/menu.ts"
3052
2855
  }
3053
2856
  ]
3054
2857
  },
3055
2858
  {
3056
- "name": "mdui-list",
3057
- "description": "列表组件。需与 `<mdui-list-item>` 组件配合使用\n\n```html\n<mdui-list>\n <mdui-list-subheader>Subheader</mdui-list-subheader>\n <mdui-list-item>Item 1</mdui-list-item>\n <mdui-list-item>Item 2</mdui-list-item>\n</mdui-list>\n```",
2859
+ "name": "mdui-linear-progress",
2860
+ "description": "线性进度指示器组件\n\n```html\n<mdui-linear-progress></mdui-linear-progress>\n```",
2861
+ "attributes": [
2862
+ {
2863
+ "name": "max",
2864
+ "description": "进度指示器的最大值,默认为 1",
2865
+ "references": [
2866
+ {
2867
+ "name": "开发文档",
2868
+ "url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-max"
2869
+ }
2870
+ ]
2871
+ },
2872
+ {
2873
+ "name": "value",
2874
+ "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
2875
+ "references": [
2876
+ {
2877
+ "name": "开发文档",
2878
+ "url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-value"
2879
+ }
2880
+ ]
2881
+ }
2882
+ ],
3058
2883
  "references": [
3059
2884
  {
3060
2885
  "name": "开发文档",
3061
- "url": "https://www.mdui.org/docs/2/components/list"
2886
+ "url": "https://www.mdui.org/docs/2/components/linear-progress"
2887
+ },
2888
+ {
2889
+ "name": "Github",
2890
+ "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/linear-progress/index.ts"
2891
+ }
2892
+ ]
2893
+ },
2894
+ {
2895
+ "name": "mdui-list-item",
2896
+ "description": "列表项组件。需与 `<mdui-list>` 组件配合使用\n\n```html\n<mdui-list>\n <mdui-list-subheader>Subheader</mdui-list-subheader>\n <mdui-list-item>Item 1</mdui-list-item>\n <mdui-list-item>Item 2</mdui-list-item>\n</mdui-list>\n```",
2897
+ "attributes": [
2898
+ {
2899
+ "name": "headline",
2900
+ "description": "主文本。也可以通过 default slot 设置",
2901
+ "references": [
2902
+ {
2903
+ "name": "开发文档",
2904
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline"
2905
+ }
2906
+ ]
2907
+ },
2908
+ {
2909
+ "name": "headline-line",
2910
+ "description": "主文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
2911
+ "values": [
2912
+ {
2913
+ "name": "1",
2914
+ "description": "显示单行文本,超出后截断显示"
2915
+ },
2916
+ {
2917
+ "name": "2",
2918
+ "description": "显示两行文本,超出后截断显示"
2919
+ },
2920
+ {
2921
+ "name": "3",
2922
+ "description": "显示三行文本,超出后截断显示"
2923
+ }
2924
+ ],
2925
+ "references": [
2926
+ {
2927
+ "name": "开发文档",
2928
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline-line"
2929
+ }
2930
+ ]
2931
+ },
2932
+ {
2933
+ "name": "description",
2934
+ "description": "副文本。也可以通过 `slot=\"description\"` 设置",
2935
+ "references": [
2936
+ {
2937
+ "name": "开发文档",
2938
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description"
2939
+ }
2940
+ ]
2941
+ },
2942
+ {
2943
+ "name": "description-line",
2944
+ "description": "副文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
2945
+ "values": [
2946
+ {
2947
+ "name": "1"
2948
+ },
2949
+ {
2950
+ "name": "2"
2951
+ },
2952
+ {
2953
+ "name": "3"
2954
+ }
2955
+ ],
2956
+ "references": [
2957
+ {
2958
+ "name": "开发文档",
2959
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description-line"
2960
+ }
2961
+ ]
3062
2962
  },
3063
2963
  {
3064
- "name": "Github",
3065
- "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/list/list.ts"
3066
- }
3067
- ]
3068
- },
3069
- {
3070
- "name": "mdui-menu-item",
3071
- "description": "菜单项组件\n\n```html\n<mdui-menu>\n <mdui-menu-item>Item 1</mdui-menu-item>\n <mdui-menu-item>Item 2</mdui-menu-item>\n</mdui-menu>\n```",
3072
- "attributes": [
3073
- {
3074
- "name": "value",
3075
- "description": "该菜单项的值",
2964
+ "name": "icon",
2965
+ "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
3076
2966
  "references": [
3077
2967
  {
3078
2968
  "name": "开发文档",
3079
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-value"
2969
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-icon"
3080
2970
  }
3081
2971
  ]
3082
2972
  },
3083
2973
  {
3084
- "name": "disabled",
3085
- "description": "是否禁用该菜单项",
2974
+ "name": "end-icon",
2975
+ "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
3086
2976
  "references": [
3087
2977
  {
3088
2978
  "name": "开发文档",
3089
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-disabled"
2979
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-end-icon"
3090
2980
  }
3091
2981
  ]
3092
2982
  },
3093
2983
  {
3094
- "name": "icon",
3095
- "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置\n\n如果需要在左侧留出一个图标的位置,可以传入空字符串进行占位",
2984
+ "name": "disabled",
2985
+ "description": "是否禁用该列表项,列表项将置灰,且其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等都将禁用",
3096
2986
  "references": [
3097
2987
  {
3098
2988
  "name": "开发文档",
3099
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-icon"
2989
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-disabled"
3100
2990
  }
3101
2991
  ]
3102
2992
  },
3103
2993
  {
3104
- "name": "end-icon",
3105
- "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
2994
+ "name": "active",
2995
+ "description": "是否激活该列表项",
3106
2996
  "references": [
3107
2997
  {
3108
2998
  "name": "开发文档",
3109
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-end-icon"
2999
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-active"
3110
3000
  }
3111
3001
  ]
3112
3002
  },
3113
3003
  {
3114
- "name": "end-text",
3115
- "description": "右侧的文本。也可以通过 `slot=\"end-text\"` 设置",
3004
+ "name": "nonclickable",
3005
+ "description": "是否使列表项不可点击,但其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等仍可进行交互",
3116
3006
  "references": [
3117
3007
  {
3118
3008
  "name": "开发文档",
3119
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-end-text"
3009
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-nonclickable"
3120
3010
  }
3121
3011
  ]
3122
3012
  },
3123
3013
  {
3124
- "name": "selected-icon",
3125
- "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
3014
+ "name": "rounded",
3015
+ "description": "使用圆角形状的列表项",
3126
3016
  "references": [
3127
3017
  {
3128
3018
  "name": "开发文档",
3129
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-selected-icon"
3019
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rounded"
3130
3020
  }
3131
3021
  ]
3132
3022
  },
3133
3023
  {
3134
- "name": "submenu-open",
3135
- "description": "是否打开子菜单",
3024
+ "name": "alignment",
3025
+ "description": "列表项的垂直对齐方式。可选值为:\n\n* `start`:顶部对齐\n* `center`:居中对齐\n* `end`:底部对齐",
3026
+ "values": [
3027
+ {
3028
+ "name": "start",
3029
+ "description": "顶部对齐"
3030
+ },
3031
+ {
3032
+ "name": "center",
3033
+ "description": "居中对齐"
3034
+ },
3035
+ {
3036
+ "name": "end",
3037
+ "description": "底部对齐"
3038
+ }
3039
+ ],
3136
3040
  "references": [
3137
3041
  {
3138
3042
  "name": "开发文档",
3139
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-submenu-open"
3043
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-alignment"
3140
3044
  }
3141
3045
  ]
3142
3046
  },
@@ -3146,7 +3050,7 @@
3146
3050
  "references": [
3147
3051
  {
3148
3052
  "name": "开发文档",
3149
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-href"
3053
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-href"
3150
3054
  }
3151
3055
  ]
3152
3056
  },
@@ -3156,7 +3060,7 @@
3156
3060
  "references": [
3157
3061
  {
3158
3062
  "name": "开发文档",
3159
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-download"
3063
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-download"
3160
3064
  }
3161
3065
  ]
3162
3066
  },
@@ -3184,7 +3088,7 @@
3184
3088
  "references": [
3185
3089
  {
3186
3090
  "name": "开发文档",
3187
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-target"
3091
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-target"
3188
3092
  }
3189
3093
  ]
3190
3094
  },
@@ -3252,7 +3156,7 @@
3252
3156
  "references": [
3253
3157
  {
3254
3158
  "name": "开发文档",
3255
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-rel"
3159
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rel"
3256
3160
  }
3257
3161
  ]
3258
3162
  },
@@ -3262,17 +3166,17 @@
3262
3166
  "references": [
3263
3167
  {
3264
3168
  "name": "开发文档",
3265
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-autofocus"
3169
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-autofocus"
3266
3170
  }
3267
3171
  ]
3268
3172
  },
3269
3173
  {
3270
- "name": "tabindex",
3174
+ "name": "tabIndex",
3271
3175
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
3272
3176
  "references": [
3273
3177
  {
3274
3178
  "name": "开发文档",
3275
- "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-tabindex"
3179
+ "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-tabIndex"
3276
3180
  }
3277
3181
  ]
3278
3182
  }
@@ -3280,103 +3184,199 @@
3280
3184
  "references": [
3281
3185
  {
3282
3186
  "name": "开发文档",
3283
- "url": "https://www.mdui.org/docs/2/components/menu"
3187
+ "url": "https://www.mdui.org/docs/2/components/list"
3284
3188
  },
3285
3189
  {
3286
3190
  "name": "Github",
3287
- "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/menu/menu-item.ts"
3191
+ "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/list/list-item.ts"
3288
3192
  }
3289
3193
  ]
3290
3194
  },
3291
3195
  {
3292
- "name": "mdui-menu",
3293
- "description": "菜单组件。需与 `<mdui-menu-item>` 组件配合使用\n\n```html\n<mdui-menu>\n <mdui-menu-item>Item 1</mdui-menu-item>\n <mdui-menu-item>Item 2</mdui-menu-item>\n</mdui-menu>\n```",
3196
+ "name": "mdui-list-subheader",
3197
+ "description": "列表标题组件。需与 `<mdui-list>` 组件配合使用\n\n```html\n<mdui-list>\n <mdui-list-subheader>Subheader</mdui-list-subheader>\n <mdui-list-item>Item 1</mdui-list-item>\n <mdui-list-item>Item 2</mdui-list-item>\n</mdui-list>\n```",
3198
+ "references": [
3199
+ {
3200
+ "name": "开发文档",
3201
+ "url": "https://www.mdui.org/docs/2/components/list"
3202
+ },
3203
+ {
3204
+ "name": "Github",
3205
+ "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/list/list-subheader.ts"
3206
+ }
3207
+ ]
3208
+ },
3209
+ {
3210
+ "name": "mdui-list",
3211
+ "description": "列表组件。需与 `<mdui-list-item>` 组件配合使用\n\n```html\n<mdui-list>\n <mdui-list-subheader>Subheader</mdui-list-subheader>\n <mdui-list-item>Item 1</mdui-list-item>\n <mdui-list-item>Item 2</mdui-list-item>\n</mdui-list>\n```",
3212
+ "references": [
3213
+ {
3214
+ "name": "开发文档",
3215
+ "url": "https://www.mdui.org/docs/2/components/list"
3216
+ },
3217
+ {
3218
+ "name": "Github",
3219
+ "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/list/list.ts"
3220
+ }
3221
+ ]
3222
+ },
3223
+ {
3224
+ "name": "mdui-dropdown",
3225
+ "description": "下拉组件\n\n```html\n<mdui-dropdown>\n <mdui-button slot=\"trigger\">open dropdown</mdui-button>\n <mdui-menu>\n <mdui-menu-item>Item 1</mdui-menu-item>\n <mdui-menu-item>Item 2</mdui-menu-item>\n </mdui-menu>\n</mdui-dropdown>\n```",
3294
3226
  "attributes": [
3295
3227
  {
3296
- "name": "selects",
3297
- "description": "菜单项的可选中状态。默认为不可选中。可选值为:\n\n* `single`:最多只能选中一个\n* `multiple`:可以选中多个",
3298
- "values": [
3299
- {
3300
- "name": "single",
3301
- "description": "最多只能选中一个"
3302
- },
3303
- {
3304
- "name": "multiple",
3305
- "description": "可以选中多个"
3306
- }
3307
- ],
3228
+ "name": "open",
3229
+ "description": "dropdown 是否打开",
3308
3230
  "references": [
3309
3231
  {
3310
3232
  "name": "开发文档",
3311
- "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-selects"
3233
+ "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open"
3312
3234
  }
3313
3235
  ]
3314
3236
  },
3315
3237
  {
3316
- "name": "value",
3317
- "description": "当前选中的 `<mdui-menu-item>` 的值\n\nNote:\n该属性的 HTML 属性始终为字符串,且仅在 `selects=\"single\"` 时可以通过 HTML 属性设置初始值;\n该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串、在 `selects=\"multiple\"` 时为字符串数组。\n所以,在 `selects=\"multiple\"` 时,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
3238
+ "name": "disabled",
3239
+ "description": "是否禁用 dropdown",
3318
3240
  "references": [
3319
3241
  {
3320
3242
  "name": "开发文档",
3321
- "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-value"
3243
+ "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-disabled"
3322
3244
  }
3323
3245
  ]
3324
3246
  },
3325
3247
  {
3326
- "name": "dense",
3327
- "description": "菜单项是否使用更紧凑的布局",
3248
+ "name": "trigger",
3249
+ "description": "dropdown 的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击时触发\n* `hover`:鼠标悬浮触发\n* `focus`:聚焦时触发\n* `contextmenu`:鼠标右键点击、或触摸长按时触发\n* `manual`:使用了该值时,只能使用编程方式打开和关闭 dropdown,且不能再指定其他触发方式",
3250
+ "values": [
3251
+ {
3252
+ "name": "click",
3253
+ "description": "点击时触发"
3254
+ },
3255
+ {
3256
+ "name": "hover",
3257
+ "description": "鼠标悬浮触发"
3258
+ },
3259
+ {
3260
+ "name": "focus",
3261
+ "description": "聚焦时触发"
3262
+ },
3263
+ {
3264
+ "name": "contextmenu",
3265
+ "description": "鼠标右键点击、或触摸长按时触发"
3266
+ },
3267
+ {
3268
+ "name": "manual",
3269
+ "description": "使用了该值时,只能使用编程方式打开和关闭 dropdown,且不能再指定其他触发方式"
3270
+ }
3271
+ ],
3328
3272
  "references": [
3329
3273
  {
3330
3274
  "name": "开发文档",
3331
- "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-dense"
3275
+ "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-trigger"
3332
3276
  }
3333
3277
  ]
3334
3278
  },
3335
3279
  {
3336
- "name": "submenu-trigger",
3337
- "description": "子菜单的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击菜单项时打开子菜单\n* `hover`:鼠标悬浮到菜单项上时打开子菜单\n* `focus`:聚焦到菜单项上时打开子菜单\n* `manual`:使用了该值时,只能使用编程方式打开和关闭子菜单,且不能再指定其他触发方式",
3280
+ "name": "placement",
3281
+ "description": "dropdown 内容的位置。可选值为:\n\n* `auto`:自动判断位置\n* `top-start`:位于上方,且左对齐\n* `top`:位于上方,且居中对齐\n* `top-end`:位于上方,且右对齐\n* `bottom-start`:位于下方,且左对齐\n* `bottom`:位于下方,且居中对齐\n* `bottom-end`:位于下方,且右对齐\n* `left-start`:位于左侧,且顶部对齐\n* `left`:位于左侧,且居中对齐\n* `left-end`:位于左侧,且底部对齐\n* `right-start`:位于右侧,且顶部对齐\n* `right`:位于右侧,且居中对齐\n* `right-end`:位于右侧,且底部对齐",
3338
3282
  "values": [
3339
3283
  {
3340
- "name": "click",
3341
- "description": "点击菜单项时打开子菜单"
3284
+ "name": "auto",
3285
+ "description": "自动判断位置"
3342
3286
  },
3343
3287
  {
3344
- "name": "hover",
3345
- "description": "鼠标悬浮到菜单项上时打开子菜单"
3288
+ "name": "top-start",
3289
+ "description": "位于上方,且左对齐"
3346
3290
  },
3347
3291
  {
3348
- "name": "focus",
3349
- "description": "聚焦到菜单项上时打开子菜单"
3292
+ "name": "top",
3293
+ "description": "位于上方,且居中对齐"
3350
3294
  },
3351
3295
  {
3352
- "name": "manual",
3353
- "description": "使用了该值时,只能使用编程方式打开和关闭子菜单,且不能再指定其他触发方式"
3296
+ "name": "top-end",
3297
+ "description": "位于上方,且右对齐"
3298
+ },
3299
+ {
3300
+ "name": "bottom-start",
3301
+ "description": "位于下方,且左对齐"
3302
+ },
3303
+ {
3304
+ "name": "bottom",
3305
+ "description": "位于下方,且居中对齐"
3306
+ },
3307
+ {
3308
+ "name": "bottom-end",
3309
+ "description": "位于下方,且右对齐"
3310
+ },
3311
+ {
3312
+ "name": "left-start",
3313
+ "description": "位于左侧,且顶部对齐"
3314
+ },
3315
+ {
3316
+ "name": "left",
3317
+ "description": "位于左侧,且居中对齐"
3318
+ },
3319
+ {
3320
+ "name": "left-end",
3321
+ "description": "位于左侧,且底部对齐"
3322
+ },
3323
+ {
3324
+ "name": "right-start",
3325
+ "description": "位于右侧,且顶部对齐"
3326
+ },
3327
+ {
3328
+ "name": "right",
3329
+ "description": "位于右侧,且居中对齐"
3330
+ },
3331
+ {
3332
+ "name": "right-end",
3333
+ "description": "位于右侧,且底部对齐"
3354
3334
  }
3355
3335
  ],
3356
3336
  "references": [
3357
3337
  {
3358
3338
  "name": "开发文档",
3359
- "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-trigger"
3339
+ "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-placement"
3360
3340
  }
3361
3341
  ]
3362
3342
  },
3363
3343
  {
3364
- "name": "submenu-open-delay",
3365
- "description": "通过 hover 触发子菜单打开时的延时,单位为毫秒",
3344
+ "name": "stay-open-on-click",
3345
+ "description": "在点击 [`<mdui-menu-item>`](https://www.mdui.org/docs/2/components/menu#menu-item-api) 元素后,是否仍保持 dropdown 为打开状态",
3366
3346
  "references": [
3367
3347
  {
3368
3348
  "name": "开发文档",
3369
- "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-open-delay"
3349
+ "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-stay-open-on-click"
3370
3350
  }
3371
3351
  ]
3372
3352
  },
3373
3353
  {
3374
- "name": "submenu-close-delay",
3375
- "description": "通过 hover 触发子菜单关闭时的延时,单位为毫秒",
3354
+ "name": "open-delay",
3355
+ "description": "通过 hover 触发 dropdown 打开时的延时,单位为毫秒",
3376
3356
  "references": [
3377
3357
  {
3378
3358
  "name": "开发文档",
3379
- "url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-close-delay"
3359
+ "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open-delay"
3360
+ }
3361
+ ]
3362
+ },
3363
+ {
3364
+ "name": "close-delay",
3365
+ "description": "通过 hover 触发 dropdown 关闭时的延时,单位为毫秒",
3366
+ "references": [
3367
+ {
3368
+ "name": "开发文档",
3369
+ "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-close-delay"
3370
+ }
3371
+ ]
3372
+ },
3373
+ {
3374
+ "name": "open-on-pointer",
3375
+ "description": "是否在触发 dropdown 时的光标所在的位置打开 dropdown。通常用于在打开鼠标右键菜单时使用",
3376
+ "references": [
3377
+ {
3378
+ "name": "开发文档",
3379
+ "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open-on-pointer"
3380
3380
  }
3381
3381
  ]
3382
3382
  }
@@ -3384,11 +3384,11 @@
3384
3384
  "references": [
3385
3385
  {
3386
3386
  "name": "开发文档",
3387
- "url": "https://www.mdui.org/docs/2/components/menu"
3387
+ "url": "https://www.mdui.org/docs/2/components/dropdown"
3388
3388
  },
3389
3389
  {
3390
3390
  "name": "Github",
3391
- "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/menu/menu.ts"
3391
+ "url": "https://github.com/zdhxiong/mdui/packages/mdui/src/components/dropdown/index.ts"
3392
3392
  }
3393
3393
  ]
3394
3394
  },
@@ -3553,12 +3553,12 @@
3553
3553
  ]
3554
3554
  },
3555
3555
  {
3556
- "name": "tabindex",
3556
+ "name": "tabIndex",
3557
3557
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
3558
3558
  "references": [
3559
3559
  {
3560
3560
  "name": "开发文档",
3561
- "url": "https://www.mdui.org/docs/2/components/navigation-bar#navigation-bar-item-attributes-tabindex"
3561
+ "url": "https://www.mdui.org/docs/2/components/navigation-bar#navigation-bar-item-attributes-tabIndex"
3562
3562
  }
3563
3563
  ]
3564
3564
  }
@@ -3949,12 +3949,12 @@
3949
3949
  ]
3950
3950
  },
3951
3951
  {
3952
- "name": "tabindex",
3952
+ "name": "tabIndex",
3953
3953
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
3954
3954
  "references": [
3955
3955
  {
3956
3956
  "name": "开发文档",
3957
- "url": "https://www.mdui.org/docs/2/components/navigation-rail#navigation-rail-item-attributes-tabindex"
3957
+ "url": "https://www.mdui.org/docs/2/components/navigation-rail#navigation-rail-item-attributes-tabIndex"
3958
3958
  }
3959
3959
  ]
3960
3960
  }
@@ -4201,12 +4201,12 @@
4201
4201
  ]
4202
4202
  },
4203
4203
  {
4204
- "name": "tabindex",
4204
+ "name": "tabIndex",
4205
4205
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
4206
4206
  "references": [
4207
4207
  {
4208
4208
  "name": "开发文档",
4209
- "url": "https://www.mdui.org/docs/2/components/radio#radio-attributes-tabindex"
4209
+ "url": "https://www.mdui.org/docs/2/components/radio#radio-attributes-tabIndex"
4210
4210
  }
4211
4211
  ]
4212
4212
  }
@@ -4237,12 +4237,12 @@
4237
4237
  ]
4238
4238
  },
4239
4239
  {
4240
- "name": "tabindex",
4240
+ "name": "tabIndex",
4241
4241
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
4242
4242
  "references": [
4243
4243
  {
4244
4244
  "name": "开发文档",
4245
- "url": "https://www.mdui.org/docs/2/components/range-slider#attributes-tabindex"
4245
+ "url": "https://www.mdui.org/docs/2/components/range-slider#attributes-tabIndex"
4246
4246
  }
4247
4247
  ]
4248
4248
  },
@@ -4595,12 +4595,12 @@
4595
4595
  ]
4596
4596
  },
4597
4597
  {
4598
- "name": "tabindex",
4598
+ "name": "tabIndex",
4599
4599
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
4600
4600
  "references": [
4601
4601
  {
4602
4602
  "name": "开发文档",
4603
- "url": "https://www.mdui.org/docs/2/components/segmented-button#segmented-button-attributes-tabindex"
4603
+ "url": "https://www.mdui.org/docs/2/components/segmented-button#segmented-button-attributes-tabIndex"
4604
4604
  }
4605
4605
  ]
4606
4606
  },
@@ -5021,12 +5021,12 @@
5021
5021
  ]
5022
5022
  },
5023
5023
  {
5024
- "name": "tabindex",
5024
+ "name": "tabIndex",
5025
5025
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
5026
5026
  "references": [
5027
5027
  {
5028
5028
  "name": "开发文档",
5029
- "url": "https://www.mdui.org/docs/2/components/select#attributes-tabindex"
5029
+ "url": "https://www.mdui.org/docs/2/components/select#attributes-tabIndex"
5030
5030
  }
5031
5031
  ]
5032
5032
  }
@@ -5067,12 +5067,12 @@
5067
5067
  ]
5068
5068
  },
5069
5069
  {
5070
- "name": "tabindex",
5070
+ "name": "tabIndex",
5071
5071
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
5072
5072
  "references": [
5073
5073
  {
5074
5074
  "name": "开发文档",
5075
- "url": "https://www.mdui.org/docs/2/components/slider#attributes-tabindex"
5075
+ "url": "https://www.mdui.org/docs/2/components/slider#attributes-tabIndex"
5076
5076
  }
5077
5077
  ]
5078
5078
  },
@@ -5405,12 +5405,12 @@
5405
5405
  ]
5406
5406
  },
5407
5407
  {
5408
- "name": "tabindex",
5408
+ "name": "tabIndex",
5409
5409
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
5410
5410
  "references": [
5411
5411
  {
5412
5412
  "name": "开发文档",
5413
- "url": "https://www.mdui.org/docs/2/components/switch#attributes-tabindex"
5413
+ "url": "https://www.mdui.org/docs/2/components/switch#attributes-tabIndex"
5414
5414
  }
5415
5415
  ]
5416
5416
  }
@@ -5497,12 +5497,12 @@
5497
5497
  ]
5498
5498
  },
5499
5499
  {
5500
- "name": "tabindex",
5500
+ "name": "tabIndex",
5501
5501
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
5502
5502
  "references": [
5503
5503
  {
5504
5504
  "name": "开发文档",
5505
- "url": "https://www.mdui.org/docs/2/components/tabs#tab-attributes-tabindex"
5505
+ "url": "https://www.mdui.org/docs/2/components/tabs#tab-attributes-tabIndex"
5506
5506
  }
5507
5507
  ]
5508
5508
  }
@@ -6205,12 +6205,12 @@
6205
6205
  ]
6206
6206
  },
6207
6207
  {
6208
- "name": "tabindex",
6208
+ "name": "tabIndex",
6209
6209
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
6210
6210
  "references": [
6211
6211
  {
6212
6212
  "name": "开发文档",
6213
- "url": "https://www.mdui.org/docs/2/components/text-field#attributes-tabindex"
6213
+ "url": "https://www.mdui.org/docs/2/components/text-field#attributes-tabIndex"
6214
6214
  }
6215
6215
  ]
6216
6216
  }