mdui 2.0.1 → 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 (97) hide show
  1. package/LICENSE +21 -21
  2. package/components/avatar/index.js +2 -1
  3. package/components/badge/index.js +2 -1
  4. package/components/bottom-app-bar/index.d.ts +2 -2
  5. package/components/bottom-app-bar/index.js +4 -3
  6. package/components/button/button-base.d.ts +2 -2
  7. package/components/button/button-base.js +15 -14
  8. package/components/button/index.js +2 -1
  9. package/components/button-icon/index.js +2 -1
  10. package/components/card/index.d.ts +1 -1
  11. package/components/card/index.js +5 -2
  12. package/components/checkbox/index.js +7 -10
  13. package/components/checkbox/style.js +1 -1
  14. package/components/chip/index.js +2 -1
  15. package/components/circular-progress/index.js +3 -3
  16. package/components/collapse/collapse-item-style.js +1 -1
  17. package/components/collapse/collapse-item.d.ts +2 -1
  18. package/components/collapse/collapse-item.js +23 -20
  19. package/components/collapse/collapse.d.ts +6 -6
  20. package/components/collapse/collapse.js +57 -34
  21. package/components/dialog/index.d.ts +3 -2
  22. package/components/dialog/index.js +27 -23
  23. package/components/divider/index.js +2 -1
  24. package/components/dropdown/index.d.ts +4 -5
  25. package/components/dropdown/index.js +56 -51
  26. package/components/fab/index.d.ts +1 -0
  27. package/components/fab/index.js +10 -5
  28. package/components/icon/index.js +2 -1
  29. package/components/layout/helper.d.ts +5 -6
  30. package/components/layout/helper.js +42 -48
  31. package/components/layout/layout-item-base.js +1 -2
  32. package/components/layout/layout-item.js +3 -3
  33. package/components/layout/layout-main.js +2 -1
  34. package/components/layout/layout.js +2 -1
  35. package/components/linear-progress/index.js +3 -3
  36. package/components/list/list-item.js +3 -2
  37. package/components/list/list-subheader.js +2 -1
  38. package/components/list/list.js +2 -1
  39. package/components/menu/menu-item.d.ts +1 -0
  40. package/components/menu/menu-item.js +45 -28
  41. package/components/menu/menu.d.ts +4 -1
  42. package/components/menu/menu.js +82 -56
  43. package/components/navigation-bar/navigation-bar-item-style.js +1 -1
  44. package/components/navigation-bar/navigation-bar-item.d.ts +6 -2
  45. package/components/navigation-bar/navigation-bar-item.js +26 -10
  46. package/components/navigation-bar/navigation-bar.d.ts +6 -6
  47. package/components/navigation-bar/navigation-bar.js +49 -42
  48. package/components/navigation-drawer/index.d.ts +5 -1
  49. package/components/navigation-drawer/index.js +62 -41
  50. package/components/navigation-rail/navigation-rail-item-style.js +1 -1
  51. package/components/navigation-rail/navigation-rail-item.d.ts +6 -2
  52. package/components/navigation-rail/navigation-rail-item.js +20 -8
  53. package/components/navigation-rail/navigation-rail.d.ts +4 -5
  54. package/components/navigation-rail/navigation-rail.js +51 -44
  55. package/components/radio/radio-group.d.ts +6 -4
  56. package/components/radio/radio-group.js +61 -48
  57. package/components/radio/radio-style.js +1 -1
  58. package/components/radio/radio.d.ts +3 -2
  59. package/components/radio/radio.js +24 -17
  60. package/components/range-slider/index.js +7 -9
  61. package/components/ripple/index.js +2 -1
  62. package/components/segmented-button/segmented-button-group.d.ts +6 -3
  63. package/components/segmented-button/segmented-button-group.js +84 -69
  64. package/components/segmented-button/segmented-button.d.ts +2 -2
  65. package/components/segmented-button/segmented-button.js +5 -4
  66. package/components/select/index.d.ts +2 -2
  67. package/components/select/index.js +26 -24
  68. package/components/slider/index.js +7 -9
  69. package/components/slider/slider-base-style.js +1 -1
  70. package/components/slider/slider-base.js +1 -5
  71. package/components/snackbar/index.js +2 -1
  72. package/components/switch/index.js +6 -9
  73. package/components/switch/style.js +1 -1
  74. package/components/tabs/tab-panel.js +2 -1
  75. package/components/tabs/tab-style.js +1 -1
  76. package/components/tabs/tab.js +10 -5
  77. package/components/tabs/tabs-style.js +1 -1
  78. package/components/tabs/tabs.d.ts +6 -5
  79. package/components/tabs/tabs.js +52 -38
  80. package/components/text-field/index.d.ts +2 -2
  81. package/components/text-field/index.js +32 -54
  82. package/components/text-field/style.js +1 -1
  83. package/components/tooltip/index.d.ts +5 -5
  84. package/components/tooltip/index.js +30 -25
  85. package/components/top-app-bar/top-app-bar-title-style.js +1 -1
  86. package/components/top-app-bar/top-app-bar-title.js +16 -12
  87. package/components/top-app-bar/top-app-bar.d.ts +2 -2
  88. package/components/top-app-bar/top-app-bar.js +6 -4
  89. package/custom-elements.json +3421 -3126
  90. package/functions/getTheme.js +3 -3
  91. package/functions/snackbar.js +1 -2
  92. package/functions/utils/colorScheme.js +2 -2
  93. package/html-data.zh-cn.json +438 -438
  94. package/mdui.esm.js +8 -8
  95. package/mdui.global.js +8 -8
  96. package/package.json +7 -7
  97. package/web-types.zh-cn.json +770 -770
@@ -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
  },
@@ -1146,12 +1146,12 @@
1146
1146
  ]
1147
1147
  },
1148
1148
  {
1149
- "name": "tabindex",
1149
+ "name": "tabIndex",
1150
1150
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
1151
1151
  "references": [
1152
1152
  {
1153
1153
  "name": "开发文档",
1154
- "url": "https://www.mdui.org/docs/2/components/card#attributes-tabindex"
1154
+ "url": "https://www.mdui.org/docs/2/components/card#attributes-tabIndex"
1155
1155
  }
1156
1156
  ]
1157
1157
  }
@@ -1282,12 +1282,12 @@
1282
1282
  ]
1283
1283
  },
1284
1284
  {
1285
- "name": "tabindex",
1285
+ "name": "tabIndex",
1286
1286
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
1287
1287
  "references": [
1288
1288
  {
1289
1289
  "name": "开发文档",
1290
- "url": "https://www.mdui.org/docs/2/components/checkbox#attributes-tabindex"
1290
+ "url": "https://www.mdui.org/docs/2/components/checkbox#attributes-tabIndex"
1291
1291
  }
1292
1292
  ]
1293
1293
  }
@@ -1542,12 +1542,12 @@
1542
1542
  ]
1543
1543
  },
1544
1544
  {
1545
- "name": "tabindex",
1545
+ "name": "tabIndex",
1546
1546
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
1547
1547
  "references": [
1548
1548
  {
1549
1549
  "name": "开发文档",
1550
- "url": "https://www.mdui.org/docs/2/components/chip#attributes-tabindex"
1550
+ "url": "https://www.mdui.org/docs/2/components/chip#attributes-tabIndex"
1551
1551
  }
1552
1552
  ]
1553
1553
  },
@@ -2009,178 +2009,6 @@
2009
2009
  }
2010
2010
  ]
2011
2011
  },
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```",
2015
- "attributes": [
2016
- {
2017
- "name": "open",
2018
- "description": "dropdown 是否打开",
2019
- "references": [
2020
- {
2021
- "name": "开发文档",
2022
- "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open"
2023
- }
2024
- ]
2025
- },
2026
- {
2027
- "name": "disabled",
2028
- "description": "是否禁用 dropdown",
2029
- "references": [
2030
- {
2031
- "name": "开发文档",
2032
- "url": "https://www.mdui.org/docs/2/components/dropdown#attributes-disabled"
2033
- }
2034
- ]
2035
- },
2036
- {
2037
- "name": "trigger",
2038
- "description": "dropdown 的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击时触发\n* `hover`:鼠标悬浮触发\n* `focus`:聚焦时触发\n* `contextmenu`:鼠标右键点击、或触摸长按时触发\n* `manual`:使用了该值时,只能使用编程方式打开和关闭 dropdown,且不能再指定其他触发方式",
2039
- "values": [
2040
- {
2041
- "name": "click",
2042
- "description": "点击时触发"
2043
- },
2044
- {
2045
- "name": "hover",
2046
- "description": "鼠标悬浮触发"
2047
- },
2048
- {
2049
- "name": "focus",
2050
- "description": "聚焦时触发"
2051
- },
2052
- {
2053
- "name": "contextmenu",
2054
- "description": "鼠标右键点击、或触摸长按时触发"
2055
- },
2056
- {
2057
- "name": "manual",
2058
- "description": "使用了该值时,只能使用编程方式打开和关闭 dropdown,且不能再指定其他触发方式"
2059
- }
2060
- ],
2061
- "references": [
2062
- {
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
2012
  {
2185
2013
  "name": "mdui-fab",
2186
2014
  "description": "浮动操作按钮组件\n\n```html\n<mdui-fab icon=\"edit\"></mdui-fab>\n```",
@@ -2384,12 +2212,12 @@
2384
2212
  ]
2385
2213
  },
2386
2214
  {
2387
- "name": "tabindex",
2215
+ "name": "tabIndex",
2388
2216
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
2389
2217
  "references": [
2390
2218
  {
2391
2219
  "name": "开发文档",
2392
- "url": "https://www.mdui.org/docs/2/components/fab#attributes-tabindex"
2220
+ "url": "https://www.mdui.org/docs/2/components/fab#attributes-tabIndex"
2393
2221
  }
2394
2222
  ]
2395
2223
  },
@@ -2702,191 +2530,76 @@
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": "进度指示器的当前值。若未指定该值,则为不确定状态",
2547
+ "name": "disabled",
2548
+ "description": "是否禁用该菜单项",
2721
2549
  "references": [
2722
2550
  {
2723
2551
  "name": "开发文档",
2724
- "url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-value"
2552
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-disabled"
2725
2553
  }
2726
2554
  ]
2727
- }
2728
- ],
2729
- "references": [
2730
- {
2731
- "name": "开发文档",
2732
- "url": "https://www.mdui.org/docs/2/components/linear-progress"
2733
2555
  },
2734
2556
  {
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 设置",
2557
+ "name": "icon",
2558
+ "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置\n\n如果需要在左侧留出一个图标的位置,可以传入空字符串进行占位",
2747
2559
  "references": [
2748
2560
  {
2749
2561
  "name": "开发文档",
2750
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline"
2562
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-icon"
2751
2563
  }
2752
2564
  ]
2753
2565
  },
2754
2566
  {
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
- ],
2567
+ "name": "end-icon",
2568
+ "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
2771
2569
  "references": [
2772
2570
  {
2773
2571
  "name": "开发文档",
2774
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline-line"
2572
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-end-icon"
2775
2573
  }
2776
2574
  ]
2777
2575
  },
2778
2576
  {
2779
- "name": "description",
2780
- "description": "副文本。也可以通过 `slot=\"description\"` 设置",
2577
+ "name": "end-text",
2578
+ "description": "右侧的文本。也可以通过 `slot=\"end-text\"` 设置",
2781
2579
  "references": [
2782
2580
  {
2783
2581
  "name": "开发文档",
2784
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description"
2582
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-end-text"
2785
2583
  }
2786
2584
  ]
2787
2585
  },
2788
2586
  {
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
- ],
2587
+ "name": "selected-icon",
2588
+ "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
2802
2589
  "references": [
2803
2590
  {
2804
2591
  "name": "开发文档",
2805
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description-line"
2592
+ "url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-selected-icon"
2806
2593
  }
2807
2594
  ]
2808
2595
  },
2809
2596
  {
2810
- "name": "icon",
2811
- "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
2812
- "references": [
2813
- {
2814
- "name": "开发文档",
2815
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-icon"
2816
- }
2817
- ]
2818
- },
2819
- {
2820
- "name": "end-icon",
2821
- "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
2822
- "references": [
2823
- {
2824
- "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"
2846
- }
2847
- ]
2848
- },
2849
- {
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) 等仍可进行交互",
2852
- "references": [
2853
- {
2854
- "name": "开发文档",
2855
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-nonclickable"
2856
- }
2857
- ]
2858
- },
2859
- {
2860
- "name": "rounded",
2861
- "description": "使用圆角形状的列表项",
2862
- "references": [
2863
- {
2864
- "name": "开发文档",
2865
- "url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rounded"
2866
- }
2867
- ]
2868
- },
2869
- {
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
  }