@fle-ui/next 1.0.0-alpha.12 → 1.0.0-alpha.13

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 (164) hide show
  1. package/.history/package_20211011190148.json +141 -0
  2. package/.history/package_20211011193053.json +141 -0
  3. package/dist/@fle-ui/next.css +2 -2
  4. package/dist/@fle-ui/next.css.map +1 -1
  5. package/dist/@fle-ui/next.js +1 -1
  6. package/dist/@fle-ui/next.min.css +2 -2
  7. package/dist/@fle-ui/next.min.css.map +1 -1
  8. package/dist/@fle-ui/next.min.js +1 -1
  9. package/docs-dist/components__affix__affix.md.js +701 -1
  10. package/docs-dist/components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~00d1741d.js +22482 -1
  11. package/docs-dist/components__alert__alert.md.js +942 -1
  12. package/docs-dist/components__anchor__anchor.md.js +789 -1
  13. package/docs-dist/components__auto-complete__autoComplete.md.js +1145 -1
  14. package/docs-dist/components__avatar__avatar.md.js +854 -1
  15. package/docs-dist/components__back-top__backTop.md.js +581 -1
  16. package/docs-dist/components__badge__badge.md.js +972 -1
  17. package/docs-dist/components__breadcrumb__breadcrumb.md.js +914 -1
  18. package/docs-dist/components__button__button.md.js +1037 -1
  19. package/docs-dist/components__calendar__calendar.md.js +897 -1
  20. package/docs-dist/components__card__card.md.js +1106 -1
  21. package/docs-dist/components__carousel__carousel.md.js +770 -1
  22. package/docs-dist/components__cascader__cascader.md.js +1378 -1
  23. package/docs-dist/components__checkbox__checkbox.md.js +876 -1
  24. package/docs-dist/components__collapse__collapse.md.js +959 -1
  25. package/docs-dist/components__comment__comment.md.js +586 -1
  26. package/docs-dist/components__config-provider__configProvider.md.js +1055 -1
  27. package/docs-dist/components__date-picker__date-picker.md.js +2622 -1
  28. package/docs-dist/components__descriptions__descriptions.md.js +863 -1
  29. package/docs-dist/components__divider__divider.md.js +681 -1
  30. package/docs-dist/components__drawer__drawer.md.js +997 -1
  31. package/docs-dist/components__dropdown__dropdown.md.js +1170 -1
  32. package/docs-dist/components__empty__empty.md.js +692 -1
  33. package/docs-dist/components__form__form.md.js +4099 -1
  34. package/docs-dist/components__grid__grid.md.js +999 -1
  35. package/docs-dist/components__icon__icon.md.js +739 -1
  36. package/docs-dist/components__image__image.md.js +745 -1
  37. package/docs-dist/components__input-number__inputNumber.md.js +1006 -1
  38. package/docs-dist/components__input__input.md.js +1579 -1
  39. package/docs-dist/components__layout__layout.md.js +1220 -1
  40. package/docs-dist/components__list__list.md.js +1255 -1
  41. package/docs-dist/components__mentions__mentions.md.js +943 -1
  42. package/docs-dist/components__menu__menu.md.js +1370 -1
  43. package/docs-dist/components__message__message.md.js +1223 -1
  44. package/docs-dist/components__modal__modal.md.js +1808 -1
  45. package/docs-dist/components__notification__notification.md.js +1192 -1
  46. package/docs-dist/components__page-header__page-header.md.js +781 -1
  47. package/docs-dist/components__pagination__pagination.md.js +954 -1
  48. package/docs-dist/components__popconfirm__popconfirm.md.js +792 -1
  49. package/docs-dist/components__popover__popover.md.js +665 -1
  50. package/docs-dist/components__progress__progress.md.js +1139 -1
  51. package/docs-dist/components__radio__radio.md.js +999 -1
  52. package/docs-dist/components__rate__rate.md.js +851 -1
  53. package/docs-dist/components__result__result.md.js +681 -1
  54. package/docs-dist/components__select__select.md.js +2081 -1
  55. package/docs-dist/components__slider__slider.md.js +1053 -1
  56. package/docs-dist/components__space__space.md.js +746 -1
  57. package/docs-dist/components__spin__spin.md.js +730 -1
  58. package/docs-dist/components__statistic__statistic.md.js +827 -1
  59. package/docs-dist/components__steps__steps.md.js +1097 -1
  60. package/docs-dist/components__switch__switch.md.js +763 -1
  61. package/docs-dist/components__table__table.md.js +3692 -1
  62. package/docs-dist/components__tabs__tabs.md.js +1213 -1
  63. package/docs-dist/components__tag__tag.md.js +779 -1
  64. package/docs-dist/components__time-picker__time-picker.md.js +1232 -1
  65. package/docs-dist/components__timeline__timeline.md.js +799 -1
  66. package/docs-dist/components__tooltip__tooltip.md.js +888 -1
  67. package/docs-dist/components__transfer__transfer.md.js +1226 -1
  68. package/docs-dist/components__tree-select__tree-select.md.js +1042 -1
  69. package/docs-dist/components__typography__typography.md.js +1793 -1
  70. package/docs-dist/components__upload__upload.md.js +1798 -1
  71. package/docs-dist/demos_bmurcdaerb.js +603 -1
  72. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.chunk.css +1 -1
  73. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.js +21570 -1
  74. package/docs-dist/demos_citsitats.js +549 -1
  75. package/docs-dist/demos_daolpu.chunk.css +1 -1
  76. package/docs-dist/demos_daolpu.js +22680 -1
  77. package/docs-dist/demos_dirg.js +47 -1
  78. package/docs-dist/demos_drac.js +748 -1
  79. package/docs-dist/demos_ecaps.js +529 -1
  80. package/docs-dist/demos_egami.js +153 -1
  81. package/docs-dist/demos_egassem.js +187 -1
  82. package/docs-dist/demos_egdab.js +872 -1
  83. package/docs-dist/demos_elbat.chunk.css +1 -1
  84. package/docs-dist/demos_elbat.js +27626 -1
  85. package/docs-dist/demos_enilemit.js +627 -1
  86. package/docs-dist/demos_espalloc.js +705 -1
  87. package/docs-dist/demos_etar.js +547 -1
  88. package/docs-dist/demos_etelpmoc-otua.js +613 -1
  89. package/docs-dist/demos_gat.js +487 -1
  90. package/docs-dist/demos_hctiws.js +439 -1
  91. package/docs-dist/demos_ladom.js +791 -1
  92. package/docs-dist/demos_lesuorac.js +193 -1
  93. package/docs-dist/demos_mrifnocpop.js +671 -1
  94. package/docs-dist/demos_mrof.js +3082 -1
  95. package/docs-dist/demos_nips.js +461 -1
  96. package/docs-dist/demos_noitacifiton.js +765 -1
  97. package/docs-dist/demos_noitanigap.js +233 -1
  98. package/docs-dist/demos_nottub.js +847 -1
  99. package/docs-dist/demos_nwodpord.js +965 -1
  100. package/docs-dist/demos_oidar.js +340 -1
  101. package/docs-dist/demos_pitloot.js +204 -1
  102. package/docs-dist/demos_pot-kcab.js +62 -1
  103. package/docs-dist/demos_radnelac.js +285 -1
  104. package/docs-dist/demos_ratava.js +647 -1
  105. package/docs-dist/demos_rebmun-tupni.js +209 -1
  106. package/docs-dist/demos_redacsac.js +576 -1
  107. package/docs-dist/demos_redaeh-egap.js +761 -1
  108. package/docs-dist/demos_redils.js +659 -1
  109. package/docs-dist/demos_redivid.js +167 -1
  110. package/docs-dist/demos_redivorp-gifnoc.js +2154 -1
  111. package/docs-dist/demos_refsnart.js +774 -1
  112. package/docs-dist/demos_rekcip-emit.js +183 -1
  113. package/docs-dist/demos_rekcip-etad.js +469 -1
  114. package/docs-dist/demos_revopop.js +335 -1
  115. package/docs-dist/demos_reward.js +484 -1
  116. package/docs-dist/demos_rohcna.js +194 -1
  117. package/docs-dist/demos_sbat.chunk.css +1 -1
  118. package/docs-dist/demos_sbat.js +22358 -1
  119. package/docs-dist/demos_snoitnem.js +202 -1
  120. package/docs-dist/demos_snoitpircsed.js +351 -1
  121. package/docs-dist/demos_spets.js +910 -1
  122. package/docs-dist/demos_ssergorp.js +698 -1
  123. package/docs-dist/demos_tceles.js +1416 -1
  124. package/docs-dist/demos_tluser.js +530 -1
  125. package/docs-dist/demos_tnemmoc.js +560 -1
  126. package/docs-dist/demos_trela.js +341 -1
  127. package/docs-dist/demos_tsil.js +603 -1
  128. package/docs-dist/demos_tuoyal.js +872 -1
  129. package/docs-dist/demos_tupni.js +1245 -1
  130. package/docs-dist/demos_unem.js +1012 -1
  131. package/docs-dist/demos_xiffa.js +93 -1
  132. package/docs-dist/demos_xobkcehc.js +186 -1
  133. package/docs-dist/demos_yhpargopyt.js +798 -1
  134. package/docs-dist/demos_ytpme.js +433 -1
  135. package/docs-dist/docs__document__getting-started.md.js +193 -1
  136. package/docs-dist/docs__document__introduce.md.js +441 -1
  137. package/docs-dist/docs__document__practical-projects.md.js +117 -1
  138. package/docs-dist/docs__index.md.js +27 -1
  139. package/docs-dist/docs__story__index.md.js +89 -1
  140. package/docs-dist/dumi_demos.js +456 -1
  141. package/docs-dist/umi.js +28727 -1
  142. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~3ba4f4a1.js +2590 -1
  143. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~ac3aca9a.js +8970 -1
  144. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~e29e5a37.js +2619 -1
  145. package/docs-dist/vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_egami~~4cc402e9.js +57323 -1
  146. package/docs-dist/vendors~demos_daolpu~demos_elbat.js +1649 -1
  147. package/docs-dist/vendors~demos_daolpu~demos_elbat~demos_sbat.js +4169 -1
  148. package/docs-dist/vendors~demos_gat.js +4673 -1
  149. package/docs-dist/vendors~demos_ladom.js +1855 -1
  150. package/docs-dist/vendors~demos_redivorp-gifnoc.js +9666 -1
  151. package/docs-dist/vendors~demos_sbat.js +1601 -1
  152. package/docs-dist/vendors~demos_trela.js +1722 -1
  153. package/docs-dist/vendors~demos_tsil.js +4970 -1
  154. package/docs-dist/vendors~demos_tuoyal.js +748 -1
  155. package/docs-dist/vendors~wrappers.js +1360 -1
  156. package/docs-dist/wrappers.js +21 -1
  157. package/es/drawer/style/drawer.less +8 -4
  158. package/es/drawer/style/index.css +1 -1
  159. package/es/style/themes/default.less +57 -29
  160. package/lib/drawer/style/drawer.less +8 -4
  161. package/lib/drawer/style/index.css +1 -1
  162. package/lib/style/themes/default.less +57 -29
  163. package/package.json +1 -1
  164. package/report.html +1 -1
@@ -1 +1,1170 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[29],{MZF8:function(e,t,n){"use strict";var a=n("ogwx");n.d(t,"a",(function(){return a["b"]}));n("VCU9")},RZMt:function(e,t,n){},YUrG:function(e,t,n){"use strict";n.r(t);var a=n("q1tI"),l=n.n(a),r=n("dEAq"),c=n("Zxc8"),o=n("JjdP"),d=l.a.memo(o["default"]["dropdown-basic"].component),m=l.a.memo(o["default"]["dropdown-placement"].component),u=l.a.memo(o["default"]["dropdown-arrow"].component),i=l.a.memo(o["default"]["dropdown-item"].component),E=l.a.memo(o["default"]["dropdown-trigger"].component),s=l.a.memo(o["default"]["dropdown-event"].component),p=l.a.memo(o["default"]["dropdown-dropdownbutton"].component),f=l.a.memo(o["default"]["dropdown-submenu"].component),b=l.a.memo(o["default"]["dropdown-overlayvisible"].component),h=l.a.memo(o["default"]["dropdown-contextmenu"].component);t["default"]=e=>(l.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&r["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),l.a.createElement(l.a.Fragment,null,l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"markdown"},l.a.createElement("h1",{id:"dropdown-\u4e0b\u62c9\u83dc\u5355"},l.a.createElement(r["AnchorLink"],{to:"#dropdown-\u4e0b\u62c9\u83dc\u5355","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"Dropdown \u4e0b\u62c9\u83dc\u5355"),l.a.createElement("p",null,"\u5411\u4e0b\u5f39\u51fa\u7684\u5217\u8868\u3002"),l.a.createElement("h2",{id:"\u4f55\u65f6\u4f7f\u7528"},l.a.createElement(r["AnchorLink"],{to:"#\u4f55\u65f6\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u4f55\u65f6\u4f7f\u7528"),l.a.createElement("p",null,"\u5f53\u9875\u9762\u4e0a\u7684\u64cd\u4f5c\u547d\u4ee4\u8fc7\u591a\u65f6\uff0c\u7528\u6b64\u7ec4\u4ef6\u53ef\u4ee5\u6536\u7eb3\u64cd\u4f5c\u5143\u7d20\u3002\u70b9\u51fb\u6216\u79fb\u5165\u89e6\u70b9\uff0c\u4f1a\u51fa\u73b0\u4e00\u4e2a\u4e0b\u62c9\u83dc\u5355\u3002\u53ef\u5728\u5217\u8868\u4e2d\u8fdb\u884c\u9009\u62e9\uff0c\u5e76\u6267\u884c\u76f8\u5e94\u7684\u547d\u4ee4\u3002"),l.a.createElement("ul",null,l.a.createElement("li",null,"\u7528\u4e8e\u6536\u7f57\u4e00\u7ec4\u547d\u4ee4\u64cd\u4f5c\u3002"),l.a.createElement("li",null,"Select \u7528\u4e8e\u9009\u62e9\uff0c\u800c Dropdown \u662f\u547d\u4ee4\u96c6\u5408\u3002")),l.a.createElement("h2",{id:"\u4ee3\u7801\u6f14\u793a"},l.a.createElement(r["AnchorLink"],{to:"#\u4ee3\u7801\u6f14\u793a","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u4ee3\u7801\u6f14\u793a"),l.a.createElement("h3",{id:"\u57fa\u672c"},l.a.createElement(r["AnchorLink"],{to:"#\u57fa\u672c","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u57fa\u672c")),l.a.createElement(c["default"],o["default"]["dropdown-basic"].previewerProps,l.a.createElement(d,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u5f39\u51fa\u4f4d\u7f6e"},l.a.createElement(r["AnchorLink"],{to:"#\u5f39\u51fa\u4f4d\u7f6e","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u5f39\u51fa\u4f4d\u7f6e")),l.a.createElement(c["default"],o["default"]["dropdown-placement"].previewerProps,l.a.createElement(m,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u7bad\u5934"},l.a.createElement(r["AnchorLink"],{to:"#\u7bad\u5934","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u7bad\u5934")),l.a.createElement(c["default"],o["default"]["dropdown-arrow"].previewerProps,l.a.createElement(u,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u5176\u4ed6\u5143\u7d20"},l.a.createElement(r["AnchorLink"],{to:"#\u5176\u4ed6\u5143\u7d20","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u5176\u4ed6\u5143\u7d20")),l.a.createElement(c["default"],o["default"]["dropdown-item"].previewerProps,l.a.createElement(i,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u89e6\u53d1\u65b9\u5f0f"},l.a.createElement(r["AnchorLink"],{to:"#\u89e6\u53d1\u65b9\u5f0f","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u89e6\u53d1\u65b9\u5f0f")),l.a.createElement(c["default"],o["default"]["dropdown-trigger"].previewerProps,l.a.createElement(E,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u89e6\u53d1\u4e8b\u4ef6"},l.a.createElement(r["AnchorLink"],{to:"#\u89e6\u53d1\u4e8b\u4ef6","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u89e6\u53d1\u4e8b\u4ef6")),l.a.createElement(c["default"],o["default"]["dropdown-event"].previewerProps,l.a.createElement(s,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u5e26\u4e0b\u62c9\u6846\u7684\u6309\u94ae"},l.a.createElement(r["AnchorLink"],{to:"#\u5e26\u4e0b\u62c9\u6846\u7684\u6309\u94ae","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u5e26\u4e0b\u62c9\u6846\u7684\u6309\u94ae")),l.a.createElement(c["default"],o["default"]["dropdown-dropdownbutton"].previewerProps,l.a.createElement(p,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u591a\u7ea7\u83dc\u5355"},l.a.createElement(r["AnchorLink"],{to:"#\u591a\u7ea7\u83dc\u5355","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u591a\u7ea7\u83dc\u5355")),l.a.createElement(c["default"],o["default"]["dropdown-submenu"].previewerProps,l.a.createElement(f,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u83dc\u5355\u9690\u85cf\u65b9\u5f0f"},l.a.createElement(r["AnchorLink"],{to:"#\u83dc\u5355\u9690\u85cf\u65b9\u5f0f","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u83dc\u5355\u9690\u85cf\u65b9\u5f0f")),l.a.createElement(c["default"],o["default"]["dropdown-overlayvisible"].previewerProps,l.a.createElement(b,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u53f3\u952e\u83dc\u5355"},l.a.createElement(r["AnchorLink"],{to:"#\u53f3\u952e\u83dc\u5355","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u53f3\u952e\u83dc\u5355")),l.a.createElement(c["default"],o["default"]["dropdown-contextmenu"].previewerProps,l.a.createElement(h,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h2",{id:"api"},l.a.createElement(r["AnchorLink"],{to:"#api","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"API"),l.a.createElement("p",null,"\u5c5e\u6027\u5982\u4e0b"),l.a.createElement("table",null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,"\u53c2\u6570"),l.a.createElement("th",null,"\u8bf4\u660e"),l.a.createElement("th",null,"\u7c7b\u578b"),l.a.createElement("th",null,"\u9ed8\u8ba4\u503c"),l.a.createElement("th",null,"\u7248\u672c"))),l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,"arrow"),l.a.createElement("td",null,"\u4e0b\u62c9\u6846\u7bad\u5934\u662f\u5426\u663e\u793a"),l.a.createElement("td",null,"boolean"),l.a.createElement("td",null,"false"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"disabled"),l.a.createElement("td",null,"\u83dc\u5355\u662f\u5426\u7981\u7528"),l.a.createElement("td",null,"boolean"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"destroyPopupOnHide"),l.a.createElement("td",null,"\u5173\u95ed\u540e\u662f\u5426\u9500\u6bc1 Dropdown"),l.a.createElement("td",null,"boolean"),l.a.createElement("td",null,"false"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"getPopupContainer"),l.a.createElement("td",null,"\u83dc\u5355\u6e32\u67d3\u7236\u8282\u70b9\u3002\u9ed8\u8ba4\u6e32\u67d3\u5230 body \u4e0a\uff0c\u5982\u679c\u4f60\u9047\u5230\u83dc\u5355\u6eda\u52a8\u5b9a\u4f4d\u95ee\u9898\uff0c\u8bd5\u8bd5\u4fee\u6539\u4e3a\u6eda\u52a8\u7684\u533a\u57df\uff0c\u5e76\u76f8\u5bf9\u5176\u5b9a\u4f4d\u3002",l.a.createElement(r["Link"],{to:"https://codepen.io/afc163/pen/zEjNOy?editors=0010"},"\u793a\u4f8b")),l.a.createElement("td",null,"(triggerNode: HTMLElement) => HTMLElement"),l.a.createElement("td",null,"() => document.body"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"overlay"),l.a.createElement("td",null,"\u83dc\u5355"),l.a.createElement("td",null,l.a.createElement(r["Link"],{to:"/components/menu"},"Menu")," | () => Menu"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"overlayClassName"),l.a.createElement("td",null,"\u4e0b\u62c9\u6839\u5143\u7d20\u7684\u7c7b\u540d\u79f0"),l.a.createElement("td",null,"string"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"overlayStyle"),l.a.createElement("td",null,"\u4e0b\u62c9\u6839\u5143\u7d20\u7684\u6837\u5f0f"),l.a.createElement("td",null,"CSSProperties"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"placement"),l.a.createElement("td",null,"\u83dc\u5355\u5f39\u51fa\u4f4d\u7f6e\uff1a",l.a.createElement("code",null,"bottomLeft")," ",l.a.createElement("code",null,"bottomCenter")," ",l.a.createElement("code",null,"bottomRight")," ",l.a.createElement("code",null,"topLeft")," ",l.a.createElement("code",null,"topCenter")," ",l.a.createElement("code",null,"topRight")),l.a.createElement("td",null,"string"),l.a.createElement("td",null,l.a.createElement("code",null,"bottomLeft")),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"trigger"),l.a.createElement("td",null,"\u89e6\u53d1\u4e0b\u62c9\u7684\u884c\u4e3a, \u79fb\u52a8\u7aef\u4e0d\u652f\u6301 hover"),l.a.createElement("td",null,"Array<",l.a.createElement("code",null,"click"),"|",l.a.createElement("code",null,"hover"),"|",l.a.createElement("code",null,"contextMenu"),">"),l.a.createElement("td",null,"[",l.a.createElement("code",null,"hover"),"]"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"visible"),l.a.createElement("td",null,"\u83dc\u5355\u662f\u5426\u663e\u793a"),l.a.createElement("td",null,"boolean"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"onVisibleChange"),l.a.createElement("td",null,"\u83dc\u5355\u663e\u793a\u72b6\u6001\u6539\u53d8\u65f6\u8c03\u7528\uff0c\u53c2\u6570\u4e3a ",l.a.createElement("code",null,"visible")),l.a.createElement("td",null,"(visible: boolean) => void"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)))),l.a.createElement("p",null,l.a.createElement("code",null,"overlay")," \u83dc\u5355\u4f7f\u7528 ",l.a.createElement(r["Link"],{to:"/components/menu/"},"Menu"),"\uff0c\u8fd8\u5305\u62ec\u83dc\u5355\u9879 ",l.a.createElement("code",null,"Menu.Item"),"\uff0c\u5206\u5272\u7ebf ",l.a.createElement("code",null,"Menu.Divider"),"\u3002"),l.a.createElement("blockquote",null,l.a.createElement("p",null,"\u6ce8\u610f\uff1a Menu.Item \u5fc5\u987b\u8bbe\u7f6e\u552f\u4e00\u7684 key \u5c5e\u6027\u3002"),l.a.createElement("p",null,"Dropdown \u4e0b\u7684 Menu \u9ed8\u8ba4\u4e0d\u53ef\u9009\u4e2d\u3002\u5982\u679c\u9700\u8981\u83dc\u5355\u53ef\u9009\u4e2d\uff0c\u53ef\u4ee5\u6307\u5b9a ",l.a.createElement("code",null,"<Menu selectable>"),"\u3002")),l.a.createElement("h3",{id:"dropdownbutton"},l.a.createElement(r["AnchorLink"],{to:"#dropdownbutton","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"Dropdown.Button"),l.a.createElement("table",null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,"\u53c2\u6570"),l.a.createElement("th",null,"\u8bf4\u660e"),l.a.createElement("th",null,"\u7c7b\u578b"),l.a.createElement("th",null,"\u9ed8\u8ba4\u503c"),l.a.createElement("th",null,"\u7248\u672c"))),l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,"buttonsRender"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u5de6\u53f3\u4e24\u4e2a\u6309\u94ae"),l.a.createElement("td",null,"(buttons: ReactNode[]) => ReactNode[]"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"disabled"),l.a.createElement("td",null,"\u83dc\u5355\u662f\u5426\u7981\u7528"),l.a.createElement("td",null,"boolean"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"icon"),l.a.createElement("td",null,"\u53f3\u4fa7\u7684 icon"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"overlay"),l.a.createElement("td",null,"\u83dc\u5355"),l.a.createElement("td",null,l.a.createElement(r["Link"],{to:"/components/menu/"},"Menu")),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"placement"),l.a.createElement("td",null,"\u83dc\u5355\u5f39\u51fa\u4f4d\u7f6e\uff1a",l.a.createElement("code",null,"bottomLeft")," ",l.a.createElement("code",null,"bottomCenter")," ",l.a.createElement("code",null,"bottomRight")," ",l.a.createElement("code",null,"topLeft")," ",l.a.createElement("code",null,"topCenter")," ",l.a.createElement("code",null,"topRight")),l.a.createElement("td",null,"string"),l.a.createElement("td",null,l.a.createElement("code",null,"bottomLeft")),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"size"),l.a.createElement("td",null,"\u6309\u94ae\u5927\u5c0f\uff0c\u548c ",l.a.createElement(r["AnchorLink"],{to:"/components/button/#API"},"Button")," \u4e00\u81f4"),l.a.createElement("td",null,"string"),l.a.createElement("td",null,l.a.createElement("code",null,"default")),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"trigger"),l.a.createElement("td",null,"\u89e6\u53d1\u4e0b\u62c9\u7684\u884c\u4e3a"),l.a.createElement("td",null,"Array<",l.a.createElement("code",null,"click"),"|",l.a.createElement("code",null,"hover"),"|",l.a.createElement("code",null,"contextMenu"),">"),l.a.createElement("td",null,"[",l.a.createElement("code",null,"hover"),"]"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"type"),l.a.createElement("td",null,"\u6309\u94ae\u7c7b\u578b\uff0c\u548c ",l.a.createElement(r["AnchorLink"],{to:"/components/button/#API"},"Button")," \u4e00\u81f4"),l.a.createElement("td",null,"string"),l.a.createElement("td",null,l.a.createElement("code",null,"default")),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"visible"),l.a.createElement("td",null,"\u83dc\u5355\u662f\u5426\u663e\u793a"),l.a.createElement("td",null,"boolean"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"onClick"),l.a.createElement("td",null,"\u70b9\u51fb\u5de6\u4fa7\u6309\u94ae\u7684\u56de\u8c03\uff0c\u548c ",l.a.createElement(r["AnchorLink"],{to:"/components/button/#API"},"Button")," \u4e00\u81f4"),l.a.createElement("td",null,"(event) => void"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"onVisibleChange"),l.a.createElement("td",null,"\u83dc\u5355\u663e\u793a\u72b6\u6001\u6539\u53d8\u65f6\u8c03\u7528\uff0c\u53c2\u6570\u4e3a ",l.a.createElement("code",null,"visible")),l.a.createElement("td",null,"(visible: boolean) => void"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)))),l.a.createElement("style",{dangerouslySetInnerHTML:{__html:'\n .site-dropdown-context-menu {\n color: #777;\n background: #f7f7f7;\n}\n[data-theme="dark"] .site-dropdown-context-menu {\n background: #141414;\n color: rgba(255,255,255,.65);\n }\n'}})))))},Zxc8:function(e,t,n){"use strict";n.r(t);var a=n("q1tI"),l=n.n(a),r=n("k3GJ"),c=n("MZF8"),o=n("dEAq"),d=n("H1Ra");n("RZMt");function m(e,t){return p(e)||s(e,t)||i(e,t)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){if(e){if("string"===typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function s(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,l,r=[],c=!0,o=!1;try{for(n=n.call(e);!(c=(a=n.next()).done);c=!0)if(r.push(a.value),t&&r.length===t)break}catch(d){o=!0,l=d}finally{try{c||null==n["return"]||n["return"]()}finally{if(o)throw l}}return r}}function p(e){if(Array.isArray(e))return e}function f(e,t){var n,a=null===(n=e.match(/\.(\w+)$/))||void 0===n?void 0:n[1];return a||(a=t.tsx?"tsx":"jsx"),a}var b=function(e){var t,n,u,i=Object(a["useRef"])(),E=Object(a["useContext"])(o["context"]),s=E.locale,p=Object(o["useLocaleProps"])(s,e),b=Object(o["useDemoUrl"])(p.identifier),h=p.demoUrl||b,v=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(p.identifier),w=1===Object.keys(p.sources).length,k=Object(o["useCodeSandbox"])((null===(t=p.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:p),y=Object(o["useRiddle"])((null===(n=p.hideActions)||void 0===n?void 0:n.includes("RIDDLE"))?null:p),g=Object(o["useMotions"])(p.motions||[],i.current),N=m(g,2),_=N[0],x=N[1],A=Object(o["useCopy"])(),L=m(A,2),I=L[0],C=L[1],j=Object(a["useState"])("_"),O=m(j,2),M=O[0],S=O[1],P=Object(a["useState"])(f(M,p.sources[M])),R=m(P,2),T=R[0],D=R[1],B=Object(a["useState"])(Boolean(p.defaultShowCode)),U=m(B,2),H=U[0],Z=U[1],q=Object(a["useState"])(Math.random()),J=m(q,2),F=J[0],$=J[1],G=p.sources[M][T]||p.sources[M].content,V=Object(o["useTSPlaygroundUrl"])(s,G),z=Object(a["useRef"])(),X=Object(o["usePrefersColor"])(),K=m(X,1),Y=K[0];function Q(e){S(e),D(f(e,p.sources[e]))}return Object(a["useEffect"])((function(){$(Math.random())}),[Y]),l.a.createElement("div",{style:p.style,className:[p.className,"__dumi-default-previewer",v?"__dumi-default-previewer-target":""].filter(Boolean).join(" "),id:p.identifier,"data-debug":p.debug||void 0,"data-iframe":p.iframe||void 0},p.iframe&&l.a.createElement("div",{className:"__dumi-default-previewer-browser-nav"}),l.a.createElement("div",{ref:i,className:"__dumi-default-previewer-demo",style:{transform:p.transform?"translate(0, 0)":void 0,padding:p.compact||p.iframe&&!1!==p.compact?"0":void 0,background:p.background}},p.iframe?l.a.createElement("iframe",{title:"dumi-previewer",style:{height:String(p.iframe).replace(/(\d)$/,"$1px")},key:F,src:h,ref:z}):p.children),l.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":p.title},p.title&&l.a.createElement(o["AnchorLink"],{to:"#".concat(p.identifier)},p.title),p.description&&l.a.createElement("div",{dangerouslySetInnerHTML:{__html:p.description}})),l.a.createElement("div",{className:"__dumi-default-previewer-actions"},k&&l.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:k}),y&&l.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:y}),p.motions&&l.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:x,onClick:function(){return _()}}),p.iframe&&l.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return $(Math.random())}}),!(null===(u=p.hideActions)||void 0===u?void 0:u.includes("EXTERNAL"))&&l.a.createElement(o["Link"],{target:"_blank",to:h},l.a.createElement("button",{title:"Open demo in new tab",className:"__dumi-default-icon",role:"open-demo",type:"button"})),l.a.createElement("span",null),l.a.createElement("button",{title:"Copy source code",className:"__dumi-default-icon",role:"copy","data-status":C,onClick:function(){return I(G)}}),"tsx"===T&&H&&l.a.createElement(o["Link"],{target:"_blank",to:V},l.a.createElement("button",{title:"Get JSX via TypeScript Playground",className:"__dumi-default-icon",role:"change-tsx",type:"button"})),l.a.createElement("button",{title:"Toggle source code panel",className:"__dumi-default-icon".concat(H?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:function(){return Z(!H)}})),H&&l.a.createElement("div",{className:"__dumi-default-previewer-source-wrapper"},!w&&l.a.createElement(r["b"],{className:"__dumi-default-previewer-source-tab",prefixCls:"__dumi-default-tabs",moreIcon:"\xb7\xb7\xb7",defaultActiveKey:M,onChange:Q},Object.keys(p.sources).map((function(e){return l.a.createElement(r["a"],{tab:"_"===e?"index.".concat(f(e,p.sources[e])):e,key:e})}))),l.a.createElement("div",{className:"__dumi-default-previewer-source"},l.a.createElement(d["a"],{code:G,lang:T,showCopy:!1}))))};t["default"]=b}}]);
1
+ (window['webpackJsonp'] = window['webpackJsonp'] || []).push([
2
+ [29],
3
+ {
4
+ MZF8: function (e, t, n) {
5
+ 'use strict';
6
+ var a = n('ogwx');
7
+ n.d(t, 'a', function () {
8
+ return a['b'];
9
+ });
10
+ n('VCU9');
11
+ },
12
+ RZMt: function (e, t, n) {},
13
+ YUrG: function (e, t, n) {
14
+ 'use strict';
15
+ n.r(t);
16
+ var a = n('q1tI'),
17
+ l = n.n(a),
18
+ r = n('dEAq'),
19
+ c = n('Zxc8'),
20
+ o = n('JjdP'),
21
+ d = l.a.memo(o['default']['dropdown-basic'].component),
22
+ m = l.a.memo(o['default']['dropdown-placement'].component),
23
+ u = l.a.memo(o['default']['dropdown-arrow'].component),
24
+ i = l.a.memo(o['default']['dropdown-item'].component),
25
+ E = l.a.memo(o['default']['dropdown-trigger'].component),
26
+ s = l.a.memo(o['default']['dropdown-event'].component),
27
+ p = l.a.memo(o['default']['dropdown-dropdownbutton'].component),
28
+ f = l.a.memo(o['default']['dropdown-submenu'].component),
29
+ b = l.a.memo(o['default']['dropdown-overlayvisible'].component),
30
+ h = l.a.memo(o['default']['dropdown-contextmenu'].component);
31
+ t['default'] = (e) => (
32
+ l.a.useEffect(() => {
33
+ var t;
34
+ null !== e &&
35
+ void 0 !== e &&
36
+ null !== (t = e.location) &&
37
+ void 0 !== t &&
38
+ t.hash &&
39
+ r['AnchorLink'].scrollToAnchor(
40
+ decodeURIComponent(e.location.hash.slice(1)),
41
+ );
42
+ }, []),
43
+ l.a.createElement(
44
+ l.a.Fragment,
45
+ null,
46
+ l.a.createElement(
47
+ l.a.Fragment,
48
+ null,
49
+ l.a.createElement(
50
+ 'div',
51
+ { className: 'markdown' },
52
+ l.a.createElement(
53
+ 'h1',
54
+ { id: 'dropdown-\u4e0b\u62c9\u83dc\u5355' },
55
+ l.a.createElement(
56
+ r['AnchorLink'],
57
+ {
58
+ to: '#dropdown-\u4e0b\u62c9\u83dc\u5355',
59
+ 'aria-hidden': 'true',
60
+ tabIndex: -1,
61
+ },
62
+ l.a.createElement('span', { className: 'icon icon-link' }),
63
+ ),
64
+ 'Dropdown \u4e0b\u62c9\u83dc\u5355',
65
+ ),
66
+ l.a.createElement(
67
+ 'p',
68
+ null,
69
+ '\u5411\u4e0b\u5f39\u51fa\u7684\u5217\u8868\u3002',
70
+ ),
71
+ l.a.createElement(
72
+ 'h2',
73
+ { id: '\u4f55\u65f6\u4f7f\u7528' },
74
+ l.a.createElement(
75
+ r['AnchorLink'],
76
+ {
77
+ to: '#\u4f55\u65f6\u4f7f\u7528',
78
+ 'aria-hidden': 'true',
79
+ tabIndex: -1,
80
+ },
81
+ l.a.createElement('span', { className: 'icon icon-link' }),
82
+ ),
83
+ '\u4f55\u65f6\u4f7f\u7528',
84
+ ),
85
+ l.a.createElement(
86
+ 'p',
87
+ null,
88
+ '\u5f53\u9875\u9762\u4e0a\u7684\u64cd\u4f5c\u547d\u4ee4\u8fc7\u591a\u65f6\uff0c\u7528\u6b64\u7ec4\u4ef6\u53ef\u4ee5\u6536\u7eb3\u64cd\u4f5c\u5143\u7d20\u3002\u70b9\u51fb\u6216\u79fb\u5165\u89e6\u70b9\uff0c\u4f1a\u51fa\u73b0\u4e00\u4e2a\u4e0b\u62c9\u83dc\u5355\u3002\u53ef\u5728\u5217\u8868\u4e2d\u8fdb\u884c\u9009\u62e9\uff0c\u5e76\u6267\u884c\u76f8\u5e94\u7684\u547d\u4ee4\u3002',
89
+ ),
90
+ l.a.createElement(
91
+ 'ul',
92
+ null,
93
+ l.a.createElement(
94
+ 'li',
95
+ null,
96
+ '\u7528\u4e8e\u6536\u7f57\u4e00\u7ec4\u547d\u4ee4\u64cd\u4f5c\u3002',
97
+ ),
98
+ l.a.createElement(
99
+ 'li',
100
+ null,
101
+ 'Select \u7528\u4e8e\u9009\u62e9\uff0c\u800c Dropdown \u662f\u547d\u4ee4\u96c6\u5408\u3002',
102
+ ),
103
+ ),
104
+ l.a.createElement(
105
+ 'h2',
106
+ { id: '\u4ee3\u7801\u6f14\u793a' },
107
+ l.a.createElement(
108
+ r['AnchorLink'],
109
+ {
110
+ to: '#\u4ee3\u7801\u6f14\u793a',
111
+ 'aria-hidden': 'true',
112
+ tabIndex: -1,
113
+ },
114
+ l.a.createElement('span', { className: 'icon icon-link' }),
115
+ ),
116
+ '\u4ee3\u7801\u6f14\u793a',
117
+ ),
118
+ l.a.createElement(
119
+ 'h3',
120
+ { id: '\u57fa\u672c' },
121
+ l.a.createElement(
122
+ r['AnchorLink'],
123
+ { to: '#\u57fa\u672c', 'aria-hidden': 'true', tabIndex: -1 },
124
+ l.a.createElement('span', { className: 'icon icon-link' }),
125
+ ),
126
+ '\u57fa\u672c',
127
+ ),
128
+ ),
129
+ l.a.createElement(
130
+ c['default'],
131
+ o['default']['dropdown-basic'].previewerProps,
132
+ l.a.createElement(d, null),
133
+ ),
134
+ l.a.createElement(
135
+ 'div',
136
+ { className: 'markdown' },
137
+ l.a.createElement(
138
+ 'h3',
139
+ { id: '\u5f39\u51fa\u4f4d\u7f6e' },
140
+ l.a.createElement(
141
+ r['AnchorLink'],
142
+ {
143
+ to: '#\u5f39\u51fa\u4f4d\u7f6e',
144
+ 'aria-hidden': 'true',
145
+ tabIndex: -1,
146
+ },
147
+ l.a.createElement('span', { className: 'icon icon-link' }),
148
+ ),
149
+ '\u5f39\u51fa\u4f4d\u7f6e',
150
+ ),
151
+ ),
152
+ l.a.createElement(
153
+ c['default'],
154
+ o['default']['dropdown-placement'].previewerProps,
155
+ l.a.createElement(m, null),
156
+ ),
157
+ l.a.createElement(
158
+ 'div',
159
+ { className: 'markdown' },
160
+ l.a.createElement(
161
+ 'h3',
162
+ { id: '\u7bad\u5934' },
163
+ l.a.createElement(
164
+ r['AnchorLink'],
165
+ { to: '#\u7bad\u5934', 'aria-hidden': 'true', tabIndex: -1 },
166
+ l.a.createElement('span', { className: 'icon icon-link' }),
167
+ ),
168
+ '\u7bad\u5934',
169
+ ),
170
+ ),
171
+ l.a.createElement(
172
+ c['default'],
173
+ o['default']['dropdown-arrow'].previewerProps,
174
+ l.a.createElement(u, null),
175
+ ),
176
+ l.a.createElement(
177
+ 'div',
178
+ { className: 'markdown' },
179
+ l.a.createElement(
180
+ 'h3',
181
+ { id: '\u5176\u4ed6\u5143\u7d20' },
182
+ l.a.createElement(
183
+ r['AnchorLink'],
184
+ {
185
+ to: '#\u5176\u4ed6\u5143\u7d20',
186
+ 'aria-hidden': 'true',
187
+ tabIndex: -1,
188
+ },
189
+ l.a.createElement('span', { className: 'icon icon-link' }),
190
+ ),
191
+ '\u5176\u4ed6\u5143\u7d20',
192
+ ),
193
+ ),
194
+ l.a.createElement(
195
+ c['default'],
196
+ o['default']['dropdown-item'].previewerProps,
197
+ l.a.createElement(i, null),
198
+ ),
199
+ l.a.createElement(
200
+ 'div',
201
+ { className: 'markdown' },
202
+ l.a.createElement(
203
+ 'h3',
204
+ { id: '\u89e6\u53d1\u65b9\u5f0f' },
205
+ l.a.createElement(
206
+ r['AnchorLink'],
207
+ {
208
+ to: '#\u89e6\u53d1\u65b9\u5f0f',
209
+ 'aria-hidden': 'true',
210
+ tabIndex: -1,
211
+ },
212
+ l.a.createElement('span', { className: 'icon icon-link' }),
213
+ ),
214
+ '\u89e6\u53d1\u65b9\u5f0f',
215
+ ),
216
+ ),
217
+ l.a.createElement(
218
+ c['default'],
219
+ o['default']['dropdown-trigger'].previewerProps,
220
+ l.a.createElement(E, null),
221
+ ),
222
+ l.a.createElement(
223
+ 'div',
224
+ { className: 'markdown' },
225
+ l.a.createElement(
226
+ 'h3',
227
+ { id: '\u89e6\u53d1\u4e8b\u4ef6' },
228
+ l.a.createElement(
229
+ r['AnchorLink'],
230
+ {
231
+ to: '#\u89e6\u53d1\u4e8b\u4ef6',
232
+ 'aria-hidden': 'true',
233
+ tabIndex: -1,
234
+ },
235
+ l.a.createElement('span', { className: 'icon icon-link' }),
236
+ ),
237
+ '\u89e6\u53d1\u4e8b\u4ef6',
238
+ ),
239
+ ),
240
+ l.a.createElement(
241
+ c['default'],
242
+ o['default']['dropdown-event'].previewerProps,
243
+ l.a.createElement(s, null),
244
+ ),
245
+ l.a.createElement(
246
+ 'div',
247
+ { className: 'markdown' },
248
+ l.a.createElement(
249
+ 'h3',
250
+ { id: '\u5e26\u4e0b\u62c9\u6846\u7684\u6309\u94ae' },
251
+ l.a.createElement(
252
+ r['AnchorLink'],
253
+ {
254
+ to: '#\u5e26\u4e0b\u62c9\u6846\u7684\u6309\u94ae',
255
+ 'aria-hidden': 'true',
256
+ tabIndex: -1,
257
+ },
258
+ l.a.createElement('span', { className: 'icon icon-link' }),
259
+ ),
260
+ '\u5e26\u4e0b\u62c9\u6846\u7684\u6309\u94ae',
261
+ ),
262
+ ),
263
+ l.a.createElement(
264
+ c['default'],
265
+ o['default']['dropdown-dropdownbutton'].previewerProps,
266
+ l.a.createElement(p, null),
267
+ ),
268
+ l.a.createElement(
269
+ 'div',
270
+ { className: 'markdown' },
271
+ l.a.createElement(
272
+ 'h3',
273
+ { id: '\u591a\u7ea7\u83dc\u5355' },
274
+ l.a.createElement(
275
+ r['AnchorLink'],
276
+ {
277
+ to: '#\u591a\u7ea7\u83dc\u5355',
278
+ 'aria-hidden': 'true',
279
+ tabIndex: -1,
280
+ },
281
+ l.a.createElement('span', { className: 'icon icon-link' }),
282
+ ),
283
+ '\u591a\u7ea7\u83dc\u5355',
284
+ ),
285
+ ),
286
+ l.a.createElement(
287
+ c['default'],
288
+ o['default']['dropdown-submenu'].previewerProps,
289
+ l.a.createElement(f, null),
290
+ ),
291
+ l.a.createElement(
292
+ 'div',
293
+ { className: 'markdown' },
294
+ l.a.createElement(
295
+ 'h3',
296
+ { id: '\u83dc\u5355\u9690\u85cf\u65b9\u5f0f' },
297
+ l.a.createElement(
298
+ r['AnchorLink'],
299
+ {
300
+ to: '#\u83dc\u5355\u9690\u85cf\u65b9\u5f0f',
301
+ 'aria-hidden': 'true',
302
+ tabIndex: -1,
303
+ },
304
+ l.a.createElement('span', { className: 'icon icon-link' }),
305
+ ),
306
+ '\u83dc\u5355\u9690\u85cf\u65b9\u5f0f',
307
+ ),
308
+ ),
309
+ l.a.createElement(
310
+ c['default'],
311
+ o['default']['dropdown-overlayvisible'].previewerProps,
312
+ l.a.createElement(b, null),
313
+ ),
314
+ l.a.createElement(
315
+ 'div',
316
+ { className: 'markdown' },
317
+ l.a.createElement(
318
+ 'h3',
319
+ { id: '\u53f3\u952e\u83dc\u5355' },
320
+ l.a.createElement(
321
+ r['AnchorLink'],
322
+ {
323
+ to: '#\u53f3\u952e\u83dc\u5355',
324
+ 'aria-hidden': 'true',
325
+ tabIndex: -1,
326
+ },
327
+ l.a.createElement('span', { className: 'icon icon-link' }),
328
+ ),
329
+ '\u53f3\u952e\u83dc\u5355',
330
+ ),
331
+ ),
332
+ l.a.createElement(
333
+ c['default'],
334
+ o['default']['dropdown-contextmenu'].previewerProps,
335
+ l.a.createElement(h, null),
336
+ ),
337
+ l.a.createElement(
338
+ 'div',
339
+ { className: 'markdown' },
340
+ l.a.createElement(
341
+ 'h2',
342
+ { id: 'api' },
343
+ l.a.createElement(
344
+ r['AnchorLink'],
345
+ { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
346
+ l.a.createElement('span', { className: 'icon icon-link' }),
347
+ ),
348
+ 'API',
349
+ ),
350
+ l.a.createElement('p', null, '\u5c5e\u6027\u5982\u4e0b'),
351
+ l.a.createElement(
352
+ 'table',
353
+ null,
354
+ l.a.createElement(
355
+ 'thead',
356
+ null,
357
+ l.a.createElement(
358
+ 'tr',
359
+ null,
360
+ l.a.createElement('th', null, '\u53c2\u6570'),
361
+ l.a.createElement('th', null, '\u8bf4\u660e'),
362
+ l.a.createElement('th', null, '\u7c7b\u578b'),
363
+ l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
364
+ l.a.createElement('th', null, '\u7248\u672c'),
365
+ ),
366
+ ),
367
+ l.a.createElement(
368
+ 'tbody',
369
+ null,
370
+ l.a.createElement(
371
+ 'tr',
372
+ null,
373
+ l.a.createElement('td', null, 'arrow'),
374
+ l.a.createElement(
375
+ 'td',
376
+ null,
377
+ '\u4e0b\u62c9\u6846\u7bad\u5934\u662f\u5426\u663e\u793a',
378
+ ),
379
+ l.a.createElement('td', null, 'boolean'),
380
+ l.a.createElement('td', null, 'false'),
381
+ l.a.createElement('td', null),
382
+ ),
383
+ l.a.createElement(
384
+ 'tr',
385
+ null,
386
+ l.a.createElement('td', null, 'disabled'),
387
+ l.a.createElement(
388
+ 'td',
389
+ null,
390
+ '\u83dc\u5355\u662f\u5426\u7981\u7528',
391
+ ),
392
+ l.a.createElement('td', null, 'boolean'),
393
+ l.a.createElement('td', null, '-'),
394
+ l.a.createElement('td', null),
395
+ ),
396
+ l.a.createElement(
397
+ 'tr',
398
+ null,
399
+ l.a.createElement('td', null, 'destroyPopupOnHide'),
400
+ l.a.createElement(
401
+ 'td',
402
+ null,
403
+ '\u5173\u95ed\u540e\u662f\u5426\u9500\u6bc1 Dropdown',
404
+ ),
405
+ l.a.createElement('td', null, 'boolean'),
406
+ l.a.createElement('td', null, 'false'),
407
+ l.a.createElement('td', null),
408
+ ),
409
+ l.a.createElement(
410
+ 'tr',
411
+ null,
412
+ l.a.createElement('td', null, 'getPopupContainer'),
413
+ l.a.createElement(
414
+ 'td',
415
+ null,
416
+ '\u83dc\u5355\u6e32\u67d3\u7236\u8282\u70b9\u3002\u9ed8\u8ba4\u6e32\u67d3\u5230 body \u4e0a\uff0c\u5982\u679c\u4f60\u9047\u5230\u83dc\u5355\u6eda\u52a8\u5b9a\u4f4d\u95ee\u9898\uff0c\u8bd5\u8bd5\u4fee\u6539\u4e3a\u6eda\u52a8\u7684\u533a\u57df\uff0c\u5e76\u76f8\u5bf9\u5176\u5b9a\u4f4d\u3002',
417
+ l.a.createElement(
418
+ r['Link'],
419
+ {
420
+ to: 'https://codepen.io/afc163/pen/zEjNOy?editors=0010',
421
+ },
422
+ '\u793a\u4f8b',
423
+ ),
424
+ ),
425
+ l.a.createElement(
426
+ 'td',
427
+ null,
428
+ '(triggerNode: HTMLElement) => HTMLElement',
429
+ ),
430
+ l.a.createElement('td', null, '() => document.body'),
431
+ l.a.createElement('td', null),
432
+ ),
433
+ l.a.createElement(
434
+ 'tr',
435
+ null,
436
+ l.a.createElement('td', null, 'overlay'),
437
+ l.a.createElement('td', null, '\u83dc\u5355'),
438
+ l.a.createElement(
439
+ 'td',
440
+ null,
441
+ l.a.createElement(
442
+ r['Link'],
443
+ { to: '/components/menu' },
444
+ 'Menu',
445
+ ),
446
+ ' | () => Menu',
447
+ ),
448
+ l.a.createElement('td', null, '-'),
449
+ l.a.createElement('td', null),
450
+ ),
451
+ l.a.createElement(
452
+ 'tr',
453
+ null,
454
+ l.a.createElement('td', null, 'overlayClassName'),
455
+ l.a.createElement(
456
+ 'td',
457
+ null,
458
+ '\u4e0b\u62c9\u6839\u5143\u7d20\u7684\u7c7b\u540d\u79f0',
459
+ ),
460
+ l.a.createElement('td', null, 'string'),
461
+ l.a.createElement('td', null, '-'),
462
+ l.a.createElement('td', null),
463
+ ),
464
+ l.a.createElement(
465
+ 'tr',
466
+ null,
467
+ l.a.createElement('td', null, 'overlayStyle'),
468
+ l.a.createElement(
469
+ 'td',
470
+ null,
471
+ '\u4e0b\u62c9\u6839\u5143\u7d20\u7684\u6837\u5f0f',
472
+ ),
473
+ l.a.createElement('td', null, 'CSSProperties'),
474
+ l.a.createElement('td', null, '-'),
475
+ l.a.createElement('td', null),
476
+ ),
477
+ l.a.createElement(
478
+ 'tr',
479
+ null,
480
+ l.a.createElement('td', null, 'placement'),
481
+ l.a.createElement(
482
+ 'td',
483
+ null,
484
+ '\u83dc\u5355\u5f39\u51fa\u4f4d\u7f6e\uff1a',
485
+ l.a.createElement('code', null, 'bottomLeft'),
486
+ ' ',
487
+ l.a.createElement('code', null, 'bottomCenter'),
488
+ ' ',
489
+ l.a.createElement('code', null, 'bottomRight'),
490
+ ' ',
491
+ l.a.createElement('code', null, 'topLeft'),
492
+ ' ',
493
+ l.a.createElement('code', null, 'topCenter'),
494
+ ' ',
495
+ l.a.createElement('code', null, 'topRight'),
496
+ ),
497
+ l.a.createElement('td', null, 'string'),
498
+ l.a.createElement(
499
+ 'td',
500
+ null,
501
+ l.a.createElement('code', null, 'bottomLeft'),
502
+ ),
503
+ l.a.createElement('td', null),
504
+ ),
505
+ l.a.createElement(
506
+ 'tr',
507
+ null,
508
+ l.a.createElement('td', null, 'trigger'),
509
+ l.a.createElement(
510
+ 'td',
511
+ null,
512
+ '\u89e6\u53d1\u4e0b\u62c9\u7684\u884c\u4e3a, \u79fb\u52a8\u7aef\u4e0d\u652f\u6301 hover',
513
+ ),
514
+ l.a.createElement(
515
+ 'td',
516
+ null,
517
+ 'Array<',
518
+ l.a.createElement('code', null, 'click'),
519
+ '|',
520
+ l.a.createElement('code', null, 'hover'),
521
+ '|',
522
+ l.a.createElement('code', null, 'contextMenu'),
523
+ '>',
524
+ ),
525
+ l.a.createElement(
526
+ 'td',
527
+ null,
528
+ '[',
529
+ l.a.createElement('code', null, 'hover'),
530
+ ']',
531
+ ),
532
+ l.a.createElement('td', null),
533
+ ),
534
+ l.a.createElement(
535
+ 'tr',
536
+ null,
537
+ l.a.createElement('td', null, 'visible'),
538
+ l.a.createElement(
539
+ 'td',
540
+ null,
541
+ '\u83dc\u5355\u662f\u5426\u663e\u793a',
542
+ ),
543
+ l.a.createElement('td', null, 'boolean'),
544
+ l.a.createElement('td', null, '-'),
545
+ l.a.createElement('td', null),
546
+ ),
547
+ l.a.createElement(
548
+ 'tr',
549
+ null,
550
+ l.a.createElement('td', null, 'onVisibleChange'),
551
+ l.a.createElement(
552
+ 'td',
553
+ null,
554
+ '\u83dc\u5355\u663e\u793a\u72b6\u6001\u6539\u53d8\u65f6\u8c03\u7528\uff0c\u53c2\u6570\u4e3a ',
555
+ l.a.createElement('code', null, 'visible'),
556
+ ),
557
+ l.a.createElement('td', null, '(visible: boolean) => void'),
558
+ l.a.createElement('td', null, '-'),
559
+ l.a.createElement('td', null),
560
+ ),
561
+ ),
562
+ ),
563
+ l.a.createElement(
564
+ 'p',
565
+ null,
566
+ l.a.createElement('code', null, 'overlay'),
567
+ ' \u83dc\u5355\u4f7f\u7528 ',
568
+ l.a.createElement(
569
+ r['Link'],
570
+ { to: '/components/menu/' },
571
+ 'Menu',
572
+ ),
573
+ '\uff0c\u8fd8\u5305\u62ec\u83dc\u5355\u9879 ',
574
+ l.a.createElement('code', null, 'Menu.Item'),
575
+ '\uff0c\u5206\u5272\u7ebf ',
576
+ l.a.createElement('code', null, 'Menu.Divider'),
577
+ '\u3002',
578
+ ),
579
+ l.a.createElement(
580
+ 'blockquote',
581
+ null,
582
+ l.a.createElement(
583
+ 'p',
584
+ null,
585
+ '\u6ce8\u610f\uff1a Menu.Item \u5fc5\u987b\u8bbe\u7f6e\u552f\u4e00\u7684 key \u5c5e\u6027\u3002',
586
+ ),
587
+ l.a.createElement(
588
+ 'p',
589
+ null,
590
+ 'Dropdown \u4e0b\u7684 Menu \u9ed8\u8ba4\u4e0d\u53ef\u9009\u4e2d\u3002\u5982\u679c\u9700\u8981\u83dc\u5355\u53ef\u9009\u4e2d\uff0c\u53ef\u4ee5\u6307\u5b9a ',
591
+ l.a.createElement('code', null, '<Menu selectable>'),
592
+ '\u3002',
593
+ ),
594
+ ),
595
+ l.a.createElement(
596
+ 'h3',
597
+ { id: 'dropdownbutton' },
598
+ l.a.createElement(
599
+ r['AnchorLink'],
600
+ {
601
+ to: '#dropdownbutton',
602
+ 'aria-hidden': 'true',
603
+ tabIndex: -1,
604
+ },
605
+ l.a.createElement('span', { className: 'icon icon-link' }),
606
+ ),
607
+ 'Dropdown.Button',
608
+ ),
609
+ l.a.createElement(
610
+ 'table',
611
+ null,
612
+ l.a.createElement(
613
+ 'thead',
614
+ null,
615
+ l.a.createElement(
616
+ 'tr',
617
+ null,
618
+ l.a.createElement('th', null, '\u53c2\u6570'),
619
+ l.a.createElement('th', null, '\u8bf4\u660e'),
620
+ l.a.createElement('th', null, '\u7c7b\u578b'),
621
+ l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
622
+ l.a.createElement('th', null, '\u7248\u672c'),
623
+ ),
624
+ ),
625
+ l.a.createElement(
626
+ 'tbody',
627
+ null,
628
+ l.a.createElement(
629
+ 'tr',
630
+ null,
631
+ l.a.createElement('td', null, 'buttonsRender'),
632
+ l.a.createElement(
633
+ 'td',
634
+ null,
635
+ '\u81ea\u5b9a\u4e49\u5de6\u53f3\u4e24\u4e2a\u6309\u94ae',
636
+ ),
637
+ l.a.createElement(
638
+ 'td',
639
+ null,
640
+ '(buttons: ReactNode[]) => ReactNode[]',
641
+ ),
642
+ l.a.createElement('td', null, '-'),
643
+ l.a.createElement('td', null),
644
+ ),
645
+ l.a.createElement(
646
+ 'tr',
647
+ null,
648
+ l.a.createElement('td', null, 'disabled'),
649
+ l.a.createElement(
650
+ 'td',
651
+ null,
652
+ '\u83dc\u5355\u662f\u5426\u7981\u7528',
653
+ ),
654
+ l.a.createElement('td', null, 'boolean'),
655
+ l.a.createElement('td', null, '-'),
656
+ l.a.createElement('td', null),
657
+ ),
658
+ l.a.createElement(
659
+ 'tr',
660
+ null,
661
+ l.a.createElement('td', null, 'icon'),
662
+ l.a.createElement('td', null, '\u53f3\u4fa7\u7684 icon'),
663
+ l.a.createElement('td', null, 'ReactNode'),
664
+ l.a.createElement('td', null, '-'),
665
+ l.a.createElement('td', null),
666
+ ),
667
+ l.a.createElement(
668
+ 'tr',
669
+ null,
670
+ l.a.createElement('td', null, 'overlay'),
671
+ l.a.createElement('td', null, '\u83dc\u5355'),
672
+ l.a.createElement(
673
+ 'td',
674
+ null,
675
+ l.a.createElement(
676
+ r['Link'],
677
+ { to: '/components/menu/' },
678
+ 'Menu',
679
+ ),
680
+ ),
681
+ l.a.createElement('td', null, '-'),
682
+ l.a.createElement('td', null),
683
+ ),
684
+ l.a.createElement(
685
+ 'tr',
686
+ null,
687
+ l.a.createElement('td', null, 'placement'),
688
+ l.a.createElement(
689
+ 'td',
690
+ null,
691
+ '\u83dc\u5355\u5f39\u51fa\u4f4d\u7f6e\uff1a',
692
+ l.a.createElement('code', null, 'bottomLeft'),
693
+ ' ',
694
+ l.a.createElement('code', null, 'bottomCenter'),
695
+ ' ',
696
+ l.a.createElement('code', null, 'bottomRight'),
697
+ ' ',
698
+ l.a.createElement('code', null, 'topLeft'),
699
+ ' ',
700
+ l.a.createElement('code', null, 'topCenter'),
701
+ ' ',
702
+ l.a.createElement('code', null, 'topRight'),
703
+ ),
704
+ l.a.createElement('td', null, 'string'),
705
+ l.a.createElement(
706
+ 'td',
707
+ null,
708
+ l.a.createElement('code', null, 'bottomLeft'),
709
+ ),
710
+ l.a.createElement('td', null),
711
+ ),
712
+ l.a.createElement(
713
+ 'tr',
714
+ null,
715
+ l.a.createElement('td', null, 'size'),
716
+ l.a.createElement(
717
+ 'td',
718
+ null,
719
+ '\u6309\u94ae\u5927\u5c0f\uff0c\u548c ',
720
+ l.a.createElement(
721
+ r['AnchorLink'],
722
+ { to: '/components/button/#API' },
723
+ 'Button',
724
+ ),
725
+ ' \u4e00\u81f4',
726
+ ),
727
+ l.a.createElement('td', null, 'string'),
728
+ l.a.createElement(
729
+ 'td',
730
+ null,
731
+ l.a.createElement('code', null, 'default'),
732
+ ),
733
+ l.a.createElement('td', null),
734
+ ),
735
+ l.a.createElement(
736
+ 'tr',
737
+ null,
738
+ l.a.createElement('td', null, 'trigger'),
739
+ l.a.createElement(
740
+ 'td',
741
+ null,
742
+ '\u89e6\u53d1\u4e0b\u62c9\u7684\u884c\u4e3a',
743
+ ),
744
+ l.a.createElement(
745
+ 'td',
746
+ null,
747
+ 'Array<',
748
+ l.a.createElement('code', null, 'click'),
749
+ '|',
750
+ l.a.createElement('code', null, 'hover'),
751
+ '|',
752
+ l.a.createElement('code', null, 'contextMenu'),
753
+ '>',
754
+ ),
755
+ l.a.createElement(
756
+ 'td',
757
+ null,
758
+ '[',
759
+ l.a.createElement('code', null, 'hover'),
760
+ ']',
761
+ ),
762
+ l.a.createElement('td', null),
763
+ ),
764
+ l.a.createElement(
765
+ 'tr',
766
+ null,
767
+ l.a.createElement('td', null, 'type'),
768
+ l.a.createElement(
769
+ 'td',
770
+ null,
771
+ '\u6309\u94ae\u7c7b\u578b\uff0c\u548c ',
772
+ l.a.createElement(
773
+ r['AnchorLink'],
774
+ { to: '/components/button/#API' },
775
+ 'Button',
776
+ ),
777
+ ' \u4e00\u81f4',
778
+ ),
779
+ l.a.createElement('td', null, 'string'),
780
+ l.a.createElement(
781
+ 'td',
782
+ null,
783
+ l.a.createElement('code', null, 'default'),
784
+ ),
785
+ l.a.createElement('td', null),
786
+ ),
787
+ l.a.createElement(
788
+ 'tr',
789
+ null,
790
+ l.a.createElement('td', null, 'visible'),
791
+ l.a.createElement(
792
+ 'td',
793
+ null,
794
+ '\u83dc\u5355\u662f\u5426\u663e\u793a',
795
+ ),
796
+ l.a.createElement('td', null, 'boolean'),
797
+ l.a.createElement('td', null, '-'),
798
+ l.a.createElement('td', null),
799
+ ),
800
+ l.a.createElement(
801
+ 'tr',
802
+ null,
803
+ l.a.createElement('td', null, 'onClick'),
804
+ l.a.createElement(
805
+ 'td',
806
+ null,
807
+ '\u70b9\u51fb\u5de6\u4fa7\u6309\u94ae\u7684\u56de\u8c03\uff0c\u548c ',
808
+ l.a.createElement(
809
+ r['AnchorLink'],
810
+ { to: '/components/button/#API' },
811
+ 'Button',
812
+ ),
813
+ ' \u4e00\u81f4',
814
+ ),
815
+ l.a.createElement('td', null, '(event) => void'),
816
+ l.a.createElement('td', null, '-'),
817
+ l.a.createElement('td', null),
818
+ ),
819
+ l.a.createElement(
820
+ 'tr',
821
+ null,
822
+ l.a.createElement('td', null, 'onVisibleChange'),
823
+ l.a.createElement(
824
+ 'td',
825
+ null,
826
+ '\u83dc\u5355\u663e\u793a\u72b6\u6001\u6539\u53d8\u65f6\u8c03\u7528\uff0c\u53c2\u6570\u4e3a ',
827
+ l.a.createElement('code', null, 'visible'),
828
+ ),
829
+ l.a.createElement('td', null, '(visible: boolean) => void'),
830
+ l.a.createElement('td', null, '-'),
831
+ l.a.createElement('td', null),
832
+ ),
833
+ ),
834
+ ),
835
+ l.a.createElement('style', {
836
+ dangerouslySetInnerHTML: {
837
+ __html:
838
+ '\n .site-dropdown-context-menu {\n color: #777;\n background: #f7f7f7;\n}\n[data-theme="dark"] .site-dropdown-context-menu {\n background: #141414;\n color: rgba(255,255,255,.65);\n }\n',
839
+ },
840
+ }),
841
+ ),
842
+ ),
843
+ )
844
+ );
845
+ },
846
+ Zxc8: function (e, t, n) {
847
+ 'use strict';
848
+ n.r(t);
849
+ var a = n('q1tI'),
850
+ l = n.n(a),
851
+ r = n('k3GJ'),
852
+ c = n('MZF8'),
853
+ o = n('dEAq'),
854
+ d = n('H1Ra');
855
+ n('RZMt');
856
+ function m(e, t) {
857
+ return p(e) || s(e, t) || i(e, t) || u();
858
+ }
859
+ function u() {
860
+ throw new TypeError(
861
+ 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
862
+ );
863
+ }
864
+ function i(e, t) {
865
+ if (e) {
866
+ if ('string' === typeof e) return E(e, t);
867
+ var n = Object.prototype.toString.call(e).slice(8, -1);
868
+ return (
869
+ 'Object' === n && e.constructor && (n = e.constructor.name),
870
+ 'Map' === n || 'Set' === n
871
+ ? Array.from(e)
872
+ : 'Arguments' === n ||
873
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
874
+ ? E(e, t)
875
+ : void 0
876
+ );
877
+ }
878
+ }
879
+ function E(e, t) {
880
+ (null == t || t > e.length) && (t = e.length);
881
+ for (var n = 0, a = new Array(t); n < t; n++) a[n] = e[n];
882
+ return a;
883
+ }
884
+ function s(e, t) {
885
+ var n =
886
+ null == e
887
+ ? null
888
+ : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
889
+ e['@@iterator'];
890
+ if (null != n) {
891
+ var a,
892
+ l,
893
+ r = [],
894
+ c = !0,
895
+ o = !1;
896
+ try {
897
+ for (n = n.call(e); !(c = (a = n.next()).done); c = !0)
898
+ if ((r.push(a.value), t && r.length === t)) break;
899
+ } catch (d) {
900
+ (o = !0), (l = d);
901
+ } finally {
902
+ try {
903
+ c || null == n['return'] || n['return']();
904
+ } finally {
905
+ if (o) throw l;
906
+ }
907
+ }
908
+ return r;
909
+ }
910
+ }
911
+ function p(e) {
912
+ if (Array.isArray(e)) return e;
913
+ }
914
+ function f(e, t) {
915
+ var n,
916
+ a =
917
+ null === (n = e.match(/\.(\w+)$/)) || void 0 === n ? void 0 : n[1];
918
+ return a || (a = t.tsx ? 'tsx' : 'jsx'), a;
919
+ }
920
+ var b = function (e) {
921
+ var t,
922
+ n,
923
+ u,
924
+ i = Object(a['useRef'])(),
925
+ E = Object(a['useContext'])(o['context']),
926
+ s = E.locale,
927
+ p = Object(o['useLocaleProps'])(s, e),
928
+ b = Object(o['useDemoUrl'])(p.identifier),
929
+ h = p.demoUrl || b,
930
+ v =
931
+ (null === c['a'] || void 0 === c['a']
932
+ ? void 0
933
+ : c['a'].location.hash) === '#'.concat(p.identifier),
934
+ w = 1 === Object.keys(p.sources).length,
935
+ k = Object(o['useCodeSandbox'])(
936
+ (
937
+ null === (t = p.hideActions) || void 0 === t
938
+ ? void 0
939
+ : t.includes('CSB')
940
+ )
941
+ ? null
942
+ : p,
943
+ ),
944
+ y = Object(o['useRiddle'])(
945
+ (
946
+ null === (n = p.hideActions) || void 0 === n
947
+ ? void 0
948
+ : n.includes('RIDDLE')
949
+ )
950
+ ? null
951
+ : p,
952
+ ),
953
+ g = Object(o['useMotions'])(p.motions || [], i.current),
954
+ N = m(g, 2),
955
+ _ = N[0],
956
+ x = N[1],
957
+ A = Object(o['useCopy'])(),
958
+ L = m(A, 2),
959
+ I = L[0],
960
+ C = L[1],
961
+ j = Object(a['useState'])('_'),
962
+ O = m(j, 2),
963
+ M = O[0],
964
+ S = O[1],
965
+ P = Object(a['useState'])(f(M, p.sources[M])),
966
+ R = m(P, 2),
967
+ T = R[0],
968
+ D = R[1],
969
+ B = Object(a['useState'])(Boolean(p.defaultShowCode)),
970
+ U = m(B, 2),
971
+ H = U[0],
972
+ Z = U[1],
973
+ q = Object(a['useState'])(Math.random()),
974
+ J = m(q, 2),
975
+ F = J[0],
976
+ $ = J[1],
977
+ G = p.sources[M][T] || p.sources[M].content,
978
+ V = Object(o['useTSPlaygroundUrl'])(s, G),
979
+ z = Object(a['useRef'])(),
980
+ X = Object(o['usePrefersColor'])(),
981
+ K = m(X, 1),
982
+ Y = K[0];
983
+ function Q(e) {
984
+ S(e), D(f(e, p.sources[e]));
985
+ }
986
+ return (
987
+ Object(a['useEffect'])(
988
+ function () {
989
+ $(Math.random());
990
+ },
991
+ [Y],
992
+ ),
993
+ l.a.createElement(
994
+ 'div',
995
+ {
996
+ style: p.style,
997
+ className: [
998
+ p.className,
999
+ '__dumi-default-previewer',
1000
+ v ? '__dumi-default-previewer-target' : '',
1001
+ ]
1002
+ .filter(Boolean)
1003
+ .join(' '),
1004
+ id: p.identifier,
1005
+ 'data-debug': p.debug || void 0,
1006
+ 'data-iframe': p.iframe || void 0,
1007
+ },
1008
+ p.iframe &&
1009
+ l.a.createElement('div', {
1010
+ className: '__dumi-default-previewer-browser-nav',
1011
+ }),
1012
+ l.a.createElement(
1013
+ 'div',
1014
+ {
1015
+ ref: i,
1016
+ className: '__dumi-default-previewer-demo',
1017
+ style: {
1018
+ transform: p.transform ? 'translate(0, 0)' : void 0,
1019
+ padding:
1020
+ p.compact || (p.iframe && !1 !== p.compact) ? '0' : void 0,
1021
+ background: p.background,
1022
+ },
1023
+ },
1024
+ p.iframe
1025
+ ? l.a.createElement('iframe', {
1026
+ title: 'dumi-previewer',
1027
+ style: {
1028
+ height: String(p.iframe).replace(/(\d)$/, '$1px'),
1029
+ },
1030
+ key: F,
1031
+ src: h,
1032
+ ref: z,
1033
+ })
1034
+ : p.children,
1035
+ ),
1036
+ l.a.createElement(
1037
+ 'div',
1038
+ {
1039
+ className: '__dumi-default-previewer-desc',
1040
+ 'data-title': p.title,
1041
+ },
1042
+ p.title &&
1043
+ l.a.createElement(
1044
+ o['AnchorLink'],
1045
+ { to: '#'.concat(p.identifier) },
1046
+ p.title,
1047
+ ),
1048
+ p.description &&
1049
+ l.a.createElement('div', {
1050
+ dangerouslySetInnerHTML: { __html: p.description },
1051
+ }),
1052
+ ),
1053
+ l.a.createElement(
1054
+ 'div',
1055
+ { className: '__dumi-default-previewer-actions' },
1056
+ k &&
1057
+ l.a.createElement('button', {
1058
+ title: 'Open demo on CodeSandbox.io',
1059
+ className: '__dumi-default-icon',
1060
+ role: 'codesandbox',
1061
+ onClick: k,
1062
+ }),
1063
+ y &&
1064
+ l.a.createElement('button', {
1065
+ title: 'Open demo on Riddle',
1066
+ className: '__dumi-default-icon',
1067
+ role: 'riddle',
1068
+ onClick: y,
1069
+ }),
1070
+ p.motions &&
1071
+ l.a.createElement('button', {
1072
+ title: 'Execute motions',
1073
+ className: '__dumi-default-icon',
1074
+ role: 'motions',
1075
+ disabled: x,
1076
+ onClick: function () {
1077
+ return _();
1078
+ },
1079
+ }),
1080
+ p.iframe &&
1081
+ l.a.createElement('button', {
1082
+ title: 'Reload demo iframe page',
1083
+ className: '__dumi-default-icon',
1084
+ role: 'refresh',
1085
+ onClick: function () {
1086
+ return $(Math.random());
1087
+ },
1088
+ }),
1089
+ !(null === (u = p.hideActions) || void 0 === u
1090
+ ? void 0
1091
+ : u.includes('EXTERNAL')) &&
1092
+ l.a.createElement(
1093
+ o['Link'],
1094
+ { target: '_blank', to: h },
1095
+ l.a.createElement('button', {
1096
+ title: 'Open demo in new tab',
1097
+ className: '__dumi-default-icon',
1098
+ role: 'open-demo',
1099
+ type: 'button',
1100
+ }),
1101
+ ),
1102
+ l.a.createElement('span', null),
1103
+ l.a.createElement('button', {
1104
+ title: 'Copy source code',
1105
+ className: '__dumi-default-icon',
1106
+ role: 'copy',
1107
+ 'data-status': C,
1108
+ onClick: function () {
1109
+ return I(G);
1110
+ },
1111
+ }),
1112
+ 'tsx' === T &&
1113
+ H &&
1114
+ l.a.createElement(
1115
+ o['Link'],
1116
+ { target: '_blank', to: V },
1117
+ l.a.createElement('button', {
1118
+ title: 'Get JSX via TypeScript Playground',
1119
+ className: '__dumi-default-icon',
1120
+ role: 'change-tsx',
1121
+ type: 'button',
1122
+ }),
1123
+ ),
1124
+ l.a.createElement('button', {
1125
+ title: 'Toggle source code panel',
1126
+ className: '__dumi-default-icon'.concat(
1127
+ H ? ' __dumi-default-btn-expand' : '',
1128
+ ),
1129
+ role: 'source',
1130
+ type: 'button',
1131
+ onClick: function () {
1132
+ return Z(!H);
1133
+ },
1134
+ }),
1135
+ ),
1136
+ H &&
1137
+ l.a.createElement(
1138
+ 'div',
1139
+ { className: '__dumi-default-previewer-source-wrapper' },
1140
+ !w &&
1141
+ l.a.createElement(
1142
+ r['b'],
1143
+ {
1144
+ className: '__dumi-default-previewer-source-tab',
1145
+ prefixCls: '__dumi-default-tabs',
1146
+ moreIcon: '\xb7\xb7\xb7',
1147
+ defaultActiveKey: M,
1148
+ onChange: Q,
1149
+ },
1150
+ Object.keys(p.sources).map(function (e) {
1151
+ return l.a.createElement(r['a'], {
1152
+ tab:
1153
+ '_' === e ? 'index.'.concat(f(e, p.sources[e])) : e,
1154
+ key: e,
1155
+ });
1156
+ }),
1157
+ ),
1158
+ l.a.createElement(
1159
+ 'div',
1160
+ { className: '__dumi-default-previewer-source' },
1161
+ l.a.createElement(d['a'], { code: G, lang: T, showCopy: !1 }),
1162
+ ),
1163
+ ),
1164
+ )
1165
+ );
1166
+ };
1167
+ t['default'] = b;
1168
+ },
1169
+ },
1170
+ ]);