@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,1223 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[41],{"6noq":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("H1Ra"),m=a("JjdP"),i=l.a.memo(m["default"]["message-info"].component),u=l.a.memo(m["default"]["message-other"].component),d=l.a.memo(m["default"]["message-duration"].component),s=l.a.memo(m["default"]["message-loading"].component),E=l.a.memo(m["default"]["message-thenable"].component),f=l.a.memo(m["default"]["message-update"].component),p=l.a.memo(m["default"]["message-custom-style"].component),g=l.a.memo(m["default"]["message-hooks"].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:"message-\u5168\u5c40\u63d0\u793a"},l.a.createElement(r["AnchorLink"],{to:"#message-\u5168\u5c40\u63d0\u793a","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"Message \u5168\u5c40\u63d0\u793a"),l.a.createElement("p",null,"\u5168\u5c40\u5c55\u793a\u64cd\u4f5c\u53cd\u9988\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,"\u53ef\u63d0\u4f9b\u6210\u529f\u3001\u8b66\u544a\u548c\u9519\u8bef\u7b49\u53cd\u9988\u4fe1\u606f\u3002"),l.a.createElement("li",null,"\u9876\u90e8\u5c45\u4e2d\u663e\u793a\u5e76\u81ea\u52a8\u6d88\u5931\uff0c\u662f\u4e00\u79cd\u4e0d\u6253\u65ad\u7528\u6237\u64cd\u4f5c\u7684\u8f7b\u91cf\u7ea7\u63d0\u793a\u65b9\u5f0f\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:"\u666e\u901a\u63d0\u793a"},l.a.createElement(r["AnchorLink"],{to:"#\u666e\u901a\u63d0\u793a","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u666e\u901a\u63d0\u793a")),l.a.createElement(c["default"],m["default"]["message-info"].previewerProps,l.a.createElement(i,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u5176\u4ed6\u63d0\u793a\u7c7b\u578b"},l.a.createElement(r["AnchorLink"],{to:"#\u5176\u4ed6\u63d0\u793a\u7c7b\u578b","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u5176\u4ed6\u63d0\u793a\u7c7b\u578b")),l.a.createElement(c["default"],m["default"]["message-other"].previewerProps,l.a.createElement(u,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u4fee\u6539\u5ef6\u65f6"},l.a.createElement(r["AnchorLink"],{to:"#\u4fee\u6539\u5ef6\u65f6","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u4fee\u6539\u5ef6\u65f6")),l.a.createElement(c["default"],m["default"]["message-duration"].previewerProps,l.a.createElement(d,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u52a0\u8f7d\u4e2d"},l.a.createElement(r["AnchorLink"],{to:"#\u52a0\u8f7d\u4e2d","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d\u4e2d")),l.a.createElement(c["default"],m["default"]["message-loading"].previewerProps,l.a.createElement(s,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"promise-\u63a5\u53e3"},l.a.createElement(r["AnchorLink"],{to:"#promise-\u63a5\u53e3","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"Promise \u63a5\u53e3")),l.a.createElement(c["default"],m["default"]["message-thenable"].previewerProps,l.a.createElement(E,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u66f4\u65b0\u6d88\u606f\u5185\u5bb9"},l.a.createElement(r["AnchorLink"],{to:"#\u66f4\u65b0\u6d88\u606f\u5185\u5bb9","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u66f4\u65b0\u6d88\u606f\u5185\u5bb9")),l.a.createElement(c["default"],m["default"]["message-update"].previewerProps,l.a.createElement(f,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u6837\u5f0f"},l.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u6837\u5f0f","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u6837\u5f0f")),l.a.createElement(c["default"],m["default"]["message-custom-style"].previewerProps,l.a.createElement(p,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u901a\u8fc7-hooks-\u83b7\u53d6\u4e0a\u4e0b\u6587450"},l.a.createElement(r["AnchorLink"],{to:"#\u901a\u8fc7-hooks-\u83b7\u53d6\u4e0a\u4e0b\u6587450","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u901a\u8fc7 Hooks \u83b7\u53d6\u4e0a\u4e0b\u6587\uff084.5.0+\uff09")),l.a.createElement(c["default"],m["default"]["message-hooks"].previewerProps,l.a.createElement(g,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,"\u7ec4\u4ef6\u63d0\u4f9b\u4e86\u4e00\u4e9b\u9759\u6001\u65b9\u6cd5\uff0c\u4f7f\u7528\u65b9\u5f0f\u548c\u53c2\u6570\u5982\u4e0b\uff1a"),l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("code",null,"message.success(content, [duration], onClose)")),l.a.createElement("li",null,l.a.createElement("code",null,"message.error(content, [duration], onClose)")),l.a.createElement("li",null,l.a.createElement("code",null,"message.info(content, [duration], onClose)")),l.a.createElement("li",null,l.a.createElement("code",null,"message.warning(content, [duration], onClose)")),l.a.createElement("li",null,l.a.createElement("code",null,"message.warn(content, [duration], onClose)")," // alias of warning"),l.a.createElement("li",null,l.a.createElement("code",null,"message.loading(content, [duration], onClose)"))),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("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,"content"),l.a.createElement("td",null,"\u63d0\u793a\u5185\u5bb9"),l.a.createElement("td",null,"ReactNode | config"),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"duration"),l.a.createElement("td",null,"\u81ea\u52a8\u5173\u95ed\u7684\u5ef6\u65f6\uff0c\u5355\u4f4d\u79d2\u3002\u8bbe\u4e3a 0 \u65f6\u4e0d\u81ea\u52a8\u5173\u95ed"),l.a.createElement("td",null,"number"),l.a.createElement("td",null,"3")),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,"function"),l.a.createElement("td",null,"-")))),l.a.createElement("p",null,"\u7ec4\u4ef6\u540c\u65f6\u63d0\u4f9b promise \u63a5\u53e3\u3002"),l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("code",null,"message[level](content, [duration]).then(afterClose)")),l.a.createElement("li",null,l.a.createElement("code",null,"message[level](content, [duration], onClose).then(afterClose)"))),l.a.createElement("p",null,"\u5176\u4e2d ",l.a.createElement("code",null,"message[level]")," \u662f\u7ec4\u4ef6\u5df2\u7ecf\u63d0\u4f9b\u7684\u9759\u6001\u65b9\u6cd5\u3002",l.a.createElement("code",null,"then")," \u63a5\u53e3\u8fd4\u56de\u503c\u662f Promise\u3002"),l.a.createElement("p",null,"\u4e5f\u53ef\u4ee5\u5bf9\u8c61\u7684\u5f62\u5f0f\u4f20\u9012\u53c2\u6570\uff1a"),l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("code",null,"message.open(config)")),l.a.createElement("li",null,l.a.createElement("code",null,"message.success(config)")),l.a.createElement("li",null,l.a.createElement("code",null,"message.error(config)")),l.a.createElement("li",null,l.a.createElement("code",null,"message.info(config)")),l.a.createElement("li",null,l.a.createElement("code",null,"message.warning(config)")),l.a.createElement("li",null,l.a.createElement("code",null,"message.warn(config)")," // alias of warning"),l.a.createElement("li",null,l.a.createElement("code",null,"message.loading(config)"))),l.a.createElement("p",null,l.a.createElement("code",null,"config")," \u5bf9\u8c61\u5c5e\u6027\u5982\u4e0b\uff1a"),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("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,"className"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49 CSS class"),l.a.createElement("td",null,"string"),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"content"),l.a.createElement("td",null,"\u63d0\u793a\u5185\u5bb9"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"duration"),l.a.createElement("td",null,"\u81ea\u52a8\u5173\u95ed\u7684\u5ef6\u65f6\uff0c\u5355\u4f4d\u79d2\u3002\u8bbe\u4e3a 0 \u65f6\u4e0d\u81ea\u52a8\u5173\u95ed"),l.a.createElement("td",null,"number"),l.a.createElement("td",null,"3")),l.a.createElement("tr",null,l.a.createElement("td",null,"icon"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u56fe\u6807"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"key"),l.a.createElement("td",null,"\u5f53\u524d\u63d0\u793a\u7684\u552f\u4e00\u6807\u5fd7"),l.a.createElement("td",null,"string | number"),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"style"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u5185\u8054\u6837\u5f0f"),l.a.createElement("td",null,l.a.createElement(r["Link"],{to:"https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e434515761b36830c3e58a970abf5186f005adac/types/react/index.d.ts#L794"},"CSSProperties")),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"onClick"),l.a.createElement("td",null,"\u70b9\u51fb message \u65f6\u89e6\u53d1\u7684\u56de\u8c03\u51fd\u6570"),l.a.createElement("td",null,"function"),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,"function"),l.a.createElement("td",null,"-")))),l.a.createElement("h3",{id:"\u5168\u5c40\u65b9\u6cd5"},l.a.createElement(r["AnchorLink"],{to:"#\u5168\u5c40\u65b9\u6cd5","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u5168\u5c40\u65b9\u6cd5"),l.a.createElement("p",null,"\u8fd8\u63d0\u4f9b\u4e86\u5168\u5c40\u914d\u7f6e\u548c\u5168\u5c40\u9500\u6bc1\u65b9\u6cd5\uff1a"),l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("code",null,"message.config(options)")),l.a.createElement("li",null,l.a.createElement("code",null,"message.destroy()"))),l.a.createElement("blockquote",null,l.a.createElement("p",null,"\u4e5f\u53ef\u901a\u8fc7 ",l.a.createElement("code",null,"message.destroy(key)")," \u6765\u5173\u95ed\u4e00\u6761\u6d88\u606f\u3002")),l.a.createElement("h4",{id:"messageconfig"},l.a.createElement(r["AnchorLink"],{to:"#messageconfig","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"message.config"),l.a.createElement("blockquote",null,l.a.createElement("p",null,"\u5f53\u4f60\u4f7f\u7528 ",l.a.createElement("code",null,"ConfigProvider")," \u8fdb\u884c\u5168\u5c40\u5316\u914d\u7f6e\u65f6\uff0c\u7cfb\u7edf\u4f1a\u9ed8\u8ba4\u81ea\u52a8\u5f00\u542f RTL \u6a21\u5f0f\u3002(4.3.0+)"),l.a.createElement("p",null,"\u5f53\u4f60\u60f3\u5355\u72ec\u4f7f\u7528\uff0c\u53ef\u901a\u8fc7\u5982\u4e0b\u8bbe\u7f6e\u5f00\u542f RTL \u6a21\u5f0f\u3002")),l.a.createElement(o["a"],{code:"message.config({\n top: 100,\n duration: 2,\n maxCount: 3,\n rtl: true,\n prefixCls: 'my-message',\n});",lang:"bash"}),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,"duration"),l.a.createElement("td",null,"\u9ed8\u8ba4\u81ea\u52a8\u5173\u95ed\u5ef6\u65f6\uff0c\u5355\u4f4d\u79d2"),l.a.createElement("td",null,"number"),l.a.createElement("td",null,"3"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"getContainer"),l.a.createElement("td",null,"\u914d\u7f6e\u6e32\u67d3\u8282\u70b9\u7684\u8f93\u51fa\u4f4d\u7f6e"),l.a.createElement("td",null,"() => HTMLElement"),l.a.createElement("td",null,"() => document.body"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"maxCount"),l.a.createElement("td",null,"\u6700\u5927\u663e\u793a\u6570, \u8d85\u8fc7\u9650\u5236\u65f6\uff0c\u6700\u65e9\u7684\u6d88\u606f\u4f1a\u88ab\u81ea\u52a8\u5173\u95ed"),l.a.createElement("td",null,"number"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"prefixCls"),l.a.createElement("td",null,"\u6d88\u606f\u8282\u70b9\u7684 className \u524d\u7f00"),l.a.createElement("td",null,"string"),l.a.createElement("td",null,l.a.createElement("code",null,"ant-message")),l.a.createElement("td",null,"4.5.0")),l.a.createElement("tr",null,l.a.createElement("td",null,"rtl"),l.a.createElement("td",null,"\u662f\u5426\u5f00\u542f RTL \u6a21\u5f0f"),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,"top"),l.a.createElement("td",null,"\u6d88\u606f\u8ddd\u79bb\u9876\u90e8\u7684\u4f4d\u7f6e"),l.a.createElement("td",null,"number"),l.a.createElement("td",null,"8"),l.a.createElement("td",null)))),l.a.createElement("h2",{id:"faq"},l.a.createElement(r["AnchorLink"],{to:"#faq","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"FAQ"),l.a.createElement("h3",{id:"\u4e3a\u4ec0\u4e48-message-\u4e0d\u80fd\u83b7\u53d6-contextredux-\u7684\u5185\u5bb9\u548c-configprovider-\u7684-localeprefixcls-\u914d\u7f6e"},l.a.createElement(r["AnchorLink"],{to:"#\u4e3a\u4ec0\u4e48-message-\u4e0d\u80fd\u83b7\u53d6-contextredux-\u7684\u5185\u5bb9\u548c-configprovider-\u7684-localeprefixcls-\u914d\u7f6e","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u4e3a\u4ec0\u4e48 message \u4e0d\u80fd\u83b7\u53d6 context\u3001redux \u7684\u5185\u5bb9\u548c ConfigProvider \u7684 ",l.a.createElement("code",null,"locale/prefixCls")," \u914d\u7f6e\uff1f"),l.a.createElement("p",null,"\u76f4\u63a5\u8c03\u7528 message \u65b9\u6cd5\uff0cantd \u4f1a\u901a\u8fc7 ",l.a.createElement("code",null,"ReactDOM.render")," \u52a8\u6001\u521b\u5efa\u65b0\u7684 React \u5b9e\u4f53\u3002\u5176 context \u4e0e\u5f53\u524d\u4ee3\u7801\u6240\u5728 context \u5e76\u4e0d\u76f8\u540c\uff0c\u56e0\u800c\u65e0\u6cd5\u83b7\u53d6 context \u4fe1\u606f\u3002"),l.a.createElement("p",null,"\u5f53\u4f60\u9700\u8981 context \u4fe1\u606f\uff08\u4f8b\u5982 ConfigProvider \u914d\u7f6e\u7684\u5185\u5bb9\uff09\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7 ",l.a.createElement("code",null,"message.useMessage")," \u65b9\u6cd5\u4f1a\u8fd4\u56de ",l.a.createElement("code",null,"api")," \u5b9e\u4f53\u4ee5\u53ca ",l.a.createElement("code",null,"contextHolder")," \u8282\u70b9\u3002\u5c06\u5176\u63d2\u5165\u5230\u4f60\u9700\u8981\u83b7\u53d6 context \u4f4d\u7f6e\u5373\u53ef\uff1a"),l.a.createElement(o["a"],{code:'const [api, contextHolder] = message.useMessage();\n\nreturn (\n <Context1.Provider value="Ant">\n {/* contextHolder \u5728 Context1 \u5185\uff0c\u5b83\u53ef\u4ee5\u83b7\u5f97 Context1 \u7684 context */}\n {contextHolder}\n <Context2.Provider value="Design">\n {/* contextHolder \u5728 Context2 \u5916\uff0c\u56e0\u800c\u4e0d\u4f1a\u83b7\u5f97 Context2 \u7684 context */}\n </Context2.Provider>\n </Context1.Provider>\n);',lang:"bash"}),l.a.createElement("p",null,"**\u5f02\u540c\uff1a**\u901a\u8fc7 hooks \u521b\u5efa\u7684 ",l.a.createElement("code",null,"contextHolder")," \u5fc5\u987b\u63d2\u5165\u5230\u5b50\u5143\u7d20\u8282\u70b9\u4e2d\u624d\u4f1a\u751f\u6548\uff0c\u5f53\u4f60\u4e0d\u9700\u8981\u4e0a\u4e0b\u6587\u4fe1\u606f\u65f6\u8bf7\u76f4\u63a5\u8c03\u7528\u3002"),l.a.createElement("h3",{id:"\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e-prefixcls-"},l.a.createElement(r["AnchorLink"],{to:"#\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e-prefixcls-","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e prefixCls \uff1f"),l.a.createElement("p",null,"\u4f60\u53ef\u4ee5\u901a\u8fc7 ",l.a.createElement(r["AnchorLink"],{to:"/components/config-provider/#ConfigProvider.config()-4.13.0+"},l.a.createElement("code",null,"ConfigProvider.config"))," \u8fdb\u884c\u8bbe\u7f6e\u3002")))))},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 i(e,t){return f(e)||E(e,t)||d(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 d(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 g=function(e){var t,a,u,d=Object(n["useRef"])(),s=Object(n["useContext"])(o["context"]),E=s.locale,f=Object(o["useLocaleProps"])(E,e),g=Object(o["useDemoUrl"])(f.identifier),h=f.demoUrl||g,b=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(f.identifier),v=1===Object.keys(f.sources).length,k=Object(o["useCodeSandbox"])((null===(t=f.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:f),x=Object(o["useRiddle"])((null===(a=f.hideActions)||void 0===a?void 0:a.includes("RIDDLE"))?null:f),y=Object(o["useMotions"])(f.motions||[],d.current),C=i(y,2),w=C[0],N=C[1],_=Object(o["useCopy"])(),A=i(_,2),L=A[0],I=A[1],P=Object(n["useState"])("_"),j=i(P,2),O=j[0],S=j[1],R=Object(n["useState"])(p(O,f.sources[O])),M=i(R,2),T=M[0],H=M[1],q=Object(n["useState"])(Boolean(f.defaultShowCode)),D=i(q,2),U=D[0],Z=D[1],F=Object(n["useState"])(Math.random()),J=i(F,2),$=J[0],B=J[1],G=f.sources[O][T]||f.sources[O].content,X=Object(o["useTSPlaygroundUrl"])(E,G),K=Object(n["useRef"])(),Q=Object(o["usePrefersColor"])(),V=i(Q,1),z=V[0];function W(e){S(e),H(p(e,f.sources[e]))}return Object(n["useEffect"])((function(){B(Math.random())}),[z]),l.a.createElement("div",{style:f.style,className:[f.className,"__dumi-default-previewer",b?"__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:d,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:$,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"},k&&l.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:k}),x&&l.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:x}),f.motions&&l.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:N,onClick:function(){return w()}}),f.iframe&&l.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return B(Math.random())}}),!(null===(u=f.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":I,onClick:function(){return L(G)}}),"tsx"===T&&U&&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(U?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:function(){return Z(!U)}})),U&&l.a.createElement("div",{className:"__dumi-default-previewer-source-wrapper"},!v&&l.a.createElement(r["b"],{className:"__dumi-default-previewer-source-tab",prefixCls:"__dumi-default-tabs",moreIcon:"\xb7\xb7\xb7",defaultActiveKey:O,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"]=g}}]);
1
+ (window['webpackJsonp'] = window['webpackJsonp'] || []).push([
2
+ [41],
3
+ {
4
+ '6noq': 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('H1Ra'),
12
+ m = a('JjdP'),
13
+ i = l.a.memo(m['default']['message-info'].component),
14
+ u = l.a.memo(m['default']['message-other'].component),
15
+ d = l.a.memo(m['default']['message-duration'].component),
16
+ s = l.a.memo(m['default']['message-loading'].component),
17
+ E = l.a.memo(m['default']['message-thenable'].component),
18
+ f = l.a.memo(m['default']['message-update'].component),
19
+ p = l.a.memo(m['default']['message-custom-style'].component),
20
+ g = l.a.memo(m['default']['message-hooks'].component);
21
+ t['default'] = (e) => (
22
+ l.a.useEffect(() => {
23
+ var t;
24
+ null !== e &&
25
+ void 0 !== e &&
26
+ null !== (t = e.location) &&
27
+ void 0 !== t &&
28
+ t.hash &&
29
+ r['AnchorLink'].scrollToAnchor(
30
+ decodeURIComponent(e.location.hash.slice(1)),
31
+ );
32
+ }, []),
33
+ l.a.createElement(
34
+ l.a.Fragment,
35
+ null,
36
+ l.a.createElement(
37
+ l.a.Fragment,
38
+ null,
39
+ l.a.createElement(
40
+ 'div',
41
+ { className: 'markdown' },
42
+ l.a.createElement(
43
+ 'h1',
44
+ { id: 'message-\u5168\u5c40\u63d0\u793a' },
45
+ l.a.createElement(
46
+ r['AnchorLink'],
47
+ {
48
+ to: '#message-\u5168\u5c40\u63d0\u793a',
49
+ 'aria-hidden': 'true',
50
+ tabIndex: -1,
51
+ },
52
+ l.a.createElement('span', { className: 'icon icon-link' }),
53
+ ),
54
+ 'Message \u5168\u5c40\u63d0\u793a',
55
+ ),
56
+ l.a.createElement(
57
+ 'p',
58
+ null,
59
+ '\u5168\u5c40\u5c55\u793a\u64cd\u4f5c\u53cd\u9988\u4fe1\u606f\u3002',
60
+ ),
61
+ l.a.createElement(
62
+ 'h2',
63
+ { id: '\u4f55\u65f6\u4f7f\u7528' },
64
+ l.a.createElement(
65
+ r['AnchorLink'],
66
+ {
67
+ to: '#\u4f55\u65f6\u4f7f\u7528',
68
+ 'aria-hidden': 'true',
69
+ tabIndex: -1,
70
+ },
71
+ l.a.createElement('span', { className: 'icon icon-link' }),
72
+ ),
73
+ '\u4f55\u65f6\u4f7f\u7528',
74
+ ),
75
+ l.a.createElement(
76
+ 'ul',
77
+ null,
78
+ l.a.createElement(
79
+ 'li',
80
+ null,
81
+ '\u53ef\u63d0\u4f9b\u6210\u529f\u3001\u8b66\u544a\u548c\u9519\u8bef\u7b49\u53cd\u9988\u4fe1\u606f\u3002',
82
+ ),
83
+ l.a.createElement(
84
+ 'li',
85
+ null,
86
+ '\u9876\u90e8\u5c45\u4e2d\u663e\u793a\u5e76\u81ea\u52a8\u6d88\u5931\uff0c\u662f\u4e00\u79cd\u4e0d\u6253\u65ad\u7528\u6237\u64cd\u4f5c\u7684\u8f7b\u91cf\u7ea7\u63d0\u793a\u65b9\u5f0f\u3002',
87
+ ),
88
+ ),
89
+ l.a.createElement(
90
+ 'h2',
91
+ { id: '\u4ee3\u7801\u6f14\u793a' },
92
+ l.a.createElement(
93
+ r['AnchorLink'],
94
+ {
95
+ to: '#\u4ee3\u7801\u6f14\u793a',
96
+ 'aria-hidden': 'true',
97
+ tabIndex: -1,
98
+ },
99
+ l.a.createElement('span', { className: 'icon icon-link' }),
100
+ ),
101
+ '\u4ee3\u7801\u6f14\u793a',
102
+ ),
103
+ l.a.createElement(
104
+ 'h3',
105
+ { id: '\u666e\u901a\u63d0\u793a' },
106
+ l.a.createElement(
107
+ r['AnchorLink'],
108
+ {
109
+ to: '#\u666e\u901a\u63d0\u793a',
110
+ 'aria-hidden': 'true',
111
+ tabIndex: -1,
112
+ },
113
+ l.a.createElement('span', { className: 'icon icon-link' }),
114
+ ),
115
+ '\u666e\u901a\u63d0\u793a',
116
+ ),
117
+ ),
118
+ l.a.createElement(
119
+ c['default'],
120
+ m['default']['message-info'].previewerProps,
121
+ l.a.createElement(i, null),
122
+ ),
123
+ l.a.createElement(
124
+ 'div',
125
+ { className: 'markdown' },
126
+ l.a.createElement(
127
+ 'h3',
128
+ { id: '\u5176\u4ed6\u63d0\u793a\u7c7b\u578b' },
129
+ l.a.createElement(
130
+ r['AnchorLink'],
131
+ {
132
+ to: '#\u5176\u4ed6\u63d0\u793a\u7c7b\u578b',
133
+ 'aria-hidden': 'true',
134
+ tabIndex: -1,
135
+ },
136
+ l.a.createElement('span', { className: 'icon icon-link' }),
137
+ ),
138
+ '\u5176\u4ed6\u63d0\u793a\u7c7b\u578b',
139
+ ),
140
+ ),
141
+ l.a.createElement(
142
+ c['default'],
143
+ m['default']['message-other'].previewerProps,
144
+ l.a.createElement(u, null),
145
+ ),
146
+ l.a.createElement(
147
+ 'div',
148
+ { className: 'markdown' },
149
+ l.a.createElement(
150
+ 'h3',
151
+ { id: '\u4fee\u6539\u5ef6\u65f6' },
152
+ l.a.createElement(
153
+ r['AnchorLink'],
154
+ {
155
+ to: '#\u4fee\u6539\u5ef6\u65f6',
156
+ 'aria-hidden': 'true',
157
+ tabIndex: -1,
158
+ },
159
+ l.a.createElement('span', { className: 'icon icon-link' }),
160
+ ),
161
+ '\u4fee\u6539\u5ef6\u65f6',
162
+ ),
163
+ ),
164
+ l.a.createElement(
165
+ c['default'],
166
+ m['default']['message-duration'].previewerProps,
167
+ l.a.createElement(d, null),
168
+ ),
169
+ l.a.createElement(
170
+ 'div',
171
+ { className: 'markdown' },
172
+ l.a.createElement(
173
+ 'h3',
174
+ { id: '\u52a0\u8f7d\u4e2d' },
175
+ l.a.createElement(
176
+ r['AnchorLink'],
177
+ {
178
+ to: '#\u52a0\u8f7d\u4e2d',
179
+ 'aria-hidden': 'true',
180
+ tabIndex: -1,
181
+ },
182
+ l.a.createElement('span', { className: 'icon icon-link' }),
183
+ ),
184
+ '\u52a0\u8f7d\u4e2d',
185
+ ),
186
+ ),
187
+ l.a.createElement(
188
+ c['default'],
189
+ m['default']['message-loading'].previewerProps,
190
+ l.a.createElement(s, null),
191
+ ),
192
+ l.a.createElement(
193
+ 'div',
194
+ { className: 'markdown' },
195
+ l.a.createElement(
196
+ 'h3',
197
+ { id: 'promise-\u63a5\u53e3' },
198
+ l.a.createElement(
199
+ r['AnchorLink'],
200
+ {
201
+ to: '#promise-\u63a5\u53e3',
202
+ 'aria-hidden': 'true',
203
+ tabIndex: -1,
204
+ },
205
+ l.a.createElement('span', { className: 'icon icon-link' }),
206
+ ),
207
+ 'Promise \u63a5\u53e3',
208
+ ),
209
+ ),
210
+ l.a.createElement(
211
+ c['default'],
212
+ m['default']['message-thenable'].previewerProps,
213
+ l.a.createElement(E, null),
214
+ ),
215
+ l.a.createElement(
216
+ 'div',
217
+ { className: 'markdown' },
218
+ l.a.createElement(
219
+ 'h3',
220
+ { id: '\u66f4\u65b0\u6d88\u606f\u5185\u5bb9' },
221
+ l.a.createElement(
222
+ r['AnchorLink'],
223
+ {
224
+ to: '#\u66f4\u65b0\u6d88\u606f\u5185\u5bb9',
225
+ 'aria-hidden': 'true',
226
+ tabIndex: -1,
227
+ },
228
+ l.a.createElement('span', { className: 'icon icon-link' }),
229
+ ),
230
+ '\u66f4\u65b0\u6d88\u606f\u5185\u5bb9',
231
+ ),
232
+ ),
233
+ l.a.createElement(
234
+ c['default'],
235
+ m['default']['message-update'].previewerProps,
236
+ l.a.createElement(f, null),
237
+ ),
238
+ l.a.createElement(
239
+ 'div',
240
+ { className: 'markdown' },
241
+ l.a.createElement(
242
+ 'h3',
243
+ { id: '\u81ea\u5b9a\u4e49\u6837\u5f0f' },
244
+ l.a.createElement(
245
+ r['AnchorLink'],
246
+ {
247
+ to: '#\u81ea\u5b9a\u4e49\u6837\u5f0f',
248
+ 'aria-hidden': 'true',
249
+ tabIndex: -1,
250
+ },
251
+ l.a.createElement('span', { className: 'icon icon-link' }),
252
+ ),
253
+ '\u81ea\u5b9a\u4e49\u6837\u5f0f',
254
+ ),
255
+ ),
256
+ l.a.createElement(
257
+ c['default'],
258
+ m['default']['message-custom-style'].previewerProps,
259
+ l.a.createElement(p, null),
260
+ ),
261
+ l.a.createElement(
262
+ 'div',
263
+ { className: 'markdown' },
264
+ l.a.createElement(
265
+ 'h3',
266
+ { id: '\u901a\u8fc7-hooks-\u83b7\u53d6\u4e0a\u4e0b\u6587450' },
267
+ l.a.createElement(
268
+ r['AnchorLink'],
269
+ {
270
+ to: '#\u901a\u8fc7-hooks-\u83b7\u53d6\u4e0a\u4e0b\u6587450',
271
+ 'aria-hidden': 'true',
272
+ tabIndex: -1,
273
+ },
274
+ l.a.createElement('span', { className: 'icon icon-link' }),
275
+ ),
276
+ '\u901a\u8fc7 Hooks \u83b7\u53d6\u4e0a\u4e0b\u6587\uff084.5.0+\uff09',
277
+ ),
278
+ ),
279
+ l.a.createElement(
280
+ c['default'],
281
+ m['default']['message-hooks'].previewerProps,
282
+ l.a.createElement(g, null),
283
+ ),
284
+ l.a.createElement(
285
+ 'div',
286
+ { className: 'markdown' },
287
+ l.a.createElement(
288
+ 'h2',
289
+ { id: 'api' },
290
+ l.a.createElement(
291
+ r['AnchorLink'],
292
+ { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
293
+ l.a.createElement('span', { className: 'icon icon-link' }),
294
+ ),
295
+ 'API',
296
+ ),
297
+ l.a.createElement(
298
+ 'p',
299
+ null,
300
+ '\u7ec4\u4ef6\u63d0\u4f9b\u4e86\u4e00\u4e9b\u9759\u6001\u65b9\u6cd5\uff0c\u4f7f\u7528\u65b9\u5f0f\u548c\u53c2\u6570\u5982\u4e0b\uff1a',
301
+ ),
302
+ l.a.createElement(
303
+ 'ul',
304
+ null,
305
+ l.a.createElement(
306
+ 'li',
307
+ null,
308
+ l.a.createElement(
309
+ 'code',
310
+ null,
311
+ 'message.success(content, [duration], onClose)',
312
+ ),
313
+ ),
314
+ l.a.createElement(
315
+ 'li',
316
+ null,
317
+ l.a.createElement(
318
+ 'code',
319
+ null,
320
+ 'message.error(content, [duration], onClose)',
321
+ ),
322
+ ),
323
+ l.a.createElement(
324
+ 'li',
325
+ null,
326
+ l.a.createElement(
327
+ 'code',
328
+ null,
329
+ 'message.info(content, [duration], onClose)',
330
+ ),
331
+ ),
332
+ l.a.createElement(
333
+ 'li',
334
+ null,
335
+ l.a.createElement(
336
+ 'code',
337
+ null,
338
+ 'message.warning(content, [duration], onClose)',
339
+ ),
340
+ ),
341
+ l.a.createElement(
342
+ 'li',
343
+ null,
344
+ l.a.createElement(
345
+ 'code',
346
+ null,
347
+ 'message.warn(content, [duration], onClose)',
348
+ ),
349
+ ' // alias of warning',
350
+ ),
351
+ l.a.createElement(
352
+ 'li',
353
+ null,
354
+ l.a.createElement(
355
+ 'code',
356
+ null,
357
+ 'message.loading(content, [duration], onClose)',
358
+ ),
359
+ ),
360
+ ),
361
+ l.a.createElement(
362
+ 'table',
363
+ null,
364
+ l.a.createElement(
365
+ 'thead',
366
+ null,
367
+ l.a.createElement(
368
+ 'tr',
369
+ null,
370
+ l.a.createElement('th', null, '\u53c2\u6570'),
371
+ l.a.createElement('th', null, '\u8bf4\u660e'),
372
+ l.a.createElement('th', null, '\u7c7b\u578b'),
373
+ l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
374
+ ),
375
+ ),
376
+ l.a.createElement(
377
+ 'tbody',
378
+ null,
379
+ l.a.createElement(
380
+ 'tr',
381
+ null,
382
+ l.a.createElement('td', null, 'content'),
383
+ l.a.createElement('td', null, '\u63d0\u793a\u5185\u5bb9'),
384
+ l.a.createElement('td', null, 'ReactNode | config'),
385
+ l.a.createElement('td', null, '-'),
386
+ ),
387
+ l.a.createElement(
388
+ 'tr',
389
+ null,
390
+ l.a.createElement('td', null, 'duration'),
391
+ l.a.createElement(
392
+ 'td',
393
+ null,
394
+ '\u81ea\u52a8\u5173\u95ed\u7684\u5ef6\u65f6\uff0c\u5355\u4f4d\u79d2\u3002\u8bbe\u4e3a 0 \u65f6\u4e0d\u81ea\u52a8\u5173\u95ed',
395
+ ),
396
+ l.a.createElement('td', null, 'number'),
397
+ l.a.createElement('td', null, '3'),
398
+ ),
399
+ l.a.createElement(
400
+ 'tr',
401
+ null,
402
+ l.a.createElement('td', null, 'onClose'),
403
+ l.a.createElement(
404
+ 'td',
405
+ null,
406
+ '\u5173\u95ed\u65f6\u89e6\u53d1\u7684\u56de\u8c03\u51fd\u6570',
407
+ ),
408
+ l.a.createElement('td', null, 'function'),
409
+ l.a.createElement('td', null, '-'),
410
+ ),
411
+ ),
412
+ ),
413
+ l.a.createElement(
414
+ 'p',
415
+ null,
416
+ '\u7ec4\u4ef6\u540c\u65f6\u63d0\u4f9b promise \u63a5\u53e3\u3002',
417
+ ),
418
+ l.a.createElement(
419
+ 'ul',
420
+ null,
421
+ l.a.createElement(
422
+ 'li',
423
+ null,
424
+ l.a.createElement(
425
+ 'code',
426
+ null,
427
+ 'message[level](content, [duration]).then(afterClose)',
428
+ ),
429
+ ),
430
+ l.a.createElement(
431
+ 'li',
432
+ null,
433
+ l.a.createElement(
434
+ 'code',
435
+ null,
436
+ 'message[level](content, [duration], onClose).then(afterClose)',
437
+ ),
438
+ ),
439
+ ),
440
+ l.a.createElement(
441
+ 'p',
442
+ null,
443
+ '\u5176\u4e2d ',
444
+ l.a.createElement('code', null, 'message[level]'),
445
+ ' \u662f\u7ec4\u4ef6\u5df2\u7ecf\u63d0\u4f9b\u7684\u9759\u6001\u65b9\u6cd5\u3002',
446
+ l.a.createElement('code', null, 'then'),
447
+ ' \u63a5\u53e3\u8fd4\u56de\u503c\u662f Promise\u3002',
448
+ ),
449
+ l.a.createElement(
450
+ 'p',
451
+ null,
452
+ '\u4e5f\u53ef\u4ee5\u5bf9\u8c61\u7684\u5f62\u5f0f\u4f20\u9012\u53c2\u6570\uff1a',
453
+ ),
454
+ l.a.createElement(
455
+ 'ul',
456
+ null,
457
+ l.a.createElement(
458
+ 'li',
459
+ null,
460
+ l.a.createElement('code', null, 'message.open(config)'),
461
+ ),
462
+ l.a.createElement(
463
+ 'li',
464
+ null,
465
+ l.a.createElement('code', null, 'message.success(config)'),
466
+ ),
467
+ l.a.createElement(
468
+ 'li',
469
+ null,
470
+ l.a.createElement('code', null, 'message.error(config)'),
471
+ ),
472
+ l.a.createElement(
473
+ 'li',
474
+ null,
475
+ l.a.createElement('code', null, 'message.info(config)'),
476
+ ),
477
+ l.a.createElement(
478
+ 'li',
479
+ null,
480
+ l.a.createElement('code', null, 'message.warning(config)'),
481
+ ),
482
+ l.a.createElement(
483
+ 'li',
484
+ null,
485
+ l.a.createElement('code', null, 'message.warn(config)'),
486
+ ' // alias of warning',
487
+ ),
488
+ l.a.createElement(
489
+ 'li',
490
+ null,
491
+ l.a.createElement('code', null, 'message.loading(config)'),
492
+ ),
493
+ ),
494
+ l.a.createElement(
495
+ 'p',
496
+ null,
497
+ l.a.createElement('code', null, 'config'),
498
+ ' \u5bf9\u8c61\u5c5e\u6027\u5982\u4e0b\uff1a',
499
+ ),
500
+ l.a.createElement(
501
+ 'table',
502
+ null,
503
+ l.a.createElement(
504
+ 'thead',
505
+ null,
506
+ l.a.createElement(
507
+ 'tr',
508
+ null,
509
+ l.a.createElement('th', null, '\u53c2\u6570'),
510
+ l.a.createElement('th', null, '\u8bf4\u660e'),
511
+ l.a.createElement('th', null, '\u7c7b\u578b'),
512
+ l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
513
+ ),
514
+ ),
515
+ l.a.createElement(
516
+ 'tbody',
517
+ null,
518
+ l.a.createElement(
519
+ 'tr',
520
+ null,
521
+ l.a.createElement('td', null, 'className'),
522
+ l.a.createElement(
523
+ 'td',
524
+ null,
525
+ '\u81ea\u5b9a\u4e49 CSS class',
526
+ ),
527
+ l.a.createElement('td', null, 'string'),
528
+ l.a.createElement('td', null, '-'),
529
+ ),
530
+ l.a.createElement(
531
+ 'tr',
532
+ null,
533
+ l.a.createElement('td', null, 'content'),
534
+ l.a.createElement('td', null, '\u63d0\u793a\u5185\u5bb9'),
535
+ l.a.createElement('td', null, 'ReactNode'),
536
+ l.a.createElement('td', null, '-'),
537
+ ),
538
+ l.a.createElement(
539
+ 'tr',
540
+ null,
541
+ l.a.createElement('td', null, 'duration'),
542
+ l.a.createElement(
543
+ 'td',
544
+ null,
545
+ '\u81ea\u52a8\u5173\u95ed\u7684\u5ef6\u65f6\uff0c\u5355\u4f4d\u79d2\u3002\u8bbe\u4e3a 0 \u65f6\u4e0d\u81ea\u52a8\u5173\u95ed',
546
+ ),
547
+ l.a.createElement('td', null, 'number'),
548
+ l.a.createElement('td', null, '3'),
549
+ ),
550
+ l.a.createElement(
551
+ 'tr',
552
+ null,
553
+ l.a.createElement('td', null, 'icon'),
554
+ l.a.createElement(
555
+ 'td',
556
+ null,
557
+ '\u81ea\u5b9a\u4e49\u56fe\u6807',
558
+ ),
559
+ l.a.createElement('td', null, 'ReactNode'),
560
+ l.a.createElement('td', null, '-'),
561
+ ),
562
+ l.a.createElement(
563
+ 'tr',
564
+ null,
565
+ l.a.createElement('td', null, 'key'),
566
+ l.a.createElement(
567
+ 'td',
568
+ null,
569
+ '\u5f53\u524d\u63d0\u793a\u7684\u552f\u4e00\u6807\u5fd7',
570
+ ),
571
+ l.a.createElement('td', null, 'string | number'),
572
+ l.a.createElement('td', null, '-'),
573
+ ),
574
+ l.a.createElement(
575
+ 'tr',
576
+ null,
577
+ l.a.createElement('td', null, 'style'),
578
+ l.a.createElement(
579
+ 'td',
580
+ null,
581
+ '\u81ea\u5b9a\u4e49\u5185\u8054\u6837\u5f0f',
582
+ ),
583
+ l.a.createElement(
584
+ 'td',
585
+ null,
586
+ l.a.createElement(
587
+ r['Link'],
588
+ {
589
+ to: 'https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e434515761b36830c3e58a970abf5186f005adac/types/react/index.d.ts#L794',
590
+ },
591
+ 'CSSProperties',
592
+ ),
593
+ ),
594
+ l.a.createElement('td', null, '-'),
595
+ ),
596
+ l.a.createElement(
597
+ 'tr',
598
+ null,
599
+ l.a.createElement('td', null, 'onClick'),
600
+ l.a.createElement(
601
+ 'td',
602
+ null,
603
+ '\u70b9\u51fb message \u65f6\u89e6\u53d1\u7684\u56de\u8c03\u51fd\u6570',
604
+ ),
605
+ l.a.createElement('td', null, 'function'),
606
+ l.a.createElement('td', null, '-'),
607
+ ),
608
+ l.a.createElement(
609
+ 'tr',
610
+ null,
611
+ l.a.createElement('td', null, 'onClose'),
612
+ l.a.createElement(
613
+ 'td',
614
+ null,
615
+ '\u5173\u95ed\u65f6\u89e6\u53d1\u7684\u56de\u8c03\u51fd\u6570',
616
+ ),
617
+ l.a.createElement('td', null, 'function'),
618
+ l.a.createElement('td', null, '-'),
619
+ ),
620
+ ),
621
+ ),
622
+ l.a.createElement(
623
+ 'h3',
624
+ { id: '\u5168\u5c40\u65b9\u6cd5' },
625
+ l.a.createElement(
626
+ r['AnchorLink'],
627
+ {
628
+ to: '#\u5168\u5c40\u65b9\u6cd5',
629
+ 'aria-hidden': 'true',
630
+ tabIndex: -1,
631
+ },
632
+ l.a.createElement('span', { className: 'icon icon-link' }),
633
+ ),
634
+ '\u5168\u5c40\u65b9\u6cd5',
635
+ ),
636
+ l.a.createElement(
637
+ 'p',
638
+ null,
639
+ '\u8fd8\u63d0\u4f9b\u4e86\u5168\u5c40\u914d\u7f6e\u548c\u5168\u5c40\u9500\u6bc1\u65b9\u6cd5\uff1a',
640
+ ),
641
+ l.a.createElement(
642
+ 'ul',
643
+ null,
644
+ l.a.createElement(
645
+ 'li',
646
+ null,
647
+ l.a.createElement('code', null, 'message.config(options)'),
648
+ ),
649
+ l.a.createElement(
650
+ 'li',
651
+ null,
652
+ l.a.createElement('code', null, 'message.destroy()'),
653
+ ),
654
+ ),
655
+ l.a.createElement(
656
+ 'blockquote',
657
+ null,
658
+ l.a.createElement(
659
+ 'p',
660
+ null,
661
+ '\u4e5f\u53ef\u901a\u8fc7 ',
662
+ l.a.createElement('code', null, 'message.destroy(key)'),
663
+ ' \u6765\u5173\u95ed\u4e00\u6761\u6d88\u606f\u3002',
664
+ ),
665
+ ),
666
+ l.a.createElement(
667
+ 'h4',
668
+ { id: 'messageconfig' },
669
+ l.a.createElement(
670
+ r['AnchorLink'],
671
+ { to: '#messageconfig', 'aria-hidden': 'true', tabIndex: -1 },
672
+ l.a.createElement('span', { className: 'icon icon-link' }),
673
+ ),
674
+ 'message.config',
675
+ ),
676
+ l.a.createElement(
677
+ 'blockquote',
678
+ null,
679
+ l.a.createElement(
680
+ 'p',
681
+ null,
682
+ '\u5f53\u4f60\u4f7f\u7528 ',
683
+ l.a.createElement('code', null, 'ConfigProvider'),
684
+ ' \u8fdb\u884c\u5168\u5c40\u5316\u914d\u7f6e\u65f6\uff0c\u7cfb\u7edf\u4f1a\u9ed8\u8ba4\u81ea\u52a8\u5f00\u542f RTL \u6a21\u5f0f\u3002(4.3.0+)',
685
+ ),
686
+ l.a.createElement(
687
+ 'p',
688
+ null,
689
+ '\u5f53\u4f60\u60f3\u5355\u72ec\u4f7f\u7528\uff0c\u53ef\u901a\u8fc7\u5982\u4e0b\u8bbe\u7f6e\u5f00\u542f RTL \u6a21\u5f0f\u3002',
690
+ ),
691
+ ),
692
+ l.a.createElement(o['a'], {
693
+ code: "message.config({\n top: 100,\n duration: 2,\n maxCount: 3,\n rtl: true,\n prefixCls: 'my-message',\n});",
694
+ lang: 'bash',
695
+ }),
696
+ l.a.createElement(
697
+ 'table',
698
+ null,
699
+ l.a.createElement(
700
+ 'thead',
701
+ null,
702
+ l.a.createElement(
703
+ 'tr',
704
+ null,
705
+ l.a.createElement('th', null, '\u53c2\u6570'),
706
+ l.a.createElement('th', null, '\u8bf4\u660e'),
707
+ l.a.createElement('th', null, '\u7c7b\u578b'),
708
+ l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
709
+ l.a.createElement('th', null, '\u7248\u672c'),
710
+ ),
711
+ ),
712
+ l.a.createElement(
713
+ 'tbody',
714
+ null,
715
+ l.a.createElement(
716
+ 'tr',
717
+ null,
718
+ l.a.createElement('td', null, 'duration'),
719
+ l.a.createElement(
720
+ 'td',
721
+ null,
722
+ '\u9ed8\u8ba4\u81ea\u52a8\u5173\u95ed\u5ef6\u65f6\uff0c\u5355\u4f4d\u79d2',
723
+ ),
724
+ l.a.createElement('td', null, 'number'),
725
+ l.a.createElement('td', null, '3'),
726
+ l.a.createElement('td', null),
727
+ ),
728
+ l.a.createElement(
729
+ 'tr',
730
+ null,
731
+ l.a.createElement('td', null, 'getContainer'),
732
+ l.a.createElement(
733
+ 'td',
734
+ null,
735
+ '\u914d\u7f6e\u6e32\u67d3\u8282\u70b9\u7684\u8f93\u51fa\u4f4d\u7f6e',
736
+ ),
737
+ l.a.createElement('td', null, '() => HTMLElement'),
738
+ l.a.createElement('td', null, '() => document.body'),
739
+ l.a.createElement('td', null),
740
+ ),
741
+ l.a.createElement(
742
+ 'tr',
743
+ null,
744
+ l.a.createElement('td', null, 'maxCount'),
745
+ l.a.createElement(
746
+ 'td',
747
+ null,
748
+ '\u6700\u5927\u663e\u793a\u6570, \u8d85\u8fc7\u9650\u5236\u65f6\uff0c\u6700\u65e9\u7684\u6d88\u606f\u4f1a\u88ab\u81ea\u52a8\u5173\u95ed',
749
+ ),
750
+ l.a.createElement('td', null, 'number'),
751
+ l.a.createElement('td', null, '-'),
752
+ l.a.createElement('td', null),
753
+ ),
754
+ l.a.createElement(
755
+ 'tr',
756
+ null,
757
+ l.a.createElement('td', null, 'prefixCls'),
758
+ l.a.createElement(
759
+ 'td',
760
+ null,
761
+ '\u6d88\u606f\u8282\u70b9\u7684 className \u524d\u7f00',
762
+ ),
763
+ l.a.createElement('td', null, 'string'),
764
+ l.a.createElement(
765
+ 'td',
766
+ null,
767
+ l.a.createElement('code', null, 'ant-message'),
768
+ ),
769
+ l.a.createElement('td', null, '4.5.0'),
770
+ ),
771
+ l.a.createElement(
772
+ 'tr',
773
+ null,
774
+ l.a.createElement('td', null, 'rtl'),
775
+ l.a.createElement(
776
+ 'td',
777
+ null,
778
+ '\u662f\u5426\u5f00\u542f RTL \u6a21\u5f0f',
779
+ ),
780
+ l.a.createElement('td', null, 'boolean'),
781
+ l.a.createElement('td', null, 'false'),
782
+ l.a.createElement('td', null),
783
+ ),
784
+ l.a.createElement(
785
+ 'tr',
786
+ null,
787
+ l.a.createElement('td', null, 'top'),
788
+ l.a.createElement(
789
+ 'td',
790
+ null,
791
+ '\u6d88\u606f\u8ddd\u79bb\u9876\u90e8\u7684\u4f4d\u7f6e',
792
+ ),
793
+ l.a.createElement('td', null, 'number'),
794
+ l.a.createElement('td', null, '8'),
795
+ l.a.createElement('td', null),
796
+ ),
797
+ ),
798
+ ),
799
+ l.a.createElement(
800
+ 'h2',
801
+ { id: 'faq' },
802
+ l.a.createElement(
803
+ r['AnchorLink'],
804
+ { to: '#faq', 'aria-hidden': 'true', tabIndex: -1 },
805
+ l.a.createElement('span', { className: 'icon icon-link' }),
806
+ ),
807
+ 'FAQ',
808
+ ),
809
+ l.a.createElement(
810
+ 'h3',
811
+ {
812
+ id: '\u4e3a\u4ec0\u4e48-message-\u4e0d\u80fd\u83b7\u53d6-contextredux-\u7684\u5185\u5bb9\u548c-configprovider-\u7684-localeprefixcls-\u914d\u7f6e',
813
+ },
814
+ l.a.createElement(
815
+ r['AnchorLink'],
816
+ {
817
+ to: '#\u4e3a\u4ec0\u4e48-message-\u4e0d\u80fd\u83b7\u53d6-contextredux-\u7684\u5185\u5bb9\u548c-configprovider-\u7684-localeprefixcls-\u914d\u7f6e',
818
+ 'aria-hidden': 'true',
819
+ tabIndex: -1,
820
+ },
821
+ l.a.createElement('span', { className: 'icon icon-link' }),
822
+ ),
823
+ '\u4e3a\u4ec0\u4e48 message \u4e0d\u80fd\u83b7\u53d6 context\u3001redux \u7684\u5185\u5bb9\u548c ConfigProvider \u7684 ',
824
+ l.a.createElement('code', null, 'locale/prefixCls'),
825
+ ' \u914d\u7f6e\uff1f',
826
+ ),
827
+ l.a.createElement(
828
+ 'p',
829
+ null,
830
+ '\u76f4\u63a5\u8c03\u7528 message \u65b9\u6cd5\uff0cantd \u4f1a\u901a\u8fc7 ',
831
+ l.a.createElement('code', null, 'ReactDOM.render'),
832
+ ' \u52a8\u6001\u521b\u5efa\u65b0\u7684 React \u5b9e\u4f53\u3002\u5176 context \u4e0e\u5f53\u524d\u4ee3\u7801\u6240\u5728 context \u5e76\u4e0d\u76f8\u540c\uff0c\u56e0\u800c\u65e0\u6cd5\u83b7\u53d6 context \u4fe1\u606f\u3002',
833
+ ),
834
+ l.a.createElement(
835
+ 'p',
836
+ null,
837
+ '\u5f53\u4f60\u9700\u8981 context \u4fe1\u606f\uff08\u4f8b\u5982 ConfigProvider \u914d\u7f6e\u7684\u5185\u5bb9\uff09\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7 ',
838
+ l.a.createElement('code', null, 'message.useMessage'),
839
+ ' \u65b9\u6cd5\u4f1a\u8fd4\u56de ',
840
+ l.a.createElement('code', null, 'api'),
841
+ ' \u5b9e\u4f53\u4ee5\u53ca ',
842
+ l.a.createElement('code', null, 'contextHolder'),
843
+ ' \u8282\u70b9\u3002\u5c06\u5176\u63d2\u5165\u5230\u4f60\u9700\u8981\u83b7\u53d6 context \u4f4d\u7f6e\u5373\u53ef\uff1a',
844
+ ),
845
+ l.a.createElement(o['a'], {
846
+ code: 'const [api, contextHolder] = message.useMessage();\n\nreturn (\n <Context1.Provider value="Ant">\n {/* contextHolder \u5728 Context1 \u5185\uff0c\u5b83\u53ef\u4ee5\u83b7\u5f97 Context1 \u7684 context */}\n {contextHolder}\n <Context2.Provider value="Design">\n {/* contextHolder \u5728 Context2 \u5916\uff0c\u56e0\u800c\u4e0d\u4f1a\u83b7\u5f97 Context2 \u7684 context */}\n </Context2.Provider>\n </Context1.Provider>\n);',
847
+ lang: 'bash',
848
+ }),
849
+ l.a.createElement(
850
+ 'p',
851
+ null,
852
+ '**\u5f02\u540c\uff1a**\u901a\u8fc7 hooks \u521b\u5efa\u7684 ',
853
+ l.a.createElement('code', null, 'contextHolder'),
854
+ ' \u5fc5\u987b\u63d2\u5165\u5230\u5b50\u5143\u7d20\u8282\u70b9\u4e2d\u624d\u4f1a\u751f\u6548\uff0c\u5f53\u4f60\u4e0d\u9700\u8981\u4e0a\u4e0b\u6587\u4fe1\u606f\u65f6\u8bf7\u76f4\u63a5\u8c03\u7528\u3002',
855
+ ),
856
+ l.a.createElement(
857
+ 'h3',
858
+ {
859
+ id: '\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e-prefixcls-',
860
+ },
861
+ l.a.createElement(
862
+ r['AnchorLink'],
863
+ {
864
+ to: '#\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e-prefixcls-',
865
+ 'aria-hidden': 'true',
866
+ tabIndex: -1,
867
+ },
868
+ l.a.createElement('span', { className: 'icon icon-link' }),
869
+ ),
870
+ '\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e prefixCls \uff1f',
871
+ ),
872
+ l.a.createElement(
873
+ 'p',
874
+ null,
875
+ '\u4f60\u53ef\u4ee5\u901a\u8fc7 ',
876
+ l.a.createElement(
877
+ r['AnchorLink'],
878
+ {
879
+ to: '/components/config-provider/#ConfigProvider.config()-4.13.0+',
880
+ },
881
+ l.a.createElement('code', null, 'ConfigProvider.config'),
882
+ ),
883
+ ' \u8fdb\u884c\u8bbe\u7f6e\u3002',
884
+ ),
885
+ ),
886
+ ),
887
+ )
888
+ );
889
+ },
890
+ MZF8: function (e, t, a) {
891
+ 'use strict';
892
+ var n = a('ogwx');
893
+ a.d(t, 'a', function () {
894
+ return n['b'];
895
+ });
896
+ a('VCU9');
897
+ },
898
+ RZMt: function (e, t, a) {},
899
+ Zxc8: function (e, t, a) {
900
+ 'use strict';
901
+ a.r(t);
902
+ var n = a('q1tI'),
903
+ l = a.n(n),
904
+ r = a('k3GJ'),
905
+ c = a('MZF8'),
906
+ o = a('dEAq'),
907
+ m = a('H1Ra');
908
+ a('RZMt');
909
+ function i(e, t) {
910
+ return f(e) || E(e, t) || d(e, t) || u();
911
+ }
912
+ function u() {
913
+ throw new TypeError(
914
+ 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
915
+ );
916
+ }
917
+ function d(e, t) {
918
+ if (e) {
919
+ if ('string' === typeof e) return s(e, t);
920
+ var a = Object.prototype.toString.call(e).slice(8, -1);
921
+ return (
922
+ 'Object' === a && e.constructor && (a = e.constructor.name),
923
+ 'Map' === a || 'Set' === a
924
+ ? Array.from(e)
925
+ : 'Arguments' === a ||
926
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
927
+ ? s(e, t)
928
+ : void 0
929
+ );
930
+ }
931
+ }
932
+ function s(e, t) {
933
+ (null == t || t > e.length) && (t = e.length);
934
+ for (var a = 0, n = new Array(t); a < t; a++) n[a] = e[a];
935
+ return n;
936
+ }
937
+ function E(e, t) {
938
+ var a =
939
+ null == e
940
+ ? null
941
+ : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
942
+ e['@@iterator'];
943
+ if (null != a) {
944
+ var n,
945
+ l,
946
+ r = [],
947
+ c = !0,
948
+ o = !1;
949
+ try {
950
+ for (a = a.call(e); !(c = (n = a.next()).done); c = !0)
951
+ if ((r.push(n.value), t && r.length === t)) break;
952
+ } catch (m) {
953
+ (o = !0), (l = m);
954
+ } finally {
955
+ try {
956
+ c || null == a['return'] || a['return']();
957
+ } finally {
958
+ if (o) throw l;
959
+ }
960
+ }
961
+ return r;
962
+ }
963
+ }
964
+ function f(e) {
965
+ if (Array.isArray(e)) return e;
966
+ }
967
+ function p(e, t) {
968
+ var a,
969
+ n =
970
+ null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
971
+ return n || (n = t.tsx ? 'tsx' : 'jsx'), n;
972
+ }
973
+ var g = function (e) {
974
+ var t,
975
+ a,
976
+ u,
977
+ d = Object(n['useRef'])(),
978
+ s = Object(n['useContext'])(o['context']),
979
+ E = s.locale,
980
+ f = Object(o['useLocaleProps'])(E, e),
981
+ g = Object(o['useDemoUrl'])(f.identifier),
982
+ h = f.demoUrl || g,
983
+ b =
984
+ (null === c['a'] || void 0 === c['a']
985
+ ? void 0
986
+ : c['a'].location.hash) === '#'.concat(f.identifier),
987
+ v = 1 === Object.keys(f.sources).length,
988
+ k = Object(o['useCodeSandbox'])(
989
+ (
990
+ null === (t = f.hideActions) || void 0 === t
991
+ ? void 0
992
+ : t.includes('CSB')
993
+ )
994
+ ? null
995
+ : f,
996
+ ),
997
+ x = Object(o['useRiddle'])(
998
+ (
999
+ null === (a = f.hideActions) || void 0 === a
1000
+ ? void 0
1001
+ : a.includes('RIDDLE')
1002
+ )
1003
+ ? null
1004
+ : f,
1005
+ ),
1006
+ y = Object(o['useMotions'])(f.motions || [], d.current),
1007
+ C = i(y, 2),
1008
+ w = C[0],
1009
+ N = C[1],
1010
+ _ = Object(o['useCopy'])(),
1011
+ A = i(_, 2),
1012
+ L = A[0],
1013
+ I = A[1],
1014
+ P = Object(n['useState'])('_'),
1015
+ j = i(P, 2),
1016
+ O = j[0],
1017
+ S = j[1],
1018
+ R = Object(n['useState'])(p(O, f.sources[O])),
1019
+ M = i(R, 2),
1020
+ T = M[0],
1021
+ H = M[1],
1022
+ q = Object(n['useState'])(Boolean(f.defaultShowCode)),
1023
+ D = i(q, 2),
1024
+ U = D[0],
1025
+ Z = D[1],
1026
+ F = Object(n['useState'])(Math.random()),
1027
+ J = i(F, 2),
1028
+ $ = J[0],
1029
+ B = J[1],
1030
+ G = f.sources[O][T] || f.sources[O].content,
1031
+ X = Object(o['useTSPlaygroundUrl'])(E, G),
1032
+ K = Object(n['useRef'])(),
1033
+ Q = Object(o['usePrefersColor'])(),
1034
+ V = i(Q, 1),
1035
+ z = V[0];
1036
+ function W(e) {
1037
+ S(e), H(p(e, f.sources[e]));
1038
+ }
1039
+ return (
1040
+ Object(n['useEffect'])(
1041
+ function () {
1042
+ B(Math.random());
1043
+ },
1044
+ [z],
1045
+ ),
1046
+ l.a.createElement(
1047
+ 'div',
1048
+ {
1049
+ style: f.style,
1050
+ className: [
1051
+ f.className,
1052
+ '__dumi-default-previewer',
1053
+ b ? '__dumi-default-previewer-target' : '',
1054
+ ]
1055
+ .filter(Boolean)
1056
+ .join(' '),
1057
+ id: f.identifier,
1058
+ 'data-debug': f.debug || void 0,
1059
+ 'data-iframe': f.iframe || void 0,
1060
+ },
1061
+ f.iframe &&
1062
+ l.a.createElement('div', {
1063
+ className: '__dumi-default-previewer-browser-nav',
1064
+ }),
1065
+ l.a.createElement(
1066
+ 'div',
1067
+ {
1068
+ ref: d,
1069
+ className: '__dumi-default-previewer-demo',
1070
+ style: {
1071
+ transform: f.transform ? 'translate(0, 0)' : void 0,
1072
+ padding:
1073
+ f.compact || (f.iframe && !1 !== f.compact) ? '0' : void 0,
1074
+ background: f.background,
1075
+ },
1076
+ },
1077
+ f.iframe
1078
+ ? l.a.createElement('iframe', {
1079
+ title: 'dumi-previewer',
1080
+ style: {
1081
+ height: String(f.iframe).replace(/(\d)$/, '$1px'),
1082
+ },
1083
+ key: $,
1084
+ src: h,
1085
+ ref: K,
1086
+ })
1087
+ : f.children,
1088
+ ),
1089
+ l.a.createElement(
1090
+ 'div',
1091
+ {
1092
+ className: '__dumi-default-previewer-desc',
1093
+ 'data-title': f.title,
1094
+ },
1095
+ f.title &&
1096
+ l.a.createElement(
1097
+ o['AnchorLink'],
1098
+ { to: '#'.concat(f.identifier) },
1099
+ f.title,
1100
+ ),
1101
+ f.description &&
1102
+ l.a.createElement('div', {
1103
+ dangerouslySetInnerHTML: { __html: f.description },
1104
+ }),
1105
+ ),
1106
+ l.a.createElement(
1107
+ 'div',
1108
+ { className: '__dumi-default-previewer-actions' },
1109
+ k &&
1110
+ l.a.createElement('button', {
1111
+ title: 'Open demo on CodeSandbox.io',
1112
+ className: '__dumi-default-icon',
1113
+ role: 'codesandbox',
1114
+ onClick: k,
1115
+ }),
1116
+ x &&
1117
+ l.a.createElement('button', {
1118
+ title: 'Open demo on Riddle',
1119
+ className: '__dumi-default-icon',
1120
+ role: 'riddle',
1121
+ onClick: x,
1122
+ }),
1123
+ f.motions &&
1124
+ l.a.createElement('button', {
1125
+ title: 'Execute motions',
1126
+ className: '__dumi-default-icon',
1127
+ role: 'motions',
1128
+ disabled: N,
1129
+ onClick: function () {
1130
+ return w();
1131
+ },
1132
+ }),
1133
+ f.iframe &&
1134
+ l.a.createElement('button', {
1135
+ title: 'Reload demo iframe page',
1136
+ className: '__dumi-default-icon',
1137
+ role: 'refresh',
1138
+ onClick: function () {
1139
+ return B(Math.random());
1140
+ },
1141
+ }),
1142
+ !(null === (u = f.hideActions) || void 0 === u
1143
+ ? void 0
1144
+ : u.includes('EXTERNAL')) &&
1145
+ l.a.createElement(
1146
+ o['Link'],
1147
+ { target: '_blank', to: h },
1148
+ l.a.createElement('button', {
1149
+ title: 'Open demo in new tab',
1150
+ className: '__dumi-default-icon',
1151
+ role: 'open-demo',
1152
+ type: 'button',
1153
+ }),
1154
+ ),
1155
+ l.a.createElement('span', null),
1156
+ l.a.createElement('button', {
1157
+ title: 'Copy source code',
1158
+ className: '__dumi-default-icon',
1159
+ role: 'copy',
1160
+ 'data-status': I,
1161
+ onClick: function () {
1162
+ return L(G);
1163
+ },
1164
+ }),
1165
+ 'tsx' === T &&
1166
+ U &&
1167
+ l.a.createElement(
1168
+ o['Link'],
1169
+ { target: '_blank', to: X },
1170
+ l.a.createElement('button', {
1171
+ title: 'Get JSX via TypeScript Playground',
1172
+ className: '__dumi-default-icon',
1173
+ role: 'change-tsx',
1174
+ type: 'button',
1175
+ }),
1176
+ ),
1177
+ l.a.createElement('button', {
1178
+ title: 'Toggle source code panel',
1179
+ className: '__dumi-default-icon'.concat(
1180
+ U ? ' __dumi-default-btn-expand' : '',
1181
+ ),
1182
+ role: 'source',
1183
+ type: 'button',
1184
+ onClick: function () {
1185
+ return Z(!U);
1186
+ },
1187
+ }),
1188
+ ),
1189
+ U &&
1190
+ l.a.createElement(
1191
+ 'div',
1192
+ { className: '__dumi-default-previewer-source-wrapper' },
1193
+ !v &&
1194
+ l.a.createElement(
1195
+ r['b'],
1196
+ {
1197
+ className: '__dumi-default-previewer-source-tab',
1198
+ prefixCls: '__dumi-default-tabs',
1199
+ moreIcon: '\xb7\xb7\xb7',
1200
+ defaultActiveKey: O,
1201
+ onChange: W,
1202
+ },
1203
+ Object.keys(f.sources).map(function (e) {
1204
+ return l.a.createElement(r['a'], {
1205
+ tab:
1206
+ '_' === e ? 'index.'.concat(p(e, f.sources[e])) : e,
1207
+ key: e,
1208
+ });
1209
+ }),
1210
+ ),
1211
+ l.a.createElement(
1212
+ 'div',
1213
+ { className: '__dumi-default-previewer-source' },
1214
+ l.a.createElement(m['a'], { code: G, lang: T, showCopy: !1 }),
1215
+ ),
1216
+ ),
1217
+ )
1218
+ );
1219
+ };
1220
+ t['default'] = g;
1221
+ },
1222
+ },
1223
+ ]);