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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "name": "mdui",
4
- "version": "2.0.0",
4
+ "version": "2.0.2",
5
5
  "js-types-syntax": "typescript",
6
6
  "description-markup": "markdown",
7
7
  "framework-config": {
@@ -450,12 +450,12 @@
450
450
  "doc-url": "https://www.mdui.org/docs/2/components/button#attributes-autofocus"
451
451
  },
452
452
  {
453
- "name": "tabindex",
453
+ "name": "tabIndex",
454
454
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
455
455
  "value": {
456
456
  "type": "number"
457
457
  },
458
- "doc-url": "https://www.mdui.org/docs/2/components/button#attributes-tabindex"
458
+ "doc-url": "https://www.mdui.org/docs/2/components/button#attributes-tabIndex"
459
459
  },
460
460
  {
461
461
  "name": "disabled",
@@ -975,12 +975,12 @@
975
975
  "doc-url": "https://www.mdui.org/docs/2/components/button-icon#attributes-autofocus"
976
976
  },
977
977
  {
978
- "name": "tabindex",
978
+ "name": "tabIndex",
979
979
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
980
980
  "value": {
981
981
  "type": "number"
982
982
  },
983
- "doc-url": "https://www.mdui.org/docs/2/components/button-icon#attributes-tabindex"
983
+ "doc-url": "https://www.mdui.org/docs/2/components/button-icon#attributes-tabIndex"
984
984
  },
985
985
  {
986
986
  "name": "disabled",
@@ -1392,6 +1392,238 @@
1392
1392
  ]
1393
1393
  }
1394
1394
  },
1395
+ {
1396
+ "name": "mdui-card",
1397
+ "description": "卡片组件\n\n```html\n<mdui-card>card content</mdui-card>\n```",
1398
+ "attributes": [
1399
+ {
1400
+ "name": "variant",
1401
+ "description": "卡片形状。可选值为:\n\n* `elevated`:具有阴影,与背景的分离度比 `filled` 更高,但小于 `outlined`\n* `filled`:与背景的分离度最小\n* `outlined`:具有边框,与背景的分离度最大",
1402
+ "value": {
1403
+ "type": [
1404
+ "'elevated'",
1405
+ "'filled'",
1406
+ "'outlined'"
1407
+ ]
1408
+ },
1409
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-variant"
1410
+ },
1411
+ {
1412
+ "name": "clickable",
1413
+ "description": "是否可点击。为 `true` 时,会添加鼠标悬浮效果、及点击涟漪效果",
1414
+ "value": {
1415
+ "type": "boolean"
1416
+ },
1417
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-clickable"
1418
+ },
1419
+ {
1420
+ "name": "disabled",
1421
+ "description": "是否禁用",
1422
+ "value": {
1423
+ "type": "boolean"
1424
+ },
1425
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-disabled"
1426
+ },
1427
+ {
1428
+ "name": "href",
1429
+ "description": "链接指向的页面的 URL。\n\n若指定了该属性,则组件内部会渲染为 `<a>` 元素,并可以使用链接相关的属性",
1430
+ "value": {
1431
+ "type": "string"
1432
+ },
1433
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-href"
1434
+ },
1435
+ {
1436
+ "name": "download",
1437
+ "description": "被下载的超链接目标。\n\n**Note**:仅在指定了 `href` 属性时可用",
1438
+ "value": {
1439
+ "type": "string"
1440
+ },
1441
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-download"
1442
+ },
1443
+ {
1444
+ "name": "target",
1445
+ "description": "在何处打开链接。可选值为:\n\n* `_blank`:在新窗口中打开链接\n* `_parent`:在父框架中打开链接\n* `_self`:默认。在相同的框架中打开链接\n* `_top`:在整个窗口中打开链接\n\n**Note**:仅在指定了 `href` 属性时可用",
1446
+ "value": {
1447
+ "type": [
1448
+ "'_blank'",
1449
+ "'_parent'",
1450
+ "'_self'",
1451
+ "'_top'"
1452
+ ]
1453
+ },
1454
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-target"
1455
+ },
1456
+ {
1457
+ "name": "rel",
1458
+ "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` 属性时可用",
1459
+ "value": {
1460
+ "type": [
1461
+ "'alternate'",
1462
+ "'author'",
1463
+ "'bookmark'",
1464
+ "'external'",
1465
+ "'help'",
1466
+ "'license'",
1467
+ "'me'",
1468
+ "'next'",
1469
+ "'nofollow'",
1470
+ "'noreferrer'",
1471
+ "'opener'",
1472
+ "'prev'",
1473
+ "'search'",
1474
+ "'tag'"
1475
+ ]
1476
+ },
1477
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-rel"
1478
+ },
1479
+ {
1480
+ "name": "autofocus",
1481
+ "description": "是否在页面加载完成后自动获得焦点",
1482
+ "value": {
1483
+ "type": "boolean"
1484
+ },
1485
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-autofocus"
1486
+ },
1487
+ {
1488
+ "name": "tabIndex",
1489
+ "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
1490
+ "value": {
1491
+ "type": "number"
1492
+ },
1493
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-tabIndex"
1494
+ }
1495
+ ],
1496
+ "priority": "highest",
1497
+ "doc-url": "https://www.mdui.org/docs/2/components/card",
1498
+ "slots": [
1499
+ {
1500
+ "name": "",
1501
+ "description": "卡片内容",
1502
+ "doc-url": "https://www.mdui.org/docs/2/components/card#slot-"
1503
+ }
1504
+ ],
1505
+ "js": {
1506
+ "properties": [
1507
+ {
1508
+ "name": "variant",
1509
+ "description": "卡片形状。可选值为:\n\n* `elevated`:具有阴影,与背景的分离度比 `filled` 更高,但小于 `outlined`\n* `filled`:与背景的分离度最小\n* `outlined`:具有边框,与背景的分离度最大",
1510
+ "value": {
1511
+ "type": [
1512
+ "'elevated'",
1513
+ "'filled'",
1514
+ "'outlined'"
1515
+ ]
1516
+ },
1517
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-variant"
1518
+ },
1519
+ {
1520
+ "name": "clickable",
1521
+ "description": "是否可点击。为 `true` 时,会添加鼠标悬浮效果、及点击涟漪效果",
1522
+ "value": {
1523
+ "type": "boolean"
1524
+ },
1525
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-clickable"
1526
+ },
1527
+ {
1528
+ "name": "disabled",
1529
+ "description": "是否禁用",
1530
+ "value": {
1531
+ "type": "boolean"
1532
+ },
1533
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-disabled"
1534
+ },
1535
+ {
1536
+ "name": "href",
1537
+ "description": "链接指向的页面的 URL。\n\n若指定了该属性,则组件内部会渲染为 `<a>` 元素,并可以使用链接相关的属性",
1538
+ "value": {
1539
+ "type": "string"
1540
+ },
1541
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-href"
1542
+ },
1543
+ {
1544
+ "name": "download",
1545
+ "description": "被下载的超链接目标。\n\n**Note**:仅在指定了 `href` 属性时可用",
1546
+ "value": {
1547
+ "type": "string"
1548
+ },
1549
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-download"
1550
+ },
1551
+ {
1552
+ "name": "target",
1553
+ "description": "在何处打开链接。可选值为:\n\n* `_blank`:在新窗口中打开链接\n* `_parent`:在父框架中打开链接\n* `_self`:默认。在相同的框架中打开链接\n* `_top`:在整个窗口中打开链接\n\n**Note**:仅在指定了 `href` 属性时可用",
1554
+ "value": {
1555
+ "type": [
1556
+ "'_blank'",
1557
+ "'_parent'",
1558
+ "'_self'",
1559
+ "'_top'"
1560
+ ]
1561
+ },
1562
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-target"
1563
+ },
1564
+ {
1565
+ "name": "rel",
1566
+ "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` 属性时可用",
1567
+ "value": {
1568
+ "type": [
1569
+ "'alternate'",
1570
+ "'author'",
1571
+ "'bookmark'",
1572
+ "'external'",
1573
+ "'help'",
1574
+ "'license'",
1575
+ "'me'",
1576
+ "'next'",
1577
+ "'nofollow'",
1578
+ "'noreferrer'",
1579
+ "'opener'",
1580
+ "'prev'",
1581
+ "'search'",
1582
+ "'tag'"
1583
+ ]
1584
+ },
1585
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-rel"
1586
+ },
1587
+ {
1588
+ "name": "autofocus",
1589
+ "description": "是否在页面加载完成后自动获得焦点",
1590
+ "value": {
1591
+ "type": "boolean"
1592
+ },
1593
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-autofocus"
1594
+ },
1595
+ {
1596
+ "name": "tabIndex",
1597
+ "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
1598
+ "value": {
1599
+ "type": "number"
1600
+ },
1601
+ "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-tabIndex"
1602
+ }
1603
+ ],
1604
+ "events": [
1605
+ {
1606
+ "name": "focus",
1607
+ "description": "获得焦点时触发",
1608
+ "doc-url": "https://www.mdui.org/docs/2/components/card#event-focus"
1609
+ },
1610
+ {
1611
+ "name": "blur",
1612
+ "description": "失去焦点时触发",
1613
+ "doc-url": "https://www.mdui.org/docs/2/components/card#event-blur"
1614
+ }
1615
+ ]
1616
+ },
1617
+ "css": {
1618
+ "properties": [
1619
+ {
1620
+ "name": "--shape-corner",
1621
+ "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐[引用设计令牌](https://www.mdui.org/docs/2/styles/design-tokens#shape-corner)",
1622
+ "doc-url": "https://www.mdui.org/docs/2/components/card#css-properties-shape-corner"
1623
+ }
1624
+ ]
1625
+ }
1626
+ },
1395
1627
  {
1396
1628
  "name": "mdui-checkbox",
1397
1629
  "description": "复选框组件\n\n```html\n<mdui-checkbox>Checkbox</mdui-checkbox>\n```",
@@ -1485,12 +1717,12 @@
1485
1717
  "doc-url": "https://www.mdui.org/docs/2/components/checkbox#attributes-autofocus"
1486
1718
  },
1487
1719
  {
1488
- "name": "tabindex",
1720
+ "name": "tabIndex",
1489
1721
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
1490
1722
  "value": {
1491
1723
  "type": "number"
1492
1724
  },
1493
- "doc-url": "https://www.mdui.org/docs/2/components/checkbox#attributes-tabindex"
1725
+ "doc-url": "https://www.mdui.org/docs/2/components/checkbox#attributes-tabIndex"
1494
1726
  }
1495
1727
  ],
1496
1728
  "priority": "highest",
@@ -1840,12 +2072,12 @@
1840
2072
  "doc-url": "https://www.mdui.org/docs/2/components/chip#attributes-autofocus"
1841
2073
  },
1842
2074
  {
1843
- "name": "tabindex",
2075
+ "name": "tabIndex",
1844
2076
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
1845
2077
  "value": {
1846
2078
  "type": "number"
1847
2079
  },
1848
- "doc-url": "https://www.mdui.org/docs/2/components/chip#attributes-tabindex"
2080
+ "doc-url": "https://www.mdui.org/docs/2/components/chip#attributes-tabIndex"
1849
2081
  },
1850
2082
  {
1851
2083
  "name": "disabled",
@@ -2325,233 +2557,45 @@
2325
2557
  }
2326
2558
  },
2327
2559
  {
2328
- "name": "mdui-card",
2329
- "description": "卡片组件\n\n```html\n<mdui-card>card content</mdui-card>\n```",
2560
+ "name": "mdui-circular-progress",
2561
+ "description": "圆形进度指示器组件\n\n```html\n<mdui-circular-progress></mdui-circular-progress>\n```",
2330
2562
  "attributes": [
2331
2563
  {
2332
- "name": "variant",
2333
- "description": "卡片形状。可选值为:\n\n* `elevated`:具有阴影,与背景的分离度比 `filled` 更高,但小于 `outlined`\n* `filled`:与背景的分离度最小\n* `outlined`:具有边框,与背景的分离度最大",
2564
+ "name": "max",
2565
+ "description": "进度指示器的最大值,默认为 1",
2334
2566
  "value": {
2335
- "type": [
2336
- "'elevated'",
2337
- "'filled'",
2338
- "'outlined'"
2339
- ]
2567
+ "type": "number"
2340
2568
  },
2341
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-variant"
2569
+ "doc-url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-max"
2342
2570
  },
2343
2571
  {
2344
- "name": "clickable",
2345
- "description": "是否可点击。为 `true` 时,会添加鼠标悬浮效果、及点击涟漪效果",
2572
+ "name": "value",
2573
+ "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
2346
2574
  "value": {
2347
- "type": "boolean"
2575
+ "type": "number"
2348
2576
  },
2349
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-clickable"
2350
- },
2351
- {
2352
- "name": "disabled",
2353
- "description": "是否禁用",
2354
- "value": {
2355
- "type": "boolean"
2356
- },
2357
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-disabled"
2358
- },
2359
- {
2360
- "name": "href",
2361
- "description": "链接指向的页面的 URL。\n\n若指定了该属性,则组件内部会渲染为 `<a>` 元素,并可以使用链接相关的属性",
2362
- "value": {
2363
- "type": "string"
2364
- },
2365
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-href"
2366
- },
2367
- {
2368
- "name": "download",
2369
- "description": "被下载的超链接目标。\n\n**Note**:仅在指定了 `href` 属性时可用",
2370
- "value": {
2371
- "type": "string"
2372
- },
2373
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-download"
2374
- },
2375
- {
2376
- "name": "target",
2377
- "description": "在何处打开链接。可选值为:\n\n* `_blank`:在新窗口中打开链接\n* `_parent`:在父框架中打开链接\n* `_self`:默认。在相同的框架中打开链接\n* `_top`:在整个窗口中打开链接\n\n**Note**:仅在指定了 `href` 属性时可用",
2378
- "value": {
2379
- "type": [
2380
- "'_blank'",
2381
- "'_parent'",
2382
- "'_self'",
2383
- "'_top'"
2384
- ]
2385
- },
2386
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-target"
2387
- },
2388
- {
2389
- "name": "rel",
2390
- "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` 属性时可用",
2391
- "value": {
2392
- "type": [
2393
- "'alternate'",
2394
- "'author'",
2395
- "'bookmark'",
2396
- "'external'",
2397
- "'help'",
2398
- "'license'",
2399
- "'me'",
2400
- "'next'",
2401
- "'nofollow'",
2402
- "'noreferrer'",
2403
- "'opener'",
2404
- "'prev'",
2405
- "'search'",
2406
- "'tag'"
2407
- ]
2408
- },
2409
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-rel"
2410
- },
2411
- {
2412
- "name": "autofocus",
2413
- "description": "是否在页面加载完成后自动获得焦点",
2414
- "value": {
2415
- "type": "boolean"
2416
- },
2417
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-autofocus"
2418
- },
2419
- {
2420
- "name": "tabindex",
2421
- "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
2422
- "value": {
2423
- "type": "number"
2424
- },
2425
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-tabindex"
2577
+ "doc-url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-value"
2426
2578
  }
2427
2579
  ],
2428
2580
  "priority": "highest",
2429
- "doc-url": "https://www.mdui.org/docs/2/components/card",
2430
- "slots": [
2431
- {
2432
- "name": "",
2433
- "description": "卡片内容",
2434
- "doc-url": "https://www.mdui.org/docs/2/components/card#slot-"
2435
- }
2436
- ],
2581
+ "doc-url": "https://www.mdui.org/docs/2/components/circular-progress",
2437
2582
  "js": {
2438
2583
  "properties": [
2439
2584
  {
2440
- "name": "variant",
2441
- "description": "卡片形状。可选值为:\n\n* `elevated`:具有阴影,与背景的分离度比 `filled` 更高,但小于 `outlined`\n* `filled`:与背景的分离度最小\n* `outlined`:具有边框,与背景的分离度最大",
2442
- "value": {
2443
- "type": [
2444
- "'elevated'",
2445
- "'filled'",
2446
- "'outlined'"
2447
- ]
2448
- },
2449
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-variant"
2450
- },
2451
- {
2452
- "name": "clickable",
2453
- "description": "是否可点击。为 `true` 时,会添加鼠标悬浮效果、及点击涟漪效果",
2454
- "value": {
2455
- "type": "boolean"
2456
- },
2457
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-clickable"
2458
- },
2459
- {
2460
- "name": "disabled",
2461
- "description": "是否禁用",
2462
- "value": {
2463
- "type": "boolean"
2464
- },
2465
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-disabled"
2466
- },
2467
- {
2468
- "name": "href",
2469
- "description": "链接指向的页面的 URL。\n\n若指定了该属性,则组件内部会渲染为 `<a>` 元素,并可以使用链接相关的属性",
2470
- "value": {
2471
- "type": "string"
2472
- },
2473
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-href"
2474
- },
2475
- {
2476
- "name": "download",
2477
- "description": "被下载的超链接目标。\n\n**Note**:仅在指定了 `href` 属性时可用",
2478
- "value": {
2479
- "type": "string"
2480
- },
2481
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-download"
2482
- },
2483
- {
2484
- "name": "target",
2485
- "description": "在何处打开链接。可选值为:\n\n* `_blank`:在新窗口中打开链接\n* `_parent`:在父框架中打开链接\n* `_self`:默认。在相同的框架中打开链接\n* `_top`:在整个窗口中打开链接\n\n**Note**:仅在指定了 `href` 属性时可用",
2486
- "value": {
2487
- "type": [
2488
- "'_blank'",
2489
- "'_parent'",
2490
- "'_self'",
2491
- "'_top'"
2492
- ]
2493
- },
2494
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-target"
2495
- },
2496
- {
2497
- "name": "rel",
2498
- "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` 属性时可用",
2499
- "value": {
2500
- "type": [
2501
- "'alternate'",
2502
- "'author'",
2503
- "'bookmark'",
2504
- "'external'",
2505
- "'help'",
2506
- "'license'",
2507
- "'me'",
2508
- "'next'",
2509
- "'nofollow'",
2510
- "'noreferrer'",
2511
- "'opener'",
2512
- "'prev'",
2513
- "'search'",
2514
- "'tag'"
2515
- ]
2516
- },
2517
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-rel"
2518
- },
2519
- {
2520
- "name": "autofocus",
2521
- "description": "是否在页面加载完成后自动获得焦点",
2585
+ "name": "max",
2586
+ "description": "进度指示器的最大值,默认为 1",
2522
2587
  "value": {
2523
- "type": "boolean"
2588
+ "type": "number"
2524
2589
  },
2525
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-autofocus"
2590
+ "doc-url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-max"
2526
2591
  },
2527
2592
  {
2528
- "name": "tabIndex",
2529
- "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
2593
+ "name": "value",
2594
+ "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
2530
2595
  "value": {
2531
2596
  "type": "number"
2532
2597
  },
2533
- "doc-url": "https://www.mdui.org/docs/2/components/card#attributes-tabIndex"
2534
- }
2535
- ],
2536
- "events": [
2537
- {
2538
- "name": "focus",
2539
- "description": "获得焦点时触发",
2540
- "doc-url": "https://www.mdui.org/docs/2/components/card#event-focus"
2541
- },
2542
- {
2543
- "name": "blur",
2544
- "description": "失去焦点时触发",
2545
- "doc-url": "https://www.mdui.org/docs/2/components/card#event-blur"
2546
- }
2547
- ]
2548
- },
2549
- "css": {
2550
- "properties": [
2551
- {
2552
- "name": "--shape-corner",
2553
- "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐[引用设计令牌](https://www.mdui.org/docs/2/styles/design-tokens#shape-corner)",
2554
- "doc-url": "https://www.mdui.org/docs/2/components/card#css-properties-shape-corner"
2598
+ "doc-url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-value"
2555
2599
  }
2556
2600
  ]
2557
2601
  }
@@ -2768,50 +2812,6 @@
2768
2812
  ]
2769
2813
  }
2770
2814
  },
2771
- {
2772
- "name": "mdui-circular-progress",
2773
- "description": "圆形进度指示器组件\n\n```html\n<mdui-circular-progress></mdui-circular-progress>\n```",
2774
- "attributes": [
2775
- {
2776
- "name": "max",
2777
- "description": "进度指示器的最大值,默认为 1",
2778
- "value": {
2779
- "type": "number"
2780
- },
2781
- "doc-url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-max"
2782
- },
2783
- {
2784
- "name": "value",
2785
- "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
2786
- "value": {
2787
- "type": "number"
2788
- },
2789
- "doc-url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-value"
2790
- }
2791
- ],
2792
- "priority": "highest",
2793
- "doc-url": "https://www.mdui.org/docs/2/components/circular-progress",
2794
- "js": {
2795
- "properties": [
2796
- {
2797
- "name": "max",
2798
- "description": "进度指示器的最大值,默认为 1",
2799
- "value": {
2800
- "type": "number"
2801
- },
2802
- "doc-url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-max"
2803
- },
2804
- {
2805
- "name": "value",
2806
- "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
2807
- "value": {
2808
- "type": "number"
2809
- },
2810
- "doc-url": "https://www.mdui.org/docs/2/components/circular-progress#attributes-value"
2811
- }
2812
- ]
2813
- }
2814
- },
2815
2815
  {
2816
2816
  "name": "mdui-dialog",
2817
2817
  "description": "对话框组件\n\n```html\n<mdui-dialog>content</mdui-dialog>\n```",
@@ -3128,559 +3128,271 @@
3128
3128
  }
3129
3129
  },
3130
3130
  {
3131
- "name": "mdui-dropdown",
3132
- "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```",
3131
+ "name": "mdui-fab",
3132
+ "description": "浮动操作按钮组件\n\n```html\n<mdui-fab icon=\"edit\"></mdui-fab>\n```",
3133
3133
  "attributes": [
3134
3134
  {
3135
- "name": "open",
3136
- "description": "dropdown 是否打开",
3135
+ "name": "variant",
3136
+ "description": "FAB 形状,此组件的不同形状之间只有颜色不一样。可选值为:\n\n* `primary`:使用 Primary container 背景色\n* `surface`:使用 Surface container high 背景色\n* `secondary`:使用 Secondary container 背景色\n* `tertiary`:使用 Tertiary container 背景色",
3137
3137
  "value": {
3138
- "type": "boolean"
3138
+ "type": [
3139
+ "'primary'",
3140
+ "'surface'",
3141
+ "'secondary'",
3142
+ "'tertiary'"
3143
+ ]
3139
3144
  },
3140
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open"
3145
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-variant"
3141
3146
  },
3142
3147
  {
3143
- "name": "disabled",
3144
- "description": "是否禁用 dropdown",
3148
+ "name": "size",
3149
+ "description": "FAB 大小。可选值为:\n* `normal`:普通大小 FAB\n* `small`:小型 FAB\n* `large`:大型 FAB",
3150
+ "value": {
3151
+ "type": [
3152
+ "'normal'",
3153
+ "'small'",
3154
+ "'large'"
3155
+ ]
3156
+ },
3157
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-size"
3158
+ },
3159
+ {
3160
+ "name": "icon",
3161
+ "description": "Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
3162
+ "value": {
3163
+ "type": "string"
3164
+ },
3165
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-icon"
3166
+ },
3167
+ {
3168
+ "name": "extended",
3169
+ "description": "是否为展开状态",
3145
3170
  "value": {
3146
3171
  "type": "boolean"
3147
3172
  },
3148
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-disabled"
3173
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-extended"
3149
3174
  },
3150
3175
  {
3151
- "name": "trigger",
3152
- "description": "dropdown 的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击时触发\n* `hover`:鼠标悬浮触发\n* `focus`:聚焦时触发\n* `contextmenu`:鼠标右键点击、或触摸长按时触发\n* `manual`:使用了该值时,只能使用编程方式打开和关闭 dropdown,且不能再指定其他触发方式",
3176
+ "name": "href",
3177
+ "description": "链接指向的页面的 URL。\n\n若指定了该属性,则组件内部会渲染为 `<a>` 元素,并可以使用链接相关的属性",
3178
+ "value": {
3179
+ "type": "string"
3180
+ },
3181
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-href"
3182
+ },
3183
+ {
3184
+ "name": "download",
3185
+ "description": "被下载的超链接目标。\n\n**Note**:仅在指定了 `href` 属性时可用",
3186
+ "value": {
3187
+ "type": "string"
3188
+ },
3189
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-download"
3190
+ },
3191
+ {
3192
+ "name": "target",
3193
+ "description": "在何处打开链接。可选值为:\n\n* `_blank`:在新窗口中打开链接\n* `_parent`:在父框架中打开链接\n* `_self`:默认。在相同的框架中打开链接\n* `_top`:在整个窗口中打开链接\n\n**Note**:仅在指定了 `href` 属性时可用",
3153
3194
  "value": {
3154
3195
  "type": [
3155
- "'click'",
3156
- "'hover'",
3157
- "'focus'",
3158
- "'contextmenu'",
3159
- "'manual'",
3160
- "string"
3196
+ "'_blank'",
3197
+ "'_parent'",
3198
+ "'_self'",
3199
+ "'_top'"
3161
3200
  ]
3162
3201
  },
3163
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-trigger"
3202
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-target"
3164
3203
  },
3165
3204
  {
3166
- "name": "placement",
3167
- "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`:位于右侧,且底部对齐",
3205
+ "name": "rel",
3206
+ "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` 属性时可用",
3168
3207
  "value": {
3169
3208
  "type": [
3170
- "'auto'",
3171
- "'top-start'",
3172
- "'top'",
3173
- "'top-end'",
3174
- "'bottom-start'",
3175
- "'bottom'",
3176
- "'bottom-end'",
3177
- "'left-start'",
3178
- "'left'",
3179
- "'left-end'",
3180
- "'right-start'",
3181
- "'right'",
3182
- "'right-end'"
3209
+ "'alternate'",
3210
+ "'author'",
3211
+ "'bookmark'",
3212
+ "'external'",
3213
+ "'help'",
3214
+ "'license'",
3215
+ "'me'",
3216
+ "'next'",
3217
+ "'nofollow'",
3218
+ "'noreferrer'",
3219
+ "'opener'",
3220
+ "'prev'",
3221
+ "'search'",
3222
+ "'tag'"
3183
3223
  ]
3184
3224
  },
3185
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-placement"
3225
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-rel"
3186
3226
  },
3187
3227
  {
3188
- "name": "stay-open-on-click",
3189
- "description": "在点击 [`<mdui-menu-item>`](https://www.mdui.org/docs/2/components/menu#menu-item-api) 元素后,是否仍保持 dropdown 为打开状态",
3228
+ "name": "autofocus",
3229
+ "description": "是否在页面加载完成后自动获得焦点",
3190
3230
  "value": {
3191
3231
  "type": "boolean"
3192
3232
  },
3193
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-stay-open-on-click"
3233
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-autofocus"
3194
3234
  },
3195
3235
  {
3196
- "name": "open-delay",
3197
- "description": "通过 hover 触发 dropdown 打开时的延时,单位为毫秒",
3236
+ "name": "tabIndex",
3237
+ "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
3198
3238
  "value": {
3199
3239
  "type": "number"
3200
3240
  },
3201
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open-delay"
3241
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-tabIndex"
3202
3242
  },
3203
3243
  {
3204
- "name": "close-delay",
3205
- "description": "通过 hover 触发 dropdown 关闭时的延时,单位为毫秒",
3244
+ "name": "disabled",
3245
+ "description": "是否禁用",
3206
3246
  "value": {
3207
- "type": "number"
3247
+ "type": "boolean"
3208
3248
  },
3209
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-close-delay"
3249
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-disabled"
3210
3250
  },
3211
3251
  {
3212
- "name": "open-on-pointer",
3213
- "description": "是否在触发 dropdown 时的光标所在的位置打开 dropdown。通常用于在打开鼠标右键菜单时使用",
3252
+ "name": "loading",
3253
+ "description": "是否为加载中状态",
3214
3254
  "value": {
3215
3255
  "type": "boolean"
3216
3256
  },
3217
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open-on-pointer"
3257
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-loading"
3258
+ },
3259
+ {
3260
+ "name": "name",
3261
+ "description": "按钮的名称,将与表单数据一起提交\n\n**Note**:仅在未指定 `href` 属性时可用",
3262
+ "value": {
3263
+ "type": "string"
3264
+ },
3265
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-name"
3266
+ },
3267
+ {
3268
+ "name": "value",
3269
+ "description": "按钮的初始值,将与表单数据一起提交\n\n**Note**:仅在未指定 `href` 属性时可用",
3270
+ "value": {
3271
+ "type": "string"
3272
+ },
3273
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-value"
3274
+ },
3275
+ {
3276
+ "name": "type",
3277
+ "description": "按钮的类型。默认值为 `button`。可选值为:\n\n* `submit`:点击按钮将表单数据提交给服务器\n* `reset`:点击按钮将表单中所有组件重置为初始值\n* `button`:按钮没有默认行为\n\n**Note**:仅在未指定 `href` 属性时可用",
3278
+ "value": {
3279
+ "type": [
3280
+ "'submit'",
3281
+ "'reset'",
3282
+ "'button'"
3283
+ ]
3284
+ },
3285
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-type"
3286
+ },
3287
+ {
3288
+ "name": "form",
3289
+ "description": "关联的 `form` 元素。此属性值必须为同一页面中的一个 `<form>` 元素的 `id` 属性。\n\n如果此属性未指定,则元素必须是 `form` 元素的后代。利用此属性,你可以将元素放置在页面中的任何位置,而不仅仅是作为 `form` 元素的后代。\n\n**Note**:仅在未指定 `href` 属性时可用",
3290
+ "value": {
3291
+ "type": "string"
3292
+ },
3293
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-form"
3294
+ },
3295
+ {
3296
+ "name": "formaction",
3297
+ "description": "\n指定提交表单的 URL。\n\n指定了该属性时,将覆盖 `form` 元素的 `action` 属性。\n\n**Note**:仅在未指定 `href` 属性、且 `type=\"submit\"` 时可用。",
3298
+ "value": {
3299
+ "type": "string"
3300
+ },
3301
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-formaction"
3302
+ },
3303
+ {
3304
+ "name": "formenctype",
3305
+ "description": "指定提交表单到服务器的内容类型。可选值为:\n\n* `application/x-www-form-urlencoded`:未指定属性时的默认值\n* `multipart/form-data`:当表单包含 `<input type=\"file\">` 元素时使用此值\n* `text/plain`:出现于 HTML5,用于调试\n\n指定了该属性时,将覆盖 `form` 元素的 `enctype` 属性。\n\n**Note**:仅在未指定 `href` 属性、且 `type=\"submit\"` 时可用",
3306
+ "value": {
3307
+ "type": [
3308
+ "'application/x-www-form-urlencoded'",
3309
+ "'multipart/form-data'",
3310
+ "'text/plain'"
3311
+ ]
3312
+ },
3313
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-formenctype"
3314
+ },
3315
+ {
3316
+ "name": "formmethod",
3317
+ "description": "指定提交表单使用的 HTTP 方法。可选值为:\n\n* `post`:来自表单的数据被包含在表单内容中,被发送到服务器\n* `get`:来自表单的数据以 `?` 作为分隔符被附加到 form 的 URI 属性中,得到的 URI 被发送到服务器。当表单没有副作用,且仅包含 ASCII 字符时使用这种方法\n\n指定了该属性时,将覆盖 `form` 元素的 `method` 属性。\n\n**Note**:仅在未指定 `href` 属性、且 `type=\"submit\"` 时可用。",
3318
+ "value": {
3319
+ "type": [
3320
+ "'post'",
3321
+ "'get'"
3322
+ ]
3323
+ },
3324
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-formmethod"
3325
+ },
3326
+ {
3327
+ "name": "formnovalidate",
3328
+ "description": "指定了该属性时,表示当表单被提交时不需要验证。\n\n指定了该属性时,将覆盖 `form` 元素的 `novalidate` 属性。\n\n**Note**:仅在未指定 `href` 属性、且 `type=\"submit\"` 时可用。",
3329
+ "value": {
3330
+ "type": "boolean"
3331
+ },
3332
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-formnovalidate"
3333
+ },
3334
+ {
3335
+ "name": "formtarget",
3336
+ "description": "在何处显示提交表单后接收到的响应。可选值为:\n\n* `_self`:默认。在同一框架中打开\n* `_blank`:在新窗口中打开\n* `_parent`:在父框架中打开\n* `_top`:在整个窗口中打开\n\n指定了该属性时,将覆盖 `form` 元素的 `target` 属性。\n\n**Note**:仅在未指定 `href` 属性、且 `type=\"submit\"` 时可用",
3337
+ "value": {
3338
+ "type": [
3339
+ "'_self'",
3340
+ "'_blank'",
3341
+ "'_parent'",
3342
+ "'_top'"
3343
+ ]
3344
+ },
3345
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-formtarget"
3218
3346
  }
3219
3347
  ],
3220
3348
  "priority": "highest",
3221
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown",
3349
+ "doc-url": "https://www.mdui.org/docs/2/components/fab",
3222
3350
  "slots": [
3223
3351
  {
3224
3352
  "name": "",
3225
- "description": "dropdown 的内容",
3226
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#slot-"
3353
+ "description": "文本",
3354
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#slot-"
3227
3355
  },
3228
3356
  {
3229
- "name": "trigger",
3230
- "description": "触发 dropdown 的元素,例如 [`<mdui-button>`](https://www.mdui.org/docs/2/components/button) 元素",
3231
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#slot-trigger"
3357
+ "name": "icon",
3358
+ "description": "图标",
3359
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#slot-icon"
3232
3360
  }
3233
3361
  ],
3234
3362
  "js": {
3235
3363
  "properties": [
3236
3364
  {
3237
- "name": "open",
3238
- "description": "dropdown 是否打开",
3365
+ "name": "variant",
3366
+ "description": "FAB 形状,此组件的不同形状之间只有颜色不一样。可选值为:\n\n* `primary`:使用 Primary container 背景色\n* `surface`:使用 Surface container high 背景色\n* `secondary`:使用 Secondary container 背景色\n* `tertiary`:使用 Tertiary container 背景色",
3239
3367
  "value": {
3240
- "type": "boolean"
3368
+ "type": [
3369
+ "'primary'",
3370
+ "'surface'",
3371
+ "'secondary'",
3372
+ "'tertiary'"
3373
+ ]
3241
3374
  },
3242
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open"
3375
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-variant"
3243
3376
  },
3244
3377
  {
3245
- "name": "disabled",
3246
- "description": "是否禁用 dropdown",
3378
+ "name": "size",
3379
+ "description": "FAB 大小。可选值为:\n* `normal`:普通大小 FAB\n* `small`:小型 FAB\n* `large`:大型 FAB",
3247
3380
  "value": {
3248
- "type": "boolean"
3381
+ "type": [
3382
+ "'normal'",
3383
+ "'small'",
3384
+ "'large'"
3385
+ ]
3249
3386
  },
3250
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-disabled"
3387
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-size"
3251
3388
  },
3252
3389
  {
3253
- "name": "trigger",
3254
- "description": "dropdown 的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击时触发\n* `hover`:鼠标悬浮触发\n* `focus`:聚焦时触发\n* `contextmenu`:鼠标右键点击、或触摸长按时触发\n* `manual`:使用了该值时,只能使用编程方式打开和关闭 dropdown,且不能再指定其他触发方式",
3390
+ "name": "icon",
3391
+ "description": "Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
3255
3392
  "value": {
3256
- "type": [
3257
- "'click'",
3258
- "'hover'",
3259
- "'focus'",
3260
- "'contextmenu'",
3261
- "'manual'",
3262
- "string"
3263
- ]
3393
+ "type": "string"
3264
3394
  },
3265
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-trigger"
3266
- },
3267
- {
3268
- "name": "placement",
3269
- "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`:位于右侧,且底部对齐",
3270
- "value": {
3271
- "type": [
3272
- "'auto'",
3273
- "'top-start'",
3274
- "'top'",
3275
- "'top-end'",
3276
- "'bottom-start'",
3277
- "'bottom'",
3278
- "'bottom-end'",
3279
- "'left-start'",
3280
- "'left'",
3281
- "'left-end'",
3282
- "'right-start'",
3283
- "'right'",
3284
- "'right-end'"
3285
- ]
3286
- },
3287
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-placement"
3288
- },
3289
- {
3290
- "name": "stayOpenOnClick",
3291
- "description": "在点击 [`<mdui-menu-item>`](https://www.mdui.org/docs/2/components/menu#menu-item-api) 元素后,是否仍保持 dropdown 为打开状态",
3292
- "value": {
3293
- "type": "boolean"
3294
- },
3295
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-stayOpenOnClick"
3296
- },
3297
- {
3298
- "name": "openDelay",
3299
- "description": "通过 hover 触发 dropdown 打开时的延时,单位为毫秒",
3300
- "value": {
3301
- "type": "number"
3302
- },
3303
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-openDelay"
3304
- },
3305
- {
3306
- "name": "closeDelay",
3307
- "description": "通过 hover 触发 dropdown 关闭时的延时,单位为毫秒",
3308
- "value": {
3309
- "type": "number"
3310
- },
3311
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-closeDelay"
3312
- },
3313
- {
3314
- "name": "openOnPointer",
3315
- "description": "是否在触发 dropdown 时的光标所在的位置打开 dropdown。通常用于在打开鼠标右键菜单时使用",
3316
- "value": {
3317
- "type": "boolean"
3318
- },
3319
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-openOnPointer"
3320
- }
3321
- ],
3322
- "events": [
3323
- {
3324
- "name": "open",
3325
- "description": "dropdown 开始打开时,事件被触发。可以通过调用 `event.preventDefault()` 阻止 dropdown 打开",
3326
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#event-open"
3327
- },
3328
- {
3329
- "name": "opened",
3330
- "description": "dropdown 打开动画完成时,事件被触发",
3331
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#event-opened"
3332
- },
3333
- {
3334
- "name": "close",
3335
- "description": "dropdown 开始关闭时,事件被触发。可以通过调用 `event.preventDefault()` 阻止 dropdown 关闭",
3336
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#event-close"
3337
- },
3338
- {
3339
- "name": "closed",
3340
- "description": "dropdown 关闭动画完成时,事件被触发",
3341
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#event-closed"
3342
- }
3343
- ]
3344
- },
3345
- "css": {
3346
- "properties": [
3347
- {
3348
- "name": "--z-index",
3349
- "description": "组件的 CSS 的 `z-index` 值",
3350
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#css-properties-z-index"
3351
- }
3352
- ],
3353
- "parts": [
3354
- {
3355
- "name": "trigger",
3356
- "description": "触发 dropdown 的元素的容器,即 `trigger` slot 的容器",
3357
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#css-parts-trigger"
3358
- },
3359
- {
3360
- "name": "panel",
3361
- "description": "dropdown 内容的容器",
3362
- "doc-url": "https://www.mdui.org/docs/2/components/dropdown#css-parts-panel"
3363
- }
3364
- ]
3365
- }
3366
- },
3367
- {
3368
- "name": "mdui-icon",
3369
- "description": "图标组件\n\n```html\n<mdui-icon name=\"search\"></mdui-icon>\n```",
3370
- "attributes": [
3371
- {
3372
- "name": "name",
3373
- "description": "Material Icons 图标名",
3374
- "value": {
3375
- "type": "string"
3376
- },
3377
- "doc-url": "https://www.mdui.org/docs/2/components/icon#attributes-name"
3378
- },
3379
- {
3380
- "name": "src",
3381
- "description": "svg 图标的路径",
3382
- "value": {
3383
- "type": "string"
3384
- },
3385
- "doc-url": "https://www.mdui.org/docs/2/components/icon#attributes-src"
3386
- }
3387
- ],
3388
- "priority": "highest",
3389
- "doc-url": "https://www.mdui.org/docs/2/components/icon",
3390
- "slots": [
3391
- {
3392
- "name": "",
3393
- "description": "`svg` 图标的内容",
3394
- "doc-url": "https://www.mdui.org/docs/2/components/icon#slot-"
3395
- }
3396
- ],
3397
- "js": {
3398
- "properties": [
3399
- {
3400
- "name": "name",
3401
- "description": "Material Icons 图标名",
3402
- "value": {
3403
- "type": "string"
3404
- },
3405
- "doc-url": "https://www.mdui.org/docs/2/components/icon#attributes-name"
3406
- },
3407
- {
3408
- "name": "src",
3409
- "description": "svg 图标的路径",
3410
- "value": {
3411
- "type": "string"
3412
- },
3413
- "doc-url": "https://www.mdui.org/docs/2/components/icon#attributes-src"
3414
- }
3415
- ]
3416
- }
3417
- },
3418
- {
3419
- "name": "mdui-fab",
3420
- "description": "浮动操作按钮组件\n\n```html\n<mdui-fab icon=\"edit\"></mdui-fab>\n```",
3421
- "attributes": [
3422
- {
3423
- "name": "variant",
3424
- "description": "FAB 形状,此组件的不同形状之间只有颜色不一样。可选值为:\n\n* `primary`:使用 Primary container 背景色\n* `surface`:使用 Surface container high 背景色\n* `secondary`:使用 Secondary container 背景色\n* `tertiary`:使用 Tertiary container 背景色",
3425
- "value": {
3426
- "type": [
3427
- "'primary'",
3428
- "'surface'",
3429
- "'secondary'",
3430
- "'tertiary'"
3431
- ]
3432
- },
3433
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-variant"
3434
- },
3435
- {
3436
- "name": "size",
3437
- "description": "FAB 大小。可选值为:\n* `normal`:普通大小 FAB\n* `small`:小型 FAB\n* `large`:大型 FAB",
3438
- "value": {
3439
- "type": [
3440
- "'normal'",
3441
- "'small'",
3442
- "'large'"
3443
- ]
3444
- },
3445
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-size"
3446
- },
3447
- {
3448
- "name": "icon",
3449
- "description": "Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
3450
- "value": {
3451
- "type": "string"
3452
- },
3453
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-icon"
3454
- },
3455
- {
3456
- "name": "extended",
3457
- "description": "是否为展开状态",
3458
- "value": {
3459
- "type": "boolean"
3460
- },
3461
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-extended"
3462
- },
3463
- {
3464
- "name": "href",
3465
- "description": "链接指向的页面的 URL。\n\n若指定了该属性,则组件内部会渲染为 `<a>` 元素,并可以使用链接相关的属性",
3466
- "value": {
3467
- "type": "string"
3468
- },
3469
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-href"
3470
- },
3471
- {
3472
- "name": "download",
3473
- "description": "被下载的超链接目标。\n\n**Note**:仅在指定了 `href` 属性时可用",
3474
- "value": {
3475
- "type": "string"
3476
- },
3477
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-download"
3478
- },
3479
- {
3480
- "name": "target",
3481
- "description": "在何处打开链接。可选值为:\n\n* `_blank`:在新窗口中打开链接\n* `_parent`:在父框架中打开链接\n* `_self`:默认。在相同的框架中打开链接\n* `_top`:在整个窗口中打开链接\n\n**Note**:仅在指定了 `href` 属性时可用",
3482
- "value": {
3483
- "type": [
3484
- "'_blank'",
3485
- "'_parent'",
3486
- "'_self'",
3487
- "'_top'"
3488
- ]
3489
- },
3490
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-target"
3491
- },
3492
- {
3493
- "name": "rel",
3494
- "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` 属性时可用",
3495
- "value": {
3496
- "type": [
3497
- "'alternate'",
3498
- "'author'",
3499
- "'bookmark'",
3500
- "'external'",
3501
- "'help'",
3502
- "'license'",
3503
- "'me'",
3504
- "'next'",
3505
- "'nofollow'",
3506
- "'noreferrer'",
3507
- "'opener'",
3508
- "'prev'",
3509
- "'search'",
3510
- "'tag'"
3511
- ]
3512
- },
3513
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-rel"
3514
- },
3515
- {
3516
- "name": "autofocus",
3517
- "description": "是否在页面加载完成后自动获得焦点",
3518
- "value": {
3519
- "type": "boolean"
3520
- },
3521
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-autofocus"
3522
- },
3523
- {
3524
- "name": "tabindex",
3525
- "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
3526
- "value": {
3527
- "type": "number"
3528
- },
3529
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-tabindex"
3530
- },
3531
- {
3532
- "name": "disabled",
3533
- "description": "是否禁用",
3534
- "value": {
3535
- "type": "boolean"
3536
- },
3537
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-disabled"
3538
- },
3539
- {
3540
- "name": "loading",
3541
- "description": "是否为加载中状态",
3542
- "value": {
3543
- "type": "boolean"
3544
- },
3545
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-loading"
3546
- },
3547
- {
3548
- "name": "name",
3549
- "description": "按钮的名称,将与表单数据一起提交\n\n**Note**:仅在未指定 `href` 属性时可用",
3550
- "value": {
3551
- "type": "string"
3552
- },
3553
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-name"
3554
- },
3555
- {
3556
- "name": "value",
3557
- "description": "按钮的初始值,将与表单数据一起提交\n\n**Note**:仅在未指定 `href` 属性时可用",
3558
- "value": {
3559
- "type": "string"
3560
- },
3561
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-value"
3562
- },
3563
- {
3564
- "name": "type",
3565
- "description": "按钮的类型。默认值为 `button`。可选值为:\n\n* `submit`:点击按钮将表单数据提交给服务器\n* `reset`:点击按钮将表单中所有组件重置为初始值\n* `button`:按钮没有默认行为\n\n**Note**:仅在未指定 `href` 属性时可用",
3566
- "value": {
3567
- "type": [
3568
- "'submit'",
3569
- "'reset'",
3570
- "'button'"
3571
- ]
3572
- },
3573
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-type"
3574
- },
3575
- {
3576
- "name": "form",
3577
- "description": "关联的 `form` 元素。此属性值必须为同一页面中的一个 `<form>` 元素的 `id` 属性。\n\n如果此属性未指定,则元素必须是 `form` 元素的后代。利用此属性,你可以将元素放置在页面中的任何位置,而不仅仅是作为 `form` 元素的后代。\n\n**Note**:仅在未指定 `href` 属性时可用",
3578
- "value": {
3579
- "type": "string"
3580
- },
3581
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-form"
3582
- },
3583
- {
3584
- "name": "formaction",
3585
- "description": "\n指定提交表单的 URL。\n\n指定了该属性时,将覆盖 `form` 元素的 `action` 属性。\n\n**Note**:仅在未指定 `href` 属性、且 `type=\"submit\"` 时可用。",
3586
- "value": {
3587
- "type": "string"
3588
- },
3589
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-formaction"
3590
- },
3591
- {
3592
- "name": "formenctype",
3593
- "description": "指定提交表单到服务器的内容类型。可选值为:\n\n* `application/x-www-form-urlencoded`:未指定属性时的默认值\n* `multipart/form-data`:当表单包含 `<input type=\"file\">` 元素时使用此值\n* `text/plain`:出现于 HTML5,用于调试\n\n指定了该属性时,将覆盖 `form` 元素的 `enctype` 属性。\n\n**Note**:仅在未指定 `href` 属性、且 `type=\"submit\"` 时可用",
3594
- "value": {
3595
- "type": [
3596
- "'application/x-www-form-urlencoded'",
3597
- "'multipart/form-data'",
3598
- "'text/plain'"
3599
- ]
3600
- },
3601
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-formenctype"
3602
- },
3603
- {
3604
- "name": "formmethod",
3605
- "description": "指定提交表单使用的 HTTP 方法。可选值为:\n\n* `post`:来自表单的数据被包含在表单内容中,被发送到服务器\n* `get`:来自表单的数据以 `?` 作为分隔符被附加到 form 的 URI 属性中,得到的 URI 被发送到服务器。当表单没有副作用,且仅包含 ASCII 字符时使用这种方法\n\n指定了该属性时,将覆盖 `form` 元素的 `method` 属性。\n\n**Note**:仅在未指定 `href` 属性、且 `type=\"submit\"` 时可用。",
3606
- "value": {
3607
- "type": [
3608
- "'post'",
3609
- "'get'"
3610
- ]
3611
- },
3612
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-formmethod"
3613
- },
3614
- {
3615
- "name": "formnovalidate",
3616
- "description": "指定了该属性时,表示当表单被提交时不需要验证。\n\n指定了该属性时,将覆盖 `form` 元素的 `novalidate` 属性。\n\n**Note**:仅在未指定 `href` 属性、且 `type=\"submit\"` 时可用。",
3617
- "value": {
3618
- "type": "boolean"
3619
- },
3620
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-formnovalidate"
3621
- },
3622
- {
3623
- "name": "formtarget",
3624
- "description": "在何处显示提交表单后接收到的响应。可选值为:\n\n* `_self`:默认。在同一框架中打开\n* `_blank`:在新窗口中打开\n* `_parent`:在父框架中打开\n* `_top`:在整个窗口中打开\n\n指定了该属性时,将覆盖 `form` 元素的 `target` 属性。\n\n**Note**:仅在未指定 `href` 属性、且 `type=\"submit\"` 时可用",
3625
- "value": {
3626
- "type": [
3627
- "'_self'",
3628
- "'_blank'",
3629
- "'_parent'",
3630
- "'_top'"
3631
- ]
3632
- },
3633
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-formtarget"
3634
- }
3635
- ],
3636
- "priority": "highest",
3637
- "doc-url": "https://www.mdui.org/docs/2/components/fab",
3638
- "slots": [
3639
- {
3640
- "name": "",
3641
- "description": "文本",
3642
- "doc-url": "https://www.mdui.org/docs/2/components/fab#slot-"
3643
- },
3644
- {
3645
- "name": "icon",
3646
- "description": "图标",
3647
- "doc-url": "https://www.mdui.org/docs/2/components/fab#slot-icon"
3648
- }
3649
- ],
3650
- "js": {
3651
- "properties": [
3652
- {
3653
- "name": "variant",
3654
- "description": "FAB 形状,此组件的不同形状之间只有颜色不一样。可选值为:\n\n* `primary`:使用 Primary container 背景色\n* `surface`:使用 Surface container high 背景色\n* `secondary`:使用 Secondary container 背景色\n* `tertiary`:使用 Tertiary container 背景色",
3655
- "value": {
3656
- "type": [
3657
- "'primary'",
3658
- "'surface'",
3659
- "'secondary'",
3660
- "'tertiary'"
3661
- ]
3662
- },
3663
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-variant"
3664
- },
3665
- {
3666
- "name": "size",
3667
- "description": "FAB 大小。可选值为:\n* `normal`:普通大小 FAB\n* `small`:小型 FAB\n* `large`:大型 FAB",
3668
- "value": {
3669
- "type": [
3670
- "'normal'",
3671
- "'small'",
3672
- "'large'"
3673
- ]
3674
- },
3675
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-size"
3676
- },
3677
- {
3678
- "name": "icon",
3679
- "description": "Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
3680
- "value": {
3681
- "type": "string"
3682
- },
3683
- "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-icon"
3395
+ "doc-url": "https://www.mdui.org/docs/2/components/fab#attributes-icon"
3684
3396
  },
3685
3397
  {
3686
3398
  "name": "extended",
@@ -3939,6 +3651,57 @@
3939
3651
  ]
3940
3652
  }
3941
3653
  },
3654
+ {
3655
+ "name": "mdui-icon",
3656
+ "description": "图标组件\n\n```html\n<mdui-icon name=\"search\"></mdui-icon>\n```",
3657
+ "attributes": [
3658
+ {
3659
+ "name": "name",
3660
+ "description": "Material Icons 图标名",
3661
+ "value": {
3662
+ "type": "string"
3663
+ },
3664
+ "doc-url": "https://www.mdui.org/docs/2/components/icon#attributes-name"
3665
+ },
3666
+ {
3667
+ "name": "src",
3668
+ "description": "svg 图标的路径",
3669
+ "value": {
3670
+ "type": "string"
3671
+ },
3672
+ "doc-url": "https://www.mdui.org/docs/2/components/icon#attributes-src"
3673
+ }
3674
+ ],
3675
+ "priority": "highest",
3676
+ "doc-url": "https://www.mdui.org/docs/2/components/icon",
3677
+ "slots": [
3678
+ {
3679
+ "name": "",
3680
+ "description": "`svg` 图标的内容",
3681
+ "doc-url": "https://www.mdui.org/docs/2/components/icon#slot-"
3682
+ }
3683
+ ],
3684
+ "js": {
3685
+ "properties": [
3686
+ {
3687
+ "name": "name",
3688
+ "description": "Material Icons 图标名",
3689
+ "value": {
3690
+ "type": "string"
3691
+ },
3692
+ "doc-url": "https://www.mdui.org/docs/2/components/icon#attributes-name"
3693
+ },
3694
+ {
3695
+ "name": "src",
3696
+ "description": "svg 图标的路径",
3697
+ "value": {
3698
+ "type": "string"
3699
+ },
3700
+ "doc-url": "https://www.mdui.org/docs/2/components/icon#attributes-src"
3701
+ }
3702
+ ]
3703
+ }
3704
+ },
3942
3705
  {
3943
3706
  "name": "mdui-layout-item",
3944
3707
  "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```",
@@ -4049,116 +3812,32 @@
4049
3812
  }
4050
3813
  },
4051
3814
  {
4052
- "name": "mdui-linear-progress",
4053
- "description": "线性进度指示器组件\n\n```html\n<mdui-linear-progress></mdui-linear-progress>\n```",
3815
+ "name": "mdui-menu-item",
3816
+ "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```",
4054
3817
  "attributes": [
4055
- {
4056
- "name": "max",
4057
- "description": "进度指示器的最大值,默认为 1",
4058
- "value": {
4059
- "type": "number"
4060
- },
4061
- "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-max"
4062
- },
4063
3818
  {
4064
3819
  "name": "value",
4065
- "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
4066
- "value": {
4067
- "type": "number"
4068
- },
4069
- "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-value"
4070
- }
4071
- ],
4072
- "priority": "highest",
4073
- "doc-url": "https://www.mdui.org/docs/2/components/linear-progress",
4074
- "js": {
4075
- "properties": [
4076
- {
4077
- "name": "max",
4078
- "description": "进度指示器的最大值,默认为 1",
4079
- "value": {
4080
- "type": "number"
4081
- },
4082
- "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-max"
4083
- },
4084
- {
4085
- "name": "value",
4086
- "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
4087
- "value": {
4088
- "type": "number"
4089
- },
4090
- "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-value"
4091
- }
4092
- ]
4093
- },
4094
- "css": {
4095
- "properties": [
4096
- {
4097
- "name": "--shape-corner",
4098
- "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐[引用设计令牌](https://www.mdui.org/docs/2/styles/design-tokens#shape-corner)",
4099
- "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#css-properties-shape-corner"
4100
- }
4101
- ],
4102
- "parts": [
4103
- {
4104
- "name": "indicator",
4105
- "description": "指示器",
4106
- "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#css-parts-indicator"
4107
- }
4108
- ]
4109
- }
4110
- },
4111
- {
4112
- "name": "mdui-list-item",
4113
- "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```",
4114
- "attributes": [
4115
- {
4116
- "name": "headline",
4117
- "description": "主文本。也可以通过 default slot 设置",
4118
- "value": {
4119
- "type": "string"
4120
- },
4121
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline"
4122
- },
4123
- {
4124
- "name": "headline-line",
4125
- "description": "主文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
4126
- "value": {
4127
- "type": [
4128
- "1",
4129
- "2",
4130
- "3"
4131
- ]
4132
- },
4133
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline-line"
4134
- },
4135
- {
4136
- "name": "description",
4137
- "description": "副文本。也可以通过 `slot=\"description\"` 设置",
3820
+ "description": "该菜单项的值",
4138
3821
  "value": {
4139
3822
  "type": "string"
4140
3823
  },
4141
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description"
3824
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-value"
4142
3825
  },
4143
3826
  {
4144
- "name": "description-line",
4145
- "description": "副文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
3827
+ "name": "disabled",
3828
+ "description": "是否禁用该菜单项",
4146
3829
  "value": {
4147
- "type": [
4148
- "1",
4149
- "2",
4150
- "3"
4151
- ]
3830
+ "type": "boolean"
4152
3831
  },
4153
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description-line"
3832
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-disabled"
4154
3833
  },
4155
3834
  {
4156
3835
  "name": "icon",
4157
- "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
3836
+ "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置\n\n如果需要在左侧留出一个图标的位置,可以传入空字符串进行占位",
4158
3837
  "value": {
4159
3838
  "type": "string"
4160
3839
  },
4161
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-icon"
3840
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-icon"
4162
3841
  },
4163
3842
  {
4164
3843
  "name": "end-icon",
@@ -4166,51 +3845,31 @@
4166
3845
  "value": {
4167
3846
  "type": "string"
4168
3847
  },
4169
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-end-icon"
4170
- },
4171
- {
4172
- "name": "disabled",
4173
- "description": "是否禁用该列表项,列表项将置灰,且其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等都将禁用",
4174
- "value": {
4175
- "type": "boolean"
4176
- },
4177
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-disabled"
3848
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-end-icon"
4178
3849
  },
4179
3850
  {
4180
- "name": "active",
4181
- "description": "是否激活该列表项",
3851
+ "name": "end-text",
3852
+ "description": "右侧的文本。也可以通过 `slot=\"end-text\"` 设置",
4182
3853
  "value": {
4183
- "type": "boolean"
3854
+ "type": "string"
4184
3855
  },
4185
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-active"
3856
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-end-text"
4186
3857
  },
4187
3858
  {
4188
- "name": "nonclickable",
4189
- "description": "是否使列表项不可点击,但其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等仍可进行交互",
3859
+ "name": "selected-icon",
3860
+ "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
4190
3861
  "value": {
4191
- "type": "boolean"
3862
+ "type": "string"
4192
3863
  },
4193
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-nonclickable"
3864
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-selected-icon"
4194
3865
  },
4195
3866
  {
4196
- "name": "rounded",
4197
- "description": "使用圆角形状的列表项",
3867
+ "name": "submenu-open",
3868
+ "description": "是否打开子菜单",
4198
3869
  "value": {
4199
3870
  "type": "boolean"
4200
3871
  },
4201
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rounded"
4202
- },
4203
- {
4204
- "name": "alignment",
4205
- "description": "列表项的垂直对齐方式。可选值为:\n\n* `start`:顶部对齐\n* `center`:居中对齐\n* `end`:底部对齐",
4206
- "value": {
4207
- "type": [
4208
- "'start'",
4209
- "'center'",
4210
- "'end'"
4211
- ]
4212
- },
4213
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-alignment"
3872
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-submenu-open"
4214
3873
  },
4215
3874
  {
4216
3875
  "name": "href",
@@ -4218,7 +3877,7 @@
4218
3877
  "value": {
4219
3878
  "type": "string"
4220
3879
  },
4221
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-href"
3880
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-href"
4222
3881
  },
4223
3882
  {
4224
3883
  "name": "download",
@@ -4226,7 +3885,7 @@
4226
3885
  "value": {
4227
3886
  "type": "string"
4228
3887
  },
4229
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-download"
3888
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-download"
4230
3889
  },
4231
3890
  {
4232
3891
  "name": "target",
@@ -4239,7 +3898,7 @@
4239
3898
  "'_top'"
4240
3899
  ]
4241
3900
  },
4242
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-target"
3901
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-target"
4243
3902
  },
4244
3903
  {
4245
3904
  "name": "rel",
@@ -4262,7 +3921,7 @@
4262
3921
  "'tag'"
4263
3922
  ]
4264
3923
  },
4265
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rel"
3924
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-rel"
4266
3925
  },
4267
3926
  {
4268
3927
  "name": "autofocus",
@@ -4270,227 +3929,398 @@
4270
3929
  "value": {
4271
3930
  "type": "boolean"
4272
3931
  },
4273
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-autofocus"
3932
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-autofocus"
4274
3933
  },
4275
3934
  {
4276
- "name": "tabindex",
3935
+ "name": "tabIndex",
4277
3936
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
4278
3937
  "value": {
4279
3938
  "type": "number"
4280
3939
  },
4281
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-tabindex"
3940
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-tabIndex"
4282
3941
  }
4283
3942
  ],
4284
3943
  "priority": "highest",
4285
- "doc-url": "https://www.mdui.org/docs/2/components/list",
3944
+ "doc-url": "https://www.mdui.org/docs/2/components/menu",
4286
3945
  "slots": [
4287
3946
  {
4288
3947
  "name": "",
4289
- "description": "主文本",
4290
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-slot-"
4291
- },
4292
- {
4293
- "name": "description",
4294
- "description": "副文本",
4295
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-slot-description"
3948
+ "description": "菜单项的文本",
3949
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-"
4296
3950
  },
4297
3951
  {
4298
3952
  "name": "icon",
4299
- "description": "列表项左侧的元素",
4300
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-slot-icon"
3953
+ "description": "菜单项左侧图标",
3954
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-icon"
4301
3955
  },
4302
3956
  {
4303
3957
  "name": "end-icon",
4304
- "description": "列表项右侧的元素",
4305
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-slot-end-icon"
3958
+ "description": "菜单项右侧图标",
3959
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-end-icon"
3960
+ },
3961
+ {
3962
+ "name": "end-text",
3963
+ "description": "菜单右侧的文本",
3964
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-end-text"
3965
+ },
3966
+ {
3967
+ "name": "selected-icon",
3968
+ "description": "选中状态的图标",
3969
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-selected-icon"
3970
+ },
3971
+ {
3972
+ "name": "submenu",
3973
+ "description": "子菜单",
3974
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-submenu"
4306
3975
  },
4307
3976
  {
4308
3977
  "name": "custom",
4309
3978
  "description": "任意自定义内容",
4310
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-slot-custom"
3979
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-custom"
4311
3980
  }
4312
3981
  ],
4313
3982
  "js": {
4314
3983
  "properties": [
4315
3984
  {
4316
- "name": "headline",
4317
- "description": "主文本。也可以通过 default slot 设置",
3985
+ "name": "value",
3986
+ "description": "该菜单项的值",
4318
3987
  "value": {
4319
3988
  "type": "string"
4320
3989
  },
4321
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline"
3990
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-value"
4322
3991
  },
4323
3992
  {
4324
- "name": "headlineLine",
4325
- "description": "主文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
3993
+ "name": "disabled",
3994
+ "description": "是否禁用该菜单项",
4326
3995
  "value": {
4327
- "type": [
4328
- "1",
4329
- "2",
4330
- "3"
4331
- ]
3996
+ "type": "boolean"
4332
3997
  },
4333
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headlineLine"
3998
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-disabled"
4334
3999
  },
4335
4000
  {
4336
- "name": "description",
4337
- "description": "副文本。也可以通过 `slot=\"description\"` 设置",
4001
+ "name": "icon",
4002
+ "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置\n\n如果需要在左侧留出一个图标的位置,可以传入空字符串进行占位",
4338
4003
  "value": {
4339
4004
  "type": "string"
4340
4005
  },
4341
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description"
4006
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-icon"
4342
4007
  },
4343
4008
  {
4344
- "name": "descriptionLine",
4345
- "description": "副文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
4009
+ "name": "endIcon",
4010
+ "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
4346
4011
  "value": {
4347
- "type": [
4348
- "1",
4349
- "2",
4350
- "3"
4351
- ]
4012
+ "type": "string"
4352
4013
  },
4353
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-descriptionLine"
4014
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-endIcon"
4354
4015
  },
4355
4016
  {
4356
- "name": "icon",
4357
- "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
4017
+ "name": "endText",
4018
+ "description": "右侧的文本。也可以通过 `slot=\"end-text\"` 设置",
4358
4019
  "value": {
4359
4020
  "type": "string"
4360
4021
  },
4361
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-icon"
4022
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-endText"
4362
4023
  },
4363
4024
  {
4364
- "name": "endIcon",
4365
- "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
4025
+ "name": "selectedIcon",
4026
+ "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
4366
4027
  "value": {
4367
4028
  "type": "string"
4368
4029
  },
4369
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-endIcon"
4030
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-selectedIcon"
4370
4031
  },
4371
4032
  {
4372
- "name": "disabled",
4373
- "description": "是否禁用该列表项,列表项将置灰,且其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等都将禁用",
4033
+ "name": "submenuOpen",
4034
+ "description": "是否打开子菜单",
4374
4035
  "value": {
4375
4036
  "type": "boolean"
4376
4037
  },
4377
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-disabled"
4038
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-submenuOpen"
4378
4039
  },
4379
4040
  {
4380
- "name": "active",
4381
- "description": "是否激活该列表项",
4041
+ "name": "href",
4042
+ "description": "链接指向的页面的 URL。\n\n若指定了该属性,则组件内部会渲染为 `<a>` 元素,并可以使用链接相关的属性",
4382
4043
  "value": {
4383
- "type": "boolean"
4044
+ "type": "string"
4384
4045
  },
4385
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-active"
4046
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-href"
4386
4047
  },
4387
4048
  {
4388
- "name": "nonclickable",
4389
- "description": "是否使列表项不可点击,但其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等仍可进行交互",
4049
+ "name": "download",
4050
+ "description": "被下载的超链接目标。\n\n**Note**:仅在指定了 `href` 属性时可用",
4390
4051
  "value": {
4391
- "type": "boolean"
4052
+ "type": "string"
4392
4053
  },
4393
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-nonclickable"
4054
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-download"
4394
4055
  },
4395
4056
  {
4396
- "name": "rounded",
4397
- "description": "使用圆角形状的列表项",
4057
+ "name": "target",
4058
+ "description": "在何处打开链接。可选值为:\n\n* `_blank`:在新窗口中打开链接\n* `_parent`:在父框架中打开链接\n* `_self`:默认。在相同的框架中打开链接\n* `_top`:在整个窗口中打开链接\n\n**Note**:仅在指定了 `href` 属性时可用",
4059
+ "value": {
4060
+ "type": [
4061
+ "'_blank'",
4062
+ "'_parent'",
4063
+ "'_self'",
4064
+ "'_top'"
4065
+ ]
4066
+ },
4067
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-target"
4068
+ },
4069
+ {
4070
+ "name": "rel",
4071
+ "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` 属性时可用",
4072
+ "value": {
4073
+ "type": [
4074
+ "'alternate'",
4075
+ "'author'",
4076
+ "'bookmark'",
4077
+ "'external'",
4078
+ "'help'",
4079
+ "'license'",
4080
+ "'me'",
4081
+ "'next'",
4082
+ "'nofollow'",
4083
+ "'noreferrer'",
4084
+ "'opener'",
4085
+ "'prev'",
4086
+ "'search'",
4087
+ "'tag'"
4088
+ ]
4089
+ },
4090
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-rel"
4091
+ },
4092
+ {
4093
+ "name": "autofocus",
4094
+ "description": "是否在页面加载完成后自动获得焦点",
4398
4095
  "value": {
4399
4096
  "type": "boolean"
4400
4097
  },
4401
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rounded"
4098
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-autofocus"
4099
+ },
4100
+ {
4101
+ "name": "tabIndex",
4102
+ "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
4103
+ "value": {
4104
+ "type": "number"
4105
+ },
4106
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-tabIndex"
4107
+ }
4108
+ ],
4109
+ "events": [
4110
+ {
4111
+ "name": "focus",
4112
+ "description": "获得焦点时触发",
4113
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-focus"
4114
+ },
4115
+ {
4116
+ "name": "blur",
4117
+ "description": "失去焦点时触发",
4118
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-blur"
4119
+ },
4120
+ {
4121
+ "name": "submenu-open",
4122
+ "description": "子菜单开始打开时,事件被触发。可以通过调用 `event.preventDefault()` 阻止子菜单打开",
4123
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-submenu-open"
4124
+ },
4125
+ {
4126
+ "name": "submenu-opened",
4127
+ "description": "子菜单打开动画完成时,事件被触发",
4128
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-submenu-opened"
4129
+ },
4130
+ {
4131
+ "name": "submenu-close",
4132
+ "description": "子菜单开始关闭时,事件被触发。可以通过调用 `event.preventDefault()` 阻止子菜单关闭",
4133
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-submenu-close"
4134
+ },
4135
+ {
4136
+ "name": "submenu-closed",
4137
+ "description": "子菜单关闭动画完成时,事件被触发",
4138
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-submenu-closed"
4139
+ }
4140
+ ]
4141
+ },
4142
+ "css": {
4143
+ "parts": [
4144
+ {
4145
+ "name": "container",
4146
+ "description": "菜单项的容器",
4147
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-container"
4148
+ },
4149
+ {
4150
+ "name": "icon",
4151
+ "description": "左侧的图标",
4152
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-icon"
4153
+ },
4154
+ {
4155
+ "name": "label",
4156
+ "description": "文本内容",
4157
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-label"
4158
+ },
4159
+ {
4160
+ "name": "end-icon",
4161
+ "description": "右侧的图标",
4162
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-end-icon"
4163
+ },
4164
+ {
4165
+ "name": "end-text",
4166
+ "description": "右侧的文本",
4167
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-end-text"
4168
+ },
4169
+ {
4170
+ "name": "selected-icon",
4171
+ "description": "选中状态的图标",
4172
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-selected-icon"
4173
+ },
4174
+ {
4175
+ "name": "submenu",
4176
+ "description": "子菜单元素",
4177
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-submenu"
4178
+ }
4179
+ ]
4180
+ }
4181
+ },
4182
+ {
4183
+ "name": "mdui-menu",
4184
+ "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```",
4185
+ "attributes": [
4186
+ {
4187
+ "name": "selects",
4188
+ "description": "菜单项的可选中状态。默认为不可选中。可选值为:\n\n* `single`:最多只能选中一个\n* `multiple`:可以选中多个",
4189
+ "value": {
4190
+ "type": [
4191
+ "'single'",
4192
+ "'multiple'"
4193
+ ]
4194
+ },
4195
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-selects"
4196
+ },
4197
+ {
4198
+ "name": "value",
4199
+ "description": "当前选中的 `<mdui-menu-item>` 的值\n\nNote:\n该属性的 HTML 属性始终为字符串,且仅在 `selects=\"single\"` 时可以通过 HTML 属性设置初始值;\n该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串、在 `selects=\"multiple\"` 时为字符串数组。\n所以,在 `selects=\"multiple\"` 时,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
4200
+ "value": {
4201
+ "type": [
4202
+ "string",
4203
+ "string[]"
4204
+ ]
4205
+ },
4206
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-value"
4207
+ },
4208
+ {
4209
+ "name": "dense",
4210
+ "description": "菜单项是否使用更紧凑的布局",
4211
+ "value": {
4212
+ "type": "boolean"
4213
+ },
4214
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-dense"
4215
+ },
4216
+ {
4217
+ "name": "submenu-trigger",
4218
+ "description": "子菜单的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击菜单项时打开子菜单\n* `hover`:鼠标悬浮到菜单项上时打开子菜单\n* `focus`:聚焦到菜单项上时打开子菜单\n* `manual`:使用了该值时,只能使用编程方式打开和关闭子菜单,且不能再指定其他触发方式",
4219
+ "value": {
4220
+ "type": [
4221
+ "'click'",
4222
+ "'hover'",
4223
+ "'focus'",
4224
+ "'manual'",
4225
+ "string"
4226
+ ]
4227
+ },
4228
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-trigger"
4229
+ },
4230
+ {
4231
+ "name": "submenu-open-delay",
4232
+ "description": "通过 hover 触发子菜单打开时的延时,单位为毫秒",
4233
+ "value": {
4234
+ "type": "number"
4235
+ },
4236
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-open-delay"
4237
+ },
4238
+ {
4239
+ "name": "submenu-close-delay",
4240
+ "description": "通过 hover 触发子菜单关闭时的延时,单位为毫秒",
4241
+ "value": {
4242
+ "type": "number"
4402
4243
  },
4244
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-close-delay"
4245
+ }
4246
+ ],
4247
+ "priority": "highest",
4248
+ "doc-url": "https://www.mdui.org/docs/2/components/menu",
4249
+ "slots": [
4250
+ {
4251
+ "name": "",
4252
+ "description": "子菜单项(`<mdui-menu-item>`)、分割线([`<mdui-divider>`](https://www.mdui.org/docs/2/components/divider))等元素",
4253
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-slot-"
4254
+ }
4255
+ ],
4256
+ "js": {
4257
+ "properties": [
4403
4258
  {
4404
- "name": "alignment",
4405
- "description": "列表项的垂直对齐方式。可选值为:\n\n* `start`:顶部对齐\n* `center`:居中对齐\n* `end`:底部对齐",
4259
+ "name": "selects",
4260
+ "description": "菜单项的可选中状态。默认为不可选中。可选值为:\n\n* `single`:最多只能选中一个\n* `multiple`:可以选中多个",
4406
4261
  "value": {
4407
4262
  "type": [
4408
- "'start'",
4409
- "'center'",
4410
- "'end'"
4263
+ "'single'",
4264
+ "'multiple'"
4411
4265
  ]
4412
4266
  },
4413
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-alignment"
4414
- },
4415
- {
4416
- "name": "href",
4417
- "description": "链接指向的页面的 URL。\n\n若指定了该属性,则组件内部会渲染为 `<a>` 元素,并可以使用链接相关的属性",
4418
- "value": {
4419
- "type": "string"
4420
- },
4421
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-href"
4267
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-selects"
4422
4268
  },
4423
4269
  {
4424
- "name": "download",
4425
- "description": "被下载的超链接目标。\n\n**Note**:仅在指定了 `href` 属性时可用",
4270
+ "name": "value",
4271
+ "description": "当前选中的 `<mdui-menu-item>` 的值\n\nNote:\n该属性的 HTML 属性始终为字符串,且仅在 `selects=\"single\"` 时可以通过 HTML 属性设置初始值;\n该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串、在 `selects=\"multiple\"` 时为字符串数组。\n所以,在 `selects=\"multiple\"` 时,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
4426
4272
  "value": {
4427
- "type": "string"
4273
+ "type": [
4274
+ "string",
4275
+ "string[]"
4276
+ ]
4428
4277
  },
4429
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-download"
4278
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-value"
4430
4279
  },
4431
4280
  {
4432
- "name": "target",
4433
- "description": "在何处打开链接。可选值为:\n\n* `_blank`:在新窗口中打开链接\n* `_parent`:在父框架中打开链接\n* `_self`:默认。在相同的框架中打开链接\n* `_top`:在整个窗口中打开链接\n\n**Note**:仅在指定了 `href` 属性时可用",
4281
+ "name": "dense",
4282
+ "description": "菜单项是否使用更紧凑的布局",
4434
4283
  "value": {
4435
- "type": [
4436
- "'_blank'",
4437
- "'_parent'",
4438
- "'_self'",
4439
- "'_top'"
4440
- ]
4284
+ "type": "boolean"
4441
4285
  },
4442
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-target"
4286
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-dense"
4443
4287
  },
4444
4288
  {
4445
- "name": "rel",
4446
- "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` 属性时可用",
4289
+ "name": "submenuTrigger",
4290
+ "description": "子菜单的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击菜单项时打开子菜单\n* `hover`:鼠标悬浮到菜单项上时打开子菜单\n* `focus`:聚焦到菜单项上时打开子菜单\n* `manual`:使用了该值时,只能使用编程方式打开和关闭子菜单,且不能再指定其他触发方式",
4447
4291
  "value": {
4448
4292
  "type": [
4449
- "'alternate'",
4450
- "'author'",
4451
- "'bookmark'",
4452
- "'external'",
4453
- "'help'",
4454
- "'license'",
4455
- "'me'",
4456
- "'next'",
4457
- "'nofollow'",
4458
- "'noreferrer'",
4459
- "'opener'",
4460
- "'prev'",
4461
- "'search'",
4462
- "'tag'"
4293
+ "'click'",
4294
+ "'hover'",
4295
+ "'focus'",
4296
+ "'manual'",
4297
+ "string"
4463
4298
  ]
4464
4299
  },
4465
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rel"
4300
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenuTrigger"
4466
4301
  },
4467
4302
  {
4468
- "name": "autofocus",
4469
- "description": "是否在页面加载完成后自动获得焦点",
4303
+ "name": "submenuOpenDelay",
4304
+ "description": "通过 hover 触发子菜单打开时的延时,单位为毫秒",
4470
4305
  "value": {
4471
- "type": "boolean"
4306
+ "type": "number"
4472
4307
  },
4473
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-autofocus"
4308
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenuOpenDelay"
4474
4309
  },
4475
4310
  {
4476
- "name": "tabIndex",
4477
- "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
4311
+ "name": "submenuCloseDelay",
4312
+ "description": "通过 hover 触发子菜单关闭时的延时,单位为毫秒",
4478
4313
  "value": {
4479
4314
  "type": "number"
4480
4315
  },
4481
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-tabIndex"
4316
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenuCloseDelay"
4482
4317
  }
4483
4318
  ],
4484
4319
  "events": [
4485
4320
  {
4486
- "name": "focus",
4487
- "description": "获得焦点时触发",
4488
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-event-focus"
4489
- },
4490
- {
4491
- "name": "blur",
4492
- "description": "失去焦点时触发",
4493
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-event-blur"
4321
+ "name": "change",
4322
+ "description": "菜单项的选中状态变化时触发",
4323
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-event-change"
4494
4324
  }
4495
4325
  ]
4496
4326
  },
@@ -4498,102 +4328,123 @@
4498
4328
  "properties": [
4499
4329
  {
4500
4330
  "name": "--shape-corner",
4501
- "description": "列表项的圆角大小。可以指定一个具体的像素值;但更推荐[引用设计令牌](https://www.mdui.org/docs/2/styles/design-tokens#shape-corner)",
4502
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-properties-shape-corner"
4503
- },
4504
- {
4505
- "name": "--shape-corner-rounded",
4506
- "description": "指定了 `rounded` 时,列表项的圆角大小。可以指定一个具体的像素值;但更推荐[引用设计令牌](https://www.mdui.org/docs/2/styles/design-tokens#shape-corner)",
4507
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-properties-shape-corner-rounded"
4331
+ "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐[引用设计令牌](https://www.mdui.org/docs/2/styles/design-tokens#shape-corner)",
4332
+ "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-css-properties-shape-corner"
4508
4333
  }
4509
- ],
4510
- "parts": [
4511
- {
4512
- "name": "container",
4513
- "description": "列表项容器",
4514
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-container"
4334
+ ]
4335
+ }
4336
+ },
4337
+ {
4338
+ "name": "mdui-linear-progress",
4339
+ "description": "线性进度指示器组件\n\n```html\n<mdui-linear-progress></mdui-linear-progress>\n```",
4340
+ "attributes": [
4341
+ {
4342
+ "name": "max",
4343
+ "description": "进度指示器的最大值,默认为 1",
4344
+ "value": {
4345
+ "type": "number"
4515
4346
  },
4516
- {
4517
- "name": "icon",
4518
- "description": "左侧图标",
4519
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-icon"
4347
+ "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-max"
4348
+ },
4349
+ {
4350
+ "name": "value",
4351
+ "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
4352
+ "value": {
4353
+ "type": "number"
4520
4354
  },
4355
+ "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-value"
4356
+ }
4357
+ ],
4358
+ "priority": "highest",
4359
+ "doc-url": "https://www.mdui.org/docs/2/components/linear-progress",
4360
+ "js": {
4361
+ "properties": [
4521
4362
  {
4522
- "name": "end-icon",
4523
- "description": "右侧图标",
4524
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-end-icon"
4363
+ "name": "max",
4364
+ "description": "进度指示器的最大值,默认为 1",
4365
+ "value": {
4366
+ "type": "number"
4367
+ },
4368
+ "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-max"
4525
4369
  },
4526
4370
  {
4527
- "name": "body",
4528
- "description": "中间部分",
4529
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-body"
4530
- },
4371
+ "name": "value",
4372
+ "description": "进度指示器的当前值。若未指定该值,则为不确定状态",
4373
+ "value": {
4374
+ "type": "number"
4375
+ },
4376
+ "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#attributes-value"
4377
+ }
4378
+ ]
4379
+ },
4380
+ "css": {
4381
+ "properties": [
4531
4382
  {
4532
- "name": "headline",
4533
- "description": "主标题",
4534
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-headline"
4535
- },
4383
+ "name": "--shape-corner",
4384
+ "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐[引用设计令牌](https://www.mdui.org/docs/2/styles/design-tokens#shape-corner)",
4385
+ "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#css-properties-shape-corner"
4386
+ }
4387
+ ],
4388
+ "parts": [
4536
4389
  {
4537
- "name": "description",
4538
- "description": "副标题",
4539
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-description"
4390
+ "name": "indicator",
4391
+ "description": "指示器",
4392
+ "doc-url": "https://www.mdui.org/docs/2/components/linear-progress#css-parts-indicator"
4540
4393
  }
4541
4394
  ]
4542
4395
  }
4543
4396
  },
4544
4397
  {
4545
- "name": "mdui-list-subheader",
4546
- "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```",
4547
- "priority": "highest",
4548
- "doc-url": "https://www.mdui.org/docs/2/components/list",
4549
- "slots": [
4398
+ "name": "mdui-list-item",
4399
+ "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```",
4400
+ "attributes": [
4550
4401
  {
4551
- "name": "",
4552
- "description": "文本",
4553
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-subheader-slot-"
4554
- }
4555
- ]
4556
- },
4557
- {
4558
- "name": "mdui-list",
4559
- "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```",
4560
- "priority": "highest",
4561
- "doc-url": "https://www.mdui.org/docs/2/components/list",
4562
- "slots": [
4402
+ "name": "headline",
4403
+ "description": "主文本。也可以通过 default slot 设置",
4404
+ "value": {
4405
+ "type": "string"
4406
+ },
4407
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline"
4408
+ },
4563
4409
  {
4564
- "name": "",
4565
- "description": "`<mdui-list-item>` 元素",
4566
- "doc-url": "https://www.mdui.org/docs/2/components/list#list-slot-"
4567
- }
4568
- ]
4569
- },
4570
- {
4571
- "name": "mdui-menu-item",
4572
- "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```",
4573
- "attributes": [
4410
+ "name": "headline-line",
4411
+ "description": "主文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
4412
+ "value": {
4413
+ "type": [
4414
+ "1",
4415
+ "2",
4416
+ "3"
4417
+ ]
4418
+ },
4419
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline-line"
4420
+ },
4574
4421
  {
4575
- "name": "value",
4576
- "description": "该菜单项的值",
4422
+ "name": "description",
4423
+ "description": "副文本。也可以通过 `slot=\"description\"` 设置",
4577
4424
  "value": {
4578
4425
  "type": "string"
4579
4426
  },
4580
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-value"
4427
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description"
4581
4428
  },
4582
4429
  {
4583
- "name": "disabled",
4584
- "description": "是否禁用该菜单项",
4430
+ "name": "description-line",
4431
+ "description": "副文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
4585
4432
  "value": {
4586
- "type": "boolean"
4433
+ "type": [
4434
+ "1",
4435
+ "2",
4436
+ "3"
4437
+ ]
4587
4438
  },
4588
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-disabled"
4439
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description-line"
4589
4440
  },
4590
4441
  {
4591
4442
  "name": "icon",
4592
- "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置\n\n如果需要在左侧留出一个图标的位置,可以传入空字符串进行占位",
4443
+ "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
4593
4444
  "value": {
4594
4445
  "type": "string"
4595
4446
  },
4596
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-icon"
4447
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-icon"
4597
4448
  },
4598
4449
  {
4599
4450
  "name": "end-icon",
@@ -4601,31 +4452,51 @@
4601
4452
  "value": {
4602
4453
  "type": "string"
4603
4454
  },
4604
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-end-icon"
4455
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-end-icon"
4605
4456
  },
4606
4457
  {
4607
- "name": "end-text",
4608
- "description": "右侧的文本。也可以通过 `slot=\"end-text\"` 设置",
4458
+ "name": "disabled",
4459
+ "description": "是否禁用该列表项,列表项将置灰,且其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等都将禁用",
4609
4460
  "value": {
4610
- "type": "string"
4461
+ "type": "boolean"
4611
4462
  },
4612
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-end-text"
4463
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-disabled"
4613
4464
  },
4614
4465
  {
4615
- "name": "selected-icon",
4616
- "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
4466
+ "name": "active",
4467
+ "description": "是否激活该列表项",
4617
4468
  "value": {
4618
- "type": "string"
4469
+ "type": "boolean"
4619
4470
  },
4620
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-selected-icon"
4471
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-active"
4621
4472
  },
4622
4473
  {
4623
- "name": "submenu-open",
4624
- "description": "是否打开子菜单",
4474
+ "name": "nonclickable",
4475
+ "description": "是否使列表项不可点击,但其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等仍可进行交互",
4625
4476
  "value": {
4626
4477
  "type": "boolean"
4627
4478
  },
4628
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-submenu-open"
4479
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-nonclickable"
4480
+ },
4481
+ {
4482
+ "name": "rounded",
4483
+ "description": "使用圆角形状的列表项",
4484
+ "value": {
4485
+ "type": "boolean"
4486
+ },
4487
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rounded"
4488
+ },
4489
+ {
4490
+ "name": "alignment",
4491
+ "description": "列表项的垂直对齐方式。可选值为:\n\n* `start`:顶部对齐\n* `center`:居中对齐\n* `end`:底部对齐",
4492
+ "value": {
4493
+ "type": [
4494
+ "'start'",
4495
+ "'center'",
4496
+ "'end'"
4497
+ ]
4498
+ },
4499
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-alignment"
4629
4500
  },
4630
4501
  {
4631
4502
  "name": "href",
@@ -4633,7 +4504,7 @@
4633
4504
  "value": {
4634
4505
  "type": "string"
4635
4506
  },
4636
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-href"
4507
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-href"
4637
4508
  },
4638
4509
  {
4639
4510
  "name": "download",
@@ -4641,7 +4512,7 @@
4641
4512
  "value": {
4642
4513
  "type": "string"
4643
4514
  },
4644
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-download"
4515
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-download"
4645
4516
  },
4646
4517
  {
4647
4518
  "name": "target",
@@ -4654,7 +4525,7 @@
4654
4525
  "'_top'"
4655
4526
  ]
4656
4527
  },
4657
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-target"
4528
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-target"
4658
4529
  },
4659
4530
  {
4660
4531
  "name": "rel",
@@ -4677,7 +4548,7 @@
4677
4548
  "'tag'"
4678
4549
  ]
4679
4550
  },
4680
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-rel"
4551
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rel"
4681
4552
  },
4682
4553
  {
4683
4554
  "name": "autofocus",
@@ -4685,81 +4556,95 @@
4685
4556
  "value": {
4686
4557
  "type": "boolean"
4687
4558
  },
4688
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-autofocus"
4559
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-autofocus"
4689
4560
  },
4690
4561
  {
4691
- "name": "tabindex",
4562
+ "name": "tabIndex",
4692
4563
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
4693
4564
  "value": {
4694
4565
  "type": "number"
4695
4566
  },
4696
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-tabindex"
4567
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-tabIndex"
4697
4568
  }
4698
4569
  ],
4699
4570
  "priority": "highest",
4700
- "doc-url": "https://www.mdui.org/docs/2/components/menu",
4571
+ "doc-url": "https://www.mdui.org/docs/2/components/list",
4701
4572
  "slots": [
4702
4573
  {
4703
4574
  "name": "",
4704
- "description": "菜单项的文本",
4705
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-"
4706
- },
4707
- {
4708
- "name": "icon",
4709
- "description": "菜单项左侧图标",
4710
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-icon"
4711
- },
4712
- {
4713
- "name": "end-icon",
4714
- "description": "菜单项右侧图标",
4715
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-end-icon"
4575
+ "description": "主文本",
4576
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-slot-"
4716
4577
  },
4717
4578
  {
4718
- "name": "end-text",
4719
- "description": "菜单右侧的文本",
4720
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-end-text"
4579
+ "name": "description",
4580
+ "description": "副文本",
4581
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-slot-description"
4721
4582
  },
4722
4583
  {
4723
- "name": "selected-icon",
4724
- "description": "选中状态的图标",
4725
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-selected-icon"
4584
+ "name": "icon",
4585
+ "description": "列表项左侧的元素",
4586
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-slot-icon"
4726
4587
  },
4727
4588
  {
4728
- "name": "submenu",
4729
- "description": "子菜单",
4730
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-submenu"
4589
+ "name": "end-icon",
4590
+ "description": "列表项右侧的元素",
4591
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-slot-end-icon"
4731
4592
  },
4732
4593
  {
4733
4594
  "name": "custom",
4734
4595
  "description": "任意自定义内容",
4735
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-slot-custom"
4596
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-slot-custom"
4736
4597
  }
4737
4598
  ],
4738
4599
  "js": {
4739
4600
  "properties": [
4740
4601
  {
4741
- "name": "value",
4742
- "description": "该菜单项的值",
4602
+ "name": "headline",
4603
+ "description": "主文本。也可以通过 default slot 设置",
4743
4604
  "value": {
4744
4605
  "type": "string"
4745
4606
  },
4746
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-value"
4607
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headline"
4747
4608
  },
4748
4609
  {
4749
- "name": "disabled",
4750
- "description": "是否禁用该菜单项",
4610
+ "name": "headlineLine",
4611
+ "description": "主文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
4751
4612
  "value": {
4752
- "type": "boolean"
4613
+ "type": [
4614
+ "1",
4615
+ "2",
4616
+ "3"
4617
+ ]
4753
4618
  },
4754
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-disabled"
4619
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-headlineLine"
4620
+ },
4621
+ {
4622
+ "name": "description",
4623
+ "description": "副文本。也可以通过 `slot=\"description\"` 设置",
4624
+ "value": {
4625
+ "type": "string"
4626
+ },
4627
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-description"
4628
+ },
4629
+ {
4630
+ "name": "descriptionLine",
4631
+ "description": "副文本行数,超过行数限制后会截断显示。默认为没有行数限制。可选值为:\n\n* `1`:显示单行文本,超出后截断显示\n* `2`:显示两行文本,超出后截断显示\n* `3`:显示三行文本,超出后截断显示",
4632
+ "value": {
4633
+ "type": [
4634
+ "1",
4635
+ "2",
4636
+ "3"
4637
+ ]
4638
+ },
4639
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-descriptionLine"
4755
4640
  },
4756
4641
  {
4757
4642
  "name": "icon",
4758
- "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置\n\n如果需要在左侧留出一个图标的位置,可以传入空字符串进行占位",
4643
+ "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
4759
4644
  "value": {
4760
4645
  "type": "string"
4761
4646
  },
4762
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-icon"
4647
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-icon"
4763
4648
  },
4764
4649
  {
4765
4650
  "name": "endIcon",
@@ -4767,31 +4652,51 @@
4767
4652
  "value": {
4768
4653
  "type": "string"
4769
4654
  },
4770
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-endIcon"
4655
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-endIcon"
4771
4656
  },
4772
4657
  {
4773
- "name": "endText",
4774
- "description": "右侧的文本。也可以通过 `slot=\"end-text\"` 设置",
4658
+ "name": "disabled",
4659
+ "description": "是否禁用该列表项,列表项将置灰,且其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等都将禁用",
4775
4660
  "value": {
4776
- "type": "string"
4661
+ "type": "boolean"
4777
4662
  },
4778
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-endText"
4663
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-disabled"
4779
4664
  },
4780
4665
  {
4781
- "name": "selectedIcon",
4782
- "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
4666
+ "name": "active",
4667
+ "description": "是否激活该列表项",
4783
4668
  "value": {
4784
- "type": "string"
4669
+ "type": "boolean"
4785
4670
  },
4786
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-selectedIcon"
4671
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-active"
4787
4672
  },
4788
4673
  {
4789
- "name": "submenuOpen",
4790
- "description": "是否打开子菜单",
4674
+ "name": "nonclickable",
4675
+ "description": "是否使列表项不可点击,但其中的 [`<mdui-checkbox>`](https://www.mdui.org/docs/2/components/checkbox)、[`<mdui-radio>`](/docs/2/components/radio)、[`<mdui-switch>`](/docs/2/components/switch) 等仍可进行交互",
4791
4676
  "value": {
4792
4677
  "type": "boolean"
4793
4678
  },
4794
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-submenuOpen"
4679
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-nonclickable"
4680
+ },
4681
+ {
4682
+ "name": "rounded",
4683
+ "description": "使用圆角形状的列表项",
4684
+ "value": {
4685
+ "type": "boolean"
4686
+ },
4687
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rounded"
4688
+ },
4689
+ {
4690
+ "name": "alignment",
4691
+ "description": "列表项的垂直对齐方式。可选值为:\n\n* `start`:顶部对齐\n* `center`:居中对齐\n* `end`:底部对齐",
4692
+ "value": {
4693
+ "type": [
4694
+ "'start'",
4695
+ "'center'",
4696
+ "'end'"
4697
+ ]
4698
+ },
4699
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-alignment"
4795
4700
  },
4796
4701
  {
4797
4702
  "name": "href",
@@ -4799,7 +4704,7 @@
4799
4704
  "value": {
4800
4705
  "type": "string"
4801
4706
  },
4802
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-href"
4707
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-href"
4803
4708
  },
4804
4709
  {
4805
4710
  "name": "download",
@@ -4807,7 +4712,7 @@
4807
4712
  "value": {
4808
4713
  "type": "string"
4809
4714
  },
4810
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-download"
4715
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-download"
4811
4716
  },
4812
4717
  {
4813
4718
  "name": "target",
@@ -4820,7 +4725,7 @@
4820
4725
  "'_top'"
4821
4726
  ]
4822
4727
  },
4823
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-target"
4728
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-target"
4824
4729
  },
4825
4730
  {
4826
4731
  "name": "rel",
@@ -4843,7 +4748,7 @@
4843
4748
  "'tag'"
4844
4749
  ]
4845
4750
  },
4846
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-rel"
4751
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-rel"
4847
4752
  },
4848
4753
  {
4849
4754
  "name": "autofocus",
@@ -4851,7 +4756,7 @@
4851
4756
  "value": {
4852
4757
  "type": "boolean"
4853
4758
  },
4854
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-autofocus"
4759
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-autofocus"
4855
4760
  },
4856
4761
  {
4857
4762
  "name": "tabIndex",
@@ -4859,233 +4764,328 @@
4859
4764
  "value": {
4860
4765
  "type": "number"
4861
4766
  },
4862
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-attributes-tabIndex"
4767
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-attributes-tabIndex"
4863
4768
  }
4864
4769
  ],
4865
4770
  "events": [
4866
4771
  {
4867
4772
  "name": "focus",
4868
4773
  "description": "获得焦点时触发",
4869
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-focus"
4774
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-event-focus"
4870
4775
  },
4871
4776
  {
4872
4777
  "name": "blur",
4873
4778
  "description": "失去焦点时触发",
4874
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-blur"
4875
- },
4876
- {
4877
- "name": "submenu-open",
4878
- "description": "子菜单开始打开时,事件被触发。可以通过调用 `event.preventDefault()` 阻止子菜单打开",
4879
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-submenu-open"
4880
- },
4881
- {
4882
- "name": "submenu-opened",
4883
- "description": "子菜单打开动画完成时,事件被触发",
4884
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-submenu-opened"
4885
- },
4886
- {
4887
- "name": "submenu-close",
4888
- "description": "子菜单开始关闭时,事件被触发。可以通过调用 `event.preventDefault()` 阻止子菜单关闭",
4889
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-submenu-close"
4890
- },
4891
- {
4892
- "name": "submenu-closed",
4893
- "description": "子菜单关闭动画完成时,事件被触发",
4894
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-event-submenu-closed"
4779
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-event-blur"
4895
4780
  }
4896
4781
  ]
4897
4782
  },
4898
4783
  "css": {
4784
+ "properties": [
4785
+ {
4786
+ "name": "--shape-corner",
4787
+ "description": "列表项的圆角大小。可以指定一个具体的像素值;但更推荐[引用设计令牌](https://www.mdui.org/docs/2/styles/design-tokens#shape-corner)",
4788
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-properties-shape-corner"
4789
+ },
4790
+ {
4791
+ "name": "--shape-corner-rounded",
4792
+ "description": "指定了 `rounded` 时,列表项的圆角大小。可以指定一个具体的像素值;但更推荐[引用设计令牌](https://www.mdui.org/docs/2/styles/design-tokens#shape-corner)",
4793
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-properties-shape-corner-rounded"
4794
+ }
4795
+ ],
4899
4796
  "parts": [
4900
4797
  {
4901
4798
  "name": "container",
4902
- "description": "菜单项的容器",
4903
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-container"
4799
+ "description": "列表项容器",
4800
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-container"
4904
4801
  },
4905
4802
  {
4906
4803
  "name": "icon",
4907
- "description": "左侧的图标",
4908
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-icon"
4909
- },
4910
- {
4911
- "name": "label",
4912
- "description": "文本内容",
4913
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-label"
4804
+ "description": "左侧图标",
4805
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-icon"
4914
4806
  },
4915
4807
  {
4916
4808
  "name": "end-icon",
4917
- "description": "右侧的图标",
4918
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-end-icon"
4809
+ "description": "右侧图标",
4810
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-end-icon"
4919
4811
  },
4920
4812
  {
4921
- "name": "end-text",
4922
- "description": "右侧的文本",
4923
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-end-text"
4813
+ "name": "body",
4814
+ "description": "中间部分",
4815
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-body"
4924
4816
  },
4925
4817
  {
4926
- "name": "selected-icon",
4927
- "description": "选中状态的图标",
4928
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-selected-icon"
4818
+ "name": "headline",
4819
+ "description": "主标题",
4820
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-headline"
4929
4821
  },
4930
4822
  {
4931
- "name": "submenu",
4932
- "description": "子菜单元素",
4933
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-item-css-parts-submenu"
4823
+ "name": "description",
4824
+ "description": "副标题",
4825
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-item-css-parts-description"
4934
4826
  }
4935
4827
  ]
4936
4828
  }
4937
4829
  },
4938
4830
  {
4939
- "name": "mdui-menu",
4940
- "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```",
4941
- "attributes": [
4831
+ "name": "mdui-list-subheader",
4832
+ "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```",
4833
+ "priority": "highest",
4834
+ "doc-url": "https://www.mdui.org/docs/2/components/list",
4835
+ "slots": [
4942
4836
  {
4943
- "name": "selects",
4944
- "description": "菜单项的可选中状态。默认为不可选中。可选值为:\n\n* `single`:最多只能选中一个\n* `multiple`:可以选中多个",
4945
- "value": {
4946
- "type": [
4947
- "'single'",
4948
- "'multiple'"
4949
- ]
4950
- },
4951
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-selects"
4952
- },
4837
+ "name": "",
4838
+ "description": "文本",
4839
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-subheader-slot-"
4840
+ }
4841
+ ]
4842
+ },
4843
+ {
4844
+ "name": "mdui-list",
4845
+ "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```",
4846
+ "priority": "highest",
4847
+ "doc-url": "https://www.mdui.org/docs/2/components/list",
4848
+ "slots": [
4953
4849
  {
4954
- "name": "value",
4955
- "description": "当前选中的 `<mdui-menu-item>` 的值\n\nNote:\n该属性的 HTML 属性始终为字符串,且仅在 `selects=\"single\"` 时可以通过 HTML 属性设置初始值;\n该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串、在 `selects=\"multiple\"` 时为字符串数组。\n所以,在 `selects=\"multiple\"` 时,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
4850
+ "name": "",
4851
+ "description": "`<mdui-list-item>` 元素",
4852
+ "doc-url": "https://www.mdui.org/docs/2/components/list#list-slot-"
4853
+ }
4854
+ ]
4855
+ },
4856
+ {
4857
+ "name": "mdui-dropdown",
4858
+ "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```",
4859
+ "attributes": [
4860
+ {
4861
+ "name": "open",
4862
+ "description": "dropdown 是否打开",
4956
4863
  "value": {
4957
- "type": [
4958
- "string",
4959
- "string[]"
4960
- ]
4864
+ "type": "boolean"
4961
4865
  },
4962
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-value"
4866
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open"
4963
4867
  },
4964
4868
  {
4965
- "name": "dense",
4966
- "description": "菜单项是否使用更紧凑的布局",
4869
+ "name": "disabled",
4870
+ "description": "是否禁用 dropdown",
4967
4871
  "value": {
4968
4872
  "type": "boolean"
4969
4873
  },
4970
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-dense"
4874
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-disabled"
4971
4875
  },
4972
4876
  {
4973
- "name": "submenu-trigger",
4974
- "description": "子菜单的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击菜单项时打开子菜单\n* `hover`:鼠标悬浮到菜单项上时打开子菜单\n* `focus`:聚焦到菜单项上时打开子菜单\n* `manual`:使用了该值时,只能使用编程方式打开和关闭子菜单,且不能再指定其他触发方式",
4877
+ "name": "trigger",
4878
+ "description": "dropdown 的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击时触发\n* `hover`:鼠标悬浮触发\n* `focus`:聚焦时触发\n* `contextmenu`:鼠标右键点击、或触摸长按时触发\n* `manual`:使用了该值时,只能使用编程方式打开和关闭 dropdown,且不能再指定其他触发方式",
4975
4879
  "value": {
4976
4880
  "type": [
4977
4881
  "'click'",
4978
4882
  "'hover'",
4979
4883
  "'focus'",
4884
+ "'contextmenu'",
4980
4885
  "'manual'",
4981
4886
  "string"
4982
4887
  ]
4983
4888
  },
4984
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-trigger"
4889
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-trigger"
4985
4890
  },
4986
4891
  {
4987
- "name": "submenu-open-delay",
4988
- "description": "通过 hover 触发子菜单打开时的延时,单位为毫秒",
4892
+ "name": "placement",
4893
+ "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`:位于右侧,且底部对齐",
4894
+ "value": {
4895
+ "type": [
4896
+ "'auto'",
4897
+ "'top-start'",
4898
+ "'top'",
4899
+ "'top-end'",
4900
+ "'bottom-start'",
4901
+ "'bottom'",
4902
+ "'bottom-end'",
4903
+ "'left-start'",
4904
+ "'left'",
4905
+ "'left-end'",
4906
+ "'right-start'",
4907
+ "'right'",
4908
+ "'right-end'"
4909
+ ]
4910
+ },
4911
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-placement"
4912
+ },
4913
+ {
4914
+ "name": "stay-open-on-click",
4915
+ "description": "在点击 [`<mdui-menu-item>`](https://www.mdui.org/docs/2/components/menu#menu-item-api) 元素后,是否仍保持 dropdown 为打开状态",
4916
+ "value": {
4917
+ "type": "boolean"
4918
+ },
4919
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-stay-open-on-click"
4920
+ },
4921
+ {
4922
+ "name": "open-delay",
4923
+ "description": "通过 hover 触发 dropdown 打开时的延时,单位为毫秒",
4989
4924
  "value": {
4990
4925
  "type": "number"
4991
4926
  },
4992
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-open-delay"
4927
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open-delay"
4993
4928
  },
4994
4929
  {
4995
- "name": "submenu-close-delay",
4996
- "description": "通过 hover 触发子菜单关闭时的延时,单位为毫秒",
4930
+ "name": "close-delay",
4931
+ "description": "通过 hover 触发 dropdown 关闭时的延时,单位为毫秒",
4997
4932
  "value": {
4998
4933
  "type": "number"
4999
4934
  },
5000
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenu-close-delay"
4935
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-close-delay"
4936
+ },
4937
+ {
4938
+ "name": "open-on-pointer",
4939
+ "description": "是否在触发 dropdown 时的光标所在的位置打开 dropdown。通常用于在打开鼠标右键菜单时使用",
4940
+ "value": {
4941
+ "type": "boolean"
4942
+ },
4943
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open-on-pointer"
5001
4944
  }
5002
4945
  ],
5003
4946
  "priority": "highest",
5004
- "doc-url": "https://www.mdui.org/docs/2/components/menu",
4947
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown",
5005
4948
  "slots": [
5006
4949
  {
5007
4950
  "name": "",
5008
- "description": "子菜单项(`<mdui-menu-item>`)、分割线([`<mdui-divider>`](https://www.mdui.org/docs/2/components/divider))等元素",
5009
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-slot-"
4951
+ "description": "dropdown 的内容",
4952
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#slot-"
4953
+ },
4954
+ {
4955
+ "name": "trigger",
4956
+ "description": "触发 dropdown 的元素,例如 [`<mdui-button>`](https://www.mdui.org/docs/2/components/button) 元素",
4957
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#slot-trigger"
5010
4958
  }
5011
4959
  ],
5012
4960
  "js": {
5013
4961
  "properties": [
5014
4962
  {
5015
- "name": "selects",
5016
- "description": "菜单项的可选中状态。默认为不可选中。可选值为:\n\n* `single`:最多只能选中一个\n* `multiple`:可以选中多个",
5017
- "value": {
5018
- "type": [
5019
- "'single'",
5020
- "'multiple'"
5021
- ]
5022
- },
5023
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-selects"
5024
- },
5025
- {
5026
- "name": "value",
5027
- "description": "当前选中的 `<mdui-menu-item>` 的值\n\nNote:\n该属性的 HTML 属性始终为字符串,且仅在 `selects=\"single\"` 时可以通过 HTML 属性设置初始值;\n该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串、在 `selects=\"multiple\"` 时为字符串数组。\n所以,在 `selects=\"multiple\"` 时,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
4963
+ "name": "open",
4964
+ "description": "dropdown 是否打开",
5028
4965
  "value": {
5029
- "type": [
5030
- "string",
5031
- "string[]"
5032
- ]
4966
+ "type": "boolean"
5033
4967
  },
5034
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-value"
4968
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-open"
5035
4969
  },
5036
4970
  {
5037
- "name": "dense",
5038
- "description": "菜单项是否使用更紧凑的布局",
4971
+ "name": "disabled",
4972
+ "description": "是否禁用 dropdown",
5039
4973
  "value": {
5040
4974
  "type": "boolean"
5041
4975
  },
5042
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-dense"
4976
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-disabled"
5043
4977
  },
5044
4978
  {
5045
- "name": "submenuTrigger",
5046
- "description": "子菜单的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击菜单项时打开子菜单\n* `hover`:鼠标悬浮到菜单项上时打开子菜单\n* `focus`:聚焦到菜单项上时打开子菜单\n* `manual`:使用了该值时,只能使用编程方式打开和关闭子菜单,且不能再指定其他触发方式",
4979
+ "name": "trigger",
4980
+ "description": "dropdown 的触发方式,支持传入多个值,用空格分隔。可选值为:\n\n* `click`:点击时触发\n* `hover`:鼠标悬浮触发\n* `focus`:聚焦时触发\n* `contextmenu`:鼠标右键点击、或触摸长按时触发\n* `manual`:使用了该值时,只能使用编程方式打开和关闭 dropdown,且不能再指定其他触发方式",
5047
4981
  "value": {
5048
4982
  "type": [
5049
4983
  "'click'",
5050
4984
  "'hover'",
5051
4985
  "'focus'",
4986
+ "'contextmenu'",
5052
4987
  "'manual'",
5053
4988
  "string"
5054
4989
  ]
5055
4990
  },
5056
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenuTrigger"
4991
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-trigger"
5057
4992
  },
5058
4993
  {
5059
- "name": "submenuOpenDelay",
5060
- "description": "通过 hover 触发子菜单打开时的延时,单位为毫秒",
4994
+ "name": "placement",
4995
+ "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`:位于右侧,且底部对齐",
4996
+ "value": {
4997
+ "type": [
4998
+ "'auto'",
4999
+ "'top-start'",
5000
+ "'top'",
5001
+ "'top-end'",
5002
+ "'bottom-start'",
5003
+ "'bottom'",
5004
+ "'bottom-end'",
5005
+ "'left-start'",
5006
+ "'left'",
5007
+ "'left-end'",
5008
+ "'right-start'",
5009
+ "'right'",
5010
+ "'right-end'"
5011
+ ]
5012
+ },
5013
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-placement"
5014
+ },
5015
+ {
5016
+ "name": "stayOpenOnClick",
5017
+ "description": "在点击 [`<mdui-menu-item>`](https://www.mdui.org/docs/2/components/menu#menu-item-api) 元素后,是否仍保持 dropdown 为打开状态",
5018
+ "value": {
5019
+ "type": "boolean"
5020
+ },
5021
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-stayOpenOnClick"
5022
+ },
5023
+ {
5024
+ "name": "openDelay",
5025
+ "description": "通过 hover 触发 dropdown 打开时的延时,单位为毫秒",
5061
5026
  "value": {
5062
5027
  "type": "number"
5063
5028
  },
5064
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenuOpenDelay"
5029
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-openDelay"
5065
5030
  },
5066
5031
  {
5067
- "name": "submenuCloseDelay",
5068
- "description": "通过 hover 触发子菜单关闭时的延时,单位为毫秒",
5032
+ "name": "closeDelay",
5033
+ "description": "通过 hover 触发 dropdown 关闭时的延时,单位为毫秒",
5069
5034
  "value": {
5070
5035
  "type": "number"
5071
5036
  },
5072
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-attributes-submenuCloseDelay"
5037
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-closeDelay"
5038
+ },
5039
+ {
5040
+ "name": "openOnPointer",
5041
+ "description": "是否在触发 dropdown 时的光标所在的位置打开 dropdown。通常用于在打开鼠标右键菜单时使用",
5042
+ "value": {
5043
+ "type": "boolean"
5044
+ },
5045
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#attributes-openOnPointer"
5073
5046
  }
5074
5047
  ],
5075
5048
  "events": [
5076
5049
  {
5077
- "name": "change",
5078
- "description": "菜单项的选中状态变化时触发",
5079
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-event-change"
5050
+ "name": "open",
5051
+ "description": "dropdown 开始打开时,事件被触发。可以通过调用 `event.preventDefault()` 阻止 dropdown 打开",
5052
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#event-open"
5053
+ },
5054
+ {
5055
+ "name": "opened",
5056
+ "description": "dropdown 打开动画完成时,事件被触发",
5057
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#event-opened"
5058
+ },
5059
+ {
5060
+ "name": "close",
5061
+ "description": "dropdown 开始关闭时,事件被触发。可以通过调用 `event.preventDefault()` 阻止 dropdown 关闭",
5062
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#event-close"
5063
+ },
5064
+ {
5065
+ "name": "closed",
5066
+ "description": "dropdown 关闭动画完成时,事件被触发",
5067
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#event-closed"
5080
5068
  }
5081
5069
  ]
5082
5070
  },
5083
5071
  "css": {
5084
5072
  "properties": [
5085
5073
  {
5086
- "name": "--shape-corner",
5087
- "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐[引用设计令牌](https://www.mdui.org/docs/2/styles/design-tokens#shape-corner)",
5088
- "doc-url": "https://www.mdui.org/docs/2/components/menu#menu-css-properties-shape-corner"
5074
+ "name": "--z-index",
5075
+ "description": "组件的 CSS 的 `z-index` 值",
5076
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#css-properties-z-index"
5077
+ }
5078
+ ],
5079
+ "parts": [
5080
+ {
5081
+ "name": "trigger",
5082
+ "description": "触发 dropdown 的元素的容器,即 `trigger` slot 的容器",
5083
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#css-parts-trigger"
5084
+ },
5085
+ {
5086
+ "name": "panel",
5087
+ "description": "dropdown 内容的容器",
5088
+ "doc-url": "https://www.mdui.org/docs/2/components/dropdown#css-parts-panel"
5089
5089
  }
5090
5090
  ]
5091
5091
  }
@@ -5179,12 +5179,12 @@
5179
5179
  "doc-url": "https://www.mdui.org/docs/2/components/navigation-bar#navigation-bar-item-attributes-autofocus"
5180
5180
  },
5181
5181
  {
5182
- "name": "tabindex",
5182
+ "name": "tabIndex",
5183
5183
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
5184
5184
  "value": {
5185
5185
  "type": "number"
5186
5186
  },
5187
- "doc-url": "https://www.mdui.org/docs/2/components/navigation-bar#navigation-bar-item-attributes-tabindex"
5187
+ "doc-url": "https://www.mdui.org/docs/2/components/navigation-bar#navigation-bar-item-attributes-tabIndex"
5188
5188
  }
5189
5189
  ],
5190
5190
  "priority": "highest",
@@ -5838,12 +5838,12 @@
5838
5838
  "doc-url": "https://www.mdui.org/docs/2/components/navigation-rail#navigation-rail-item-attributes-autofocus"
5839
5839
  },
5840
5840
  {
5841
- "name": "tabindex",
5841
+ "name": "tabIndex",
5842
5842
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
5843
5843
  "value": {
5844
5844
  "type": "number"
5845
5845
  },
5846
- "doc-url": "https://www.mdui.org/docs/2/components/navigation-rail#navigation-rail-item-attributes-tabindex"
5846
+ "doc-url": "https://www.mdui.org/docs/2/components/navigation-rail#navigation-rail-item-attributes-tabIndex"
5847
5847
  }
5848
5848
  ],
5849
5849
  "priority": "highest",
@@ -6390,12 +6390,12 @@
6390
6390
  "doc-url": "https://www.mdui.org/docs/2/components/radio#radio-attributes-autofocus"
6391
6391
  },
6392
6392
  {
6393
- "name": "tabindex",
6393
+ "name": "tabIndex",
6394
6394
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
6395
6395
  "value": {
6396
6396
  "type": "number"
6397
6397
  },
6398
- "doc-url": "https://www.mdui.org/docs/2/components/radio#radio-attributes-tabindex"
6398
+ "doc-url": "https://www.mdui.org/docs/2/components/radio#radio-attributes-tabIndex"
6399
6399
  }
6400
6400
  ],
6401
6401
  "priority": "highest",
@@ -6532,12 +6532,12 @@
6532
6532
  "doc-url": "https://www.mdui.org/docs/2/components/range-slider#attributes-autofocus"
6533
6533
  },
6534
6534
  {
6535
- "name": "tabindex",
6535
+ "name": "tabIndex",
6536
6536
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
6537
6537
  "value": {
6538
6538
  "type": "number"
6539
6539
  },
6540
- "doc-url": "https://www.mdui.org/docs/2/components/range-slider#attributes-tabindex"
6540
+ "doc-url": "https://www.mdui.org/docs/2/components/range-slider#attributes-tabIndex"
6541
6541
  },
6542
6542
  {
6543
6543
  "name": "min",
@@ -7067,12 +7067,12 @@
7067
7067
  "doc-url": "https://www.mdui.org/docs/2/components/segmented-button#segmented-button-attributes-autofocus"
7068
7068
  },
7069
7069
  {
7070
- "name": "tabindex",
7070
+ "name": "tabIndex",
7071
7071
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
7072
7072
  "value": {
7073
7073
  "type": "number"
7074
7074
  },
7075
- "doc-url": "https://www.mdui.org/docs/2/components/segmented-button#segmented-button-attributes-tabindex"
7075
+ "doc-url": "https://www.mdui.org/docs/2/components/segmented-button#segmented-button-attributes-tabIndex"
7076
7076
  },
7077
7077
  {
7078
7078
  "name": "disabled",
@@ -7654,12 +7654,12 @@
7654
7654
  "doc-url": "https://www.mdui.org/docs/2/components/select#attributes-autofocus"
7655
7655
  },
7656
7656
  {
7657
- "name": "tabindex",
7657
+ "name": "tabIndex",
7658
7658
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
7659
7659
  "value": {
7660
7660
  "type": "number"
7661
7661
  },
7662
- "doc-url": "https://www.mdui.org/docs/2/components/select#attributes-tabindex"
7662
+ "doc-url": "https://www.mdui.org/docs/2/components/select#attributes-tabIndex"
7663
7663
  }
7664
7664
  ],
7665
7665
  "priority": "highest",
@@ -7991,12 +7991,12 @@
7991
7991
  "doc-url": "https://www.mdui.org/docs/2/components/slider#attributes-autofocus"
7992
7992
  },
7993
7993
  {
7994
- "name": "tabindex",
7994
+ "name": "tabIndex",
7995
7995
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
7996
7996
  "value": {
7997
7997
  "type": "number"
7998
7998
  },
7999
- "doc-url": "https://www.mdui.org/docs/2/components/slider#attributes-tabindex"
7999
+ "doc-url": "https://www.mdui.org/docs/2/components/slider#attributes-tabIndex"
8000
8000
  },
8001
8001
  {
8002
8002
  "name": "min",
@@ -8584,12 +8584,12 @@
8584
8584
  "doc-url": "https://www.mdui.org/docs/2/components/switch#attributes-autofocus"
8585
8585
  },
8586
8586
  {
8587
- "name": "tabindex",
8587
+ "name": "tabIndex",
8588
8588
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
8589
8589
  "value": {
8590
8590
  "type": "number"
8591
8591
  },
8592
- "doc-url": "https://www.mdui.org/docs/2/components/switch#attributes-tabindex"
8592
+ "doc-url": "https://www.mdui.org/docs/2/components/switch#attributes-tabIndex"
8593
8593
  }
8594
8594
  ],
8595
8595
  "priority": "highest",
@@ -8850,12 +8850,12 @@
8850
8850
  "doc-url": "https://www.mdui.org/docs/2/components/tabs#tab-attributes-autofocus"
8851
8851
  },
8852
8852
  {
8853
- "name": "tabindex",
8853
+ "name": "tabIndex",
8854
8854
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
8855
8855
  "value": {
8856
8856
  "type": "number"
8857
8857
  },
8858
- "doc-url": "https://www.mdui.org/docs/2/components/tabs#tab-attributes-tabindex"
8858
+ "doc-url": "https://www.mdui.org/docs/2/components/tabs#tab-attributes-tabIndex"
8859
8859
  }
8860
8860
  ],
8861
8861
  "priority": "highest",
@@ -9474,12 +9474,12 @@
9474
9474
  "doc-url": "https://www.mdui.org/docs/2/components/text-field#attributes-autofocus"
9475
9475
  },
9476
9476
  {
9477
- "name": "tabindex",
9477
+ "name": "tabIndex",
9478
9478
  "description": "通过 Tab 键在元素之间切换焦点时,tabIndex 属性指定了元素获取焦点的顺序",
9479
9479
  "value": {
9480
9480
  "type": "number"
9481
9481
  },
9482
- "doc-url": "https://www.mdui.org/docs/2/components/text-field#attributes-tabindex"
9482
+ "doc-url": "https://www.mdui.org/docs/2/components/text-field#attributes-tabIndex"
9483
9483
  }
9484
9484
  ],
9485
9485
  "priority": "highest",