mdui 2.1.1 → 2.1.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 (42) hide show
  1. package/components/avatar/style.js +1 -1
  2. package/components/badge/style.js +1 -1
  3. package/components/bottom-app-bar/index.d.ts +1 -1
  4. package/components/button/button-base.d.ts +1 -1
  5. package/components/button/style.js +1 -1
  6. package/components/button-icon/style.js +1 -1
  7. package/components/card/index.d.ts +1 -1
  8. package/components/checkbox/index.d.ts +1 -1
  9. package/components/checkbox/style.js +1 -1
  10. package/components/chip/style.js +1 -1
  11. package/components/circular-progress/style.js +1 -1
  12. package/components/dialog/style.js +1 -1
  13. package/components/fab/style.js +1 -1
  14. package/components/icon/style.js +1 -1
  15. package/components/list/list-item.d.ts +1 -1
  16. package/components/menu/menu-item.d.ts +1 -1
  17. package/components/navigation-bar/navigation-bar-item.d.ts +1 -1
  18. package/components/navigation-bar/navigation-bar.d.ts +1 -1
  19. package/components/navigation-rail/navigation-rail-item.d.ts +1 -1
  20. package/components/radio/radio-style.js +1 -1
  21. package/components/radio/radio.d.ts +1 -1
  22. package/components/ripple/ripple-mixin.d.ts +1 -1
  23. package/components/select/index.d.ts +1 -1
  24. package/components/select/index.js +3 -2
  25. package/components/slider/slider-base-style.js +1 -1
  26. package/components/slider/slider-base.d.ts +1 -1
  27. package/components/switch/index.d.ts +1 -1
  28. package/components/tabs/tab.d.ts +1 -1
  29. package/components/text-field/index.d.ts +1 -1
  30. package/components/text-field/index.js +5 -1
  31. package/components/text-field/style.js +1 -1
  32. package/components/top-app-bar/top-app-bar.d.ts +1 -1
  33. package/custom-elements.json +13813 -15187
  34. package/html-data.en.json +582 -578
  35. package/html-data.zh-cn.json +582 -578
  36. package/jsx.en.d.ts +422 -422
  37. package/jsx.zh-cn.d.ts +422 -422
  38. package/mdui.esm.js +7 -7
  39. package/mdui.global.js +8 -8
  40. package/package.json +9 -9
  41. package/web-types.en.json +1269 -1253
  42. package/web-types.zh-cn.json +1269 -1253
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "name": "mdui",
4
- "version": "2.1.1",
4
+ "version": "2.1.2",
5
5
  "js-types-syntax": "typescript",
6
6
  "description-markup": "markdown",
7
7
  "framework-config": {
@@ -348,46 +348,53 @@
348
348
  }
349
349
  },
350
350
  {
351
- "name": "mdui-button",
352
- "description": "按钮组件\n\n```html\n<mdui-button>Button</mdui-button>\n```",
351
+ "name": "mdui-button-icon",
352
+ "description": "图标按钮组件\n\n```html\n<mdui-button-icon icon=\"search\"></mdui-button-icon>\n```",
353
353
  "attributes": [
354
354
  {
355
355
  "name": "variant",
356
- "description": "按钮的形状。可选值包括:\n\n* `elevated`:带阴影的按钮,适用于需要将按钮与背景视觉分离的场景\n* `filled`:视觉效果强烈,适用于重要流程的最终操作,如“保存”、“确认”等\n* `tonal`:视觉效果介于 `filled` 和 `outlined` 之间,适用于中高优先级的操作,如流程中的“下一步”\n* `outlined`:带边框的按钮,适用于中等优先级,且次要的操作,如“返回”\n* `text`:文本按钮,适用于最低优先级的操作",
356
+ "description": "图标按钮的形状。可选值包括:\n\n* `standard`:适用于最低优先级的操作\n* `filled`:视觉效果强烈,适用于高优先级的操作\n* `tonal`:视觉效果介于 `filled` 和 `outlined` 之间,适用于中高优先级的操作\n* `outlined`:适用于中等优先级的操作",
357
357
  "value": {
358
358
  "type": [
359
- "'elevated'",
359
+ "'standard'",
360
360
  "'filled'",
361
361
  "'tonal'",
362
- "'outlined'",
363
- "'text'"
362
+ "'outlined'"
364
363
  ]
365
364
  },
366
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-variant"
365
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-variant"
367
366
  },
368
367
  {
369
- "name": "full-width",
370
- "description": "是否填满父元素宽度",
368
+ "name": "icon",
369
+ "description": "Material Icons 图标名。也可以通过 default slot 设置",
371
370
  "value": {
372
- "type": "boolean"
371
+ "type": "string"
373
372
  },
374
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-full-width"
373
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-icon"
375
374
  },
376
375
  {
377
- "name": "icon",
378
- "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
376
+ "name": "selected-icon",
377
+ "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
379
378
  "value": {
380
379
  "type": "string"
381
380
  },
382
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-icon"
381
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selected-icon"
383
382
  },
384
383
  {
385
- "name": "end-icon",
386
- "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
384
+ "name": "selectable",
385
+ "description": "是否可选中",
387
386
  "value": {
388
- "type": "string"
387
+ "type": "boolean"
389
388
  },
390
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-end-icon"
389
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selectable"
390
+ },
391
+ {
392
+ "name": "selected",
393
+ "description": "是否已被选中",
394
+ "value": {
395
+ "type": "boolean"
396
+ },
397
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selected"
391
398
  },
392
399
  {
393
400
  "name": "href",
@@ -395,7 +402,7 @@
395
402
  "value": {
396
403
  "type": "string"
397
404
  },
398
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-href"
405
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-href"
399
406
  },
400
407
  {
401
408
  "name": "download",
@@ -403,7 +410,7 @@
403
410
  "value": {
404
411
  "type": "string"
405
412
  },
406
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-download"
413
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-download"
407
414
  },
408
415
  {
409
416
  "name": "target",
@@ -416,7 +423,7 @@
416
423
  "'_top'"
417
424
  ]
418
425
  },
419
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-target"
426
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-target"
420
427
  },
421
428
  {
422
429
  "name": "rel",
@@ -439,7 +446,7 @@
439
446
  "'tag'"
440
447
  ]
441
448
  },
442
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-rel"
449
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-rel"
443
450
  },
444
451
  {
445
452
  "name": "autofocus",
@@ -447,7 +454,7 @@
447
454
  "value": {
448
455
  "type": "boolean"
449
456
  },
450
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-autofocus"
457
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-autofocus"
451
458
  },
452
459
  {
453
460
  "name": "tabindex",
@@ -455,7 +462,7 @@
455
462
  "value": {
456
463
  "type": "number"
457
464
  },
458
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-tabindex"
465
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-tabindex"
459
466
  },
460
467
  {
461
468
  "name": "disabled",
@@ -463,7 +470,7 @@
463
470
  "value": {
464
471
  "type": "boolean"
465
472
  },
466
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-disabled"
473
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-disabled"
467
474
  },
468
475
  {
469
476
  "name": "loading",
@@ -471,7 +478,7 @@
471
478
  "value": {
472
479
  "type": "boolean"
473
480
  },
474
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-loading"
481
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-loading"
475
482
  },
476
483
  {
477
484
  "name": "name",
@@ -479,7 +486,7 @@
479
486
  "value": {
480
487
  "type": "string"
481
488
  },
482
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-name"
489
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-name"
483
490
  },
484
491
  {
485
492
  "name": "value",
@@ -487,7 +494,7 @@
487
494
  "value": {
488
495
  "type": "string"
489
496
  },
490
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-value"
497
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-value"
491
498
  },
492
499
  {
493
500
  "name": "type",
@@ -499,7 +506,7 @@
499
506
  "'button'"
500
507
  ]
501
508
  },
502
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-type"
509
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-type"
503
510
  },
504
511
  {
505
512
  "name": "form",
@@ -507,7 +514,7 @@
507
514
  "value": {
508
515
  "type": "string"
509
516
  },
510
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-form"
517
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-form"
511
518
  },
512
519
  {
513
520
  "name": "formaction",
@@ -515,7 +522,7 @@
515
522
  "value": {
516
523
  "type": "string"
517
524
  },
518
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formaction"
525
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formaction"
519
526
  },
520
527
  {
521
528
  "name": "formenctype",
@@ -527,7 +534,7 @@
527
534
  "'text/plain'"
528
535
  ]
529
536
  },
530
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formenctype"
537
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formenctype"
531
538
  },
532
539
  {
533
540
  "name": "formmethod",
@@ -538,7 +545,7 @@
538
545
  "'get'"
539
546
  ]
540
547
  },
541
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formmethod"
548
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formmethod"
542
549
  },
543
550
  {
544
551
  "name": "formnovalidate",
@@ -546,7 +553,7 @@
546
553
  "value": {
547
554
  "type": "boolean"
548
555
  },
549
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formnovalidate"
556
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formnovalidate"
550
557
  },
551
558
  {
552
559
  "name": "formtarget",
@@ -559,67 +566,69 @@
559
566
  "'_top'"
560
567
  ]
561
568
  },
562
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formtarget"
569
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formtarget"
563
570
  }
564
571
  ],
565
572
  "priority": "highest",
566
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button",
573
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon",
567
574
  "slots": [
568
575
  {
569
576
  "name": "",
570
- "description": "按钮的文本",
571
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#slots-default"
572
- },
573
- {
574
- "name": "icon",
575
- "description": "按钮左侧的元素",
576
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#slots-icon"
577
+ "description": "图标组件",
578
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#slots-default"
577
579
  },
578
580
  {
579
- "name": "end-icon",
580
- "description": "按钮右侧的元素",
581
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#slots-end-icon"
581
+ "name": "selected-icon",
582
+ "description": "选中状态显示的图标元素",
583
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#slots-selected-icon"
582
584
  }
583
585
  ],
584
586
  "js": {
585
587
  "properties": [
586
588
  {
587
589
  "name": "variant",
588
- "description": "按钮的形状。可选值包括:\n\n* `elevated`:带阴影的按钮,适用于需要将按钮与背景视觉分离的场景\n* `filled`:视觉效果强烈,适用于重要流程的最终操作,如“保存”、“确认”等\n* `tonal`:视觉效果介于 `filled` 和 `outlined` 之间,适用于中高优先级的操作,如流程中的“下一步”\n* `outlined`:带边框的按钮,适用于中等优先级,且次要的操作,如“返回”\n* `text`:文本按钮,适用于最低优先级的操作",
590
+ "description": "图标按钮的形状。可选值包括:\n\n* `standard`:适用于最低优先级的操作\n* `filled`:视觉效果强烈,适用于高优先级的操作\n* `tonal`:视觉效果介于 `filled` 和 `outlined` 之间,适用于中高优先级的操作\n* `outlined`:适用于中等优先级的操作",
589
591
  "value": {
590
592
  "type": [
591
- "'elevated'",
593
+ "'standard'",
592
594
  "'filled'",
593
595
  "'tonal'",
594
- "'outlined'",
595
- "'text'"
596
+ "'outlined'"
596
597
  ]
597
598
  },
598
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-variant"
599
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-variant"
599
600
  },
600
601
  {
601
- "name": "fullWidth",
602
- "description": "是否填满父元素宽度",
602
+ "name": "icon",
603
+ "description": "Material Icons 图标名。也可以通过 default slot 设置",
603
604
  "value": {
604
- "type": "boolean"
605
+ "type": "string"
605
606
  },
606
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-fullWidth"
607
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-icon"
607
608
  },
608
609
  {
609
- "name": "icon",
610
- "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
610
+ "name": "selectedIcon",
611
+ "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
611
612
  "value": {
612
613
  "type": "string"
613
614
  },
614
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-icon"
615
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selectedIcon"
615
616
  },
616
617
  {
617
- "name": "endIcon",
618
- "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
618
+ "name": "selectable",
619
+ "description": "是否可选中",
619
620
  "value": {
620
- "type": "string"
621
+ "type": "boolean"
621
622
  },
622
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-endIcon"
623
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selectable"
624
+ },
625
+ {
626
+ "name": "selected",
627
+ "description": "是否已被选中",
628
+ "value": {
629
+ "type": "boolean"
630
+ },
631
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selected"
623
632
  },
624
633
  {
625
634
  "name": "href",
@@ -627,7 +636,7 @@
627
636
  "value": {
628
637
  "type": "string"
629
638
  },
630
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-href"
639
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-href"
631
640
  },
632
641
  {
633
642
  "name": "download",
@@ -635,7 +644,7 @@
635
644
  "value": {
636
645
  "type": "string"
637
646
  },
638
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-download"
647
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-download"
639
648
  },
640
649
  {
641
650
  "name": "target",
@@ -648,7 +657,7 @@
648
657
  "'_top'"
649
658
  ]
650
659
  },
651
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-target"
660
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-target"
652
661
  },
653
662
  {
654
663
  "name": "rel",
@@ -671,7 +680,7 @@
671
680
  "'tag'"
672
681
  ]
673
682
  },
674
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-rel"
683
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-rel"
675
684
  },
676
685
  {
677
686
  "name": "autofocus",
@@ -679,7 +688,7 @@
679
688
  "value": {
680
689
  "type": "boolean"
681
690
  },
682
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-autofocus"
691
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-autofocus"
683
692
  },
684
693
  {
685
694
  "name": "tabIndex",
@@ -687,7 +696,7 @@
687
696
  "value": {
688
697
  "type": "number"
689
698
  },
690
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-tabIndex"
699
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-tabIndex"
691
700
  },
692
701
  {
693
702
  "name": "disabled",
@@ -695,7 +704,7 @@
695
704
  "value": {
696
705
  "type": "boolean"
697
706
  },
698
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-disabled"
707
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-disabled"
699
708
  },
700
709
  {
701
710
  "name": "loading",
@@ -703,7 +712,7 @@
703
712
  "value": {
704
713
  "type": "boolean"
705
714
  },
706
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-loading"
715
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-loading"
707
716
  },
708
717
  {
709
718
  "name": "name",
@@ -711,7 +720,7 @@
711
720
  "value": {
712
721
  "type": "string"
713
722
  },
714
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-name"
723
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-name"
715
724
  },
716
725
  {
717
726
  "name": "value",
@@ -719,7 +728,7 @@
719
728
  "value": {
720
729
  "type": "string"
721
730
  },
722
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-value"
731
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-value"
723
732
  },
724
733
  {
725
734
  "name": "type",
@@ -731,7 +740,7 @@
731
740
  "'button'"
732
741
  ]
733
742
  },
734
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-type"
743
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-type"
735
744
  },
736
745
  {
737
746
  "name": "form",
@@ -739,7 +748,7 @@
739
748
  "value": {
740
749
  "type": "string"
741
750
  },
742
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-form"
751
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-form"
743
752
  },
744
753
  {
745
754
  "name": "formAction",
@@ -747,7 +756,7 @@
747
756
  "value": {
748
757
  "type": "string"
749
758
  },
750
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formAction"
759
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formAction"
751
760
  },
752
761
  {
753
762
  "name": "formEnctype",
@@ -759,7 +768,7 @@
759
768
  "'text/plain'"
760
769
  ]
761
770
  },
762
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formEnctype"
771
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formEnctype"
763
772
  },
764
773
  {
765
774
  "name": "formMethod",
@@ -770,7 +779,7 @@
770
779
  "'get'"
771
780
  ]
772
781
  },
773
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formMethod"
782
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formMethod"
774
783
  },
775
784
  {
776
785
  "name": "formNoValidate",
@@ -778,7 +787,7 @@
778
787
  "value": {
779
788
  "type": "boolean"
780
789
  },
781
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formNoValidate"
790
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formNoValidate"
782
791
  },
783
792
  {
784
793
  "name": "formTarget",
@@ -791,7 +800,7 @@
791
800
  "'_top'"
792
801
  ]
793
802
  },
794
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formTarget"
803
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formTarget"
795
804
  },
796
805
  {
797
806
  "name": "validity",
@@ -799,7 +808,7 @@
799
808
  "value": {
800
809
  "type": "ValidityState"
801
810
  },
802
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-validity"
811
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-validity"
803
812
  },
804
813
  {
805
814
  "name": "validationMessage",
@@ -807,24 +816,29 @@
807
816
  "value": {
808
817
  "type": "string"
809
818
  },
810
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-validationMessage"
819
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-validationMessage"
811
820
  }
812
821
  ],
813
822
  "events": [
814
823
  {
815
824
  "name": "focus",
816
825
  "description": "获得焦点时触发",
817
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#events-focus"
826
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#events-focus"
818
827
  },
819
828
  {
820
829
  "name": "blur",
821
830
  "description": "失去焦点时触发",
822
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#events-blur"
831
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#events-blur"
832
+ },
833
+ {
834
+ "name": "change",
835
+ "description": "选中状态变更时触发",
836
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#events-change"
823
837
  },
824
838
  {
825
839
  "name": "invalid",
826
840
  "description": "表单字段验证未通过时触发",
827
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#events-invalid"
841
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#events-invalid"
828
842
  }
829
843
  ]
830
844
  },
@@ -833,86 +847,74 @@
833
847
  {
834
848
  "name": "--shape-corner",
835
849
  "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐引用[设计令牌](https://www.mdui.org/zh-cn/docs/2/styles/design-tokens#shape-corner)",
836
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssProperties-shape-corner"
850
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#cssProperties-shape-corner"
837
851
  }
838
852
  ],
839
853
  "parts": [
840
854
  {
841
855
  "name": "button",
842
856
  "description": "内部的 `<button>` 或 `<a>` 元素",
843
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssParts-button"
844
- },
845
- {
846
- "name": "label",
847
- "description": "按钮的文本",
848
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssParts-label"
857
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#cssParts-button"
849
858
  },
850
859
  {
851
860
  "name": "icon",
852
- "description": "按钮左侧的图标",
853
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssParts-icon"
861
+ "description": "未选中状态的图标",
862
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#cssParts-icon"
854
863
  },
855
864
  {
856
- "name": "end-icon",
857
- "description": "按钮右侧的图标",
858
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssParts-end-icon"
865
+ "name": "selected-icon",
866
+ "description": "选中状态的图标",
867
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#cssParts-selected-icon"
859
868
  },
860
869
  {
861
870
  "name": "loading",
862
871
  "description": "加载中状态的 `<mdui-circular-progress>` 元素",
863
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssParts-loading"
872
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#cssParts-loading"
864
873
  }
865
874
  ]
866
875
  }
867
876
  },
868
877
  {
869
- "name": "mdui-button-icon",
870
- "description": "图标按钮组件\n\n```html\n<mdui-button-icon icon=\"search\"></mdui-button-icon>\n```",
878
+ "name": "mdui-button",
879
+ "description": "按钮组件\n\n```html\n<mdui-button>Button</mdui-button>\n```",
871
880
  "attributes": [
872
881
  {
873
882
  "name": "variant",
874
- "description": "图标按钮的形状。可选值包括:\n\n* `standard`:适用于最低优先级的操作\n* `filled`:视觉效果强烈,适用于高优先级的操作\n* `tonal`:视觉效果介于 `filled` 和 `outlined` 之间,适用于中高优先级的操作\n* `outlined`:适用于中等优先级的操作",
883
+ "description": "按钮的形状。可选值包括:\n\n* `elevated`:带阴影的按钮,适用于需要将按钮与背景视觉分离的场景\n* `filled`:视觉效果强烈,适用于重要流程的最终操作,如“保存”、“确认”等\n* `tonal`:视觉效果介于 `filled` 和 `outlined` 之间,适用于中高优先级的操作,如流程中的“下一步”\n* `outlined`:带边框的按钮,适用于中等优先级,且次要的操作,如“返回”\n* `text`:文本按钮,适用于最低优先级的操作",
875
884
  "value": {
876
885
  "type": [
877
- "'standard'",
886
+ "'elevated'",
878
887
  "'filled'",
879
888
  "'tonal'",
880
- "'outlined'"
889
+ "'outlined'",
890
+ "'text'"
881
891
  ]
882
892
  },
883
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-variant"
893
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-variant"
884
894
  },
885
895
  {
886
- "name": "icon",
887
- "description": "Material Icons 图标名。也可以通过 default slot 设置",
896
+ "name": "full-width",
897
+ "description": "是否填满父元素宽度",
888
898
  "value": {
889
- "type": "string"
899
+ "type": "boolean"
890
900
  },
891
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-icon"
901
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-full-width"
892
902
  },
893
903
  {
894
- "name": "selected-icon",
895
- "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
904
+ "name": "icon",
905
+ "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
896
906
  "value": {
897
907
  "type": "string"
898
908
  },
899
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selected-icon"
900
- },
901
- {
902
- "name": "selectable",
903
- "description": "是否可选中",
904
- "value": {
905
- "type": "boolean"
906
- },
907
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selectable"
909
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-icon"
908
910
  },
909
911
  {
910
- "name": "selected",
911
- "description": "是否已被选中",
912
+ "name": "end-icon",
913
+ "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
912
914
  "value": {
913
- "type": "boolean"
915
+ "type": "string"
914
916
  },
915
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selected"
917
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-end-icon"
916
918
  },
917
919
  {
918
920
  "name": "href",
@@ -920,7 +922,7 @@
920
922
  "value": {
921
923
  "type": "string"
922
924
  },
923
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-href"
925
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-href"
924
926
  },
925
927
  {
926
928
  "name": "download",
@@ -928,7 +930,7 @@
928
930
  "value": {
929
931
  "type": "string"
930
932
  },
931
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-download"
933
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-download"
932
934
  },
933
935
  {
934
936
  "name": "target",
@@ -941,7 +943,7 @@
941
943
  "'_top'"
942
944
  ]
943
945
  },
944
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-target"
946
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-target"
945
947
  },
946
948
  {
947
949
  "name": "rel",
@@ -964,7 +966,7 @@
964
966
  "'tag'"
965
967
  ]
966
968
  },
967
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-rel"
969
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-rel"
968
970
  },
969
971
  {
970
972
  "name": "autofocus",
@@ -972,7 +974,7 @@
972
974
  "value": {
973
975
  "type": "boolean"
974
976
  },
975
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-autofocus"
977
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-autofocus"
976
978
  },
977
979
  {
978
980
  "name": "tabindex",
@@ -980,7 +982,7 @@
980
982
  "value": {
981
983
  "type": "number"
982
984
  },
983
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-tabindex"
985
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-tabindex"
984
986
  },
985
987
  {
986
988
  "name": "disabled",
@@ -988,7 +990,7 @@
988
990
  "value": {
989
991
  "type": "boolean"
990
992
  },
991
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-disabled"
993
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-disabled"
992
994
  },
993
995
  {
994
996
  "name": "loading",
@@ -996,7 +998,7 @@
996
998
  "value": {
997
999
  "type": "boolean"
998
1000
  },
999
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-loading"
1001
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-loading"
1000
1002
  },
1001
1003
  {
1002
1004
  "name": "name",
@@ -1004,7 +1006,7 @@
1004
1006
  "value": {
1005
1007
  "type": "string"
1006
1008
  },
1007
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-name"
1009
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-name"
1008
1010
  },
1009
1011
  {
1010
1012
  "name": "value",
@@ -1012,7 +1014,7 @@
1012
1014
  "value": {
1013
1015
  "type": "string"
1014
1016
  },
1015
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-value"
1017
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-value"
1016
1018
  },
1017
1019
  {
1018
1020
  "name": "type",
@@ -1024,7 +1026,7 @@
1024
1026
  "'button'"
1025
1027
  ]
1026
1028
  },
1027
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-type"
1029
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-type"
1028
1030
  },
1029
1031
  {
1030
1032
  "name": "form",
@@ -1032,7 +1034,7 @@
1032
1034
  "value": {
1033
1035
  "type": "string"
1034
1036
  },
1035
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-form"
1037
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-form"
1036
1038
  },
1037
1039
  {
1038
1040
  "name": "formaction",
@@ -1040,7 +1042,7 @@
1040
1042
  "value": {
1041
1043
  "type": "string"
1042
1044
  },
1043
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formaction"
1045
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formaction"
1044
1046
  },
1045
1047
  {
1046
1048
  "name": "formenctype",
@@ -1052,7 +1054,7 @@
1052
1054
  "'text/plain'"
1053
1055
  ]
1054
1056
  },
1055
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formenctype"
1057
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formenctype"
1056
1058
  },
1057
1059
  {
1058
1060
  "name": "formmethod",
@@ -1063,7 +1065,7 @@
1063
1065
  "'get'"
1064
1066
  ]
1065
1067
  },
1066
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formmethod"
1068
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formmethod"
1067
1069
  },
1068
1070
  {
1069
1071
  "name": "formnovalidate",
@@ -1071,7 +1073,7 @@
1071
1073
  "value": {
1072
1074
  "type": "boolean"
1073
1075
  },
1074
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formnovalidate"
1076
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formnovalidate"
1075
1077
  },
1076
1078
  {
1077
1079
  "name": "formtarget",
@@ -1084,69 +1086,67 @@
1084
1086
  "'_top'"
1085
1087
  ]
1086
1088
  },
1087
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formtarget"
1089
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formtarget"
1088
1090
  }
1089
1091
  ],
1090
1092
  "priority": "highest",
1091
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon",
1093
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button",
1092
1094
  "slots": [
1093
1095
  {
1094
1096
  "name": "",
1095
- "description": "图标组件",
1096
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#slots-default"
1097
+ "description": "按钮的文本",
1098
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#slots-default"
1097
1099
  },
1098
1100
  {
1099
- "name": "selected-icon",
1100
- "description": "选中状态显示的图标元素",
1101
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#slots-selected-icon"
1101
+ "name": "icon",
1102
+ "description": "按钮左侧的元素",
1103
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#slots-icon"
1104
+ },
1105
+ {
1106
+ "name": "end-icon",
1107
+ "description": "按钮右侧的元素",
1108
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#slots-end-icon"
1102
1109
  }
1103
1110
  ],
1104
1111
  "js": {
1105
1112
  "properties": [
1106
1113
  {
1107
1114
  "name": "variant",
1108
- "description": "图标按钮的形状。可选值包括:\n\n* `standard`:适用于最低优先级的操作\n* `filled`:视觉效果强烈,适用于高优先级的操作\n* `tonal`:视觉效果介于 `filled` 和 `outlined` 之间,适用于中高优先级的操作\n* `outlined`:适用于中等优先级的操作",
1115
+ "description": "按钮的形状。可选值包括:\n\n* `elevated`:带阴影的按钮,适用于需要将按钮与背景视觉分离的场景\n* `filled`:视觉效果强烈,适用于重要流程的最终操作,如“保存”、“确认”等\n* `tonal`:视觉效果介于 `filled` 和 `outlined` 之间,适用于中高优先级的操作,如流程中的“下一步”\n* `outlined`:带边框的按钮,适用于中等优先级,且次要的操作,如“返回”\n* `text`:文本按钮,适用于最低优先级的操作",
1109
1116
  "value": {
1110
1117
  "type": [
1111
- "'standard'",
1118
+ "'elevated'",
1112
1119
  "'filled'",
1113
1120
  "'tonal'",
1114
- "'outlined'"
1121
+ "'outlined'",
1122
+ "'text'"
1115
1123
  ]
1116
1124
  },
1117
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-variant"
1125
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-variant"
1118
1126
  },
1119
1127
  {
1120
- "name": "icon",
1121
- "description": "Material Icons 图标名。也可以通过 default slot 设置",
1128
+ "name": "fullWidth",
1129
+ "description": "是否填满父元素宽度",
1122
1130
  "value": {
1123
- "type": "string"
1131
+ "type": "boolean"
1124
1132
  },
1125
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-icon"
1133
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-fullWidth"
1126
1134
  },
1127
1135
  {
1128
- "name": "selectedIcon",
1129
- "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
1136
+ "name": "icon",
1137
+ "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
1130
1138
  "value": {
1131
1139
  "type": "string"
1132
1140
  },
1133
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selectedIcon"
1134
- },
1135
- {
1136
- "name": "selectable",
1137
- "description": "是否可选中",
1138
- "value": {
1139
- "type": "boolean"
1140
- },
1141
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selectable"
1141
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-icon"
1142
1142
  },
1143
1143
  {
1144
- "name": "selected",
1145
- "description": "是否已被选中",
1144
+ "name": "endIcon",
1145
+ "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
1146
1146
  "value": {
1147
- "type": "boolean"
1147
+ "type": "string"
1148
1148
  },
1149
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-selected"
1149
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-endIcon"
1150
1150
  },
1151
1151
  {
1152
1152
  "name": "href",
@@ -1154,7 +1154,7 @@
1154
1154
  "value": {
1155
1155
  "type": "string"
1156
1156
  },
1157
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-href"
1157
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-href"
1158
1158
  },
1159
1159
  {
1160
1160
  "name": "download",
@@ -1162,7 +1162,7 @@
1162
1162
  "value": {
1163
1163
  "type": "string"
1164
1164
  },
1165
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-download"
1165
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-download"
1166
1166
  },
1167
1167
  {
1168
1168
  "name": "target",
@@ -1175,7 +1175,7 @@
1175
1175
  "'_top'"
1176
1176
  ]
1177
1177
  },
1178
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-target"
1178
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-target"
1179
1179
  },
1180
1180
  {
1181
1181
  "name": "rel",
@@ -1198,7 +1198,7 @@
1198
1198
  "'tag'"
1199
1199
  ]
1200
1200
  },
1201
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-rel"
1201
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-rel"
1202
1202
  },
1203
1203
  {
1204
1204
  "name": "autofocus",
@@ -1206,7 +1206,7 @@
1206
1206
  "value": {
1207
1207
  "type": "boolean"
1208
1208
  },
1209
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-autofocus"
1209
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-autofocus"
1210
1210
  },
1211
1211
  {
1212
1212
  "name": "tabIndex",
@@ -1214,7 +1214,7 @@
1214
1214
  "value": {
1215
1215
  "type": "number"
1216
1216
  },
1217
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-tabIndex"
1217
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-tabIndex"
1218
1218
  },
1219
1219
  {
1220
1220
  "name": "disabled",
@@ -1222,7 +1222,7 @@
1222
1222
  "value": {
1223
1223
  "type": "boolean"
1224
1224
  },
1225
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-disabled"
1225
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-disabled"
1226
1226
  },
1227
1227
  {
1228
1228
  "name": "loading",
@@ -1230,7 +1230,7 @@
1230
1230
  "value": {
1231
1231
  "type": "boolean"
1232
1232
  },
1233
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-loading"
1233
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-loading"
1234
1234
  },
1235
1235
  {
1236
1236
  "name": "name",
@@ -1238,7 +1238,7 @@
1238
1238
  "value": {
1239
1239
  "type": "string"
1240
1240
  },
1241
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-name"
1241
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-name"
1242
1242
  },
1243
1243
  {
1244
1244
  "name": "value",
@@ -1246,7 +1246,7 @@
1246
1246
  "value": {
1247
1247
  "type": "string"
1248
1248
  },
1249
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-value"
1249
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-value"
1250
1250
  },
1251
1251
  {
1252
1252
  "name": "type",
@@ -1258,7 +1258,7 @@
1258
1258
  "'button'"
1259
1259
  ]
1260
1260
  },
1261
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-type"
1261
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-type"
1262
1262
  },
1263
1263
  {
1264
1264
  "name": "form",
@@ -1266,7 +1266,7 @@
1266
1266
  "value": {
1267
1267
  "type": "string"
1268
1268
  },
1269
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-form"
1269
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-form"
1270
1270
  },
1271
1271
  {
1272
1272
  "name": "formAction",
@@ -1274,7 +1274,7 @@
1274
1274
  "value": {
1275
1275
  "type": "string"
1276
1276
  },
1277
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formAction"
1277
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formAction"
1278
1278
  },
1279
1279
  {
1280
1280
  "name": "formEnctype",
@@ -1286,7 +1286,7 @@
1286
1286
  "'text/plain'"
1287
1287
  ]
1288
1288
  },
1289
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formEnctype"
1289
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formEnctype"
1290
1290
  },
1291
1291
  {
1292
1292
  "name": "formMethod",
@@ -1297,7 +1297,7 @@
1297
1297
  "'get'"
1298
1298
  ]
1299
1299
  },
1300
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formMethod"
1300
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formMethod"
1301
1301
  },
1302
1302
  {
1303
1303
  "name": "formNoValidate",
@@ -1305,7 +1305,7 @@
1305
1305
  "value": {
1306
1306
  "type": "boolean"
1307
1307
  },
1308
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formNoValidate"
1308
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formNoValidate"
1309
1309
  },
1310
1310
  {
1311
1311
  "name": "formTarget",
@@ -1318,7 +1318,7 @@
1318
1318
  "'_top'"
1319
1319
  ]
1320
1320
  },
1321
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-formTarget"
1321
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-formTarget"
1322
1322
  },
1323
1323
  {
1324
1324
  "name": "validity",
@@ -1326,7 +1326,7 @@
1326
1326
  "value": {
1327
1327
  "type": "ValidityState"
1328
1328
  },
1329
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-validity"
1329
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-validity"
1330
1330
  },
1331
1331
  {
1332
1332
  "name": "validationMessage",
@@ -1334,29 +1334,24 @@
1334
1334
  "value": {
1335
1335
  "type": "string"
1336
1336
  },
1337
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#attributes-validationMessage"
1337
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#attributes-validationMessage"
1338
1338
  }
1339
1339
  ],
1340
1340
  "events": [
1341
1341
  {
1342
1342
  "name": "focus",
1343
1343
  "description": "获得焦点时触发",
1344
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#events-focus"
1344
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#events-focus"
1345
1345
  },
1346
1346
  {
1347
1347
  "name": "blur",
1348
1348
  "description": "失去焦点时触发",
1349
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#events-blur"
1350
- },
1351
- {
1352
- "name": "change",
1353
- "description": "选中状态变更时触发",
1354
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#events-change"
1349
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#events-blur"
1355
1350
  },
1356
1351
  {
1357
1352
  "name": "invalid",
1358
1353
  "description": "表单字段验证未通过时触发",
1359
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#events-invalid"
1354
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#events-invalid"
1360
1355
  }
1361
1356
  ]
1362
1357
  },
@@ -1365,29 +1360,34 @@
1365
1360
  {
1366
1361
  "name": "--shape-corner",
1367
1362
  "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐引用[设计令牌](https://www.mdui.org/zh-cn/docs/2/styles/design-tokens#shape-corner)",
1368
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#cssProperties-shape-corner"
1363
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssProperties-shape-corner"
1369
1364
  }
1370
1365
  ],
1371
1366
  "parts": [
1372
1367
  {
1373
1368
  "name": "button",
1374
1369
  "description": "内部的 `<button>` 或 `<a>` 元素",
1375
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#cssParts-button"
1370
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssParts-button"
1371
+ },
1372
+ {
1373
+ "name": "label",
1374
+ "description": "按钮的文本",
1375
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssParts-label"
1376
1376
  },
1377
1377
  {
1378
1378
  "name": "icon",
1379
- "description": "未选中状态的图标",
1380
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#cssParts-icon"
1379
+ "description": "按钮左侧的图标",
1380
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssParts-icon"
1381
1381
  },
1382
1382
  {
1383
- "name": "selected-icon",
1384
- "description": "选中状态的图标",
1385
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#cssParts-selected-icon"
1383
+ "name": "end-icon",
1384
+ "description": "按钮右侧的图标",
1385
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssParts-end-icon"
1386
1386
  },
1387
1387
  {
1388
1388
  "name": "loading",
1389
1389
  "description": "加载中状态的 `<mdui-circular-progress>` 元素",
1390
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button-icon#cssParts-loading"
1390
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/button#cssParts-loading"
1391
1391
  }
1392
1392
  ]
1393
1393
  }
@@ -2600,86 +2600,6 @@
2600
2600
  ]
2601
2601
  }
2602
2602
  },
2603
- {
2604
- "name": "mdui-collapse",
2605
- "description": "折叠面板组件,需配合 `<mdui-collapse-item>` 组件使用\n\n```html\n<mdui-collapse>\n <mdui-collapse-item header=\"header-1\">content-1</mdui-collapse-item>\n <mdui-collapse-item header=\"header-2\">content-2</mdui-collapse-item>\n</mdui-collapse>\n```",
2606
- "attributes": [
2607
- {
2608
- "name": "accordion",
2609
- "description": "是否启用手风琴模式",
2610
- "value": {
2611
- "type": "boolean"
2612
- },
2613
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-accordion"
2614
- },
2615
- {
2616
- "name": "value",
2617
- "description": "当前展开的 `<mdui-collapse-item>` 的值\n\n**Note**:该属性的 HTML 属性始终为字符串,只有在 `accordion` 为 `true` 时,才能设置初始值;该属性的 JavaScript 属性值在 `accordion` 为 `true` 时为字符串,在 `accordion` 为 `false` 时为字符串数组。因此,当 `accordion` 为 `false` 时,只能通过修改 JavaScript 属性值来改变此值。",
2618
- "value": {
2619
- "type": [
2620
- "string",
2621
- "string[]"
2622
- ]
2623
- },
2624
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-value"
2625
- },
2626
- {
2627
- "name": "disabled",
2628
- "description": "是否禁用此折叠面板",
2629
- "value": {
2630
- "type": "boolean"
2631
- },
2632
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-disabled"
2633
- }
2634
- ],
2635
- "priority": "highest",
2636
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse",
2637
- "slots": [
2638
- {
2639
- "name": "",
2640
- "description": "`<mdui-collapse-item>` 组件",
2641
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-slots-default"
2642
- }
2643
- ],
2644
- "js": {
2645
- "properties": [
2646
- {
2647
- "name": "accordion",
2648
- "description": "是否启用手风琴模式",
2649
- "value": {
2650
- "type": "boolean"
2651
- },
2652
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-accordion"
2653
- },
2654
- {
2655
- "name": "value",
2656
- "description": "当前展开的 `<mdui-collapse-item>` 的值\n\n**Note**:该属性的 HTML 属性始终为字符串,只有在 `accordion` 为 `true` 时,才能设置初始值;该属性的 JavaScript 属性值在 `accordion` 为 `true` 时为字符串,在 `accordion` 为 `false` 时为字符串数组。因此,当 `accordion` 为 `false` 时,只能通过修改 JavaScript 属性值来改变此值。",
2657
- "value": {
2658
- "type": [
2659
- "string",
2660
- "string[]"
2661
- ]
2662
- },
2663
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-value"
2664
- },
2665
- {
2666
- "name": "disabled",
2667
- "description": "是否禁用此折叠面板",
2668
- "value": {
2669
- "type": "boolean"
2670
- },
2671
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-disabled"
2672
- }
2673
- ],
2674
- "events": [
2675
- {
2676
- "name": "change",
2677
- "description": "当前展开的折叠面板项变化时触发",
2678
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-events-change"
2679
- }
2680
- ]
2681
- }
2682
- },
2683
2603
  {
2684
2604
  "name": "mdui-collapse-item",
2685
2605
  "description": "折叠面板项组件,需配合 `<mdui-collapse>` 组件使用\n\n```html\n<mdui-collapse>\n <mdui-collapse-item header=\"header-1\">content-1</mdui-collapse-item>\n <mdui-collapse-item header=\"header-2\">content-2</mdui-collapse-item>\n</mdui-collapse>\n```",
@@ -2813,29 +2733,109 @@
2813
2733
  }
2814
2734
  },
2815
2735
  {
2816
- "name": "mdui-dialog",
2817
- "description": "对话框组件\n\n```html\n<mdui-dialog>content</mdui-dialog>\n```",
2736
+ "name": "mdui-collapse",
2737
+ "description": "折叠面板组件,需配合 `<mdui-collapse-item>` 组件使用\n\n```html\n<mdui-collapse>\n <mdui-collapse-item header=\"header-1\">content-1</mdui-collapse-item>\n <mdui-collapse-item header=\"header-2\">content-2</mdui-collapse-item>\n</mdui-collapse>\n```",
2818
2738
  "attributes": [
2819
2739
  {
2820
- "name": "icon",
2821
- "description": "顶部的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
2740
+ "name": "accordion",
2741
+ "description": "是否启用手风琴模式",
2822
2742
  "value": {
2823
- "type": "string"
2743
+ "type": "boolean"
2824
2744
  },
2825
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/dialog#attributes-icon"
2745
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-accordion"
2826
2746
  },
2827
2747
  {
2828
- "name": "headline",
2829
- "description": "标题。也可以通过 `slot=\"headline\"` 设置",
2748
+ "name": "value",
2749
+ "description": "当前展开的 `<mdui-collapse-item>` 的值\n\n**Note**:该属性的 HTML 属性始终为字符串,只有在 `accordion` 为 `true` 时,才能设置初始值;该属性的 JavaScript 属性值在 `accordion` 为 `true` 时为字符串,在 `accordion` 为 `false` 时为字符串数组。因此,当 `accordion` 为 `false` 时,只能通过修改 JavaScript 属性值来改变此值。",
2830
2750
  "value": {
2831
- "type": "string"
2751
+ "type": [
2752
+ "string",
2753
+ "string[]"
2754
+ ]
2832
2755
  },
2833
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/dialog#attributes-headline"
2756
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-value"
2834
2757
  },
2835
2758
  {
2836
- "name": "description",
2837
- "description": "标题下方的文本。也可以通过 `slot=\"description\"` 设置",
2838
- "value": {
2759
+ "name": "disabled",
2760
+ "description": "是否禁用此折叠面板",
2761
+ "value": {
2762
+ "type": "boolean"
2763
+ },
2764
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-disabled"
2765
+ }
2766
+ ],
2767
+ "priority": "highest",
2768
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse",
2769
+ "slots": [
2770
+ {
2771
+ "name": "",
2772
+ "description": "`<mdui-collapse-item>` 组件",
2773
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-slots-default"
2774
+ }
2775
+ ],
2776
+ "js": {
2777
+ "properties": [
2778
+ {
2779
+ "name": "accordion",
2780
+ "description": "是否启用手风琴模式",
2781
+ "value": {
2782
+ "type": "boolean"
2783
+ },
2784
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-accordion"
2785
+ },
2786
+ {
2787
+ "name": "value",
2788
+ "description": "当前展开的 `<mdui-collapse-item>` 的值\n\n**Note**:该属性的 HTML 属性始终为字符串,只有在 `accordion` 为 `true` 时,才能设置初始值;该属性的 JavaScript 属性值在 `accordion` 为 `true` 时为字符串,在 `accordion` 为 `false` 时为字符串数组。因此,当 `accordion` 为 `false` 时,只能通过修改 JavaScript 属性值来改变此值。",
2789
+ "value": {
2790
+ "type": [
2791
+ "string",
2792
+ "string[]"
2793
+ ]
2794
+ },
2795
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-value"
2796
+ },
2797
+ {
2798
+ "name": "disabled",
2799
+ "description": "是否禁用此折叠面板",
2800
+ "value": {
2801
+ "type": "boolean"
2802
+ },
2803
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-attributes-disabled"
2804
+ }
2805
+ ],
2806
+ "events": [
2807
+ {
2808
+ "name": "change",
2809
+ "description": "当前展开的折叠面板项变化时触发",
2810
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/collapse#collapse-events-change"
2811
+ }
2812
+ ]
2813
+ }
2814
+ },
2815
+ {
2816
+ "name": "mdui-dialog",
2817
+ "description": "对话框组件\n\n```html\n<mdui-dialog>content</mdui-dialog>\n```",
2818
+ "attributes": [
2819
+ {
2820
+ "name": "icon",
2821
+ "description": "顶部的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置",
2822
+ "value": {
2823
+ "type": "string"
2824
+ },
2825
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/dialog#attributes-icon"
2826
+ },
2827
+ {
2828
+ "name": "headline",
2829
+ "description": "标题。也可以通过 `slot=\"headline\"` 设置",
2830
+ "value": {
2831
+ "type": "string"
2832
+ },
2833
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/dialog#attributes-headline"
2834
+ },
2835
+ {
2836
+ "name": "description",
2837
+ "description": "标题下方的文本。也可以通过 `slot=\"description\"` 设置",
2838
+ "value": {
2839
2839
  "type": "string"
2840
2840
  },
2841
2841
  "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/dialog#attributes-description"
@@ -3939,41 +3939,6 @@
3939
3939
  ]
3940
3940
  }
3941
3941
  },
3942
- {
3943
- "name": "mdui-layout",
3944
- "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```",
3945
- "attributes": [
3946
- {
3947
- "name": "full-height",
3948
- "description": "设置当前布局的高度为 100%",
3949
- "value": {
3950
- "type": "boolean"
3951
- },
3952
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/layout#layout-attributes-full-height"
3953
- }
3954
- ],
3955
- "priority": "highest",
3956
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/layout",
3957
- "slots": [
3958
- {
3959
- "name": "",
3960
- "description": "可以包含 [`<mdui-top-app-bar>`](https://www.mdui.org/zh-cn/docs/2/components/top-app-bar)、[`<mdui-bottom-app-bar>`](https://www.mdui.org/zh-cn/docs/2/components/bottom-app-bar)、[`<mdui-navigation-bar>`](https://www.mdui.org/zh-cn/docs/2/components/navigation-bar)、[`<mdui-navigation-drawer>`](https://www.mdui.org/zh-cn/docs/2/components/navigation-drawer)、[`<mdui-navigation-rail>`](https://www.mdui.org/zh-cn/docs/2/components/navigation-rail)、`<mdui-layout-item>`、`<mdui-layout-main>` 元素",
3961
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/layout#layout-slots-default"
3962
- }
3963
- ],
3964
- "js": {
3965
- "properties": [
3966
- {
3967
- "name": "fullHeight",
3968
- "description": "设置当前布局的高度为 100%",
3969
- "value": {
3970
- "type": "boolean"
3971
- },
3972
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/layout#layout-attributes-fullHeight"
3973
- }
3974
- ]
3975
- }
3976
- },
3977
3942
  {
3978
3943
  "name": "mdui-layout-item",
3979
3944
  "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```",
@@ -4038,6 +4003,7 @@
4038
4003
  {
4039
4004
  "name": "mdui-layout-main",
4040
4005
  "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```",
4006
+ "attributes": [],
4041
4007
  "priority": "highest",
4042
4008
  "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/layout",
4043
4009
  "slots": [
@@ -4046,7 +4012,45 @@
4046
4012
  "description": "可以包含任意内容",
4047
4013
  "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/layout#layout-main-slots-default"
4048
4014
  }
4049
- ]
4015
+ ],
4016
+ "js": {
4017
+ "properties": []
4018
+ }
4019
+ },
4020
+ {
4021
+ "name": "mdui-layout",
4022
+ "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```",
4023
+ "attributes": [
4024
+ {
4025
+ "name": "full-height",
4026
+ "description": "设置当前布局的高度为 100%",
4027
+ "value": {
4028
+ "type": "boolean"
4029
+ },
4030
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/layout#layout-attributes-full-height"
4031
+ }
4032
+ ],
4033
+ "priority": "highest",
4034
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/layout",
4035
+ "slots": [
4036
+ {
4037
+ "name": "",
4038
+ "description": "可以包含 [`<mdui-top-app-bar>`](https://www.mdui.org/zh-cn/docs/2/components/top-app-bar)、[`<mdui-bottom-app-bar>`](https://www.mdui.org/zh-cn/docs/2/components/bottom-app-bar)、[`<mdui-navigation-bar>`](https://www.mdui.org/zh-cn/docs/2/components/navigation-bar)、[`<mdui-navigation-drawer>`](https://www.mdui.org/zh-cn/docs/2/components/navigation-drawer)、[`<mdui-navigation-rail>`](https://www.mdui.org/zh-cn/docs/2/components/navigation-rail)、`<mdui-layout-item>`、`<mdui-layout-main>` 元素",
4039
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/layout#layout-slots-default"
4040
+ }
4041
+ ],
4042
+ "js": {
4043
+ "properties": [
4044
+ {
4045
+ "name": "fullHeight",
4046
+ "description": "设置当前布局的高度为 100%",
4047
+ "value": {
4048
+ "type": "boolean"
4049
+ },
4050
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/layout#layout-attributes-fullHeight"
4051
+ }
4052
+ ]
4053
+ }
4050
4054
  },
4051
4055
  {
4052
4056
  "name": "mdui-linear-progress",
@@ -4108,19 +4112,6 @@
4108
4112
  ]
4109
4113
  }
4110
4114
  },
4111
- {
4112
- "name": "mdui-list",
4113
- "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```",
4114
- "priority": "highest",
4115
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/list",
4116
- "slots": [
4117
- {
4118
- "name": "",
4119
- "description": "`<mdui-list-item>` 元素",
4120
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/list#list-slots-default"
4121
- }
4122
- ]
4123
- },
4124
4115
  {
4125
4116
  "name": "mdui-list-item",
4126
4117
  "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```",
@@ -4557,6 +4548,7 @@
4557
4548
  {
4558
4549
  "name": "mdui-list-subheader",
4559
4550
  "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```",
4551
+ "attributes": [],
4560
4552
  "priority": "highest",
4561
4553
  "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/list",
4562
4554
  "slots": [
@@ -4565,215 +4557,80 @@
4565
4557
  "description": "列表标题文本",
4566
4558
  "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/list#list-subheader-slots-default"
4567
4559
  }
4568
- ]
4560
+ ],
4561
+ "js": {
4562
+ "properties": []
4563
+ }
4569
4564
  },
4570
4565
  {
4571
- "name": "mdui-menu",
4572
- "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```",
4566
+ "name": "mdui-list",
4567
+ "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```",
4568
+ "attributes": [],
4569
+ "priority": "highest",
4570
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/list",
4571
+ "slots": [
4572
+ {
4573
+ "name": "",
4574
+ "description": "`<mdui-list-item>` 元素",
4575
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/list#list-slots-default"
4576
+ }
4577
+ ],
4578
+ "js": {
4579
+ "properties": []
4580
+ }
4581
+ },
4582
+ {
4583
+ "name": "mdui-menu-item",
4584
+ "description": "菜单项组件。需配合 `<mdui-menu>` 组件使用\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
4585
  "attributes": [
4574
4586
  {
4575
- "name": "selects",
4576
- "description": "菜单项的可选状态。默认不可选。可选值包括:\n\n* `single`:单选\n* `multiple`:多选",
4587
+ "name": "value",
4588
+ "description": "菜单项的值",
4577
4589
  "value": {
4578
- "type": [
4579
- "'single'",
4580
- "'multiple'"
4581
- ]
4590
+ "type": "string"
4582
4591
  },
4583
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-selects"
4592
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-value"
4584
4593
  },
4585
4594
  {
4586
- "name": "value",
4587
- "description": "当前选中的 `<mdui-menu-item>` 的值。\n\n**Note**:该属性的 HTML 属性始终为字符串,仅在 `selects=\"single\"` 时可通过 HTML 属性设置初始值;该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串,在 `selects=\"multiple\"` 时为字符串数组。因此,在 `selects=\"multiple\"` 时,若要修改该值,只能通过修改 JavaScript 属性值实现。",
4595
+ "name": "disabled",
4596
+ "description": "是否禁用菜单项",
4588
4597
  "value": {
4589
- "type": [
4590
- "string",
4591
- "string[]"
4592
- ]
4598
+ "type": "boolean"
4593
4599
  },
4594
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-value"
4600
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-disabled"
4595
4601
  },
4596
4602
  {
4597
- "name": "dense",
4598
- "description": "菜单项是否使用紧凑布局",
4603
+ "name": "icon",
4604
+ "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置\n\n如果左侧不需要显示图标,但需要预留一个图标的位置,可传入空字符串进行占位",
4599
4605
  "value": {
4600
- "type": "boolean"
4606
+ "type": "string"
4601
4607
  },
4602
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-dense"
4608
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-icon"
4603
4609
  },
4604
4610
  {
4605
- "name": "submenu-trigger",
4606
- "description": "子菜单的触发方式,支持多个值,用空格分隔。可选值包括:\n\n* `click`:点击菜单项时打开子菜单\n* `hover`:鼠标悬浮到菜单项上时打开子菜单\n* `focus`:聚焦到菜单项上时打开子菜单\n* `manual`:仅能通过编程方式打开和关闭子菜单,不能再指定其他触发方式",
4611
+ "name": "end-icon",
4612
+ "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
4607
4613
  "value": {
4608
- "type": [
4609
- "'click'",
4610
- "'hover'",
4611
- "'focus'",
4612
- "'manual'",
4613
- "string"
4614
- ]
4614
+ "type": "string"
4615
4615
  },
4616
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenu-trigger"
4616
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-end-icon"
4617
4617
  },
4618
4618
  {
4619
- "name": "submenu-open-delay",
4620
- "description": "鼠标悬浮触发子菜单打开的延时,单位毫秒",
4619
+ "name": "end-text",
4620
+ "description": "右侧的文本。也可以通过 `slot=\"end-text\"` 设置",
4621
4621
  "value": {
4622
- "type": "number"
4622
+ "type": "string"
4623
4623
  },
4624
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenu-open-delay"
4624
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-end-text"
4625
4625
  },
4626
4626
  {
4627
- "name": "submenu-close-delay",
4628
- "description": "鼠标悬浮触发子菜单关闭的延时,单位毫秒",
4627
+ "name": "selected-icon",
4628
+ "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
4629
4629
  "value": {
4630
- "type": "number"
4630
+ "type": "string"
4631
4631
  },
4632
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenu-close-delay"
4633
- }
4634
- ],
4635
- "priority": "highest",
4636
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu",
4637
- "slots": [
4638
- {
4639
- "name": "",
4640
- "description": "子菜单项(`<mdui-menu-item>`)、分割线([`<mdui-divider>`](https://www.mdui.org/zh-cn/docs/2/components/divider))等元素",
4641
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-slots-default"
4642
- }
4643
- ],
4644
- "js": {
4645
- "properties": [
4646
- {
4647
- "name": "selects",
4648
- "description": "菜单项的可选状态。默认不可选。可选值包括:\n\n* `single`:单选\n* `multiple`:多选",
4649
- "value": {
4650
- "type": [
4651
- "'single'",
4652
- "'multiple'"
4653
- ]
4654
- },
4655
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-selects"
4656
- },
4657
- {
4658
- "name": "value",
4659
- "description": "当前选中的 `<mdui-menu-item>` 的值。\n\n**Note**:该属性的 HTML 属性始终为字符串,仅在 `selects=\"single\"` 时可通过 HTML 属性设置初始值;该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串,在 `selects=\"multiple\"` 时为字符串数组。因此,在 `selects=\"multiple\"` 时,若要修改该值,只能通过修改 JavaScript 属性值实现。",
4660
- "value": {
4661
- "type": [
4662
- "string",
4663
- "string[]"
4664
- ]
4665
- },
4666
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-value"
4667
- },
4668
- {
4669
- "name": "dense",
4670
- "description": "菜单项是否使用紧凑布局",
4671
- "value": {
4672
- "type": "boolean"
4673
- },
4674
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-dense"
4675
- },
4676
- {
4677
- "name": "submenuTrigger",
4678
- "description": "子菜单的触发方式,支持多个值,用空格分隔。可选值包括:\n\n* `click`:点击菜单项时打开子菜单\n* `hover`:鼠标悬浮到菜单项上时打开子菜单\n* `focus`:聚焦到菜单项上时打开子菜单\n* `manual`:仅能通过编程方式打开和关闭子菜单,不能再指定其他触发方式",
4679
- "value": {
4680
- "type": [
4681
- "'click'",
4682
- "'hover'",
4683
- "'focus'",
4684
- "'manual'",
4685
- "string"
4686
- ]
4687
- },
4688
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenuTrigger"
4689
- },
4690
- {
4691
- "name": "submenuOpenDelay",
4692
- "description": "鼠标悬浮触发子菜单打开的延时,单位毫秒",
4693
- "value": {
4694
- "type": "number"
4695
- },
4696
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenuOpenDelay"
4697
- },
4698
- {
4699
- "name": "submenuCloseDelay",
4700
- "description": "鼠标悬浮触发子菜单关闭的延时,单位毫秒",
4701
- "value": {
4702
- "type": "number"
4703
- },
4704
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenuCloseDelay"
4705
- }
4706
- ],
4707
- "events": [
4708
- {
4709
- "name": "change",
4710
- "description": "菜单项选中状态变化时触发",
4711
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-events-change"
4712
- }
4713
- ]
4714
- },
4715
- "css": {
4716
- "properties": [
4717
- {
4718
- "name": "--shape-corner",
4719
- "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐引用[设计令牌](https://www.mdui.org/zh-cn/docs/2/styles/design-tokens#shape-corner)",
4720
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-cssProperties-shape-corner"
4721
- }
4722
- ]
4723
- }
4724
- },
4725
- {
4726
- "name": "mdui-menu-item",
4727
- "description": "菜单项组件。需配合 `<mdui-menu>` 组件使用\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```",
4728
- "attributes": [
4729
- {
4730
- "name": "value",
4731
- "description": "菜单项的值",
4732
- "value": {
4733
- "type": "string"
4734
- },
4735
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-value"
4736
- },
4737
- {
4738
- "name": "disabled",
4739
- "description": "是否禁用菜单项",
4740
- "value": {
4741
- "type": "boolean"
4742
- },
4743
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-disabled"
4744
- },
4745
- {
4746
- "name": "icon",
4747
- "description": "左侧的 Material Icons 图标名。也可以通过 `slot=\"icon\"` 设置\n\n如果左侧不需要显示图标,但需要预留一个图标的位置,可传入空字符串进行占位",
4748
- "value": {
4749
- "type": "string"
4750
- },
4751
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-icon"
4752
- },
4753
- {
4754
- "name": "end-icon",
4755
- "description": "右侧的 Material Icons 图标名。也可以通过 `slot=\"end-icon\"` 设置",
4756
- "value": {
4757
- "type": "string"
4758
- },
4759
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-end-icon"
4760
- },
4761
- {
4762
- "name": "end-text",
4763
- "description": "右侧的文本。也可以通过 `slot=\"end-text\"` 设置",
4764
- "value": {
4765
- "type": "string"
4766
- },
4767
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-end-text"
4768
- },
4769
- {
4770
- "name": "selected-icon",
4771
- "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"selected-icon\"` 设置",
4772
- "value": {
4773
- "type": "string"
4774
- },
4775
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-selected-icon"
4776
- },
4632
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-item-attributes-selected-icon"
4633
+ },
4777
4634
  {
4778
4635
  "name": "submenu-open",
4779
4636
  "description": "是否打开子菜单",
@@ -5091,185 +4948,147 @@
5091
4948
  }
5092
4949
  },
5093
4950
  {
5094
- "name": "mdui-navigation-bar",
5095
- "description": "底部导航栏组件。需配合 `<mdui-navigation-bar-item>` 组件使用\n\n```html\n<mdui-navigation-bar>\n <mdui-navigation-bar-item icon=\"place\">Item 1</mdui-navigation-bar-item>\n <mdui-navigation-bar-item icon=\"commute\">Item 2</mdui-navigation-bar-item>\n <mdui-navigation-bar-item icon=\"people\">Item 3</mdui-navigation-bar-item>\n</mdui-navigation-bar>\n```",
4951
+ "name": "mdui-menu",
4952
+ "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```",
5096
4953
  "attributes": [
5097
4954
  {
5098
- "name": "hide",
5099
- "description": "是否隐藏",
5100
- "value": {
5101
- "type": "boolean"
5102
- },
5103
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-hide"
5104
- },
5105
- {
5106
- "name": "label-visibility",
5107
- "description": "文本的可视状态。可选值包括:\n\n* `auto`:当选项小于等于3个时,始终显示文本;当选项大于3个时,仅显示选中状态的文本\n* `selected`:仅在选中状态显示文本\n* `labeled`:始终显示文本\n* `unlabeled`:始终不显示文本",
4955
+ "name": "selects",
4956
+ "description": "菜单项的可选状态。默认不可选。可选值包括:\n\n* `single`:单选\n* `multiple`:多选",
5108
4957
  "value": {
5109
4958
  "type": [
5110
- "'auto'",
5111
- "'selected'",
5112
- "'labeled'",
5113
- "'unlabeled'"
4959
+ "'single'",
4960
+ "'multiple'"
5114
4961
  ]
5115
4962
  },
5116
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-label-visibility"
4963
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-selects"
5117
4964
  },
5118
4965
  {
5119
4966
  "name": "value",
5120
- "description": "当前选中的 `<mdui-navigation-bar-item>` 的值",
4967
+ "description": "当前选中的 `<mdui-menu-item>` 的值。\n\n**Note**:该属性的 HTML 属性始终为字符串,仅在 `selects=\"single\"` 时可通过 HTML 属性设置初始值;该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串,在 `selects=\"multiple\"` 时为字符串数组。因此,在 `selects=\"multiple\"` 时,若要修改该值,只能通过修改 JavaScript 属性值实现。",
5121
4968
  "value": {
5122
- "type": "string"
4969
+ "type": [
4970
+ "string",
4971
+ "string[]"
4972
+ ]
5123
4973
  },
5124
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-value"
4974
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-value"
5125
4975
  },
5126
4976
  {
5127
- "name": "scroll-behavior",
5128
- "description": "滚动行为。可选值包括:\n\n* `hide`:滚动时隐藏",
4977
+ "name": "dense",
4978
+ "description": "菜单项是否使用紧凑布局",
5129
4979
  "value": {
5130
- "type": [
5131
- "'hide'",
5132
- "'shrink'",
5133
- "'elevate'"
5134
- ]
4980
+ "type": "boolean"
5135
4981
  },
5136
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-behavior"
4982
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-dense"
5137
4983
  },
5138
4984
  {
5139
- "name": "scroll-target",
5140
- "description": "需要监听其滚动事件的元素。值可以是 CSS 选择器、DOM 元素、或 [JQ 对象](https://www.mdui.org/zh-cn/docs/2/functions/jq)。默认监听 `window` 的滚动事件",
4985
+ "name": "submenu-trigger",
4986
+ "description": "子菜单的触发方式,支持多个值,用空格分隔。可选值包括:\n\n* `click`:点击菜单项时打开子菜单\n* `hover`:鼠标悬浮到菜单项上时打开子菜单\n* `focus`:聚焦到菜单项上时打开子菜单\n* `manual`:仅能通过编程方式打开和关闭子菜单,不能再指定其他触发方式",
5141
4987
  "value": {
5142
4988
  "type": [
5143
- "string",
5144
- "HTMLElement",
5145
- "JQ<HTMLElement>"
4989
+ "'click'",
4990
+ "'hover'",
4991
+ "'focus'",
4992
+ "'manual'",
4993
+ "string"
5146
4994
  ]
5147
4995
  },
5148
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-target"
4996
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenu-trigger"
5149
4997
  },
5150
4998
  {
5151
- "name": "scroll-threshold",
5152
- "description": "在滚动多少距离之后触发滚动行为,单位为 `px`",
4999
+ "name": "submenu-open-delay",
5000
+ "description": "鼠标悬浮触发子菜单打开的延时,单位毫秒",
5153
5001
  "value": {
5154
5002
  "type": "number"
5155
5003
  },
5156
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-threshold"
5004
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenu-open-delay"
5157
5005
  },
5158
5006
  {
5159
- "name": "order",
5160
- "description": "该组件在 [`<mdui-layout>`](https://www.mdui.org/zh-cn/docs/2/components/layout) 中的布局顺序,按从小到大排序。默认为 `0`",
5007
+ "name": "submenu-close-delay",
5008
+ "description": "鼠标悬浮触发子菜单关闭的延时,单位毫秒",
5161
5009
  "value": {
5162
5010
  "type": "number"
5163
5011
  },
5164
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-order"
5012
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenu-close-delay"
5165
5013
  }
5166
5014
  ],
5167
5015
  "priority": "highest",
5168
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar",
5016
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu",
5169
5017
  "slots": [
5170
5018
  {
5171
5019
  "name": "",
5172
- "description": "`<mdui-navigation-bar-item>` 组件",
5173
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-slots-default"
5020
+ "description": "子菜单项(`<mdui-menu-item>`)、分割线([`<mdui-divider>`](https://www.mdui.org/zh-cn/docs/2/components/divider))等元素",
5021
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-slots-default"
5174
5022
  }
5175
5023
  ],
5176
5024
  "js": {
5177
5025
  "properties": [
5178
5026
  {
5179
- "name": "hide",
5180
- "description": "是否隐藏",
5027
+ "name": "selects",
5028
+ "description": "菜单项的可选状态。默认不可选。可选值包括:\n\n* `single`:单选\n* `multiple`:多选",
5181
5029
  "value": {
5182
- "type": "boolean"
5030
+ "type": [
5031
+ "'single'",
5032
+ "'multiple'"
5033
+ ]
5183
5034
  },
5184
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-hide"
5035
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-selects"
5185
5036
  },
5186
5037
  {
5187
- "name": "labelVisibility",
5188
- "description": "文本的可视状态。可选值包括:\n\n* `auto`:当选项小于等于3个时,始终显示文本;当选项大于3个时,仅显示选中状态的文本\n* `selected`:仅在选中状态显示文本\n* `labeled`:始终显示文本\n* `unlabeled`:始终不显示文本",
5038
+ "name": "value",
5039
+ "description": "当前选中的 `<mdui-menu-item>` 的值。\n\n**Note**:该属性的 HTML 属性始终为字符串,仅在 `selects=\"single\"` 时可通过 HTML 属性设置初始值;该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串,在 `selects=\"multiple\"` 时为字符串数组。因此,在 `selects=\"multiple\"` 时,若要修改该值,只能通过修改 JavaScript 属性值实现。",
5189
5040
  "value": {
5190
5041
  "type": [
5191
- "'auto'",
5192
- "'selected'",
5193
- "'labeled'",
5194
- "'unlabeled'"
5042
+ "string",
5043
+ "string[]"
5195
5044
  ]
5196
5045
  },
5197
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-labelVisibility"
5046
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-value"
5198
5047
  },
5199
5048
  {
5200
- "name": "value",
5201
- "description": "当前选中的 `<mdui-navigation-bar-item>` 的值",
5049
+ "name": "dense",
5050
+ "description": "菜单项是否使用紧凑布局",
5202
5051
  "value": {
5203
- "type": "string"
5052
+ "type": "boolean"
5204
5053
  },
5205
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-value"
5054
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-dense"
5206
5055
  },
5207
5056
  {
5208
- "name": "scrollBehavior",
5209
- "description": "滚动行为。可选值包括:\n\n* `hide`:滚动时隐藏",
5057
+ "name": "submenuTrigger",
5058
+ "description": "子菜单的触发方式,支持多个值,用空格分隔。可选值包括:\n\n* `click`:点击菜单项时打开子菜单\n* `hover`:鼠标悬浮到菜单项上时打开子菜单\n* `focus`:聚焦到菜单项上时打开子菜单\n* `manual`:仅能通过编程方式打开和关闭子菜单,不能再指定其他触发方式",
5210
5059
  "value": {
5211
5060
  "type": [
5212
- "'hide'",
5213
- "'shrink'",
5214
- "'elevate'"
5061
+ "'click'",
5062
+ "'hover'",
5063
+ "'focus'",
5064
+ "'manual'",
5065
+ "string"
5215
5066
  ]
5216
5067
  },
5217
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scrollBehavior"
5218
- },
5219
- {
5220
- "name": "scrollTarget",
5221
- "description": "需要监听其滚动事件的元素。值可以是 CSS 选择器、DOM 元素、或 [JQ 对象](https://www.mdui.org/zh-cn/docs/2/functions/jq)。默认监听 `window` 的滚动事件",
5222
- "value": {
5223
- "type": [
5224
- "string",
5225
- "HTMLElement",
5226
- "JQ<HTMLElement>"
5227
- ]
5228
- },
5229
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scrollTarget"
5068
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenuTrigger"
5230
5069
  },
5231
5070
  {
5232
- "name": "scrollThreshold",
5233
- "description": "在滚动多少距离之后触发滚动行为,单位为 `px`",
5071
+ "name": "submenuOpenDelay",
5072
+ "description": "鼠标悬浮触发子菜单打开的延时,单位毫秒",
5234
5073
  "value": {
5235
5074
  "type": "number"
5236
5075
  },
5237
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scrollThreshold"
5076
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenuOpenDelay"
5238
5077
  },
5239
5078
  {
5240
- "name": "order",
5241
- "description": "该组件在 [`<mdui-layout>`](https://www.mdui.org/zh-cn/docs/2/components/layout) 中的布局顺序,按从小到大排序。默认为 `0`",
5079
+ "name": "submenuCloseDelay",
5080
+ "description": "鼠标悬浮触发子菜单关闭的延时,单位毫秒",
5242
5081
  "value": {
5243
5082
  "type": "number"
5244
5083
  },
5245
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-order"
5084
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-attributes-submenuCloseDelay"
5246
5085
  }
5247
5086
  ],
5248
5087
  "events": [
5249
5088
  {
5250
5089
  "name": "change",
5251
- "description": "值变化时触发",
5252
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-events-change"
5253
- },
5254
- {
5255
- "name": "show",
5256
- "description": "开始显示时,事件被触发。可以通过调用 `event.preventDefault()` 阻止显示",
5257
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-events-show"
5258
- },
5259
- {
5260
- "name": "shown",
5261
- "description": "显示动画完成时,事件被触发",
5262
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-events-shown"
5263
- },
5264
- {
5265
- "name": "hide",
5266
- "description": "开始隐藏时,事件被触发。可以通过调用 `event.preventDefault()` 阻止隐藏",
5267
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-events-hide"
5268
- },
5269
- {
5270
- "name": "hidden",
5271
- "description": "隐藏动画完成时,事件被触发",
5272
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-events-hidden"
5090
+ "description": "菜单项选中状态变化时触发",
5091
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-events-change"
5273
5092
  }
5274
5093
  ]
5275
5094
  },
@@ -5278,12 +5097,7 @@
5278
5097
  {
5279
5098
  "name": "--shape-corner",
5280
5099
  "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐引用[设计令牌](https://www.mdui.org/zh-cn/docs/2/styles/design-tokens#shape-corner)",
5281
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-cssProperties-shape-corner"
5282
- },
5283
- {
5284
- "name": "--z-index",
5285
- "description": "组件的 CSS `z-index` 值",
5286
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-cssProperties-z-index"
5100
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/menu#menu-cssProperties-shape-corner"
5287
5101
  }
5288
5102
  ]
5289
5103
  }
@@ -5559,6 +5373,204 @@
5559
5373
  ]
5560
5374
  }
5561
5375
  },
5376
+ {
5377
+ "name": "mdui-navigation-bar",
5378
+ "description": "底部导航栏组件。需配合 `<mdui-navigation-bar-item>` 组件使用\n\n```html\n<mdui-navigation-bar>\n <mdui-navigation-bar-item icon=\"place\">Item 1</mdui-navigation-bar-item>\n <mdui-navigation-bar-item icon=\"commute\">Item 2</mdui-navigation-bar-item>\n <mdui-navigation-bar-item icon=\"people\">Item 3</mdui-navigation-bar-item>\n</mdui-navigation-bar>\n```",
5379
+ "attributes": [
5380
+ {
5381
+ "name": "hide",
5382
+ "description": "是否隐藏",
5383
+ "value": {
5384
+ "type": "boolean"
5385
+ },
5386
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-hide"
5387
+ },
5388
+ {
5389
+ "name": "label-visibility",
5390
+ "description": "文本的可视状态。可选值包括:\n\n* `auto`:当选项小于等于3个时,始终显示文本;当选项大于3个时,仅显示选中状态的文本\n* `selected`:仅在选中状态显示文本\n* `labeled`:始终显示文本\n* `unlabeled`:始终不显示文本",
5391
+ "value": {
5392
+ "type": [
5393
+ "'auto'",
5394
+ "'selected'",
5395
+ "'labeled'",
5396
+ "'unlabeled'"
5397
+ ]
5398
+ },
5399
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-label-visibility"
5400
+ },
5401
+ {
5402
+ "name": "value",
5403
+ "description": "当前选中的 `<mdui-navigation-bar-item>` 的值",
5404
+ "value": {
5405
+ "type": "string"
5406
+ },
5407
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-value"
5408
+ },
5409
+ {
5410
+ "name": "scroll-behavior",
5411
+ "description": "滚动行为。可选值包括:\n\n* `hide`:滚动时隐藏",
5412
+ "value": {
5413
+ "type": [
5414
+ "'hide'",
5415
+ "'shrink'",
5416
+ "'elevate'"
5417
+ ]
5418
+ },
5419
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-behavior"
5420
+ },
5421
+ {
5422
+ "name": "scroll-target",
5423
+ "description": "需要监听其滚动事件的元素。值可以是 CSS 选择器、DOM 元素、或 [JQ 对象](https://www.mdui.org/zh-cn/docs/2/functions/jq)。默认监听 `window` 的滚动事件",
5424
+ "value": {
5425
+ "type": [
5426
+ "string",
5427
+ "HTMLElement",
5428
+ "JQ<HTMLElement>"
5429
+ ]
5430
+ },
5431
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-target"
5432
+ },
5433
+ {
5434
+ "name": "scroll-threshold",
5435
+ "description": "在滚动多少距离之后触发滚动行为,单位为 `px`",
5436
+ "value": {
5437
+ "type": "number"
5438
+ },
5439
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-threshold"
5440
+ },
5441
+ {
5442
+ "name": "order",
5443
+ "description": "该组件在 [`<mdui-layout>`](https://www.mdui.org/zh-cn/docs/2/components/layout) 中的布局顺序,按从小到大排序。默认为 `0`",
5444
+ "value": {
5445
+ "type": "number"
5446
+ },
5447
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-order"
5448
+ }
5449
+ ],
5450
+ "priority": "highest",
5451
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar",
5452
+ "slots": [
5453
+ {
5454
+ "name": "",
5455
+ "description": "`<mdui-navigation-bar-item>` 组件",
5456
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-slots-default"
5457
+ }
5458
+ ],
5459
+ "js": {
5460
+ "properties": [
5461
+ {
5462
+ "name": "hide",
5463
+ "description": "是否隐藏",
5464
+ "value": {
5465
+ "type": "boolean"
5466
+ },
5467
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-hide"
5468
+ },
5469
+ {
5470
+ "name": "labelVisibility",
5471
+ "description": "文本的可视状态。可选值包括:\n\n* `auto`:当选项小于等于3个时,始终显示文本;当选项大于3个时,仅显示选中状态的文本\n* `selected`:仅在选中状态显示文本\n* `labeled`:始终显示文本\n* `unlabeled`:始终不显示文本",
5472
+ "value": {
5473
+ "type": [
5474
+ "'auto'",
5475
+ "'selected'",
5476
+ "'labeled'",
5477
+ "'unlabeled'"
5478
+ ]
5479
+ },
5480
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-labelVisibility"
5481
+ },
5482
+ {
5483
+ "name": "value",
5484
+ "description": "当前选中的 `<mdui-navigation-bar-item>` 的值",
5485
+ "value": {
5486
+ "type": "string"
5487
+ },
5488
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-value"
5489
+ },
5490
+ {
5491
+ "name": "scrollBehavior",
5492
+ "description": "滚动行为。可选值包括:\n\n* `hide`:滚动时隐藏",
5493
+ "value": {
5494
+ "type": [
5495
+ "'hide'",
5496
+ "'shrink'",
5497
+ "'elevate'"
5498
+ ]
5499
+ },
5500
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scrollBehavior"
5501
+ },
5502
+ {
5503
+ "name": "scrollTarget",
5504
+ "description": "需要监听其滚动事件的元素。值可以是 CSS 选择器、DOM 元素、或 [JQ 对象](https://www.mdui.org/zh-cn/docs/2/functions/jq)。默认监听 `window` 的滚动事件",
5505
+ "value": {
5506
+ "type": [
5507
+ "string",
5508
+ "HTMLElement",
5509
+ "JQ<HTMLElement>"
5510
+ ]
5511
+ },
5512
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scrollTarget"
5513
+ },
5514
+ {
5515
+ "name": "scrollThreshold",
5516
+ "description": "在滚动多少距离之后触发滚动行为,单位为 `px`",
5517
+ "value": {
5518
+ "type": "number"
5519
+ },
5520
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-scrollThreshold"
5521
+ },
5522
+ {
5523
+ "name": "order",
5524
+ "description": "该组件在 [`<mdui-layout>`](https://www.mdui.org/zh-cn/docs/2/components/layout) 中的布局顺序,按从小到大排序。默认为 `0`",
5525
+ "value": {
5526
+ "type": "number"
5527
+ },
5528
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-attributes-order"
5529
+ }
5530
+ ],
5531
+ "events": [
5532
+ {
5533
+ "name": "change",
5534
+ "description": "值变化时触发",
5535
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-events-change"
5536
+ },
5537
+ {
5538
+ "name": "show",
5539
+ "description": "开始显示时,事件被触发。可以通过调用 `event.preventDefault()` 阻止显示",
5540
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-events-show"
5541
+ },
5542
+ {
5543
+ "name": "shown",
5544
+ "description": "显示动画完成时,事件被触发",
5545
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-events-shown"
5546
+ },
5547
+ {
5548
+ "name": "hide",
5549
+ "description": "开始隐藏时,事件被触发。可以通过调用 `event.preventDefault()` 阻止隐藏",
5550
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-events-hide"
5551
+ },
5552
+ {
5553
+ "name": "hidden",
5554
+ "description": "隐藏动画完成时,事件被触发",
5555
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-events-hidden"
5556
+ }
5557
+ ]
5558
+ },
5559
+ "css": {
5560
+ "properties": [
5561
+ {
5562
+ "name": "--shape-corner",
5563
+ "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐引用[设计令牌](https://www.mdui.org/zh-cn/docs/2/styles/design-tokens#shape-corner)",
5564
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-cssProperties-shape-corner"
5565
+ },
5566
+ {
5567
+ "name": "--z-index",
5568
+ "description": "组件的 CSS `z-index` 值",
5569
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-bar#navigation-bar-cssProperties-z-index"
5570
+ }
5571
+ ]
5572
+ }
5573
+ },
5562
5574
  {
5563
5575
  "name": "mdui-navigation-drawer",
5564
5576
  "description": "侧边抽屉栏组件\n\n```html\n<mdui-navigation-drawer>content</mdui-navigation-drawer>\n```",
@@ -5749,183 +5761,6 @@
5749
5761
  ]
5750
5762
  }
5751
5763
  },
5752
- {
5753
- "name": "mdui-navigation-rail",
5754
- "description": "侧边导航栏组件。需配合 `<mdui-navigation-rail-item>` 组件使用\n\n```html\n<mdui-navigation-rail>\n <mdui-navigation-rail-item icon=\"watch_later\">Recent</mdui-navigation-rail-item>\n <mdui-navigation-rail-item icon=\"image\">Images</mdui-navigation-rail-item>\n <mdui-navigation-rail-item icon=\"library_music\">Library</mdui-navigation-rail-item>\n</mdui-navigation-rail>\n```",
5755
- "attributes": [
5756
- {
5757
- "name": "value",
5758
- "description": "当前选中的 `<mdui-navigation-rail-item>` 的值",
5759
- "value": {
5760
- "type": "string"
5761
- },
5762
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-value"
5763
- },
5764
- {
5765
- "name": "placement",
5766
- "description": "导航栏的位置。可选值包括:\n\n* `left`:左侧\n* `right`:右侧",
5767
- "value": {
5768
- "type": [
5769
- "'left'",
5770
- "'right'"
5771
- ]
5772
- },
5773
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-placement"
5774
- },
5775
- {
5776
- "name": "alignment",
5777
- "description": "`<mdui-navigation-rail-item>` 元素的对齐方式。可选值包括:\n\n* `start`:顶部对齐\n* `center`:居中对齐\n* `end`:底部对齐",
5778
- "value": {
5779
- "type": [
5780
- "'start'",
5781
- "'center'",
5782
- "'end'"
5783
- ]
5784
- },
5785
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-alignment"
5786
- },
5787
- {
5788
- "name": "contained",
5789
- "description": "默认情况下,导航栏相对于 `body` 元素显示。当该参数设置为 `true` 时,导航栏将相对于其父元素显示。\n\n**Note**:设置该属性时,必须在父元素上手动设置样式 `position: relative;`。",
5790
- "value": {
5791
- "type": "boolean"
5792
- },
5793
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-contained"
5794
- },
5795
- {
5796
- "name": "divider",
5797
- "description": "是否在导航栏和页面内容之间添加分割线",
5798
- "value": {
5799
- "type": "boolean"
5800
- },
5801
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-divider"
5802
- },
5803
- {
5804
- "name": "order",
5805
- "description": "该组件在 [`<mdui-layout>`](https://www.mdui.org/zh-cn/docs/2/components/layout) 中的布局顺序,按从小到大排序。默认为 `0`",
5806
- "value": {
5807
- "type": "number"
5808
- },
5809
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-order"
5810
- }
5811
- ],
5812
- "priority": "highest",
5813
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail",
5814
- "slots": [
5815
- {
5816
- "name": "",
5817
- "description": "`<mdui-navigation-rail-item>` 组件",
5818
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-slots-default"
5819
- },
5820
- {
5821
- "name": "top",
5822
- "description": "顶部的元素",
5823
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-slots-top"
5824
- },
5825
- {
5826
- "name": "bottom",
5827
- "description": "底部的元素",
5828
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-slots-bottom"
5829
- }
5830
- ],
5831
- "js": {
5832
- "properties": [
5833
- {
5834
- "name": "value",
5835
- "description": "当前选中的 `<mdui-navigation-rail-item>` 的值",
5836
- "value": {
5837
- "type": "string"
5838
- },
5839
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-value"
5840
- },
5841
- {
5842
- "name": "placement",
5843
- "description": "导航栏的位置。可选值包括:\n\n* `left`:左侧\n* `right`:右侧",
5844
- "value": {
5845
- "type": [
5846
- "'left'",
5847
- "'right'"
5848
- ]
5849
- },
5850
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-placement"
5851
- },
5852
- {
5853
- "name": "alignment",
5854
- "description": "`<mdui-navigation-rail-item>` 元素的对齐方式。可选值包括:\n\n* `start`:顶部对齐\n* `center`:居中对齐\n* `end`:底部对齐",
5855
- "value": {
5856
- "type": [
5857
- "'start'",
5858
- "'center'",
5859
- "'end'"
5860
- ]
5861
- },
5862
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-alignment"
5863
- },
5864
- {
5865
- "name": "contained",
5866
- "description": "默认情况下,导航栏相对于 `body` 元素显示。当该参数设置为 `true` 时,导航栏将相对于其父元素显示。\n\n**Note**:设置该属性时,必须在父元素上手动设置样式 `position: relative;`。",
5867
- "value": {
5868
- "type": "boolean"
5869
- },
5870
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-contained"
5871
- },
5872
- {
5873
- "name": "divider",
5874
- "description": "是否在导航栏和页面内容之间添加分割线",
5875
- "value": {
5876
- "type": "boolean"
5877
- },
5878
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-divider"
5879
- },
5880
- {
5881
- "name": "order",
5882
- "description": "该组件在 [`<mdui-layout>`](https://www.mdui.org/zh-cn/docs/2/components/layout) 中的布局顺序,按从小到大排序。默认为 `0`",
5883
- "value": {
5884
- "type": "number"
5885
- },
5886
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-order"
5887
- }
5888
- ],
5889
- "events": [
5890
- {
5891
- "name": "change",
5892
- "description": "值变化时触发",
5893
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-events-change"
5894
- }
5895
- ]
5896
- },
5897
- "css": {
5898
- "properties": [
5899
- {
5900
- "name": "--shape-corner",
5901
- "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐引用[设计令牌](https://www.mdui.org/zh-cn/docs/2/styles/design-tokens#shape-corner)",
5902
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-cssProperties-shape-corner"
5903
- },
5904
- {
5905
- "name": "--z-index",
5906
- "description": "组件的 CSS `z-index` 值",
5907
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-cssProperties-z-index"
5908
- }
5909
- ],
5910
- "parts": [
5911
- {
5912
- "name": "top",
5913
- "description": "顶部元素的容器",
5914
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-cssParts-top"
5915
- },
5916
- {
5917
- "name": "bottom",
5918
- "description": "底部元素的容器",
5919
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-cssParts-bottom"
5920
- },
5921
- {
5922
- "name": "items",
5923
- "description": "`<mdui-navigation-rail-item>` 组件的容器",
5924
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-cssParts-items"
5925
- }
5926
- ]
5927
- }
5928
- },
5929
5764
  {
5930
5765
  "name": "mdui-navigation-rail-item",
5931
5766
  "description": "侧边导航项组件。需配合 `<mdui-navigation-rail>` 组件使用\n\n```html\n<mdui-navigation-rail>\n <mdui-navigation-rail-item icon=\"watch_later\">Recent</mdui-navigation-rail-item>\n <mdui-navigation-rail-item icon=\"image\">Images</mdui-navigation-rail-item>\n <mdui-navigation-rail-item icon=\"library_music\">Library</mdui-navigation-rail-item>\n</mdui-navigation-rail>\n```",
@@ -6198,183 +6033,178 @@
6198
6033
  }
6199
6034
  },
6200
6035
  {
6201
- "name": "mdui-radio",
6202
- "description": "单选框组件。需配合 `<mdui-radio-group>` 组件使用\n\n```html\n<mdui-radio-group value=\"chinese\">\n <mdui-radio value=\"chinese\">Chinese</mdui-radio>\n <mdui-radio value=\"english\">English</mdui-radio>\n</mdui-radio-group>\n```",
6036
+ "name": "mdui-navigation-rail",
6037
+ "description": "侧边导航栏组件。需配合 `<mdui-navigation-rail-item>` 组件使用\n\n```html\n<mdui-navigation-rail>\n <mdui-navigation-rail-item icon=\"watch_later\">Recent</mdui-navigation-rail-item>\n <mdui-navigation-rail-item icon=\"image\">Images</mdui-navigation-rail-item>\n <mdui-navigation-rail-item icon=\"library_music\">Library</mdui-navigation-rail-item>\n</mdui-navigation-rail>\n```",
6203
6038
  "attributes": [
6204
6039
  {
6205
6040
  "name": "value",
6206
- "description": "当前单选项的值",
6041
+ "description": "当前选中的 `<mdui-navigation-rail-item>` 的值",
6207
6042
  "value": {
6208
6043
  "type": "string"
6209
6044
  },
6210
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-value"
6211
- },
6212
- {
6213
- "name": "disabled",
6214
- "description": "是否禁用当前单选项",
6215
- "value": {
6216
- "type": "boolean"
6217
- },
6218
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-disabled"
6045
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-value"
6219
6046
  },
6220
6047
  {
6221
- "name": "checked",
6222
- "description": "当前单选项是否已选中",
6048
+ "name": "placement",
6049
+ "description": "导航栏的位置。可选值包括:\n\n* `left`:左侧\n* `right`:右侧",
6223
6050
  "value": {
6224
- "type": "boolean"
6051
+ "type": [
6052
+ "'left'",
6053
+ "'right'"
6054
+ ]
6225
6055
  },
6226
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-checked"
6056
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-placement"
6227
6057
  },
6228
6058
  {
6229
- "name": "unchecked-icon",
6230
- "description": "未选中状态的 Material Icons 图标名。也可以通过 `slot=\"unchecked-icon\"` 设置",
6059
+ "name": "alignment",
6060
+ "description": "`<mdui-navigation-rail-item>` 元素的对齐方式。可选值包括:\n\n* `start`:顶部对齐\n* `center`:居中对齐\n* `end`:底部对齐",
6231
6061
  "value": {
6232
- "type": "string"
6062
+ "type": [
6063
+ "'start'",
6064
+ "'center'",
6065
+ "'end'"
6066
+ ]
6233
6067
  },
6234
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-unchecked-icon"
6068
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-alignment"
6235
6069
  },
6236
6070
  {
6237
- "name": "checked-icon",
6238
- "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"checked-icon\"` 设置",
6071
+ "name": "contained",
6072
+ "description": "默认情况下,导航栏相对于 `body` 元素显示。当该参数设置为 `true` 时,导航栏将相对于其父元素显示。\n\n**Note**:设置该属性时,必须在父元素上手动设置样式 `position: relative;`。",
6239
6073
  "value": {
6240
- "type": "string"
6074
+ "type": "boolean"
6241
6075
  },
6242
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-checked-icon"
6076
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-contained"
6243
6077
  },
6244
6078
  {
6245
- "name": "autofocus",
6246
- "description": "是否在页面加载完成后自动获取焦点",
6079
+ "name": "divider",
6080
+ "description": "是否在导航栏和页面内容之间添加分割线",
6247
6081
  "value": {
6248
6082
  "type": "boolean"
6249
6083
  },
6250
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-autofocus"
6084
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-divider"
6251
6085
  },
6252
6086
  {
6253
- "name": "tabindex",
6254
- "description": "元素在使用 Tab 键切换焦点时的顺序",
6087
+ "name": "order",
6088
+ "description": "该组件在 [`<mdui-layout>`](https://www.mdui.org/zh-cn/docs/2/components/layout) 中的布局顺序,按从小到大排序。默认为 `0`",
6255
6089
  "value": {
6256
6090
  "type": "number"
6257
6091
  },
6258
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-tabindex"
6092
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-order"
6259
6093
  }
6260
6094
  ],
6261
6095
  "priority": "highest",
6262
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio",
6096
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail",
6263
6097
  "slots": [
6264
6098
  {
6265
6099
  "name": "",
6266
- "description": "文本内容",
6267
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-slots-default"
6100
+ "description": "`<mdui-navigation-rail-item>` 组件",
6101
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-slots-default"
6268
6102
  },
6269
6103
  {
6270
- "name": "unchecked-icon",
6271
- "description": "未选中状态的图标",
6272
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-slots-unchecked-icon"
6104
+ "name": "top",
6105
+ "description": "顶部的元素",
6106
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-slots-top"
6273
6107
  },
6274
6108
  {
6275
- "name": "checked-icon",
6276
- "description": "选中状态的图标",
6277
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-slots-checked-icon"
6109
+ "name": "bottom",
6110
+ "description": "底部的元素",
6111
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-slots-bottom"
6278
6112
  }
6279
6113
  ],
6280
6114
  "js": {
6281
6115
  "properties": [
6282
6116
  {
6283
6117
  "name": "value",
6284
- "description": "当前单选项的值",
6118
+ "description": "当前选中的 `<mdui-navigation-rail-item>` 的值",
6285
6119
  "value": {
6286
6120
  "type": "string"
6287
6121
  },
6288
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-value"
6289
- },
6290
- {
6291
- "name": "disabled",
6292
- "description": "是否禁用当前单选项",
6293
- "value": {
6294
- "type": "boolean"
6295
- },
6296
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-disabled"
6122
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-value"
6297
6123
  },
6298
6124
  {
6299
- "name": "checked",
6300
- "description": "当前单选项是否已选中",
6125
+ "name": "placement",
6126
+ "description": "导航栏的位置。可选值包括:\n\n* `left`:左侧\n* `right`:右侧",
6301
6127
  "value": {
6302
- "type": "boolean"
6128
+ "type": [
6129
+ "'left'",
6130
+ "'right'"
6131
+ ]
6303
6132
  },
6304
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-checked"
6133
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-placement"
6305
6134
  },
6306
6135
  {
6307
- "name": "uncheckedIcon",
6308
- "description": "未选中状态的 Material Icons 图标名。也可以通过 `slot=\"unchecked-icon\"` 设置",
6136
+ "name": "alignment",
6137
+ "description": "`<mdui-navigation-rail-item>` 元素的对齐方式。可选值包括:\n\n* `start`:顶部对齐\n* `center`:居中对齐\n* `end`:底部对齐",
6309
6138
  "value": {
6310
- "type": "string"
6139
+ "type": [
6140
+ "'start'",
6141
+ "'center'",
6142
+ "'end'"
6143
+ ]
6311
6144
  },
6312
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-uncheckedIcon"
6145
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-alignment"
6313
6146
  },
6314
6147
  {
6315
- "name": "checkedIcon",
6316
- "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"checked-icon\"` 设置",
6148
+ "name": "contained",
6149
+ "description": "默认情况下,导航栏相对于 `body` 元素显示。当该参数设置为 `true` 时,导航栏将相对于其父元素显示。\n\n**Note**:设置该属性时,必须在父元素上手动设置样式 `position: relative;`。",
6317
6150
  "value": {
6318
- "type": "string"
6151
+ "type": "boolean"
6319
6152
  },
6320
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-checkedIcon"
6153
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-contained"
6321
6154
  },
6322
6155
  {
6323
- "name": "autofocus",
6324
- "description": "是否在页面加载完成后自动获取焦点",
6156
+ "name": "divider",
6157
+ "description": "是否在导航栏和页面内容之间添加分割线",
6325
6158
  "value": {
6326
6159
  "type": "boolean"
6327
6160
  },
6328
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-autofocus"
6161
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-divider"
6329
6162
  },
6330
6163
  {
6331
- "name": "tabIndex",
6332
- "description": "元素在使用 Tab 键切换焦点时的顺序",
6164
+ "name": "order",
6165
+ "description": "该组件在 [`<mdui-layout>`](https://www.mdui.org/zh-cn/docs/2/components/layout) 中的布局顺序,按从小到大排序。默认为 `0`",
6333
6166
  "value": {
6334
6167
  "type": "number"
6335
6168
  },
6336
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-tabIndex"
6169
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-attributes-order"
6337
6170
  }
6338
6171
  ],
6339
6172
  "events": [
6340
- {
6341
- "name": "focus",
6342
- "description": "获得焦点时触发",
6343
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-events-focus"
6344
- },
6345
- {
6346
- "name": "blur",
6347
- "description": "失去焦点时触发",
6348
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-events-blur"
6349
- },
6350
6173
  {
6351
6174
  "name": "change",
6352
- "description": "选中该单选项时触发",
6353
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-events-change"
6175
+ "description": "值变化时触发",
6176
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-events-change"
6354
6177
  }
6355
6178
  ]
6356
6179
  },
6357
6180
  "css": {
6358
- "parts": [
6181
+ "properties": [
6359
6182
  {
6360
- "name": "control",
6361
- "description": "左侧图标容器",
6362
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-cssParts-control"
6183
+ "name": "--shape-corner",
6184
+ "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐引用[设计令牌](https://www.mdui.org/zh-cn/docs/2/styles/design-tokens#shape-corner)",
6185
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-cssProperties-shape-corner"
6363
6186
  },
6364
6187
  {
6365
- "name": "unchecked-icon",
6366
- "description": "未选中状态的图标",
6367
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-cssParts-unchecked-icon"
6188
+ "name": "--z-index",
6189
+ "description": "组件的 CSS `z-index` 值",
6190
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-cssProperties-z-index"
6191
+ }
6192
+ ],
6193
+ "parts": [
6194
+ {
6195
+ "name": "top",
6196
+ "description": "顶部元素的容器",
6197
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-cssParts-top"
6368
6198
  },
6369
6199
  {
6370
- "name": "checked-icon",
6371
- "description": "选中状态的图标",
6372
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-cssParts-checked-icon"
6200
+ "name": "bottom",
6201
+ "description": "底部元素的容器",
6202
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-cssParts-bottom"
6373
6203
  },
6374
6204
  {
6375
- "name": "label",
6376
- "description": "文本内容",
6377
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-cssParts-label"
6205
+ "name": "items",
6206
+ "description": "`<mdui-navigation-rail-item>` 组件的容器",
6207
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/navigation-rail#navigation-rail-cssParts-items"
6378
6208
  }
6379
6209
  ]
6380
6210
  }
@@ -6519,6 +6349,188 @@
6519
6349
  ]
6520
6350
  }
6521
6351
  },
6352
+ {
6353
+ "name": "mdui-radio",
6354
+ "description": "单选框组件。需配合 `<mdui-radio-group>` 组件使用\n\n```html\n<mdui-radio-group value=\"chinese\">\n <mdui-radio value=\"chinese\">Chinese</mdui-radio>\n <mdui-radio value=\"english\">English</mdui-radio>\n</mdui-radio-group>\n```",
6355
+ "attributes": [
6356
+ {
6357
+ "name": "value",
6358
+ "description": "当前单选项的值",
6359
+ "value": {
6360
+ "type": "string"
6361
+ },
6362
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-value"
6363
+ },
6364
+ {
6365
+ "name": "disabled",
6366
+ "description": "是否禁用当前单选项",
6367
+ "value": {
6368
+ "type": "boolean"
6369
+ },
6370
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-disabled"
6371
+ },
6372
+ {
6373
+ "name": "checked",
6374
+ "description": "当前单选项是否已选中",
6375
+ "value": {
6376
+ "type": "boolean"
6377
+ },
6378
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-checked"
6379
+ },
6380
+ {
6381
+ "name": "unchecked-icon",
6382
+ "description": "未选中状态的 Material Icons 图标名。也可以通过 `slot=\"unchecked-icon\"` 设置",
6383
+ "value": {
6384
+ "type": "string"
6385
+ },
6386
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-unchecked-icon"
6387
+ },
6388
+ {
6389
+ "name": "checked-icon",
6390
+ "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"checked-icon\"` 设置",
6391
+ "value": {
6392
+ "type": "string"
6393
+ },
6394
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-checked-icon"
6395
+ },
6396
+ {
6397
+ "name": "autofocus",
6398
+ "description": "是否在页面加载完成后自动获取焦点",
6399
+ "value": {
6400
+ "type": "boolean"
6401
+ },
6402
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-autofocus"
6403
+ },
6404
+ {
6405
+ "name": "tabindex",
6406
+ "description": "元素在使用 Tab 键切换焦点时的顺序",
6407
+ "value": {
6408
+ "type": "number"
6409
+ },
6410
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-tabindex"
6411
+ }
6412
+ ],
6413
+ "priority": "highest",
6414
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio",
6415
+ "slots": [
6416
+ {
6417
+ "name": "",
6418
+ "description": "文本内容",
6419
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-slots-default"
6420
+ },
6421
+ {
6422
+ "name": "unchecked-icon",
6423
+ "description": "未选中状态的图标",
6424
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-slots-unchecked-icon"
6425
+ },
6426
+ {
6427
+ "name": "checked-icon",
6428
+ "description": "选中状态的图标",
6429
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-slots-checked-icon"
6430
+ }
6431
+ ],
6432
+ "js": {
6433
+ "properties": [
6434
+ {
6435
+ "name": "value",
6436
+ "description": "当前单选项的值",
6437
+ "value": {
6438
+ "type": "string"
6439
+ },
6440
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-value"
6441
+ },
6442
+ {
6443
+ "name": "disabled",
6444
+ "description": "是否禁用当前单选项",
6445
+ "value": {
6446
+ "type": "boolean"
6447
+ },
6448
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-disabled"
6449
+ },
6450
+ {
6451
+ "name": "checked",
6452
+ "description": "当前单选项是否已选中",
6453
+ "value": {
6454
+ "type": "boolean"
6455
+ },
6456
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-checked"
6457
+ },
6458
+ {
6459
+ "name": "uncheckedIcon",
6460
+ "description": "未选中状态的 Material Icons 图标名。也可以通过 `slot=\"unchecked-icon\"` 设置",
6461
+ "value": {
6462
+ "type": "string"
6463
+ },
6464
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-uncheckedIcon"
6465
+ },
6466
+ {
6467
+ "name": "checkedIcon",
6468
+ "description": "选中状态的 Material Icons 图标名。也可以通过 `slot=\"checked-icon\"` 设置",
6469
+ "value": {
6470
+ "type": "string"
6471
+ },
6472
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-checkedIcon"
6473
+ },
6474
+ {
6475
+ "name": "autofocus",
6476
+ "description": "是否在页面加载完成后自动获取焦点",
6477
+ "value": {
6478
+ "type": "boolean"
6479
+ },
6480
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-autofocus"
6481
+ },
6482
+ {
6483
+ "name": "tabIndex",
6484
+ "description": "元素在使用 Tab 键切换焦点时的顺序",
6485
+ "value": {
6486
+ "type": "number"
6487
+ },
6488
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-attributes-tabIndex"
6489
+ }
6490
+ ],
6491
+ "events": [
6492
+ {
6493
+ "name": "focus",
6494
+ "description": "获得焦点时触发",
6495
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-events-focus"
6496
+ },
6497
+ {
6498
+ "name": "blur",
6499
+ "description": "失去焦点时触发",
6500
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-events-blur"
6501
+ },
6502
+ {
6503
+ "name": "change",
6504
+ "description": "选中该单选项时触发",
6505
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-events-change"
6506
+ }
6507
+ ]
6508
+ },
6509
+ "css": {
6510
+ "parts": [
6511
+ {
6512
+ "name": "control",
6513
+ "description": "左侧图标容器",
6514
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-cssParts-control"
6515
+ },
6516
+ {
6517
+ "name": "unchecked-icon",
6518
+ "description": "未选中状态的图标",
6519
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-cssParts-unchecked-icon"
6520
+ },
6521
+ {
6522
+ "name": "checked-icon",
6523
+ "description": "选中状态的图标",
6524
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-cssParts-checked-icon"
6525
+ },
6526
+ {
6527
+ "name": "label",
6528
+ "description": "文本内容",
6529
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/radio#radio-cssParts-label"
6530
+ }
6531
+ ]
6532
+ }
6533
+ },
6522
6534
  {
6523
6535
  "name": "mdui-range-slider",
6524
6536
  "description": "范围滑块组件\n\n```html\n<mdui-range-slider></mdui-range-slider>\n```",
@@ -6780,9 +6792,200 @@
6780
6792
  "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/range-slider#cssParts-label"
6781
6793
  },
6782
6794
  {
6783
- "name": "tickmark",
6784
- "description": "刻度标记",
6785
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/range-slider#cssParts-tickmark"
6795
+ "name": "tickmark",
6796
+ "description": "刻度标记",
6797
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/range-slider#cssParts-tickmark"
6798
+ }
6799
+ ]
6800
+ }
6801
+ },
6802
+ {
6803
+ "name": "mdui-segmented-button-group",
6804
+ "description": "分段按钮组件。需配合 `<mdui-segmented-button>` 组件使用\n\n```html\n<mdui-segmented-button-group>\n <mdui-segmented-button>Day</mdui-segmented-button>\n <mdui-segmented-button>Week</mdui-segmented-button>\n <mdui-segmented-button>Month</mdui-segmented-button>\n</mdui-segmented-button-group>\n```",
6805
+ "attributes": [
6806
+ {
6807
+ "name": "full-width",
6808
+ "description": "是否填满父元素宽度",
6809
+ "value": {
6810
+ "type": "boolean"
6811
+ },
6812
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-full-width"
6813
+ },
6814
+ {
6815
+ "name": "selects",
6816
+ "description": "分段按钮的可选中状态,默认为不可选中。可选值包括:\n\n* `single`:单选\n* `multiple`:多选",
6817
+ "value": {
6818
+ "type": [
6819
+ "'single'",
6820
+ "'multiple'"
6821
+ ]
6822
+ },
6823
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-selects"
6824
+ },
6825
+ {
6826
+ "name": "disabled",
6827
+ "description": "是否为禁用状态",
6828
+ "value": {
6829
+ "type": "boolean"
6830
+ },
6831
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-disabled"
6832
+ },
6833
+ {
6834
+ "name": "required",
6835
+ "description": "提交表单时,是否必须选中",
6836
+ "value": {
6837
+ "type": "boolean"
6838
+ },
6839
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-required"
6840
+ },
6841
+ {
6842
+ "name": "form",
6843
+ "description": "关联的 `<form>` 元素。此属性值应为同一页面中的一个 `<form>` 元素的 `id`。\n\n如果未指定此属性,则该元素必须是 `<form>` 元素的子元素。通过此属性,你可以将元素放置在页面的任何位置,而不仅仅是 `<form>` 元素的子元素。",
6844
+ "value": {
6845
+ "type": "string"
6846
+ },
6847
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-form"
6848
+ },
6849
+ {
6850
+ "name": "name",
6851
+ "description": "提交表单时的名称,将与表单数据一起提交",
6852
+ "value": {
6853
+ "type": "string"
6854
+ },
6855
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-name"
6856
+ },
6857
+ {
6858
+ "name": "value",
6859
+ "description": "当前选中的 `<mdui-segmented-button>` 的值。\n\n**Note**:该属性的 HTML 属性始终为字符串,且仅在 `selects=\"single\"` 时可以通过 HTML 属性设置初始值。该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串,在 `selects=\"multiple\"` 时为字符串数组。所以,在 `selects=\"multiple\"` 时,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
6860
+ "value": {
6861
+ "type": [
6862
+ "string",
6863
+ "string[]"
6864
+ ]
6865
+ },
6866
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-value"
6867
+ }
6868
+ ],
6869
+ "priority": "highest",
6870
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button",
6871
+ "slots": [
6872
+ {
6873
+ "name": "",
6874
+ "description": "`<mdui-segmented-button>` 组件",
6875
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-slots-default"
6876
+ }
6877
+ ],
6878
+ "js": {
6879
+ "properties": [
6880
+ {
6881
+ "name": "fullWidth",
6882
+ "description": "是否填满父元素宽度",
6883
+ "value": {
6884
+ "type": "boolean"
6885
+ },
6886
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-fullWidth"
6887
+ },
6888
+ {
6889
+ "name": "selects",
6890
+ "description": "分段按钮的可选中状态,默认为不可选中。可选值包括:\n\n* `single`:单选\n* `multiple`:多选",
6891
+ "value": {
6892
+ "type": [
6893
+ "'single'",
6894
+ "'multiple'"
6895
+ ]
6896
+ },
6897
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-selects"
6898
+ },
6899
+ {
6900
+ "name": "disabled",
6901
+ "description": "是否为禁用状态",
6902
+ "value": {
6903
+ "type": "boolean"
6904
+ },
6905
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-disabled"
6906
+ },
6907
+ {
6908
+ "name": "required",
6909
+ "description": "提交表单时,是否必须选中",
6910
+ "value": {
6911
+ "type": "boolean"
6912
+ },
6913
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-required"
6914
+ },
6915
+ {
6916
+ "name": "form",
6917
+ "description": "关联的 `<form>` 元素。此属性值应为同一页面中的一个 `<form>` 元素的 `id`。\n\n如果未指定此属性,则该元素必须是 `<form>` 元素的子元素。通过此属性,你可以将元素放置在页面的任何位置,而不仅仅是 `<form>` 元素的子元素。",
6918
+ "value": {
6919
+ "type": "string"
6920
+ },
6921
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-form"
6922
+ },
6923
+ {
6924
+ "name": "name",
6925
+ "description": "提交表单时的名称,将与表单数据一起提交",
6926
+ "value": {
6927
+ "type": "string"
6928
+ },
6929
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-name"
6930
+ },
6931
+ {
6932
+ "name": "value",
6933
+ "description": "当前选中的 `<mdui-segmented-button>` 的值。\n\n**Note**:该属性的 HTML 属性始终为字符串,且仅在 `selects=\"single\"` 时可以通过 HTML 属性设置初始值。该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串,在 `selects=\"multiple\"` 时为字符串数组。所以,在 `selects=\"multiple\"` 时,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
6934
+ "value": {
6935
+ "type": [
6936
+ "string",
6937
+ "string[]"
6938
+ ]
6939
+ },
6940
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-value"
6941
+ },
6942
+ {
6943
+ "name": "defaultValue",
6944
+ "description": "默认选中的值。在重置表单时,将重置为该默认值。该属性只能通过 JavaScript 属性设置",
6945
+ "value": {
6946
+ "type": [
6947
+ "string",
6948
+ "string[]"
6949
+ ]
6950
+ },
6951
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-defaultValue"
6952
+ },
6953
+ {
6954
+ "name": "validity",
6955
+ "description": "表单验证状态对象,具体参见 [`ValidityState`](https://developer.mozilla.org/zh-CN/docs/Web/API/ValidityState)",
6956
+ "value": {
6957
+ "type": "ValidityState"
6958
+ },
6959
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-validity"
6960
+ },
6961
+ {
6962
+ "name": "validationMessage",
6963
+ "description": "如果表单验证未通过,此属性将包含提示信息。如果验证通过,此属性将为空字符串",
6964
+ "value": {
6965
+ "type": "string"
6966
+ },
6967
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-validationMessage"
6968
+ }
6969
+ ],
6970
+ "events": [
6971
+ {
6972
+ "name": "change",
6973
+ "description": "选中的值变更时触发",
6974
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-events-change"
6975
+ },
6976
+ {
6977
+ "name": "invalid",
6978
+ "description": "表单字段验证未通过时触发",
6979
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-events-invalid"
6980
+ }
6981
+ ]
6982
+ },
6983
+ "css": {
6984
+ "properties": [
6985
+ {
6986
+ "name": "--shape-corner",
6987
+ "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐引用[设计令牌](https://www.mdui.org/zh-cn/docs/2/styles/design-tokens#shape-corner)",
6988
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-cssProperties-shape-corner"
6786
6989
  }
6787
6990
  ]
6788
6991
  }
@@ -7136,300 +7339,79 @@
7136
7339
  "value": {
7137
7340
  "type": "string"
7138
7341
  },
7139
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-value"
7140
- },
7141
- {
7142
- "name": "type",
7143
- "description": "按钮的类型。默认类型为 `button`。可选类型包括:\n\n* `submit`:点击按钮会提交表单数据到服务器\n* `reset`:点击按钮会将表单中的所有字段重置为初始值\n* `button`:此类型的按钮没有默认行为\n\n**Note**:仅在未指定 `href` 属性时,此属性才有效。",
7144
- "value": {
7145
- "type": [
7146
- "'submit'",
7147
- "'reset'",
7148
- "'button'"
7149
- ]
7150
- },
7151
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-type"
7152
- },
7153
- {
7154
- "name": "form",
7155
- "description": "关联的 `<form>` 元素。此属性值应为同一页面中的一个 `<form>` 元素的 `id`。\n\n如果未指定此属性,则该元素必须是 `<form>` 元素的子元素。通过此属性,你可以将元素放置在页面的任何位置,而不仅仅是 `<form>` 元素的子元素。\n\n**Note**:仅在未指定 `href` 属性时,此属性才有效。",
7156
- "value": {
7157
- "type": "string"
7158
- },
7159
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-form"
7160
- },
7161
- {
7162
- "name": "formAction",
7163
- "description": "指定提交表单的 URL。\n\n如果指定了此属性,将覆盖 `<form>` 元素的 `action` 属性。\n\n**Note**:仅在未指定 `href` 属性且 `type=\"submit\"` 时,此属性才有效。",
7164
- "value": {
7165
- "type": "string"
7166
- },
7167
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-formAction"
7168
- },
7169
- {
7170
- "name": "formEnctype",
7171
- "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\"` 时,此属性才有效。",
7172
- "value": {
7173
- "type": [
7174
- "'application/x-www-form-urlencoded'",
7175
- "'multipart/form-data'",
7176
- "'text/plain'"
7177
- ]
7178
- },
7179
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-formEnctype"
7180
- },
7181
- {
7182
- "name": "formMethod",
7183
- "description": "指定提交表单时使用的 HTTP 方法。可选值包括:\n\n* `post`:表单数据包含在表单内容中,发送到服务器\n* `get`:表单数据以 `?` 作为分隔符附加到表单的 URI 属性中,生成的 URI 发送到服务器。当表单没有副作用,并且仅包含 ASCII 字符时,使用此方法\n\n如果设置了此属性,将覆盖 `<form>` 元素的 `method` 属性。\n\n**Note**:仅在未设置 `href` 属性且 `type=\"submit\"` 时,此属性才有效。",
7184
- "value": {
7185
- "type": [
7186
- "'post'",
7187
- "'get'"
7188
- ]
7189
- },
7190
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-formMethod"
7191
- },
7192
- {
7193
- "name": "formNoValidate",
7194
- "description": "如果设置了此属性,表单提交时将不执行表单验证。\n\n如果设置了此属性,将覆盖 `<form>` 元素的 `novalidate` 属性。\n\n**Note**:仅在未设置 `href` 属性且 `type=\"submit\"` 时,此属性才有效。",
7195
- "value": {
7196
- "type": "boolean"
7197
- },
7198
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-formNoValidate"
7199
- },
7200
- {
7201
- "name": "formTarget",
7202
- "description": "提交表单后接收到的响应应显示在何处。可选值包括:\n\n* `_self`:默认选项,在当前框架中打开\n* `_blank`:在新窗口中打开\n* `_parent`:在父框架中打开\n* `_top`:在整个窗口中打开\n\n如果设置了此属性,将覆盖 `<form>` 元素的 `target` 属性。\n\n**Note**:仅在未设置 `href` 属性且 `type=\"submit\"` 时,此属性才有效。",
7203
- "value": {
7204
- "type": [
7205
- "'_self'",
7206
- "'_blank'",
7207
- "'_parent'",
7208
- "'_top'"
7209
- ]
7210
- },
7211
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-formTarget"
7212
- },
7213
- {
7214
- "name": "validity",
7215
- "description": "表单验证状态对象,具体参见 [`ValidityState`](https://developer.mozilla.org/zh-CN/docs/Web/API/ValidityState)",
7216
- "value": {
7217
- "type": "ValidityState"
7218
- },
7219
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-validity"
7220
- },
7221
- {
7222
- "name": "validationMessage",
7223
- "description": "如果表单验证未通过,此属性将包含提示信息。如果验证通过,此属性将为空字符串",
7224
- "value": {
7225
- "type": "string"
7226
- },
7227
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-validationMessage"
7228
- }
7229
- ],
7230
- "events": [
7231
- {
7232
- "name": "focus",
7233
- "description": "获得焦点时触发",
7234
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-events-focus"
7235
- },
7236
- {
7237
- "name": "blur",
7238
- "description": "失去焦点时触发",
7239
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-events-blur"
7240
- },
7241
- {
7242
- "name": "invalid",
7243
- "description": "表单字段验证未通过时触发",
7244
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-events-invalid"
7245
- }
7246
- ]
7247
- },
7248
- "css": {
7249
- "parts": [
7250
- {
7251
- "name": "button",
7252
- "description": "内部的 `<button>` 或 `<a>` 元素",
7253
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-button"
7254
- },
7255
- {
7256
- "name": "icon",
7257
- "description": "左侧的图标",
7258
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-icon"
7259
- },
7260
- {
7261
- "name": "selected-icon",
7262
- "description": "选中状态的左侧图标",
7263
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-selected-icon"
7264
- },
7265
- {
7266
- "name": "end-icon",
7267
- "description": "右侧的图标",
7268
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-end-icon"
7269
- },
7270
- {
7271
- "name": "label",
7272
- "description": "文本内容",
7273
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-label"
7274
- },
7275
- {
7276
- "name": "loading",
7277
- "description": "加载中状态的 `<mdui-circular-progress>` 元素",
7278
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-loading"
7279
- }
7280
- ]
7281
- }
7282
- },
7283
- {
7284
- "name": "mdui-segmented-button-group",
7285
- "description": "分段按钮组件。需配合 `<mdui-segmented-button>` 组件使用\n\n```html\n<mdui-segmented-button-group>\n <mdui-segmented-button>Day</mdui-segmented-button>\n <mdui-segmented-button>Week</mdui-segmented-button>\n <mdui-segmented-button>Month</mdui-segmented-button>\n</mdui-segmented-button-group>\n```",
7286
- "attributes": [
7287
- {
7288
- "name": "full-width",
7289
- "description": "是否填满父元素宽度",
7290
- "value": {
7291
- "type": "boolean"
7292
- },
7293
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-full-width"
7294
- },
7295
- {
7296
- "name": "selects",
7297
- "description": "分段按钮的可选中状态,默认为不可选中。可选值包括:\n\n* `single`:单选\n* `multiple`:多选",
7298
- "value": {
7299
- "type": [
7300
- "'single'",
7301
- "'multiple'"
7302
- ]
7303
- },
7304
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-selects"
7305
- },
7306
- {
7307
- "name": "disabled",
7308
- "description": "是否为禁用状态",
7309
- "value": {
7310
- "type": "boolean"
7311
- },
7312
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-disabled"
7313
- },
7314
- {
7315
- "name": "required",
7316
- "description": "提交表单时,是否必须选中",
7317
- "value": {
7318
- "type": "boolean"
7319
- },
7320
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-required"
7321
- },
7322
- {
7323
- "name": "form",
7324
- "description": "关联的 `<form>` 元素。此属性值应为同一页面中的一个 `<form>` 元素的 `id`。\n\n如果未指定此属性,则该元素必须是 `<form>` 元素的子元素。通过此属性,你可以将元素放置在页面的任何位置,而不仅仅是 `<form>` 元素的子元素。",
7325
- "value": {
7326
- "type": "string"
7327
- },
7328
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-form"
7329
- },
7330
- {
7331
- "name": "name",
7332
- "description": "提交表单时的名称,将与表单数据一起提交",
7333
- "value": {
7334
- "type": "string"
7335
- },
7336
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-name"
7337
- },
7338
- {
7339
- "name": "value",
7340
- "description": "当前选中的 `<mdui-segmented-button>` 的值。\n\n**Note**:该属性的 HTML 属性始终为字符串,且仅在 `selects=\"single\"` 时可以通过 HTML 属性设置初始值。该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串,在 `selects=\"multiple\"` 时为字符串数组。所以,在 `selects=\"multiple\"` 时,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
7341
- "value": {
7342
- "type": [
7343
- "string",
7344
- "string[]"
7345
- ]
7346
- },
7347
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-value"
7348
- }
7349
- ],
7350
- "priority": "highest",
7351
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button",
7352
- "slots": [
7353
- {
7354
- "name": "",
7355
- "description": "`<mdui-segmented-button>` 组件",
7356
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-slots-default"
7357
- }
7358
- ],
7359
- "js": {
7360
- "properties": [
7361
- {
7362
- "name": "fullWidth",
7363
- "description": "是否填满父元素宽度",
7364
- "value": {
7365
- "type": "boolean"
7366
- },
7367
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-fullWidth"
7368
- },
7369
- {
7370
- "name": "selects",
7371
- "description": "分段按钮的可选中状态,默认为不可选中。可选值包括:\n\n* `single`:单选\n* `multiple`:多选",
7372
- "value": {
7373
- "type": [
7374
- "'single'",
7375
- "'multiple'"
7376
- ]
7377
- },
7378
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-selects"
7342
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-value"
7379
7343
  },
7380
7344
  {
7381
- "name": "disabled",
7382
- "description": "是否为禁用状态",
7345
+ "name": "type",
7346
+ "description": "按钮的类型。默认类型为 `button`。可选类型包括:\n\n* `submit`:点击按钮会提交表单数据到服务器\n* `reset`:点击按钮会将表单中的所有字段重置为初始值\n* `button`:此类型的按钮没有默认行为\n\n**Note**:仅在未指定 `href` 属性时,此属性才有效。",
7383
7347
  "value": {
7384
- "type": "boolean"
7348
+ "type": [
7349
+ "'submit'",
7350
+ "'reset'",
7351
+ "'button'"
7352
+ ]
7385
7353
  },
7386
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-disabled"
7354
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-type"
7387
7355
  },
7388
7356
  {
7389
- "name": "required",
7390
- "description": "提交表单时,是否必须选中",
7357
+ "name": "form",
7358
+ "description": "关联的 `<form>` 元素。此属性值应为同一页面中的一个 `<form>` 元素的 `id`。\n\n如果未指定此属性,则该元素必须是 `<form>` 元素的子元素。通过此属性,你可以将元素放置在页面的任何位置,而不仅仅是 `<form>` 元素的子元素。\n\n**Note**:仅在未指定 `href` 属性时,此属性才有效。",
7391
7359
  "value": {
7392
- "type": "boolean"
7360
+ "type": "string"
7393
7361
  },
7394
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-required"
7362
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-form"
7395
7363
  },
7396
7364
  {
7397
- "name": "form",
7398
- "description": "关联的 `<form>` 元素。此属性值应为同一页面中的一个 `<form>` 元素的 `id`。\n\n如果未指定此属性,则该元素必须是 `<form>` 元素的子元素。通过此属性,你可以将元素放置在页面的任何位置,而不仅仅是 `<form>` 元素的子元素。",
7365
+ "name": "formAction",
7366
+ "description": "指定提交表单的 URL。\n\n如果指定了此属性,将覆盖 `<form>` 元素的 `action` 属性。\n\n**Note**:仅在未指定 `href` 属性且 `type=\"submit\"` 时,此属性才有效。",
7399
7367
  "value": {
7400
7368
  "type": "string"
7401
7369
  },
7402
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-form"
7370
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-formAction"
7403
7371
  },
7404
7372
  {
7405
- "name": "name",
7406
- "description": "提交表单时的名称,将与表单数据一起提交",
7373
+ "name": "formEnctype",
7374
+ "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\"` 时,此属性才有效。",
7407
7375
  "value": {
7408
- "type": "string"
7376
+ "type": [
7377
+ "'application/x-www-form-urlencoded'",
7378
+ "'multipart/form-data'",
7379
+ "'text/plain'"
7380
+ ]
7409
7381
  },
7410
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-name"
7382
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-formEnctype"
7411
7383
  },
7412
7384
  {
7413
- "name": "value",
7414
- "description": "当前选中的 `<mdui-segmented-button>` 的值。\n\n**Note**:该属性的 HTML 属性始终为字符串,且仅在 `selects=\"single\"` 时可以通过 HTML 属性设置初始值。该属性的 JavaScript 属性值在 `selects=\"single\"` 时为字符串,在 `selects=\"multiple\"` 时为字符串数组。所以,在 `selects=\"multiple\"` 时,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
7385
+ "name": "formMethod",
7386
+ "description": "指定提交表单时使用的 HTTP 方法。可选值包括:\n\n* `post`:表单数据包含在表单内容中,发送到服务器\n* `get`:表单数据以 `?` 作为分隔符附加到表单的 URI 属性中,生成的 URI 发送到服务器。当表单没有副作用,并且仅包含 ASCII 字符时,使用此方法\n\n如果设置了此属性,将覆盖 `<form>` 元素的 `method` 属性。\n\n**Note**:仅在未设置 `href` 属性且 `type=\"submit\"` 时,此属性才有效。",
7415
7387
  "value": {
7416
7388
  "type": [
7417
- "string",
7418
- "string[]"
7389
+ "'post'",
7390
+ "'get'"
7419
7391
  ]
7420
7392
  },
7421
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-value"
7393
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-formMethod"
7422
7394
  },
7423
7395
  {
7424
- "name": "defaultValue",
7425
- "description": "默认选中的值。在重置表单时,将重置为该默认值。该属性只能通过 JavaScript 属性设置",
7396
+ "name": "formNoValidate",
7397
+ "description": "如果设置了此属性,表单提交时将不执行表单验证。\n\n如果设置了此属性,将覆盖 `<form>` 元素的 `novalidate` 属性。\n\n**Note**:仅在未设置 `href` 属性且 `type=\"submit\"` 时,此属性才有效。",
7398
+ "value": {
7399
+ "type": "boolean"
7400
+ },
7401
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-formNoValidate"
7402
+ },
7403
+ {
7404
+ "name": "formTarget",
7405
+ "description": "提交表单后接收到的响应应显示在何处。可选值包括:\n\n* `_self`:默认选项,在当前框架中打开\n* `_blank`:在新窗口中打开\n* `_parent`:在父框架中打开\n* `_top`:在整个窗口中打开\n\n如果设置了此属性,将覆盖 `<form>` 元素的 `target` 属性。\n\n**Note**:仅在未设置 `href` 属性且 `type=\"submit\"` 时,此属性才有效。",
7426
7406
  "value": {
7427
7407
  "type": [
7428
- "string",
7429
- "string[]"
7408
+ "'_self'",
7409
+ "'_blank'",
7410
+ "'_parent'",
7411
+ "'_top'"
7430
7412
  ]
7431
7413
  },
7432
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-defaultValue"
7414
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-formTarget"
7433
7415
  },
7434
7416
  {
7435
7417
  "name": "validity",
@@ -7437,7 +7419,7 @@
7437
7419
  "value": {
7438
7420
  "type": "ValidityState"
7439
7421
  },
7440
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-validity"
7422
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-validity"
7441
7423
  },
7442
7424
  {
7443
7425
  "name": "validationMessage",
@@ -7445,28 +7427,58 @@
7445
7427
  "value": {
7446
7428
  "type": "string"
7447
7429
  },
7448
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-attributes-validationMessage"
7430
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-attributes-validationMessage"
7449
7431
  }
7450
7432
  ],
7451
7433
  "events": [
7452
7434
  {
7453
- "name": "change",
7454
- "description": "选中的值变更时触发",
7455
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-events-change"
7435
+ "name": "focus",
7436
+ "description": "获得焦点时触发",
7437
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-events-focus"
7438
+ },
7439
+ {
7440
+ "name": "blur",
7441
+ "description": "失去焦点时触发",
7442
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-events-blur"
7456
7443
  },
7457
7444
  {
7458
7445
  "name": "invalid",
7459
7446
  "description": "表单字段验证未通过时触发",
7460
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-events-invalid"
7447
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-events-invalid"
7461
7448
  }
7462
7449
  ]
7463
7450
  },
7464
7451
  "css": {
7465
- "properties": [
7452
+ "parts": [
7466
7453
  {
7467
- "name": "--shape-corner",
7468
- "description": "组件的圆角大小。可以指定一个具体的像素值;但更推荐引用[设计令牌](https://www.mdui.org/zh-cn/docs/2/styles/design-tokens#shape-corner)",
7469
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-group-cssProperties-shape-corner"
7454
+ "name": "button",
7455
+ "description": "内部的 `<button>` 或 `<a>` 元素",
7456
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-button"
7457
+ },
7458
+ {
7459
+ "name": "icon",
7460
+ "description": "左侧的图标",
7461
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-icon"
7462
+ },
7463
+ {
7464
+ "name": "selected-icon",
7465
+ "description": "选中状态的左侧图标",
7466
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-selected-icon"
7467
+ },
7468
+ {
7469
+ "name": "end-icon",
7470
+ "description": "右侧的图标",
7471
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-end-icon"
7472
+ },
7473
+ {
7474
+ "name": "label",
7475
+ "description": "文本内容",
7476
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-label"
7477
+ },
7478
+ {
7479
+ "name": "loading",
7480
+ "description": "加载中状态的 `<mdui-circular-progress>` 元素",
7481
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/segmented-button#segmented-button-cssParts-loading"
7470
7482
  }
7471
7483
  ]
7472
7484
  }
@@ -8868,6 +8880,41 @@
8868
8880
  ]
8869
8881
  }
8870
8882
  },
8883
+ {
8884
+ "name": "mdui-tab-panel",
8885
+ "description": "选项卡面板项组件。需配合 `<mdui-tabs>` 和 `<mdui-tab>` 组件使用\n\n```html\n<mdui-tabs value=\"tab-1\">\n <mdui-tab value=\"tab-1\">Tab 1</mdui-tab>\n <mdui-tab value=\"tab-2\">Tab 2</mdui-tab>\n <mdui-tab value=\"tab-3\">Tab 3</mdui-tab>\n\n <mdui-tab-panel slot=\"panel\" value=\"tab-1\">Panel 1</mdui-tab-panel>\n <mdui-tab-panel slot=\"panel\" value=\"tab-2\">Panel 2</mdui-tab-panel>\n <mdui-tab-panel slot=\"panel\" value=\"tab-3\">Panel 3</mdui-tab-panel>\n</mdui-tabs>\n```",
8886
+ "attributes": [
8887
+ {
8888
+ "name": "value",
8889
+ "description": "选项卡面板项的值",
8890
+ "value": {
8891
+ "type": "string"
8892
+ },
8893
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/tabs#tab-panel-attributes-value"
8894
+ }
8895
+ ],
8896
+ "priority": "highest",
8897
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/tabs",
8898
+ "slots": [
8899
+ {
8900
+ "name": "",
8901
+ "description": "选项卡面板项内容",
8902
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/tabs#tab-panel-slots-default"
8903
+ }
8904
+ ],
8905
+ "js": {
8906
+ "properties": [
8907
+ {
8908
+ "name": "value",
8909
+ "description": "选项卡面板项的值",
8910
+ "value": {
8911
+ "type": "string"
8912
+ },
8913
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/tabs#tab-panel-attributes-value"
8914
+ }
8915
+ ]
8916
+ }
8917
+ },
8871
8918
  {
8872
8919
  "name": "mdui-tab",
8873
8920
  "description": "选项卡导航项组件。需配合 `<mdui-tabs>` 和 `<mdui-tab-panel>` 组件使用\n\n```html\n<mdui-tabs value=\"tab-1\">\n <mdui-tab value=\"tab-1\">Tab 1</mdui-tab>\n <mdui-tab value=\"tab-2\">Tab 2</mdui-tab>\n <mdui-tab value=\"tab-3\">Tab 3</mdui-tab>\n\n <mdui-tab-panel slot=\"panel\" value=\"tab-1\">Panel 1</mdui-tab-panel>\n <mdui-tab-panel slot=\"panel\" value=\"tab-2\">Panel 2</mdui-tab-panel>\n <mdui-tab-panel slot=\"panel\" value=\"tab-3\">Panel 3</mdui-tab-panel>\n</mdui-tabs>\n```",
@@ -9013,41 +9060,6 @@
9013
9060
  ]
9014
9061
  }
9015
9062
  },
9016
- {
9017
- "name": "mdui-tab-panel",
9018
- "description": "选项卡面板项组件。需配合 `<mdui-tabs>` 和 `<mdui-tab>` 组件使用\n\n```html\n<mdui-tabs value=\"tab-1\">\n <mdui-tab value=\"tab-1\">Tab 1</mdui-tab>\n <mdui-tab value=\"tab-2\">Tab 2</mdui-tab>\n <mdui-tab value=\"tab-3\">Tab 3</mdui-tab>\n\n <mdui-tab-panel slot=\"panel\" value=\"tab-1\">Panel 1</mdui-tab-panel>\n <mdui-tab-panel slot=\"panel\" value=\"tab-2\">Panel 2</mdui-tab-panel>\n <mdui-tab-panel slot=\"panel\" value=\"tab-3\">Panel 3</mdui-tab-panel>\n</mdui-tabs>\n```",
9019
- "attributes": [
9020
- {
9021
- "name": "value",
9022
- "description": "选项卡面板项的值",
9023
- "value": {
9024
- "type": "string"
9025
- },
9026
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/tabs#tab-panel-attributes-value"
9027
- }
9028
- ],
9029
- "priority": "highest",
9030
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/tabs",
9031
- "slots": [
9032
- {
9033
- "name": "",
9034
- "description": "选项卡面板项内容",
9035
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/tabs#tab-panel-slots-default"
9036
- }
9037
- ],
9038
- "js": {
9039
- "properties": [
9040
- {
9041
- "name": "value",
9042
- "description": "选项卡面板项的值",
9043
- "value": {
9044
- "type": "string"
9045
- },
9046
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/tabs#tab-panel-attributes-value"
9047
- }
9048
- ]
9049
- }
9050
- },
9051
9063
  {
9052
9064
  "name": "mdui-tabs",
9053
9065
  "description": "选项卡组件。需配合 `<mdui-tab>` 和 `<mdui-tab-panel>` 组件使用\n\n```html\n<mdui-tabs value=\"tab-1\">\n <mdui-tab value=\"tab-1\">Tab 1</mdui-tab>\n <mdui-tab value=\"tab-2\">Tab 2</mdui-tab>\n <mdui-tab value=\"tab-3\">Tab 3</mdui-tab>\n\n <mdui-tab-panel slot=\"panel\" value=\"tab-1\">Panel 1</mdui-tab-panel>\n <mdui-tab-panel slot=\"panel\" value=\"tab-2\">Panel 2</mdui-tab-panel>\n <mdui-tab-panel slot=\"panel\" value=\"tab-3\">Panel 3</mdui-tab-panel>\n</mdui-tabs>\n```",
@@ -10462,6 +10474,42 @@
10462
10474
  ]
10463
10475
  }
10464
10476
  },
10477
+ {
10478
+ "name": "mdui-top-app-bar-title",
10479
+ "description": "顶部应用栏标题组件。需配合 `<mdui-top-app-bar>` 组件使用\n\n```html\n<mdui-top-app-bar>\n <mdui-button-icon icon=\"menu\"></mdui-button-icon>\n <mdui-top-app-bar-title>Title</mdui-top-app-bar-title>\n <div style=\"flex-grow: 1\"></div>\n <mdui-button-icon icon=\"more_vert\"></mdui-button-icon>\n</mdui-top-app-bar>\n```",
10480
+ "attributes": [],
10481
+ "priority": "highest",
10482
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/top-app-bar",
10483
+ "slots": [
10484
+ {
10485
+ "name": "",
10486
+ "description": "顶部应用栏的标题文本",
10487
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/top-app-bar#top-app-bar-title-slots-default"
10488
+ },
10489
+ {
10490
+ "name": "label-large",
10491
+ "description": "展开状态下的标题文本",
10492
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/top-app-bar#top-app-bar-title-slots-label-large"
10493
+ }
10494
+ ],
10495
+ "js": {
10496
+ "properties": []
10497
+ },
10498
+ "css": {
10499
+ "parts": [
10500
+ {
10501
+ "name": "label",
10502
+ "description": "标题文本",
10503
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/top-app-bar#top-app-bar-title-cssParts-label"
10504
+ },
10505
+ {
10506
+ "name": "label-large",
10507
+ "description": "展开状态下的标题文本",
10508
+ "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/top-app-bar#top-app-bar-title-cssParts-label-large"
10509
+ }
10510
+ ]
10511
+ }
10512
+ },
10465
10513
  {
10466
10514
  "name": "mdui-top-app-bar",
10467
10515
  "description": "顶部应用栏组件\n\n```html\n<mdui-top-app-bar>\n <mdui-button-icon icon=\"menu\"></mdui-button-icon>\n <mdui-top-app-bar-title>Title</mdui-top-app-bar-title>\n <div style=\"flex-grow: 1\"></div>\n <mdui-button-icon icon=\"more_vert\"></mdui-button-icon>\n</mdui-top-app-bar>\n```",
@@ -10654,38 +10702,6 @@
10654
10702
  }
10655
10703
  ]
10656
10704
  }
10657
- },
10658
- {
10659
- "name": "mdui-top-app-bar-title",
10660
- "description": "顶部应用栏标题组件。需配合 `<mdui-top-app-bar>` 组件使用\n\n```html\n<mdui-top-app-bar>\n <mdui-button-icon icon=\"menu\"></mdui-button-icon>\n <mdui-top-app-bar-title>Title</mdui-top-app-bar-title>\n <div style=\"flex-grow: 1\"></div>\n <mdui-button-icon icon=\"more_vert\"></mdui-button-icon>\n</mdui-top-app-bar>\n```",
10661
- "priority": "highest",
10662
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/top-app-bar",
10663
- "slots": [
10664
- {
10665
- "name": "",
10666
- "description": "顶部应用栏的标题文本",
10667
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/top-app-bar#top-app-bar-title-slots-default"
10668
- },
10669
- {
10670
- "name": "label-large",
10671
- "description": "展开状态下的标题文本",
10672
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/top-app-bar#top-app-bar-title-slots-label-large"
10673
- }
10674
- ],
10675
- "css": {
10676
- "parts": [
10677
- {
10678
- "name": "label",
10679
- "description": "标题文本",
10680
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/top-app-bar#top-app-bar-title-cssParts-label"
10681
- },
10682
- {
10683
- "name": "label-large",
10684
- "description": "展开状态下的标题文本",
10685
- "doc-url": "https://www.mdui.org/zh-cn/docs/2/components/top-app-bar#top-app-bar-title-cssParts-label-large"
10686
- }
10687
- ]
10688
- }
10689
10705
  }
10690
10706
  ]
10691
10707
  },