@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,942 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[9],{MUgR:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),l=a.n(n),r=a("dEAq"),c=a("Zxc8"),o=a("JjdP"),m=l.a.memo(o["default"]["alert-basic"].component),d=l.a.memo(o["default"]["alert-style"].component),i=l.a.memo(o["default"]["alert-closable"].component),u=l.a.memo(o["default"]["alert-description"].component),s=l.a.memo(o["default"]["alert-icon"].component),E=l.a.memo(o["default"]["alert-close-text"].component),f=l.a.memo(o["default"]["alert-banner"].component),p=l.a.memo(o["default"]["alert-loop-banner"].component),b=l.a.memo(o["default"]["alert-smooth-closed"].component),h=l.a.memo(o["default"]["alert-action"].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:"alert-\u8b66\u544a\u63d0\u793a"},l.a.createElement(r["AnchorLink"],{to:"#alert-\u8b66\u544a\u63d0\u793a","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"Alert \u8b66\u544a\u63d0\u793a"),l.a.createElement("p",null,"\u8b66\u544a\u63d0\u793a\uff0c\u5c55\u73b0\u9700\u8981\u5173\u6ce8\u7684\u4fe1\u606f\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("ul",null,l.a.createElement("li",null,"\u5f53\u67d0\u4e2a\u9875\u9762\u9700\u8981\u5411\u7528\u6237\u663e\u793a\u8b66\u544a\u7684\u4fe1\u606f\u65f6\u3002"),l.a.createElement("li",null,"\u975e\u6d6e\u5c42\u7684\u9759\u6001\u5c55\u73b0\u5f62\u5f0f\uff0c\u59cb\u7ec8\u5c55\u73b0\uff0c\u4e0d\u4f1a\u81ea\u52a8\u6d88\u5931\uff0c\u7528\u6237\u53ef\u4ee5\u70b9\u51fb\u5173\u95ed\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"]["alert-basic"].previewerProps,l.a.createElement(m,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u56db\u79cd\u6837\u5f0f"},l.a.createElement(r["AnchorLink"],{to:"#\u56db\u79cd\u6837\u5f0f","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u56db\u79cd\u6837\u5f0f")),l.a.createElement(c["default"],o["default"]["alert-style"].previewerProps,l.a.createElement(d,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u53ef\u5173\u95ed\u7684\u8b66\u544a\u63d0\u793a"},l.a.createElement(r["AnchorLink"],{to:"#\u53ef\u5173\u95ed\u7684\u8b66\u544a\u63d0\u793a","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u53ef\u5173\u95ed\u7684\u8b66\u544a\u63d0\u793a")),l.a.createElement(c["default"],o["default"]["alert-closable"].previewerProps,l.a.createElement(i,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u542b\u6709\u8f85\u52a9\u6027\u6587\u5b57\u4ecb\u7ecd"},l.a.createElement(r["AnchorLink"],{to:"#\u542b\u6709\u8f85\u52a9\u6027\u6587\u5b57\u4ecb\u7ecd","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u542b\u6709\u8f85\u52a9\u6027\u6587\u5b57\u4ecb\u7ecd")),l.a.createElement(c["default"],o["default"]["alert-description"].previewerProps,l.a.createElement(u,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u56fe\u6807"},l.a.createElement(r["AnchorLink"],{to:"#\u56fe\u6807","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u56fe\u6807")),l.a.createElement(c["default"],o["default"]["alert-icon"].previewerProps,l.a.createElement(s,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u5173\u95ed"},l.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u5173\u95ed","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u5173\u95ed")),l.a.createElement(c["default"],o["default"]["alert-close-text"].previewerProps,l.a.createElement(E,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u9876\u90e8\u516c\u544a"},l.a.createElement(r["AnchorLink"],{to:"#\u9876\u90e8\u516c\u544a","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u9876\u90e8\u516c\u544a")),l.a.createElement(c["default"],o["default"]["alert-banner"].previewerProps,l.a.createElement(f,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u8f6e\u64ad\u7684\u516c\u544a"},l.a.createElement(r["AnchorLink"],{to:"#\u8f6e\u64ad\u7684\u516c\u544a","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u8f6e\u64ad\u7684\u516c\u544a")),l.a.createElement(c["default"],o["default"]["alert-loop-banner"].previewerProps,l.a.createElement(p,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u5e73\u6ed1\u5730\u5378\u8f7d"},l.a.createElement(r["AnchorLink"],{to:"#\u5e73\u6ed1\u5730\u5378\u8f7d","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u5e73\u6ed1\u5730\u5378\u8f7d")),l.a.createElement(c["default"],o["default"]["alert-smooth-closed"].previewerProps,l.a.createElement(b,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u64cd\u4f5c"},l.a.createElement(r["AnchorLink"],{to:"#\u64cd\u4f5c","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u64cd\u4f5c")),l.a.createElement(c["default"],o["default"]["alert-action"].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("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,"action"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u64cd\u4f5c\u9879"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"-"),l.a.createElement("td",null,"4.9.0")),l.a.createElement("tr",null,l.a.createElement("td",null,"afterClose"),l.a.createElement("td",null,"\u5173\u95ed\u52a8\u753b\u7ed3\u675f\u540e\u89e6\u53d1\u7684\u56de\u8c03\u51fd\u6570"),l.a.createElement("td",null,"() => void"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"banner"),l.a.createElement("td",null,"\u662f\u5426\u7528\u4f5c\u9876\u90e8\u516c\u544a"),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,"closable"),l.a.createElement("td",null,"\u9ed8\u8ba4\u4e0d\u663e\u793a\u5173\u95ed\u6309\u94ae"),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,"closeText"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u5173\u95ed\u6309\u94ae"),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,"description"),l.a.createElement("td",null,"\u8b66\u544a\u63d0\u793a\u7684\u8f85\u52a9\u6027\u6587\u5b57\u4ecb\u7ecd"),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,"icon"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u56fe\u6807\uff0c",l.a.createElement("code",null,"showIcon")," \u4e3a true \u65f6\u6709\u6548"),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,"message"),l.a.createElement("td",null,"\u8b66\u544a\u63d0\u793a\u5185\u5bb9"),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,"showIcon"),l.a.createElement("td",null,"\u662f\u5426\u663e\u793a\u8f85\u52a9\u56fe\u6807"),l.a.createElement("td",null,"boolean"),l.a.createElement("td",null,"false\uff0c",l.a.createElement("code",null,"banner")," \u6a21\u5f0f\u4e0b\u9ed8\u8ba4\u503c\u4e3a true"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"type"),l.a.createElement("td",null,"\u6307\u5b9a\u8b66\u544a\u63d0\u793a\u7684\u6837\u5f0f\uff0c\u6709\u56db\u79cd\u9009\u62e9 ",l.a.createElement("code",null,"success"),"\u3001",l.a.createElement("code",null,"info"),"\u3001",l.a.createElement("code",null,"warning"),"\u3001",l.a.createElement("code",null,"error")),l.a.createElement("td",null,"string"),l.a.createElement("td",null,l.a.createElement("code",null,"info"),"\uff0c",l.a.createElement("code",null,"banner")," \u6a21\u5f0f\u4e0b\u9ed8\u8ba4\u503c\u4e3a ",l.a.createElement("code",null,"warning")),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"onClose"),l.a.createElement("td",null,"\u5173\u95ed\u65f6\u89e6\u53d1\u7684\u56de\u8c03\u51fd\u6570"),l.a.createElement("td",null,"(e: MouseEvent) => void"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)))),l.a.createElement("h3",{id:"alerterrorboundary"},l.a.createElement(r["AnchorLink"],{to:"#alerterrorboundary","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"Alert.ErrorBoundary"),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,"description"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u9519\u8bef\u5185\u5bb9\uff0c\u5982\u679c\u672a\u6307\u5b9a\u4f1a\u5c55\u793a\u62a5\u9519\u5806\u6808"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"{","{"," error stack ","}","}"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"message"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u9519\u8bef\u6807\u9898\uff0c\u5982\u679c\u672a\u6307\u5b9a\u4f1a\u5c55\u793a\u539f\u751f\u62a5\u9519\u4fe1\u606f"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"{","{"," error ","}","}"),l.a.createElement("td",null)))),l.a.createElement("style",{dangerouslySetInnerHTML:{__html:"\n #alert-basic .ant-alert {\n margin-bottom: 16px;\n}\n .ant-alert {\n margin-bottom: 8px;\n}\n\n .ant-alert {\n margin-bottom: 8px;\n}\n"}})))))},MZF8:function(e,t,a){"use strict";var n=a("ogwx");a.d(t,"a",(function(){return n["b"]}));a("VCU9")},RZMt:function(e,t,a){},Zxc8:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),l=a.n(n),r=a("k3GJ"),c=a("MZF8"),o=a("dEAq"),m=a("H1Ra");a("RZMt");function d(e,t){return f(e)||E(e,t)||u(e,t)||i()}function i(){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 u(e,t){if(e){if("string"===typeof e)return s(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function E(e,t){var a=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,l,r=[],c=!0,o=!1;try{for(a=a.call(e);!(c=(n=a.next()).done);c=!0)if(r.push(n.value),t&&r.length===t)break}catch(m){o=!0,l=m}finally{try{c||null==a["return"]||a["return"]()}finally{if(o)throw l}}return r}}function f(e){if(Array.isArray(e))return e}function p(e,t){var a,n=null===(a=e.match(/\.(\w+)$/))||void 0===a?void 0:a[1];return n||(n=t.tsx?"tsx":"jsx"),n}var b=function(e){var t,a,i,u=Object(n["useRef"])(),s=Object(n["useContext"])(o["context"]),E=s.locale,f=Object(o["useLocaleProps"])(E,e),b=Object(o["useDemoUrl"])(f.identifier),h=f.demoUrl||b,v=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(f.identifier),k=1===Object.keys(f.sources).length,w=Object(o["useCodeSandbox"])((null===(t=f.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:f),N=Object(o["useRiddle"])((null===(a=f.hideActions)||void 0===a?void 0:a.includes("RIDDLE"))?null:f),y=Object(o["useMotions"])(f.motions||[],u.current),_=d(y,2),x=_[0],g=_[1],A=Object(o["useCopy"])(),I=d(A,2),j=I[0],L=I[1],O=Object(n["useState"])("_"),C=d(O,2),R=C[0],S=C[1],P=Object(n["useState"])(p(R,f.sources[R])),M=d(P,2),T=M[0],U=M[1],Z=Object(n["useState"])(Boolean(f.defaultShowCode)),J=d(Z,2),q=J[0],B=J[1],F=Object(n["useState"])(Math.random()),$=d(F,2),D=$[0],H=$[1],G=f.sources[R][T]||f.sources[R].content,X=Object(o["useTSPlaygroundUrl"])(E,G),K=Object(n["useRef"])(),V=Object(o["usePrefersColor"])(),z=d(V,1),Q=z[0];function W(e){S(e),U(p(e,f.sources[e]))}return Object(n["useEffect"])((function(){H(Math.random())}),[Q]),l.a.createElement("div",{style:f.style,className:[f.className,"__dumi-default-previewer",v?"__dumi-default-previewer-target":""].filter(Boolean).join(" "),id:f.identifier,"data-debug":f.debug||void 0,"data-iframe":f.iframe||void 0},f.iframe&&l.a.createElement("div",{className:"__dumi-default-previewer-browser-nav"}),l.a.createElement("div",{ref:u,className:"__dumi-default-previewer-demo",style:{transform:f.transform?"translate(0, 0)":void 0,padding:f.compact||f.iframe&&!1!==f.compact?"0":void 0,background:f.background}},f.iframe?l.a.createElement("iframe",{title:"dumi-previewer",style:{height:String(f.iframe).replace(/(\d)$/,"$1px")},key:D,src:h,ref:K}):f.children),l.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":f.title},f.title&&l.a.createElement(o["AnchorLink"],{to:"#".concat(f.identifier)},f.title),f.description&&l.a.createElement("div",{dangerouslySetInnerHTML:{__html:f.description}})),l.a.createElement("div",{className:"__dumi-default-previewer-actions"},w&&l.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:w}),N&&l.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:N}),f.motions&&l.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:g,onClick:function(){return x()}}),f.iframe&&l.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return H(Math.random())}}),!(null===(i=f.hideActions)||void 0===i?void 0:i.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":L,onClick:function(){return j(G)}}),"tsx"===T&&q&&l.a.createElement(o["Link"],{target:"_blank",to:X},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(q?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:function(){return B(!q)}})),q&&l.a.createElement("div",{className:"__dumi-default-previewer-source-wrapper"},!k&&l.a.createElement(r["b"],{className:"__dumi-default-previewer-source-tab",prefixCls:"__dumi-default-tabs",moreIcon:"\xb7\xb7\xb7",defaultActiveKey:R,onChange:W},Object.keys(f.sources).map((function(e){return l.a.createElement(r["a"],{tab:"_"===e?"index.".concat(p(e,f.sources[e])):e,key:e})}))),l.a.createElement("div",{className:"__dumi-default-previewer-source"},l.a.createElement(m["a"],{code:G,lang:T,showCopy:!1}))))};t["default"]=b}}]);
1
+ (window['webpackJsonp'] = window['webpackJsonp'] || []).push([
2
+ [9],
3
+ {
4
+ MUgR: function (e, t, a) {
5
+ 'use strict';
6
+ a.r(t);
7
+ var n = a('q1tI'),
8
+ l = a.n(n),
9
+ r = a('dEAq'),
10
+ c = a('Zxc8'),
11
+ o = a('JjdP'),
12
+ m = l.a.memo(o['default']['alert-basic'].component),
13
+ d = l.a.memo(o['default']['alert-style'].component),
14
+ i = l.a.memo(o['default']['alert-closable'].component),
15
+ u = l.a.memo(o['default']['alert-description'].component),
16
+ s = l.a.memo(o['default']['alert-icon'].component),
17
+ E = l.a.memo(o['default']['alert-close-text'].component),
18
+ f = l.a.memo(o['default']['alert-banner'].component),
19
+ p = l.a.memo(o['default']['alert-loop-banner'].component),
20
+ b = l.a.memo(o['default']['alert-smooth-closed'].component),
21
+ h = l.a.memo(o['default']['alert-action'].component);
22
+ t['default'] = (e) => (
23
+ l.a.useEffect(() => {
24
+ var t;
25
+ null !== e &&
26
+ void 0 !== e &&
27
+ null !== (t = e.location) &&
28
+ void 0 !== t &&
29
+ t.hash &&
30
+ r['AnchorLink'].scrollToAnchor(
31
+ decodeURIComponent(e.location.hash.slice(1)),
32
+ );
33
+ }, []),
34
+ l.a.createElement(
35
+ l.a.Fragment,
36
+ null,
37
+ l.a.createElement(
38
+ l.a.Fragment,
39
+ null,
40
+ l.a.createElement(
41
+ 'div',
42
+ { className: 'markdown' },
43
+ l.a.createElement(
44
+ 'h1',
45
+ { id: 'alert-\u8b66\u544a\u63d0\u793a' },
46
+ l.a.createElement(
47
+ r['AnchorLink'],
48
+ {
49
+ to: '#alert-\u8b66\u544a\u63d0\u793a',
50
+ 'aria-hidden': 'true',
51
+ tabIndex: -1,
52
+ },
53
+ l.a.createElement('span', { className: 'icon icon-link' }),
54
+ ),
55
+ 'Alert \u8b66\u544a\u63d0\u793a',
56
+ ),
57
+ l.a.createElement(
58
+ 'p',
59
+ null,
60
+ '\u8b66\u544a\u63d0\u793a\uff0c\u5c55\u73b0\u9700\u8981\u5173\u6ce8\u7684\u4fe1\u606f\u3002',
61
+ ),
62
+ l.a.createElement(
63
+ 'h2',
64
+ { id: '\u4f55\u65f6\u4f7f\u7528' },
65
+ l.a.createElement(
66
+ r['AnchorLink'],
67
+ {
68
+ to: '#\u4f55\u65f6\u4f7f\u7528',
69
+ 'aria-hidden': 'true',
70
+ tabIndex: -1,
71
+ },
72
+ l.a.createElement('span', { className: 'icon icon-link' }),
73
+ ),
74
+ '\u4f55\u65f6\u4f7f\u7528',
75
+ ),
76
+ l.a.createElement(
77
+ 'ul',
78
+ null,
79
+ l.a.createElement(
80
+ 'li',
81
+ null,
82
+ '\u5f53\u67d0\u4e2a\u9875\u9762\u9700\u8981\u5411\u7528\u6237\u663e\u793a\u8b66\u544a\u7684\u4fe1\u606f\u65f6\u3002',
83
+ ),
84
+ l.a.createElement(
85
+ 'li',
86
+ null,
87
+ '\u975e\u6d6e\u5c42\u7684\u9759\u6001\u5c55\u73b0\u5f62\u5f0f\uff0c\u59cb\u7ec8\u5c55\u73b0\uff0c\u4e0d\u4f1a\u81ea\u52a8\u6d88\u5931\uff0c\u7528\u6237\u53ef\u4ee5\u70b9\u51fb\u5173\u95ed\u3002',
88
+ ),
89
+ ),
90
+ l.a.createElement(
91
+ 'h2',
92
+ { id: '\u4ee3\u7801\u6f14\u793a' },
93
+ l.a.createElement(
94
+ r['AnchorLink'],
95
+ {
96
+ to: '#\u4ee3\u7801\u6f14\u793a',
97
+ 'aria-hidden': 'true',
98
+ tabIndex: -1,
99
+ },
100
+ l.a.createElement('span', { className: 'icon icon-link' }),
101
+ ),
102
+ '\u4ee3\u7801\u6f14\u793a',
103
+ ),
104
+ l.a.createElement(
105
+ 'h3',
106
+ { id: '\u57fa\u672c' },
107
+ l.a.createElement(
108
+ r['AnchorLink'],
109
+ { to: '#\u57fa\u672c', 'aria-hidden': 'true', tabIndex: -1 },
110
+ l.a.createElement('span', { className: 'icon icon-link' }),
111
+ ),
112
+ '\u57fa\u672c',
113
+ ),
114
+ ),
115
+ l.a.createElement(
116
+ c['default'],
117
+ o['default']['alert-basic'].previewerProps,
118
+ l.a.createElement(m, null),
119
+ ),
120
+ l.a.createElement(
121
+ 'div',
122
+ { className: 'markdown' },
123
+ l.a.createElement(
124
+ 'h3',
125
+ { id: '\u56db\u79cd\u6837\u5f0f' },
126
+ l.a.createElement(
127
+ r['AnchorLink'],
128
+ {
129
+ to: '#\u56db\u79cd\u6837\u5f0f',
130
+ 'aria-hidden': 'true',
131
+ tabIndex: -1,
132
+ },
133
+ l.a.createElement('span', { className: 'icon icon-link' }),
134
+ ),
135
+ '\u56db\u79cd\u6837\u5f0f',
136
+ ),
137
+ ),
138
+ l.a.createElement(
139
+ c['default'],
140
+ o['default']['alert-style'].previewerProps,
141
+ l.a.createElement(d, null),
142
+ ),
143
+ l.a.createElement(
144
+ 'div',
145
+ { className: 'markdown' },
146
+ l.a.createElement(
147
+ 'h3',
148
+ { id: '\u53ef\u5173\u95ed\u7684\u8b66\u544a\u63d0\u793a' },
149
+ l.a.createElement(
150
+ r['AnchorLink'],
151
+ {
152
+ to: '#\u53ef\u5173\u95ed\u7684\u8b66\u544a\u63d0\u793a',
153
+ 'aria-hidden': 'true',
154
+ tabIndex: -1,
155
+ },
156
+ l.a.createElement('span', { className: 'icon icon-link' }),
157
+ ),
158
+ '\u53ef\u5173\u95ed\u7684\u8b66\u544a\u63d0\u793a',
159
+ ),
160
+ ),
161
+ l.a.createElement(
162
+ c['default'],
163
+ o['default']['alert-closable'].previewerProps,
164
+ l.a.createElement(i, null),
165
+ ),
166
+ l.a.createElement(
167
+ 'div',
168
+ { className: 'markdown' },
169
+ l.a.createElement(
170
+ 'h3',
171
+ {
172
+ id: '\u542b\u6709\u8f85\u52a9\u6027\u6587\u5b57\u4ecb\u7ecd',
173
+ },
174
+ l.a.createElement(
175
+ r['AnchorLink'],
176
+ {
177
+ to: '#\u542b\u6709\u8f85\u52a9\u6027\u6587\u5b57\u4ecb\u7ecd',
178
+ 'aria-hidden': 'true',
179
+ tabIndex: -1,
180
+ },
181
+ l.a.createElement('span', { className: 'icon icon-link' }),
182
+ ),
183
+ '\u542b\u6709\u8f85\u52a9\u6027\u6587\u5b57\u4ecb\u7ecd',
184
+ ),
185
+ ),
186
+ l.a.createElement(
187
+ c['default'],
188
+ o['default']['alert-description'].previewerProps,
189
+ l.a.createElement(u, null),
190
+ ),
191
+ l.a.createElement(
192
+ 'div',
193
+ { className: 'markdown' },
194
+ l.a.createElement(
195
+ 'h3',
196
+ { id: '\u56fe\u6807' },
197
+ l.a.createElement(
198
+ r['AnchorLink'],
199
+ { to: '#\u56fe\u6807', 'aria-hidden': 'true', tabIndex: -1 },
200
+ l.a.createElement('span', { className: 'icon icon-link' }),
201
+ ),
202
+ '\u56fe\u6807',
203
+ ),
204
+ ),
205
+ l.a.createElement(
206
+ c['default'],
207
+ o['default']['alert-icon'].previewerProps,
208
+ l.a.createElement(s, null),
209
+ ),
210
+ l.a.createElement(
211
+ 'div',
212
+ { className: 'markdown' },
213
+ l.a.createElement(
214
+ 'h3',
215
+ { id: '\u81ea\u5b9a\u4e49\u5173\u95ed' },
216
+ l.a.createElement(
217
+ r['AnchorLink'],
218
+ {
219
+ to: '#\u81ea\u5b9a\u4e49\u5173\u95ed',
220
+ 'aria-hidden': 'true',
221
+ tabIndex: -1,
222
+ },
223
+ l.a.createElement('span', { className: 'icon icon-link' }),
224
+ ),
225
+ '\u81ea\u5b9a\u4e49\u5173\u95ed',
226
+ ),
227
+ ),
228
+ l.a.createElement(
229
+ c['default'],
230
+ o['default']['alert-close-text'].previewerProps,
231
+ l.a.createElement(E, null),
232
+ ),
233
+ l.a.createElement(
234
+ 'div',
235
+ { className: 'markdown' },
236
+ l.a.createElement(
237
+ 'h3',
238
+ { id: '\u9876\u90e8\u516c\u544a' },
239
+ l.a.createElement(
240
+ r['AnchorLink'],
241
+ {
242
+ to: '#\u9876\u90e8\u516c\u544a',
243
+ 'aria-hidden': 'true',
244
+ tabIndex: -1,
245
+ },
246
+ l.a.createElement('span', { className: 'icon icon-link' }),
247
+ ),
248
+ '\u9876\u90e8\u516c\u544a',
249
+ ),
250
+ ),
251
+ l.a.createElement(
252
+ c['default'],
253
+ o['default']['alert-banner'].previewerProps,
254
+ l.a.createElement(f, null),
255
+ ),
256
+ l.a.createElement(
257
+ 'div',
258
+ { className: 'markdown' },
259
+ l.a.createElement(
260
+ 'h3',
261
+ { id: '\u8f6e\u64ad\u7684\u516c\u544a' },
262
+ l.a.createElement(
263
+ r['AnchorLink'],
264
+ {
265
+ to: '#\u8f6e\u64ad\u7684\u516c\u544a',
266
+ 'aria-hidden': 'true',
267
+ tabIndex: -1,
268
+ },
269
+ l.a.createElement('span', { className: 'icon icon-link' }),
270
+ ),
271
+ '\u8f6e\u64ad\u7684\u516c\u544a',
272
+ ),
273
+ ),
274
+ l.a.createElement(
275
+ c['default'],
276
+ o['default']['alert-loop-banner'].previewerProps,
277
+ l.a.createElement(p, null),
278
+ ),
279
+ l.a.createElement(
280
+ 'div',
281
+ { className: 'markdown' },
282
+ l.a.createElement(
283
+ 'h3',
284
+ { id: '\u5e73\u6ed1\u5730\u5378\u8f7d' },
285
+ l.a.createElement(
286
+ r['AnchorLink'],
287
+ {
288
+ to: '#\u5e73\u6ed1\u5730\u5378\u8f7d',
289
+ 'aria-hidden': 'true',
290
+ tabIndex: -1,
291
+ },
292
+ l.a.createElement('span', { className: 'icon icon-link' }),
293
+ ),
294
+ '\u5e73\u6ed1\u5730\u5378\u8f7d',
295
+ ),
296
+ ),
297
+ l.a.createElement(
298
+ c['default'],
299
+ o['default']['alert-smooth-closed'].previewerProps,
300
+ l.a.createElement(b, null),
301
+ ),
302
+ l.a.createElement(
303
+ 'div',
304
+ { className: 'markdown' },
305
+ l.a.createElement(
306
+ 'h3',
307
+ { id: '\u64cd\u4f5c' },
308
+ l.a.createElement(
309
+ r['AnchorLink'],
310
+ { to: '#\u64cd\u4f5c', 'aria-hidden': 'true', tabIndex: -1 },
311
+ l.a.createElement('span', { className: 'icon icon-link' }),
312
+ ),
313
+ '\u64cd\u4f5c',
314
+ ),
315
+ ),
316
+ l.a.createElement(
317
+ c['default'],
318
+ o['default']['alert-action'].previewerProps,
319
+ l.a.createElement(h, null),
320
+ ),
321
+ l.a.createElement(
322
+ 'div',
323
+ { className: 'markdown' },
324
+ l.a.createElement(
325
+ 'h2',
326
+ { id: 'api' },
327
+ l.a.createElement(
328
+ r['AnchorLink'],
329
+ { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
330
+ l.a.createElement('span', { className: 'icon icon-link' }),
331
+ ),
332
+ 'API',
333
+ ),
334
+ l.a.createElement(
335
+ 'table',
336
+ null,
337
+ l.a.createElement(
338
+ 'thead',
339
+ null,
340
+ l.a.createElement(
341
+ 'tr',
342
+ null,
343
+ l.a.createElement('th', null, '\u53c2\u6570'),
344
+ l.a.createElement('th', null, '\u8bf4\u660e'),
345
+ l.a.createElement('th', null, '\u7c7b\u578b'),
346
+ l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
347
+ l.a.createElement('th', null, '\u7248\u672c'),
348
+ ),
349
+ ),
350
+ l.a.createElement(
351
+ 'tbody',
352
+ null,
353
+ l.a.createElement(
354
+ 'tr',
355
+ null,
356
+ l.a.createElement('td', null, 'action'),
357
+ l.a.createElement(
358
+ 'td',
359
+ null,
360
+ '\u81ea\u5b9a\u4e49\u64cd\u4f5c\u9879',
361
+ ),
362
+ l.a.createElement('td', null, 'ReactNode'),
363
+ l.a.createElement('td', null, '-'),
364
+ l.a.createElement('td', null, '4.9.0'),
365
+ ),
366
+ l.a.createElement(
367
+ 'tr',
368
+ null,
369
+ l.a.createElement('td', null, 'afterClose'),
370
+ l.a.createElement(
371
+ 'td',
372
+ null,
373
+ '\u5173\u95ed\u52a8\u753b\u7ed3\u675f\u540e\u89e6\u53d1\u7684\u56de\u8c03\u51fd\u6570',
374
+ ),
375
+ l.a.createElement('td', null, '() => void'),
376
+ l.a.createElement('td', null, '-'),
377
+ l.a.createElement('td', null),
378
+ ),
379
+ l.a.createElement(
380
+ 'tr',
381
+ null,
382
+ l.a.createElement('td', null, 'banner'),
383
+ l.a.createElement(
384
+ 'td',
385
+ null,
386
+ '\u662f\u5426\u7528\u4f5c\u9876\u90e8\u516c\u544a',
387
+ ),
388
+ l.a.createElement('td', null, 'boolean'),
389
+ l.a.createElement('td', null, 'false'),
390
+ l.a.createElement('td', null),
391
+ ),
392
+ l.a.createElement(
393
+ 'tr',
394
+ null,
395
+ l.a.createElement('td', null, 'closable'),
396
+ l.a.createElement(
397
+ 'td',
398
+ null,
399
+ '\u9ed8\u8ba4\u4e0d\u663e\u793a\u5173\u95ed\u6309\u94ae',
400
+ ),
401
+ l.a.createElement('td', null, 'boolean'),
402
+ l.a.createElement('td', null, '-'),
403
+ l.a.createElement('td', null),
404
+ ),
405
+ l.a.createElement(
406
+ 'tr',
407
+ null,
408
+ l.a.createElement('td', null, 'closeText'),
409
+ l.a.createElement(
410
+ 'td',
411
+ null,
412
+ '\u81ea\u5b9a\u4e49\u5173\u95ed\u6309\u94ae',
413
+ ),
414
+ l.a.createElement('td', null, 'ReactNode'),
415
+ l.a.createElement('td', null, '-'),
416
+ l.a.createElement('td', null),
417
+ ),
418
+ l.a.createElement(
419
+ 'tr',
420
+ null,
421
+ l.a.createElement('td', null, 'description'),
422
+ l.a.createElement(
423
+ 'td',
424
+ null,
425
+ '\u8b66\u544a\u63d0\u793a\u7684\u8f85\u52a9\u6027\u6587\u5b57\u4ecb\u7ecd',
426
+ ),
427
+ l.a.createElement('td', null, 'ReactNode'),
428
+ l.a.createElement('td', null, '-'),
429
+ l.a.createElement('td', null),
430
+ ),
431
+ l.a.createElement(
432
+ 'tr',
433
+ null,
434
+ l.a.createElement('td', null, 'icon'),
435
+ l.a.createElement(
436
+ 'td',
437
+ null,
438
+ '\u81ea\u5b9a\u4e49\u56fe\u6807\uff0c',
439
+ l.a.createElement('code', null, 'showIcon'),
440
+ ' \u4e3a true \u65f6\u6709\u6548',
441
+ ),
442
+ l.a.createElement('td', null, 'ReactNode'),
443
+ l.a.createElement('td', null, '-'),
444
+ l.a.createElement('td', null),
445
+ ),
446
+ l.a.createElement(
447
+ 'tr',
448
+ null,
449
+ l.a.createElement('td', null, 'message'),
450
+ l.a.createElement(
451
+ 'td',
452
+ null,
453
+ '\u8b66\u544a\u63d0\u793a\u5185\u5bb9',
454
+ ),
455
+ l.a.createElement('td', null, 'ReactNode'),
456
+ l.a.createElement('td', null, '-'),
457
+ l.a.createElement('td', null),
458
+ ),
459
+ l.a.createElement(
460
+ 'tr',
461
+ null,
462
+ l.a.createElement('td', null, 'showIcon'),
463
+ l.a.createElement(
464
+ 'td',
465
+ null,
466
+ '\u662f\u5426\u663e\u793a\u8f85\u52a9\u56fe\u6807',
467
+ ),
468
+ l.a.createElement('td', null, 'boolean'),
469
+ l.a.createElement(
470
+ 'td',
471
+ null,
472
+ 'false\uff0c',
473
+ l.a.createElement('code', null, 'banner'),
474
+ ' \u6a21\u5f0f\u4e0b\u9ed8\u8ba4\u503c\u4e3a true',
475
+ ),
476
+ l.a.createElement('td', null),
477
+ ),
478
+ l.a.createElement(
479
+ 'tr',
480
+ null,
481
+ l.a.createElement('td', null, 'type'),
482
+ l.a.createElement(
483
+ 'td',
484
+ null,
485
+ '\u6307\u5b9a\u8b66\u544a\u63d0\u793a\u7684\u6837\u5f0f\uff0c\u6709\u56db\u79cd\u9009\u62e9 ',
486
+ l.a.createElement('code', null, 'success'),
487
+ '\u3001',
488
+ l.a.createElement('code', null, 'info'),
489
+ '\u3001',
490
+ l.a.createElement('code', null, 'warning'),
491
+ '\u3001',
492
+ l.a.createElement('code', null, 'error'),
493
+ ),
494
+ l.a.createElement('td', null, 'string'),
495
+ l.a.createElement(
496
+ 'td',
497
+ null,
498
+ l.a.createElement('code', null, 'info'),
499
+ '\uff0c',
500
+ l.a.createElement('code', null, 'banner'),
501
+ ' \u6a21\u5f0f\u4e0b\u9ed8\u8ba4\u503c\u4e3a ',
502
+ l.a.createElement('code', null, 'warning'),
503
+ ),
504
+ l.a.createElement('td', null),
505
+ ),
506
+ l.a.createElement(
507
+ 'tr',
508
+ null,
509
+ l.a.createElement('td', null, 'onClose'),
510
+ l.a.createElement(
511
+ 'td',
512
+ null,
513
+ '\u5173\u95ed\u65f6\u89e6\u53d1\u7684\u56de\u8c03\u51fd\u6570',
514
+ ),
515
+ l.a.createElement('td', null, '(e: MouseEvent) => void'),
516
+ l.a.createElement('td', null, '-'),
517
+ l.a.createElement('td', null),
518
+ ),
519
+ ),
520
+ ),
521
+ l.a.createElement(
522
+ 'h3',
523
+ { id: 'alerterrorboundary' },
524
+ l.a.createElement(
525
+ r['AnchorLink'],
526
+ {
527
+ to: '#alerterrorboundary',
528
+ 'aria-hidden': 'true',
529
+ tabIndex: -1,
530
+ },
531
+ l.a.createElement('span', { className: 'icon icon-link' }),
532
+ ),
533
+ 'Alert.ErrorBoundary',
534
+ ),
535
+ l.a.createElement(
536
+ 'table',
537
+ null,
538
+ l.a.createElement(
539
+ 'thead',
540
+ null,
541
+ l.a.createElement(
542
+ 'tr',
543
+ null,
544
+ l.a.createElement('th', null, '\u53c2\u6570'),
545
+ l.a.createElement('th', null, '\u8bf4\u660e'),
546
+ l.a.createElement('th', null, '\u7c7b\u578b'),
547
+ l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
548
+ l.a.createElement('th', null, '\u7248\u672c'),
549
+ ),
550
+ ),
551
+ l.a.createElement(
552
+ 'tbody',
553
+ null,
554
+ l.a.createElement(
555
+ 'tr',
556
+ null,
557
+ l.a.createElement('td', null, 'description'),
558
+ l.a.createElement(
559
+ 'td',
560
+ null,
561
+ '\u81ea\u5b9a\u4e49\u9519\u8bef\u5185\u5bb9\uff0c\u5982\u679c\u672a\u6307\u5b9a\u4f1a\u5c55\u793a\u62a5\u9519\u5806\u6808',
562
+ ),
563
+ l.a.createElement('td', null, 'ReactNode'),
564
+ l.a.createElement(
565
+ 'td',
566
+ null,
567
+ '{',
568
+ '{',
569
+ ' error stack ',
570
+ '}',
571
+ '}',
572
+ ),
573
+ l.a.createElement('td', null),
574
+ ),
575
+ l.a.createElement(
576
+ 'tr',
577
+ null,
578
+ l.a.createElement('td', null, 'message'),
579
+ l.a.createElement(
580
+ 'td',
581
+ null,
582
+ '\u81ea\u5b9a\u4e49\u9519\u8bef\u6807\u9898\uff0c\u5982\u679c\u672a\u6307\u5b9a\u4f1a\u5c55\u793a\u539f\u751f\u62a5\u9519\u4fe1\u606f',
583
+ ),
584
+ l.a.createElement('td', null, 'ReactNode'),
585
+ l.a.createElement(
586
+ 'td',
587
+ null,
588
+ '{',
589
+ '{',
590
+ ' error ',
591
+ '}',
592
+ '}',
593
+ ),
594
+ l.a.createElement('td', null),
595
+ ),
596
+ ),
597
+ ),
598
+ l.a.createElement('style', {
599
+ dangerouslySetInnerHTML: {
600
+ __html:
601
+ '\n #alert-basic .ant-alert {\n margin-bottom: 16px;\n}\n .ant-alert {\n margin-bottom: 8px;\n}\n\n .ant-alert {\n margin-bottom: 8px;\n}\n',
602
+ },
603
+ }),
604
+ ),
605
+ ),
606
+ )
607
+ );
608
+ },
609
+ MZF8: function (e, t, a) {
610
+ 'use strict';
611
+ var n = a('ogwx');
612
+ a.d(t, 'a', function () {
613
+ return n['b'];
614
+ });
615
+ a('VCU9');
616
+ },
617
+ RZMt: function (e, t, a) {},
618
+ Zxc8: function (e, t, a) {
619
+ 'use strict';
620
+ a.r(t);
621
+ var n = a('q1tI'),
622
+ l = a.n(n),
623
+ r = a('k3GJ'),
624
+ c = a('MZF8'),
625
+ o = a('dEAq'),
626
+ m = a('H1Ra');
627
+ a('RZMt');
628
+ function d(e, t) {
629
+ return f(e) || E(e, t) || u(e, t) || i();
630
+ }
631
+ function i() {
632
+ throw new TypeError(
633
+ 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
634
+ );
635
+ }
636
+ function u(e, t) {
637
+ if (e) {
638
+ if ('string' === typeof e) return s(e, t);
639
+ var a = Object.prototype.toString.call(e).slice(8, -1);
640
+ return (
641
+ 'Object' === a && e.constructor && (a = e.constructor.name),
642
+ 'Map' === a || 'Set' === a
643
+ ? Array.from(e)
644
+ : 'Arguments' === a ||
645
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
646
+ ? s(e, t)
647
+ : void 0
648
+ );
649
+ }
650
+ }
651
+ function s(e, t) {
652
+ (null == t || t > e.length) && (t = e.length);
653
+ for (var a = 0, n = new Array(t); a < t; a++) n[a] = e[a];
654
+ return n;
655
+ }
656
+ function E(e, t) {
657
+ var a =
658
+ null == e
659
+ ? null
660
+ : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
661
+ e['@@iterator'];
662
+ if (null != a) {
663
+ var n,
664
+ l,
665
+ r = [],
666
+ c = !0,
667
+ o = !1;
668
+ try {
669
+ for (a = a.call(e); !(c = (n = a.next()).done); c = !0)
670
+ if ((r.push(n.value), t && r.length === t)) break;
671
+ } catch (m) {
672
+ (o = !0), (l = m);
673
+ } finally {
674
+ try {
675
+ c || null == a['return'] || a['return']();
676
+ } finally {
677
+ if (o) throw l;
678
+ }
679
+ }
680
+ return r;
681
+ }
682
+ }
683
+ function f(e) {
684
+ if (Array.isArray(e)) return e;
685
+ }
686
+ function p(e, t) {
687
+ var a,
688
+ n =
689
+ null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
690
+ return n || (n = t.tsx ? 'tsx' : 'jsx'), n;
691
+ }
692
+ var b = function (e) {
693
+ var t,
694
+ a,
695
+ i,
696
+ u = Object(n['useRef'])(),
697
+ s = Object(n['useContext'])(o['context']),
698
+ E = s.locale,
699
+ f = Object(o['useLocaleProps'])(E, e),
700
+ b = Object(o['useDemoUrl'])(f.identifier),
701
+ h = f.demoUrl || b,
702
+ v =
703
+ (null === c['a'] || void 0 === c['a']
704
+ ? void 0
705
+ : c['a'].location.hash) === '#'.concat(f.identifier),
706
+ k = 1 === Object.keys(f.sources).length,
707
+ w = Object(o['useCodeSandbox'])(
708
+ (
709
+ null === (t = f.hideActions) || void 0 === t
710
+ ? void 0
711
+ : t.includes('CSB')
712
+ )
713
+ ? null
714
+ : f,
715
+ ),
716
+ N = Object(o['useRiddle'])(
717
+ (
718
+ null === (a = f.hideActions) || void 0 === a
719
+ ? void 0
720
+ : a.includes('RIDDLE')
721
+ )
722
+ ? null
723
+ : f,
724
+ ),
725
+ y = Object(o['useMotions'])(f.motions || [], u.current),
726
+ _ = d(y, 2),
727
+ x = _[0],
728
+ g = _[1],
729
+ A = Object(o['useCopy'])(),
730
+ I = d(A, 2),
731
+ j = I[0],
732
+ L = I[1],
733
+ O = Object(n['useState'])('_'),
734
+ C = d(O, 2),
735
+ R = C[0],
736
+ S = C[1],
737
+ P = Object(n['useState'])(p(R, f.sources[R])),
738
+ M = d(P, 2),
739
+ T = M[0],
740
+ U = M[1],
741
+ Z = Object(n['useState'])(Boolean(f.defaultShowCode)),
742
+ J = d(Z, 2),
743
+ q = J[0],
744
+ B = J[1],
745
+ F = Object(n['useState'])(Math.random()),
746
+ $ = d(F, 2),
747
+ D = $[0],
748
+ H = $[1],
749
+ G = f.sources[R][T] || f.sources[R].content,
750
+ X = Object(o['useTSPlaygroundUrl'])(E, G),
751
+ K = Object(n['useRef'])(),
752
+ V = Object(o['usePrefersColor'])(),
753
+ z = d(V, 1),
754
+ Q = z[0];
755
+ function W(e) {
756
+ S(e), U(p(e, f.sources[e]));
757
+ }
758
+ return (
759
+ Object(n['useEffect'])(
760
+ function () {
761
+ H(Math.random());
762
+ },
763
+ [Q],
764
+ ),
765
+ l.a.createElement(
766
+ 'div',
767
+ {
768
+ style: f.style,
769
+ className: [
770
+ f.className,
771
+ '__dumi-default-previewer',
772
+ v ? '__dumi-default-previewer-target' : '',
773
+ ]
774
+ .filter(Boolean)
775
+ .join(' '),
776
+ id: f.identifier,
777
+ 'data-debug': f.debug || void 0,
778
+ 'data-iframe': f.iframe || void 0,
779
+ },
780
+ f.iframe &&
781
+ l.a.createElement('div', {
782
+ className: '__dumi-default-previewer-browser-nav',
783
+ }),
784
+ l.a.createElement(
785
+ 'div',
786
+ {
787
+ ref: u,
788
+ className: '__dumi-default-previewer-demo',
789
+ style: {
790
+ transform: f.transform ? 'translate(0, 0)' : void 0,
791
+ padding:
792
+ f.compact || (f.iframe && !1 !== f.compact) ? '0' : void 0,
793
+ background: f.background,
794
+ },
795
+ },
796
+ f.iframe
797
+ ? l.a.createElement('iframe', {
798
+ title: 'dumi-previewer',
799
+ style: {
800
+ height: String(f.iframe).replace(/(\d)$/, '$1px'),
801
+ },
802
+ key: D,
803
+ src: h,
804
+ ref: K,
805
+ })
806
+ : f.children,
807
+ ),
808
+ l.a.createElement(
809
+ 'div',
810
+ {
811
+ className: '__dumi-default-previewer-desc',
812
+ 'data-title': f.title,
813
+ },
814
+ f.title &&
815
+ l.a.createElement(
816
+ o['AnchorLink'],
817
+ { to: '#'.concat(f.identifier) },
818
+ f.title,
819
+ ),
820
+ f.description &&
821
+ l.a.createElement('div', {
822
+ dangerouslySetInnerHTML: { __html: f.description },
823
+ }),
824
+ ),
825
+ l.a.createElement(
826
+ 'div',
827
+ { className: '__dumi-default-previewer-actions' },
828
+ w &&
829
+ l.a.createElement('button', {
830
+ title: 'Open demo on CodeSandbox.io',
831
+ className: '__dumi-default-icon',
832
+ role: 'codesandbox',
833
+ onClick: w,
834
+ }),
835
+ N &&
836
+ l.a.createElement('button', {
837
+ title: 'Open demo on Riddle',
838
+ className: '__dumi-default-icon',
839
+ role: 'riddle',
840
+ onClick: N,
841
+ }),
842
+ f.motions &&
843
+ l.a.createElement('button', {
844
+ title: 'Execute motions',
845
+ className: '__dumi-default-icon',
846
+ role: 'motions',
847
+ disabled: g,
848
+ onClick: function () {
849
+ return x();
850
+ },
851
+ }),
852
+ f.iframe &&
853
+ l.a.createElement('button', {
854
+ title: 'Reload demo iframe page',
855
+ className: '__dumi-default-icon',
856
+ role: 'refresh',
857
+ onClick: function () {
858
+ return H(Math.random());
859
+ },
860
+ }),
861
+ !(null === (i = f.hideActions) || void 0 === i
862
+ ? void 0
863
+ : i.includes('EXTERNAL')) &&
864
+ l.a.createElement(
865
+ o['Link'],
866
+ { target: '_blank', to: h },
867
+ l.a.createElement('button', {
868
+ title: 'Open demo in new tab',
869
+ className: '__dumi-default-icon',
870
+ role: 'open-demo',
871
+ type: 'button',
872
+ }),
873
+ ),
874
+ l.a.createElement('span', null),
875
+ l.a.createElement('button', {
876
+ title: 'Copy source code',
877
+ className: '__dumi-default-icon',
878
+ role: 'copy',
879
+ 'data-status': L,
880
+ onClick: function () {
881
+ return j(G);
882
+ },
883
+ }),
884
+ 'tsx' === T &&
885
+ q &&
886
+ l.a.createElement(
887
+ o['Link'],
888
+ { target: '_blank', to: X },
889
+ l.a.createElement('button', {
890
+ title: 'Get JSX via TypeScript Playground',
891
+ className: '__dumi-default-icon',
892
+ role: 'change-tsx',
893
+ type: 'button',
894
+ }),
895
+ ),
896
+ l.a.createElement('button', {
897
+ title: 'Toggle source code panel',
898
+ className: '__dumi-default-icon'.concat(
899
+ q ? ' __dumi-default-btn-expand' : '',
900
+ ),
901
+ role: 'source',
902
+ type: 'button',
903
+ onClick: function () {
904
+ return B(!q);
905
+ },
906
+ }),
907
+ ),
908
+ q &&
909
+ l.a.createElement(
910
+ 'div',
911
+ { className: '__dumi-default-previewer-source-wrapper' },
912
+ !k &&
913
+ l.a.createElement(
914
+ r['b'],
915
+ {
916
+ className: '__dumi-default-previewer-source-tab',
917
+ prefixCls: '__dumi-default-tabs',
918
+ moreIcon: '\xb7\xb7\xb7',
919
+ defaultActiveKey: R,
920
+ onChange: W,
921
+ },
922
+ Object.keys(f.sources).map(function (e) {
923
+ return l.a.createElement(r['a'], {
924
+ tab:
925
+ '_' === e ? 'index.'.concat(p(e, f.sources[e])) : e,
926
+ key: e,
927
+ });
928
+ }),
929
+ ),
930
+ l.a.createElement(
931
+ 'div',
932
+ { className: '__dumi-default-previewer-source' },
933
+ l.a.createElement(m['a'], { code: G, lang: T, showCopy: !1 }),
934
+ ),
935
+ ),
936
+ )
937
+ );
938
+ };
939
+ t['default'] = b;
940
+ },
941
+ },
942
+ ]);