@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,1808 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[42],{MZF8:function(e,t,l){"use strict";var a=l("ogwx");l.d(t,"a",(function(){return a["b"]}));l("VCU9")},R5W9:function(e,t,l){"use strict";l.r(t);var a=l("q1tI"),n=l.n(a),r=l("dEAq"),c=l("Zxc8"),m=l("H1Ra"),o=l("JjdP"),d=n.a.memo(o["default"]["modal-basic"].component),u=n.a.memo(o["default"]["modal-async"].component),E=n.a.memo(o["default"]["modal-footer"].component),i=n.a.memo(o["default"]["modal-confirm"].component),s=n.a.memo(o["default"]["modal-info"].component),f=n.a.memo(o["default"]["modal-locale"].component),p=n.a.memo(o["default"]["modal-manual"].component),h=n.a.memo(o["default"]["modal-position"].component),b=n.a.memo(o["default"]["modal-confirm-router"].component),k=n.a.memo(o["default"]["modal-button-props"].component),v=n.a.memo(o["default"]["modal-hooks"].component),x=n.a.memo(o["default"]["modal-modal-render"].component),N=n.a.memo(o["default"]["modal-width"].component);t["default"]=e=>(n.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)))}),[]),n.a.createElement(n.a.Fragment,null,n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"markdown"},n.a.createElement("h1",{id:"modal-\u5bf9\u8bdd\u6846"},n.a.createElement(r["AnchorLink"],{to:"#modal-\u5bf9\u8bdd\u6846","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Modal \u5bf9\u8bdd\u6846"),n.a.createElement("p",null,"\u6a21\u6001\u5bf9\u8bdd\u6846\u3002"),n.a.createElement("h2",{id:"\u4f55\u65f6\u4f7f\u7528"},n.a.createElement(r["AnchorLink"],{to:"#\u4f55\u65f6\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4f55\u65f6\u4f7f\u7528"),n.a.createElement("p",null,"\u9700\u8981\u7528\u6237\u5904\u7406\u4e8b\u52a1\uff0c\u53c8\u4e0d\u5e0c\u671b\u8df3\u8f6c\u9875\u9762\u4ee5\u81f4\u6253\u65ad\u5de5\u4f5c\u6d41\u7a0b\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528 ",n.a.createElement("code",null,"Modal")," \u5728\u5f53\u524d\u9875\u9762\u6b63\u4e2d\u6253\u5f00\u4e00\u4e2a\u6d6e\u5c42\uff0c\u627f\u8f7d\u76f8\u5e94\u7684\u64cd\u4f5c\u3002"),n.a.createElement("p",null,"\u53e6\u5916\u5f53\u9700\u8981\u4e00\u4e2a\u7b80\u6d01\u7684\u786e\u8ba4\u6846\u8be2\u95ee\u7528\u6237\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528 ",n.a.createElement("code",null,"Modal.confirm()")," \u7b49\u8bed\u6cd5\u7cd6\u65b9\u6cd5\u3002"),n.a.createElement("h2",{id:"\u4ee3\u7801\u6f14\u793a"},n.a.createElement(r["AnchorLink"],{to:"#\u4ee3\u7801\u6f14\u793a","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4ee3\u7801\u6f14\u793a"),n.a.createElement("h3",{id:"\u57fa\u672c"},n.a.createElement(r["AnchorLink"],{to:"#\u57fa\u672c","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u57fa\u672c")),n.a.createElement(c["default"],o["default"]["modal-basic"].previewerProps,n.a.createElement(d,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u5f02\u6b65\u5173\u95ed"},n.a.createElement(r["AnchorLink"],{to:"#\u5f02\u6b65\u5173\u95ed","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5f02\u6b65\u5173\u95ed")),n.a.createElement(c["default"],o["default"]["modal-async"].previewerProps,n.a.createElement(u,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u9875\u811a"},n.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u9875\u811a","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u9875\u811a")),n.a.createElement(c["default"],o["default"]["modal-footer"].previewerProps,n.a.createElement(E,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u786e\u8ba4\u5bf9\u8bdd\u6846"},n.a.createElement(r["AnchorLink"],{to:"#\u786e\u8ba4\u5bf9\u8bdd\u6846","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u786e\u8ba4\u5bf9\u8bdd\u6846")),n.a.createElement(c["default"],o["default"]["modal-confirm"].previewerProps,n.a.createElement(i,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u4fe1\u606f\u63d0\u793a"},n.a.createElement(r["AnchorLink"],{to:"#\u4fe1\u606f\u63d0\u793a","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4fe1\u606f\u63d0\u793a")),n.a.createElement(c["default"],o["default"]["modal-info"].previewerProps,n.a.createElement(s,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u56fd\u9645\u5316"},n.a.createElement(r["AnchorLink"],{to:"#\u56fd\u9645\u5316","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u56fd\u9645\u5316")),n.a.createElement(c["default"],o["default"]["modal-locale"].previewerProps,n.a.createElement(f,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u624b\u52a8\u66f4\u65b0\u548c\u79fb\u9664"},n.a.createElement(r["AnchorLink"],{to:"#\u624b\u52a8\u66f4\u65b0\u548c\u79fb\u9664","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u624b\u52a8\u66f4\u65b0\u548c\u79fb\u9664")),n.a.createElement(c["default"],o["default"]["modal-manual"].previewerProps,n.a.createElement(p,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u4f4d\u7f6e"},n.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u4f4d\u7f6e","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u4f4d\u7f6e")),n.a.createElement(c["default"],o["default"]["modal-position"].previewerProps,n.a.createElement(h,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u9500\u6bc1\u786e\u8ba4\u5bf9\u8bdd\u6846"},n.a.createElement(r["AnchorLink"],{to:"#\u9500\u6bc1\u786e\u8ba4\u5bf9\u8bdd\u6846","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u9500\u6bc1\u786e\u8ba4\u5bf9\u8bdd\u6846")),n.a.createElement(c["default"],o["default"]["modal-confirm-router"].previewerProps,n.a.createElement(b,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u9875\u811a\u6309\u94ae\u5c5e\u6027"},n.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u9875\u811a\u6309\u94ae\u5c5e\u6027","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u9875\u811a\u6309\u94ae\u5c5e\u6027")),n.a.createElement(c["default"],o["default"]["modal-button-props"].previewerProps,n.a.createElement(k,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u4f7f\u7528-hooks-\u83b7\u5f97\u4e0a\u4e0b\u6587"},n.a.createElement(r["AnchorLink"],{to:"#\u4f7f\u7528-hooks-\u83b7\u5f97\u4e0a\u4e0b\u6587","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4f7f\u7528 hooks \u83b7\u5f97\u4e0a\u4e0b\u6587")),n.a.createElement(c["default"],o["default"]["modal-hooks"].previewerProps,n.a.createElement(v,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u6e32\u67d3\u5bf9\u8bdd\u6846"},n.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u6e32\u67d3\u5bf9\u8bdd\u6846","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u6e32\u67d3\u5bf9\u8bdd\u6846")),n.a.createElement(c["default"],o["default"]["modal-modal-render"].previewerProps,n.a.createElement(x,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u6a21\u6001\u7684\u5bbd\u5ea6"},n.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u6a21\u6001\u7684\u5bbd\u5ea6","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u6a21\u6001\u7684\u5bbd\u5ea6")),n.a.createElement(c["default"],o["default"]["modal-width"].previewerProps,n.a.createElement(N,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h2",{id:"api"},n.a.createElement(r["AnchorLink"],{to:"#api","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"API"),n.a.createElement("table",null,n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,"\u53c2\u6570"),n.a.createElement("th",null,"\u8bf4\u660e"),n.a.createElement("th",null,"\u7c7b\u578b"),n.a.createElement("th",null,"\u9ed8\u8ba4\u503c"),n.a.createElement("th",null,"\u7248\u672c"))),n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",null,"afterClose"),n.a.createElement("td",null,"Modal \u5b8c\u5168\u5173\u95ed\u540e\u7684\u56de\u8c03"),n.a.createElement("td",null,"function"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"bodyStyle"),n.a.createElement("td",null,"Modal body \u6837\u5f0f"),n.a.createElement("td",null,"CSSProperties"),n.a.createElement("td",null),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"cancelButtonProps"),n.a.createElement("td",null,"cancel \u6309\u94ae props"),n.a.createElement("td",null,n.a.createElement(r["AnchorLink"],{to:"/components/button/#API"},"ButtonProps")),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"cancelText"),n.a.createElement("td",null,"\u53d6\u6d88\u6309\u94ae\u6587\u5b57"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,n.a.createElement("code",null,"\u53d6\u6d88")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"centered"),n.a.createElement("td",null,"\u5782\u76f4\u5c45\u4e2d\u5c55\u793a Modal"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"false"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"closable"),n.a.createElement("td",null,"\u662f\u5426\u663e\u793a\u53f3\u4e0a\u89d2\u7684\u5173\u95ed\u6309\u94ae"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"true"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"closeIcon"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u5173\u95ed\u56fe\u6807"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"<CloseOutlined />"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"confirmLoading"),n.a.createElement("td",null,"\u786e\u5b9a\u6309\u94ae loading"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"false"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"destroyOnClose"),n.a.createElement("td",null,"\u5173\u95ed\u65f6\u9500\u6bc1 Modal \u91cc\u7684\u5b50\u5143\u7d20"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"false"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"focusTriggerAfterClose"),n.a.createElement("td",null,"\u5bf9\u8bdd\u6846\u5173\u95ed\u540e\u662f\u5426\u9700\u8981\u805a\u7126\u89e6\u53d1\u5143\u7d20"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"true"),n.a.createElement("td",null,"4.9.0")),n.a.createElement("tr",null,n.a.createElement("td",null,"footer"),n.a.createElement("td",null,"\u5e95\u90e8\u5185\u5bb9\uff0c\u5f53\u4e0d\u9700\u8981\u9ed8\u8ba4\u5e95\u90e8\u6309\u94ae\u65f6\uff0c\u53ef\u4ee5\u8bbe\u4e3a ",n.a.createElement("code",null,"footer=","{","null","}")),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"(\u786e\u5b9a\u53d6\u6d88\u6309\u94ae)"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"forceRender"),n.a.createElement("td",null,"\u5f3a\u5236\u6e32\u67d3 Modal"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"false"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"getContainer"),n.a.createElement("td",null,"\u6307\u5b9a Modal \u6302\u8f7d\u7684 HTML \u8282\u70b9, false \u4e3a\u6302\u8f7d\u5728\u5f53\u524d dom"),n.a.createElement("td",null,"HTMLElement | () => HTMLElement | Selectors | false"),n.a.createElement("td",null,"document.body"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"keyboard"),n.a.createElement("td",null,"\u662f\u5426\u652f\u6301\u952e\u76d8 esc \u5173\u95ed"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"true"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"mask"),n.a.createElement("td",null,"\u662f\u5426\u5c55\u793a\u906e\u7f69"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"true"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"maskClosable"),n.a.createElement("td",null,"\u70b9\u51fb\u8499\u5c42\u662f\u5426\u5141\u8bb8\u5173\u95ed"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"true"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"maskStyle"),n.a.createElement("td",null,"\u906e\u7f69\u6837\u5f0f"),n.a.createElement("td",null,"CSSProperties"),n.a.createElement("td",null),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"modalRender"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u6e32\u67d3\u5bf9\u8bdd\u6846"),n.a.createElement("td",null,"(node: ReactNode) => ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null,"4.7.0")),n.a.createElement("tr",null,n.a.createElement("td",null,"okButtonProps"),n.a.createElement("td",null,"ok \u6309\u94ae props"),n.a.createElement("td",null,n.a.createElement(r["AnchorLink"],{to:"/components/button/#API"},"ButtonProps")),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"okText"),n.a.createElement("td",null,"\u786e\u8ba4\u6309\u94ae\u6587\u5b57"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,n.a.createElement("code",null,"\u786e\u5b9a")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"okType"),n.a.createElement("td",null,"\u786e\u8ba4\u6309\u94ae\u7c7b\u578b"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,"primary")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"style"),n.a.createElement("td",null,"\u53ef\u7528\u4e8e\u8bbe\u7f6e\u6d6e\u5c42\u7684\u6837\u5f0f\uff0c\u8c03\u6574\u6d6e\u5c42\u4f4d\u7f6e\u7b49"),n.a.createElement("td",null,"CSSProperties"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"title"),n.a.createElement("td",null,"\u6807\u9898"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"visible"),n.a.createElement("td",null,"\u5bf9\u8bdd\u6846\u662f\u5426\u53ef\u89c1"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"width"),n.a.createElement("td",null,"\u5bbd\u5ea6"),n.a.createElement("td",null,"string | number"),n.a.createElement("td",null,"520"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"wrapClassName"),n.a.createElement("td",null,"\u5bf9\u8bdd\u6846\u5916\u5c42\u5bb9\u5668\u7684\u7c7b\u540d"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"zIndex"),n.a.createElement("td",null,"\u8bbe\u7f6e Modal \u7684 ",n.a.createElement("code",null,"z-index")),n.a.createElement("td",null,"number"),n.a.createElement("td",null,"1000"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onCancel"),n.a.createElement("td",null,"\u70b9\u51fb\u906e\u7f69\u5c42\u6216\u53f3\u4e0a\u89d2\u53c9\u6216\u53d6\u6d88\u6309\u94ae\u7684\u56de\u8c03"),n.a.createElement("td",null,"function(e)"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onOk"),n.a.createElement("td",null,"\u70b9\u51fb\u786e\u5b9a\u56de\u8c03"),n.a.createElement("td",null,"function(e)"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)))),n.a.createElement("h4",{id:"\u6ce8\u610f"},n.a.createElement(r["AnchorLink"],{to:"#\u6ce8\u610f","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u6ce8\u610f"),n.a.createElement("ul",null,n.a.createElement("li",null,n.a.createElement("code",null,"<Modal />")," \u9ed8\u8ba4\u5173\u95ed\u540e\u72b6\u6001\u4e0d\u4f1a\u81ea\u52a8\u6e05\u7a7a, \u5982\u679c\u5e0c\u671b\u6bcf\u6b21\u6253\u5f00\u90fd\u662f\u65b0\u5185\u5bb9\uff0c\u8bf7\u8bbe\u7f6e ",n.a.createElement("code",null,"destroyOnClose"),"\u3002"),n.a.createElement("li",null,n.a.createElement("code",null,"<Modal />")," \u548c Form \u4e00\u8d77\u914d\u5408\u4f7f\u7528\u65f6\uff0c\u8bbe\u7f6e ",n.a.createElement("code",null,"destroyOnClose")," \u4e5f\u4e0d\u4f1a\u5728 Modal \u5173\u95ed\u65f6\u9500\u6bc1\u8868\u5355\u5b57\u6bb5\u6570\u636e\uff0c\u9700\u8981\u8bbe\u7f6e ",n.a.createElement("code",null,"<Form preserve=","{","false","}"," />"),"\u3002"),n.a.createElement("li",null,n.a.createElement("code",null,"Modal.method()")," RTL \u6a21\u5f0f\u4ec5\u652f\u6301 hooks \u7528\u6cd5\u3002")),n.a.createElement("h3",{id:"modalmethod"},n.a.createElement(r["AnchorLink"],{to:"#modalmethod","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Modal.method()"),n.a.createElement("p",null,"\u5305\u62ec\uff1a"),n.a.createElement("ul",null,n.a.createElement("li",null,n.a.createElement("code",null,"Modal.info")),n.a.createElement("li",null,n.a.createElement("code",null,"Modal.success")),n.a.createElement("li",null,n.a.createElement("code",null,"Modal.error")),n.a.createElement("li",null,n.a.createElement("code",null,"Modal.warning")),n.a.createElement("li",null,n.a.createElement("code",null,"Modal.confirm"))),n.a.createElement("p",null,"\u4ee5\u4e0a\u5747\u4e3a\u4e00\u4e2a\u51fd\u6570\uff0c\u53c2\u6570\u4e3a object\uff0c\u5177\u4f53\u5c5e\u6027\u5982\u4e0b\uff1a"),n.a.createElement("table",null,n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,"\u53c2\u6570"),n.a.createElement("th",null,"\u8bf4\u660e"),n.a.createElement("th",null,"\u7c7b\u578b"),n.a.createElement("th",null,"\u9ed8\u8ba4\u503c"),n.a.createElement("th",null,"\u7248\u672c"))),n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",null,"afterClose"),n.a.createElement("td",null,"Modal \u5b8c\u5168\u5173\u95ed\u540e\u7684\u56de\u8c03"),n.a.createElement("td",null,"function"),n.a.createElement("td",null,"-"),n.a.createElement("td",null,"4.9.0")),n.a.createElement("tr",null,n.a.createElement("td",null,"autoFocusButton"),n.a.createElement("td",null,"\u6307\u5b9a\u81ea\u52a8\u83b7\u5f97\u7126\u70b9\u7684\u6309\u94ae"),n.a.createElement("td",null,"null | ",n.a.createElement("code",null,"ok")," | ",n.a.createElement("code",null,"cancel")),n.a.createElement("td",null,n.a.createElement("code",null,"ok")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"bodyStyle"),n.a.createElement("td",null,"Modal body \u6837\u5f0f"),n.a.createElement("td",null,"CSSProperties"),n.a.createElement("td",null),n.a.createElement("td",null,"4.8.0")),n.a.createElement("tr",null,n.a.createElement("td",null,"cancelButtonProps"),n.a.createElement("td",null,"cancel \u6309\u94ae props"),n.a.createElement("td",null,n.a.createElement(r["AnchorLink"],{to:"/components/button/#API"},"ButtonProps")),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"cancelText"),n.a.createElement("td",null,"\u8bbe\u7f6e Modal.confirm \u53d6\u6d88\u6309\u94ae\u6587\u5b57"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,"\u53d6\u6d88")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"centered"),n.a.createElement("td",null,"\u5782\u76f4\u5c45\u4e2d\u5c55\u793a Modal"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"false"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"className"),n.a.createElement("td",null,"\u5bb9\u5668\u7c7b\u540d"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"closable"),n.a.createElement("td",null,"\u662f\u5426\u663e\u793a\u53f3\u4e0a\u89d2\u7684\u5173\u95ed\u6309\u94ae"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"false"),n.a.createElement("td",null,"4.9.0")),n.a.createElement("tr",null,n.a.createElement("td",null,"closeIcon"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u5173\u95ed\u56fe\u6807"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"undefined"),n.a.createElement("td",null,"4.9.0")),n.a.createElement("tr",null,n.a.createElement("td",null,"content"),n.a.createElement("td",null,"\u5185\u5bb9"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"getContainer"),n.a.createElement("td",null,"\u6307\u5b9a Modal \u6302\u8f7d\u7684 HTML \u8282\u70b9, false \u4e3a\u6302\u8f7d\u5728\u5f53\u524d dom"),n.a.createElement("td",null,"HTMLElement | () => HTMLElement | Selectors | false"),n.a.createElement("td",null,"document.body"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"icon"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u56fe\u6807"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"<QuestionCircle />"),n.a.createElement("td",null,"3.12.0")),n.a.createElement("tr",null,n.a.createElement("td",null,"keyboard"),n.a.createElement("td",null,"\u662f\u5426\u652f\u6301\u952e\u76d8 esc \u5173\u95ed"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"true"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"mask"),n.a.createElement("td",null,"\u662f\u5426\u5c55\u793a\u906e\u7f69"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"true"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"maskClosable"),n.a.createElement("td",null,"\u70b9\u51fb\u8499\u5c42\u662f\u5426\u5141\u8bb8\u5173\u95ed"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"false"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"maskStyle"),n.a.createElement("td",null,"\u906e\u7f69\u6837\u5f0f"),n.a.createElement("td",null,"object"),n.a.createElement("td",null,"{","}"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"okButtonProps"),n.a.createElement("td",null,"ok \u6309\u94ae props"),n.a.createElement("td",null,n.a.createElement(r["AnchorLink"],{to:"/components/button/#API"},"ButtonProps")),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"okText"),n.a.createElement("td",null,"\u786e\u8ba4\u6309\u94ae\u6587\u5b57"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,"\u786e\u5b9a")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"okType"),n.a.createElement("td",null,"\u786e\u8ba4\u6309\u94ae\u7c7b\u578b"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,"primary")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"style"),n.a.createElement("td",null,"\u53ef\u7528\u4e8e\u8bbe\u7f6e\u6d6e\u5c42\u7684\u6837\u5f0f\uff0c\u8c03\u6574\u6d6e\u5c42\u4f4d\u7f6e\u7b49"),n.a.createElement("td",null,"CSSProperties"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"title"),n.a.createElement("td",null,"\u6807\u9898"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"width"),n.a.createElement("td",null,"\u5bbd\u5ea6"),n.a.createElement("td",null,"string | number"),n.a.createElement("td",null,"416"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"zIndex"),n.a.createElement("td",null,"\u8bbe\u7f6e Modal \u7684 ",n.a.createElement("code",null,"z-index")),n.a.createElement("td",null,"number"),n.a.createElement("td",null,"1000"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onCancel"),n.a.createElement("td",null,"\u53d6\u6d88\u56de\u8c03\uff0c\u53c2\u6570\u4e3a\u5173\u95ed\u51fd\u6570\uff0c\u8fd4\u56de promise \u65f6 resolve \u540e\u81ea\u52a8\u5173\u95ed"),n.a.createElement("td",null,"function(close)"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onOk"),n.a.createElement("td",null,"\u70b9\u51fb\u786e\u5b9a\u56de\u8c03\uff0c\u53c2\u6570\u4e3a\u5173\u95ed\u51fd\u6570\uff0c\u8fd4\u56de promise \u65f6 resolve \u540e\u81ea\u52a8\u5173\u95ed"),n.a.createElement("td",null,"function(close)"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)))),n.a.createElement("p",null,"\u4ee5\u4e0a\u51fd\u6570\u8c03\u7528\u540e\uff0c\u4f1a\u8fd4\u56de\u4e00\u4e2a\u5f15\u7528\uff0c\u53ef\u4ee5\u901a\u8fc7\u8be5\u5f15\u7528\u66f4\u65b0\u548c\u5173\u95ed\u5f39\u7a97\u3002"),n.a.createElement(m["a"],{code:"const modal = Modal.info();\n\nmodal.update({\n title: '\u4fee\u6539\u7684\u6807\u9898',\n content: '\u4fee\u6539\u7684\u5185\u5bb9',\n});\n\n// \u5728 4.8.0 \u6216\u66f4\u9ad8\u7248\u672c\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f20\u5165\u51fd\u6570\u7684\u65b9\u5f0f\u66f4\u65b0\u5f39\u7a97\nmodal.update(prevConfig => ({\n ...prevConfig,\n title: `${prevConfig.title}\uff08\u65b0\uff09`,\n}));\n\nmodal.destroy();",lang:"bash"}),n.a.createElement("ul",null,n.a.createElement("li",null,n.a.createElement("code",null,"Modal.destroyAll"))),n.a.createElement("p",null,"\u4f7f\u7528 ",n.a.createElement("code",null,"Modal.destroyAll()")," \u53ef\u4ee5\u9500\u6bc1\u5f39\u51fa\u7684\u786e\u8ba4\u7a97\uff08\u5373\u4e0a\u8ff0\u7684 ",n.a.createElement("code",null,"Modal.info"),"\u3001",n.a.createElement("code",null,"Modal.success"),"\u3001",n.a.createElement("code",null,"Modal.error"),"\u3001",n.a.createElement("code",null,"Modal.warning"),"\u3001",n.a.createElement("code",null,"Modal.confirm"),"\uff09\u3002\u901a\u5e38\u7528\u4e8e\u8def\u7531\u76d1\u542c\u5f53\u4e2d\uff0c\u5904\u7406\u8def\u7531\u524d\u8fdb\u3001\u540e\u9000\u4e0d\u80fd\u9500\u6bc1\u786e\u8ba4\u5bf9\u8bdd\u6846\u7684\u95ee\u9898\uff0c\u800c\u4e0d\u7528\u5404\u5904\u53bb\u4f7f\u7528\u5b9e\u4f8b\u7684\u8fd4\u56de\u503c\u8fdb\u884c\u5173\u95ed\uff08",n.a.createElement("code",null,"modal.destroy()")," \u9002\u7528\u4e8e\u4e3b\u52a8\u5173\u95ed\uff0c\u800c\u4e0d\u662f\u8def\u7531\u8fd9\u6837\u88ab\u52a8\u5173\u95ed\uff09"),n.a.createElement(m["a"],{code:"import { browserHistory } from 'react-router';\n\n// router change\nbrowserHistory.listen(() => {\n Modal.destroyAll();\n});",lang:"bash"}),n.a.createElement("h3",{id:"modalusemodal"},n.a.createElement(r["AnchorLink"],{to:"#modalusemodal","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Modal.useModal()"),n.a.createElement("p",null,"\u5f53\u4f60\u9700\u8981\u4f7f\u7528 Context \u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7 ",n.a.createElement("code",null,"Modal.useModal")," \u521b\u5efa\u4e00\u4e2a ",n.a.createElement("code",null,"contextHolder")," \u63d2\u5165\u5b50\u8282\u70b9\u4e2d\u3002\u901a\u8fc7 hooks \u521b\u5efa\u7684\u4e34\u65f6 Modal \u5c06\u4f1a\u5f97\u5230 ",n.a.createElement("code",null,"contextHolder")," \u6240\u5728\u4f4d\u7f6e\u7684\u6240\u6709\u4e0a\u4e0b\u6587\u3002\u521b\u5efa\u7684 ",n.a.createElement("code",null,"modal")," \u5bf9\u8c61\u62e5\u6709\u4e0e ",n.a.createElement(r["AnchorLink"],{to:"#Modal.method()"},n.a.createElement("code",null,"Modal.method"))," \u76f8\u540c\u7684\u521b\u5efa\u901a\u77e5\u65b9\u6cd5\u3002"),n.a.createElement(m["a"],{code:"const [modal, contextHolder] = Modal.useModal();\n\nReact.useEffect(() => {\n modal.confirm({\n // ...\n });\n}, []);\n\nreturn <div>{contextHolder}</div>;",lang:"bash"}),n.a.createElement("h2",{id:"faq"},n.a.createElement(r["AnchorLink"],{to:"#faq","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"FAQ"),n.a.createElement("h3",{id:"\u4e3a\u4ec0\u4e48-modal-\u65b9\u6cd5\u4e0d\u80fd\u83b7\u53d6-contextredux\u7684\u5185\u5bb9\u548c-configprovider-localeprefixcls-\u914d\u7f6e"},n.a.createElement(r["AnchorLink"],{to:"#\u4e3a\u4ec0\u4e48-modal-\u65b9\u6cd5\u4e0d\u80fd\u83b7\u53d6-contextredux\u7684\u5185\u5bb9\u548c-configprovider-localeprefixcls-\u914d\u7f6e","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4e3a\u4ec0\u4e48 Modal \u65b9\u6cd5\u4e0d\u80fd\u83b7\u53d6 context\u3001redux\u3001\u7684\u5185\u5bb9\u548c ConfigProvider ",n.a.createElement("code",null,"locale/prefixCls")," \u914d\u7f6e\uff1f"),n.a.createElement("p",null,"\u76f4\u63a5\u8c03\u7528 Modal \u65b9\u6cd5\uff0cantd \u4f1a\u901a\u8fc7 ",n.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"),n.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 ",n.a.createElement("code",null,"Modal.useModal")," \u65b9\u6cd5\u4f1a\u8fd4\u56de ",n.a.createElement("code",null,"modal")," \u5b9e\u4f53\u4ee5\u53ca ",n.a.createElement("code",null,"contextHolder")," \u8282\u70b9\u3002\u5c06\u5176\u63d2\u5165\u5230\u4f60\u9700\u8981\u83b7\u53d6 context \u4f4d\u7f6e\u5373\u53ef\uff1a"),n.a.createElement(m["a"],{code:'const [modal, contextHolder] = Modal.useModal();\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"}),n.a.createElement("p",null,"**\u5f02\u540c\uff1a**\u901a\u8fc7 hooks \u521b\u5efa\u7684 ",n.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"),n.a.createElement("h3",{id:"\u5982\u4f55\u5173\u95ed-modal-\u52a8\u753b"},n.a.createElement(r["AnchorLink"],{to:"#\u5982\u4f55\u5173\u95ed-modal-\u52a8\u753b","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5982\u4f55\u5173\u95ed Modal \u52a8\u753b\uff1f"),n.a.createElement("p",null,"\u4f60\u53ef\u4ee5\u901a\u8fc7 ",n.a.createElement("code",null,'transitionName=""')," \u548c ",n.a.createElement("code",null,'maskTransitionName=""')," \u53bb\u9664\u52a8\u753b CSS\uff0c\u4f46\u662f\u9700\u8981\u6ce8\u610f\u7684\u662f\u3002\u8be5\u65b9\u6cd5\u4e3a\u5185\u90e8\u65b9\u6cd5\uff0c\u6211\u4eec\u4e0d\u4fdd\u8bc1\u4e0b\u4e2a\u5927\u7248\u672c\u91cd\u6784\u65f6\u8be5\u5c5e\u6027\u4f1a\u88ab\u4fdd\u7559\u3002"),n.a.createElement("h3",{id:"\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e-prefixcls-"},n.a.createElement(r["AnchorLink"],{to:"#\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e-prefixcls-","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e prefixCls \uff1f"),n.a.createElement("p",null,"\u4f60\u53ef\u4ee5\u901a\u8fc7 ",n.a.createElement(r["AnchorLink"],{to:"/components/config-provider/#ConfigProvider.config()-4.13.0+"},n.a.createElement("code",null,"ConfigProvider.config"))," \u8fdb\u884c\u8bbe\u7f6e\u3002")))))},RZMt:function(e,t,l){},Zxc8:function(e,t,l){"use strict";l.r(t);var a=l("q1tI"),n=l.n(a),r=l("k3GJ"),c=l("MZF8"),m=l("dEAq"),o=l("H1Ra");l("RZMt");function d(e,t){return f(e)||s(e,t)||E(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 E(e,t){if(e){if("string"===typeof e)return i(e,t);var l=Object.prototype.toString.call(e).slice(8,-1);return"Object"===l&&e.constructor&&(l=e.constructor.name),"Map"===l||"Set"===l?Array.from(e):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var l=0,a=new Array(t);l<t;l++)a[l]=e[l];return a}function s(e,t){var l=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=l){var a,n,r=[],c=!0,m=!1;try{for(l=l.call(e);!(c=(a=l.next()).done);c=!0)if(r.push(a.value),t&&r.length===t)break}catch(o){m=!0,n=o}finally{try{c||null==l["return"]||l["return"]()}finally{if(m)throw n}}return r}}function f(e){if(Array.isArray(e))return e}function p(e,t){var l,a=null===(l=e.match(/\.(\w+)$/))||void 0===l?void 0:l[1];return a||(a=t.tsx?"tsx":"jsx"),a}var h=function(e){var t,l,u,E=Object(a["useRef"])(),i=Object(a["useContext"])(m["context"]),s=i.locale,f=Object(m["useLocaleProps"])(s,e),h=Object(m["useDemoUrl"])(f.identifier),b=f.demoUrl||h,k=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(f.identifier),v=1===Object.keys(f.sources).length,x=Object(m["useCodeSandbox"])((null===(t=f.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:f),N=Object(m["useRiddle"])((null===(l=f.hideActions)||void 0===l?void 0:l.includes("RIDDLE"))?null:f),y=Object(m["useMotions"])(f.motions||[],E.current),M=d(y,2),g=M[0],w=M[1],C=Object(m["useCopy"])(),A=d(C,2),L=A[0],P=A[1],_=Object(a["useState"])("_"),I=d(_,2),S=I[0],O=I[1],R=Object(a["useState"])(p(S,f.sources[S])),j=d(R,2),T=j[0],H=j[1],B=Object(a["useState"])(Boolean(f.defaultShowCode)),F=d(B,2),q=F[0],U=F[1],Z=Object(a["useState"])(Math.random()),D=d(Z,2),J=D[0],$=D[1],z=f.sources[S][T]||f.sources[S].content,G=Object(m["useTSPlaygroundUrl"])(s,z),Q=Object(a["useRef"])(),X=Object(m["usePrefersColor"])(),K=d(X,1),V=K[0];function W(e){O(e),H(p(e,f.sources[e]))}return Object(a["useEffect"])((function(){$(Math.random())}),[V]),n.a.createElement("div",{style:f.style,className:[f.className,"__dumi-default-previewer",k?"__dumi-default-previewer-target":""].filter(Boolean).join(" "),id:f.identifier,"data-debug":f.debug||void 0,"data-iframe":f.iframe||void 0},f.iframe&&n.a.createElement("div",{className:"__dumi-default-previewer-browser-nav"}),n.a.createElement("div",{ref:E,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?n.a.createElement("iframe",{title:"dumi-previewer",style:{height:String(f.iframe).replace(/(\d)$/,"$1px")},key:J,src:b,ref:Q}):f.children),n.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":f.title},f.title&&n.a.createElement(m["AnchorLink"],{to:"#".concat(f.identifier)},f.title),f.description&&n.a.createElement("div",{dangerouslySetInnerHTML:{__html:f.description}})),n.a.createElement("div",{className:"__dumi-default-previewer-actions"},x&&n.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:x}),N&&n.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:N}),f.motions&&n.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:w,onClick:function(){return g()}}),f.iframe&&n.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return $(Math.random())}}),!(null===(u=f.hideActions)||void 0===u?void 0:u.includes("EXTERNAL"))&&n.a.createElement(m["Link"],{target:"_blank",to:b},n.a.createElement("button",{title:"Open demo in new tab",className:"__dumi-default-icon",role:"open-demo",type:"button"})),n.a.createElement("span",null),n.a.createElement("button",{title:"Copy source code",className:"__dumi-default-icon",role:"copy","data-status":P,onClick:function(){return L(z)}}),"tsx"===T&&q&&n.a.createElement(m["Link"],{target:"_blank",to:G},n.a.createElement("button",{title:"Get JSX via TypeScript Playground",className:"__dumi-default-icon",role:"change-tsx",type:"button"})),n.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 U(!q)}})),q&&n.a.createElement("div",{className:"__dumi-default-previewer-source-wrapper"},!v&&n.a.createElement(r["b"],{className:"__dumi-default-previewer-source-tab",prefixCls:"__dumi-default-tabs",moreIcon:"\xb7\xb7\xb7",defaultActiveKey:S,onChange:W},Object.keys(f.sources).map((function(e){return n.a.createElement(r["a"],{tab:"_"===e?"index.".concat(p(e,f.sources[e])):e,key:e})}))),n.a.createElement("div",{className:"__dumi-default-previewer-source"},n.a.createElement(o["a"],{code:z,lang:T,showCopy:!1}))))};t["default"]=h}}]);
1
+ (window['webpackJsonp'] = window['webpackJsonp'] || []).push([
2
+ [42],
3
+ {
4
+ MZF8: function (e, t, l) {
5
+ 'use strict';
6
+ var a = l('ogwx');
7
+ l.d(t, 'a', function () {
8
+ return a['b'];
9
+ });
10
+ l('VCU9');
11
+ },
12
+ R5W9: function (e, t, l) {
13
+ 'use strict';
14
+ l.r(t);
15
+ var a = l('q1tI'),
16
+ n = l.n(a),
17
+ r = l('dEAq'),
18
+ c = l('Zxc8'),
19
+ m = l('H1Ra'),
20
+ o = l('JjdP'),
21
+ d = n.a.memo(o['default']['modal-basic'].component),
22
+ u = n.a.memo(o['default']['modal-async'].component),
23
+ E = n.a.memo(o['default']['modal-footer'].component),
24
+ i = n.a.memo(o['default']['modal-confirm'].component),
25
+ s = n.a.memo(o['default']['modal-info'].component),
26
+ f = n.a.memo(o['default']['modal-locale'].component),
27
+ p = n.a.memo(o['default']['modal-manual'].component),
28
+ h = n.a.memo(o['default']['modal-position'].component),
29
+ b = n.a.memo(o['default']['modal-confirm-router'].component),
30
+ k = n.a.memo(o['default']['modal-button-props'].component),
31
+ v = n.a.memo(o['default']['modal-hooks'].component),
32
+ x = n.a.memo(o['default']['modal-modal-render'].component),
33
+ N = n.a.memo(o['default']['modal-width'].component);
34
+ t['default'] = (e) => (
35
+ n.a.useEffect(() => {
36
+ var t;
37
+ null !== e &&
38
+ void 0 !== e &&
39
+ null !== (t = e.location) &&
40
+ void 0 !== t &&
41
+ t.hash &&
42
+ r['AnchorLink'].scrollToAnchor(
43
+ decodeURIComponent(e.location.hash.slice(1)),
44
+ );
45
+ }, []),
46
+ n.a.createElement(
47
+ n.a.Fragment,
48
+ null,
49
+ n.a.createElement(
50
+ n.a.Fragment,
51
+ null,
52
+ n.a.createElement(
53
+ 'div',
54
+ { className: 'markdown' },
55
+ n.a.createElement(
56
+ 'h1',
57
+ { id: 'modal-\u5bf9\u8bdd\u6846' },
58
+ n.a.createElement(
59
+ r['AnchorLink'],
60
+ {
61
+ to: '#modal-\u5bf9\u8bdd\u6846',
62
+ 'aria-hidden': 'true',
63
+ tabIndex: -1,
64
+ },
65
+ n.a.createElement('span', { className: 'icon icon-link' }),
66
+ ),
67
+ 'Modal \u5bf9\u8bdd\u6846',
68
+ ),
69
+ n.a.createElement(
70
+ 'p',
71
+ null,
72
+ '\u6a21\u6001\u5bf9\u8bdd\u6846\u3002',
73
+ ),
74
+ n.a.createElement(
75
+ 'h2',
76
+ { id: '\u4f55\u65f6\u4f7f\u7528' },
77
+ n.a.createElement(
78
+ r['AnchorLink'],
79
+ {
80
+ to: '#\u4f55\u65f6\u4f7f\u7528',
81
+ 'aria-hidden': 'true',
82
+ tabIndex: -1,
83
+ },
84
+ n.a.createElement('span', { className: 'icon icon-link' }),
85
+ ),
86
+ '\u4f55\u65f6\u4f7f\u7528',
87
+ ),
88
+ n.a.createElement(
89
+ 'p',
90
+ null,
91
+ '\u9700\u8981\u7528\u6237\u5904\u7406\u4e8b\u52a1\uff0c\u53c8\u4e0d\u5e0c\u671b\u8df3\u8f6c\u9875\u9762\u4ee5\u81f4\u6253\u65ad\u5de5\u4f5c\u6d41\u7a0b\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528 ',
92
+ n.a.createElement('code', null, 'Modal'),
93
+ ' \u5728\u5f53\u524d\u9875\u9762\u6b63\u4e2d\u6253\u5f00\u4e00\u4e2a\u6d6e\u5c42\uff0c\u627f\u8f7d\u76f8\u5e94\u7684\u64cd\u4f5c\u3002',
94
+ ),
95
+ n.a.createElement(
96
+ 'p',
97
+ null,
98
+ '\u53e6\u5916\u5f53\u9700\u8981\u4e00\u4e2a\u7b80\u6d01\u7684\u786e\u8ba4\u6846\u8be2\u95ee\u7528\u6237\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528 ',
99
+ n.a.createElement('code', null, 'Modal.confirm()'),
100
+ ' \u7b49\u8bed\u6cd5\u7cd6\u65b9\u6cd5\u3002',
101
+ ),
102
+ n.a.createElement(
103
+ 'h2',
104
+ { id: '\u4ee3\u7801\u6f14\u793a' },
105
+ n.a.createElement(
106
+ r['AnchorLink'],
107
+ {
108
+ to: '#\u4ee3\u7801\u6f14\u793a',
109
+ 'aria-hidden': 'true',
110
+ tabIndex: -1,
111
+ },
112
+ n.a.createElement('span', { className: 'icon icon-link' }),
113
+ ),
114
+ '\u4ee3\u7801\u6f14\u793a',
115
+ ),
116
+ n.a.createElement(
117
+ 'h3',
118
+ { id: '\u57fa\u672c' },
119
+ n.a.createElement(
120
+ r['AnchorLink'],
121
+ { to: '#\u57fa\u672c', 'aria-hidden': 'true', tabIndex: -1 },
122
+ n.a.createElement('span', { className: 'icon icon-link' }),
123
+ ),
124
+ '\u57fa\u672c',
125
+ ),
126
+ ),
127
+ n.a.createElement(
128
+ c['default'],
129
+ o['default']['modal-basic'].previewerProps,
130
+ n.a.createElement(d, null),
131
+ ),
132
+ n.a.createElement(
133
+ 'div',
134
+ { className: 'markdown' },
135
+ n.a.createElement(
136
+ 'h3',
137
+ { id: '\u5f02\u6b65\u5173\u95ed' },
138
+ n.a.createElement(
139
+ r['AnchorLink'],
140
+ {
141
+ to: '#\u5f02\u6b65\u5173\u95ed',
142
+ 'aria-hidden': 'true',
143
+ tabIndex: -1,
144
+ },
145
+ n.a.createElement('span', { className: 'icon icon-link' }),
146
+ ),
147
+ '\u5f02\u6b65\u5173\u95ed',
148
+ ),
149
+ ),
150
+ n.a.createElement(
151
+ c['default'],
152
+ o['default']['modal-async'].previewerProps,
153
+ n.a.createElement(u, null),
154
+ ),
155
+ n.a.createElement(
156
+ 'div',
157
+ { className: 'markdown' },
158
+ n.a.createElement(
159
+ 'h3',
160
+ { id: '\u81ea\u5b9a\u4e49\u9875\u811a' },
161
+ n.a.createElement(
162
+ r['AnchorLink'],
163
+ {
164
+ to: '#\u81ea\u5b9a\u4e49\u9875\u811a',
165
+ 'aria-hidden': 'true',
166
+ tabIndex: -1,
167
+ },
168
+ n.a.createElement('span', { className: 'icon icon-link' }),
169
+ ),
170
+ '\u81ea\u5b9a\u4e49\u9875\u811a',
171
+ ),
172
+ ),
173
+ n.a.createElement(
174
+ c['default'],
175
+ o['default']['modal-footer'].previewerProps,
176
+ n.a.createElement(E, null),
177
+ ),
178
+ n.a.createElement(
179
+ 'div',
180
+ { className: 'markdown' },
181
+ n.a.createElement(
182
+ 'h3',
183
+ { id: '\u786e\u8ba4\u5bf9\u8bdd\u6846' },
184
+ n.a.createElement(
185
+ r['AnchorLink'],
186
+ {
187
+ to: '#\u786e\u8ba4\u5bf9\u8bdd\u6846',
188
+ 'aria-hidden': 'true',
189
+ tabIndex: -1,
190
+ },
191
+ n.a.createElement('span', { className: 'icon icon-link' }),
192
+ ),
193
+ '\u786e\u8ba4\u5bf9\u8bdd\u6846',
194
+ ),
195
+ ),
196
+ n.a.createElement(
197
+ c['default'],
198
+ o['default']['modal-confirm'].previewerProps,
199
+ n.a.createElement(i, null),
200
+ ),
201
+ n.a.createElement(
202
+ 'div',
203
+ { className: 'markdown' },
204
+ n.a.createElement(
205
+ 'h3',
206
+ { id: '\u4fe1\u606f\u63d0\u793a' },
207
+ n.a.createElement(
208
+ r['AnchorLink'],
209
+ {
210
+ to: '#\u4fe1\u606f\u63d0\u793a',
211
+ 'aria-hidden': 'true',
212
+ tabIndex: -1,
213
+ },
214
+ n.a.createElement('span', { className: 'icon icon-link' }),
215
+ ),
216
+ '\u4fe1\u606f\u63d0\u793a',
217
+ ),
218
+ ),
219
+ n.a.createElement(
220
+ c['default'],
221
+ o['default']['modal-info'].previewerProps,
222
+ n.a.createElement(s, null),
223
+ ),
224
+ n.a.createElement(
225
+ 'div',
226
+ { className: 'markdown' },
227
+ n.a.createElement(
228
+ 'h3',
229
+ { id: '\u56fd\u9645\u5316' },
230
+ n.a.createElement(
231
+ r['AnchorLink'],
232
+ {
233
+ to: '#\u56fd\u9645\u5316',
234
+ 'aria-hidden': 'true',
235
+ tabIndex: -1,
236
+ },
237
+ n.a.createElement('span', { className: 'icon icon-link' }),
238
+ ),
239
+ '\u56fd\u9645\u5316',
240
+ ),
241
+ ),
242
+ n.a.createElement(
243
+ c['default'],
244
+ o['default']['modal-locale'].previewerProps,
245
+ n.a.createElement(f, null),
246
+ ),
247
+ n.a.createElement(
248
+ 'div',
249
+ { className: 'markdown' },
250
+ n.a.createElement(
251
+ 'h3',
252
+ { id: '\u624b\u52a8\u66f4\u65b0\u548c\u79fb\u9664' },
253
+ n.a.createElement(
254
+ r['AnchorLink'],
255
+ {
256
+ to: '#\u624b\u52a8\u66f4\u65b0\u548c\u79fb\u9664',
257
+ 'aria-hidden': 'true',
258
+ tabIndex: -1,
259
+ },
260
+ n.a.createElement('span', { className: 'icon icon-link' }),
261
+ ),
262
+ '\u624b\u52a8\u66f4\u65b0\u548c\u79fb\u9664',
263
+ ),
264
+ ),
265
+ n.a.createElement(
266
+ c['default'],
267
+ o['default']['modal-manual'].previewerProps,
268
+ n.a.createElement(p, null),
269
+ ),
270
+ n.a.createElement(
271
+ 'div',
272
+ { className: 'markdown' },
273
+ n.a.createElement(
274
+ 'h3',
275
+ { id: '\u81ea\u5b9a\u4e49\u4f4d\u7f6e' },
276
+ n.a.createElement(
277
+ r['AnchorLink'],
278
+ {
279
+ to: '#\u81ea\u5b9a\u4e49\u4f4d\u7f6e',
280
+ 'aria-hidden': 'true',
281
+ tabIndex: -1,
282
+ },
283
+ n.a.createElement('span', { className: 'icon icon-link' }),
284
+ ),
285
+ '\u81ea\u5b9a\u4e49\u4f4d\u7f6e',
286
+ ),
287
+ ),
288
+ n.a.createElement(
289
+ c['default'],
290
+ o['default']['modal-position'].previewerProps,
291
+ n.a.createElement(h, null),
292
+ ),
293
+ n.a.createElement(
294
+ 'div',
295
+ { className: 'markdown' },
296
+ n.a.createElement(
297
+ 'h3',
298
+ { id: '\u9500\u6bc1\u786e\u8ba4\u5bf9\u8bdd\u6846' },
299
+ n.a.createElement(
300
+ r['AnchorLink'],
301
+ {
302
+ to: '#\u9500\u6bc1\u786e\u8ba4\u5bf9\u8bdd\u6846',
303
+ 'aria-hidden': 'true',
304
+ tabIndex: -1,
305
+ },
306
+ n.a.createElement('span', { className: 'icon icon-link' }),
307
+ ),
308
+ '\u9500\u6bc1\u786e\u8ba4\u5bf9\u8bdd\u6846',
309
+ ),
310
+ ),
311
+ n.a.createElement(
312
+ c['default'],
313
+ o['default']['modal-confirm-router'].previewerProps,
314
+ n.a.createElement(b, null),
315
+ ),
316
+ n.a.createElement(
317
+ 'div',
318
+ { className: 'markdown' },
319
+ n.a.createElement(
320
+ 'h3',
321
+ {
322
+ id: '\u81ea\u5b9a\u4e49\u9875\u811a\u6309\u94ae\u5c5e\u6027',
323
+ },
324
+ n.a.createElement(
325
+ r['AnchorLink'],
326
+ {
327
+ to: '#\u81ea\u5b9a\u4e49\u9875\u811a\u6309\u94ae\u5c5e\u6027',
328
+ 'aria-hidden': 'true',
329
+ tabIndex: -1,
330
+ },
331
+ n.a.createElement('span', { className: 'icon icon-link' }),
332
+ ),
333
+ '\u81ea\u5b9a\u4e49\u9875\u811a\u6309\u94ae\u5c5e\u6027',
334
+ ),
335
+ ),
336
+ n.a.createElement(
337
+ c['default'],
338
+ o['default']['modal-button-props'].previewerProps,
339
+ n.a.createElement(k, null),
340
+ ),
341
+ n.a.createElement(
342
+ 'div',
343
+ { className: 'markdown' },
344
+ n.a.createElement(
345
+ 'h3',
346
+ { id: '\u4f7f\u7528-hooks-\u83b7\u5f97\u4e0a\u4e0b\u6587' },
347
+ n.a.createElement(
348
+ r['AnchorLink'],
349
+ {
350
+ to: '#\u4f7f\u7528-hooks-\u83b7\u5f97\u4e0a\u4e0b\u6587',
351
+ 'aria-hidden': 'true',
352
+ tabIndex: -1,
353
+ },
354
+ n.a.createElement('span', { className: 'icon icon-link' }),
355
+ ),
356
+ '\u4f7f\u7528 hooks \u83b7\u5f97\u4e0a\u4e0b\u6587',
357
+ ),
358
+ ),
359
+ n.a.createElement(
360
+ c['default'],
361
+ o['default']['modal-hooks'].previewerProps,
362
+ n.a.createElement(v, null),
363
+ ),
364
+ n.a.createElement(
365
+ 'div',
366
+ { className: 'markdown' },
367
+ n.a.createElement(
368
+ 'h3',
369
+ { id: '\u81ea\u5b9a\u4e49\u6e32\u67d3\u5bf9\u8bdd\u6846' },
370
+ n.a.createElement(
371
+ r['AnchorLink'],
372
+ {
373
+ to: '#\u81ea\u5b9a\u4e49\u6e32\u67d3\u5bf9\u8bdd\u6846',
374
+ 'aria-hidden': 'true',
375
+ tabIndex: -1,
376
+ },
377
+ n.a.createElement('span', { className: 'icon icon-link' }),
378
+ ),
379
+ '\u81ea\u5b9a\u4e49\u6e32\u67d3\u5bf9\u8bdd\u6846',
380
+ ),
381
+ ),
382
+ n.a.createElement(
383
+ c['default'],
384
+ o['default']['modal-modal-render'].previewerProps,
385
+ n.a.createElement(x, null),
386
+ ),
387
+ n.a.createElement(
388
+ 'div',
389
+ { className: 'markdown' },
390
+ n.a.createElement(
391
+ 'h3',
392
+ { id: '\u81ea\u5b9a\u4e49\u6a21\u6001\u7684\u5bbd\u5ea6' },
393
+ n.a.createElement(
394
+ r['AnchorLink'],
395
+ {
396
+ to: '#\u81ea\u5b9a\u4e49\u6a21\u6001\u7684\u5bbd\u5ea6',
397
+ 'aria-hidden': 'true',
398
+ tabIndex: -1,
399
+ },
400
+ n.a.createElement('span', { className: 'icon icon-link' }),
401
+ ),
402
+ '\u81ea\u5b9a\u4e49\u6a21\u6001\u7684\u5bbd\u5ea6',
403
+ ),
404
+ ),
405
+ n.a.createElement(
406
+ c['default'],
407
+ o['default']['modal-width'].previewerProps,
408
+ n.a.createElement(N, null),
409
+ ),
410
+ n.a.createElement(
411
+ 'div',
412
+ { className: 'markdown' },
413
+ n.a.createElement(
414
+ 'h2',
415
+ { id: 'api' },
416
+ n.a.createElement(
417
+ r['AnchorLink'],
418
+ { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
419
+ n.a.createElement('span', { className: 'icon icon-link' }),
420
+ ),
421
+ 'API',
422
+ ),
423
+ n.a.createElement(
424
+ 'table',
425
+ null,
426
+ n.a.createElement(
427
+ 'thead',
428
+ null,
429
+ n.a.createElement(
430
+ 'tr',
431
+ null,
432
+ n.a.createElement('th', null, '\u53c2\u6570'),
433
+ n.a.createElement('th', null, '\u8bf4\u660e'),
434
+ n.a.createElement('th', null, '\u7c7b\u578b'),
435
+ n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
436
+ n.a.createElement('th', null, '\u7248\u672c'),
437
+ ),
438
+ ),
439
+ n.a.createElement(
440
+ 'tbody',
441
+ null,
442
+ n.a.createElement(
443
+ 'tr',
444
+ null,
445
+ n.a.createElement('td', null, 'afterClose'),
446
+ n.a.createElement(
447
+ 'td',
448
+ null,
449
+ 'Modal \u5b8c\u5168\u5173\u95ed\u540e\u7684\u56de\u8c03',
450
+ ),
451
+ n.a.createElement('td', null, 'function'),
452
+ n.a.createElement('td', null, '-'),
453
+ n.a.createElement('td', null),
454
+ ),
455
+ n.a.createElement(
456
+ 'tr',
457
+ null,
458
+ n.a.createElement('td', null, 'bodyStyle'),
459
+ n.a.createElement('td', null, 'Modal body \u6837\u5f0f'),
460
+ n.a.createElement('td', null, 'CSSProperties'),
461
+ n.a.createElement('td', null),
462
+ n.a.createElement('td', null),
463
+ ),
464
+ n.a.createElement(
465
+ 'tr',
466
+ null,
467
+ n.a.createElement('td', null, 'cancelButtonProps'),
468
+ n.a.createElement('td', null, 'cancel \u6309\u94ae props'),
469
+ n.a.createElement(
470
+ 'td',
471
+ null,
472
+ n.a.createElement(
473
+ r['AnchorLink'],
474
+ { to: '/components/button/#API' },
475
+ 'ButtonProps',
476
+ ),
477
+ ),
478
+ n.a.createElement('td', null, '-'),
479
+ n.a.createElement('td', null),
480
+ ),
481
+ n.a.createElement(
482
+ 'tr',
483
+ null,
484
+ n.a.createElement('td', null, 'cancelText'),
485
+ n.a.createElement(
486
+ 'td',
487
+ null,
488
+ '\u53d6\u6d88\u6309\u94ae\u6587\u5b57',
489
+ ),
490
+ n.a.createElement('td', null, 'ReactNode'),
491
+ n.a.createElement(
492
+ 'td',
493
+ null,
494
+ n.a.createElement('code', null, '\u53d6\u6d88'),
495
+ ),
496
+ n.a.createElement('td', null),
497
+ ),
498
+ n.a.createElement(
499
+ 'tr',
500
+ null,
501
+ n.a.createElement('td', null, 'centered'),
502
+ n.a.createElement(
503
+ 'td',
504
+ null,
505
+ '\u5782\u76f4\u5c45\u4e2d\u5c55\u793a Modal',
506
+ ),
507
+ n.a.createElement('td', null, 'boolean'),
508
+ n.a.createElement('td', null, 'false'),
509
+ n.a.createElement('td', null),
510
+ ),
511
+ n.a.createElement(
512
+ 'tr',
513
+ null,
514
+ n.a.createElement('td', null, 'closable'),
515
+ n.a.createElement(
516
+ 'td',
517
+ null,
518
+ '\u662f\u5426\u663e\u793a\u53f3\u4e0a\u89d2\u7684\u5173\u95ed\u6309\u94ae',
519
+ ),
520
+ n.a.createElement('td', null, 'boolean'),
521
+ n.a.createElement('td', null, 'true'),
522
+ n.a.createElement('td', null),
523
+ ),
524
+ n.a.createElement(
525
+ 'tr',
526
+ null,
527
+ n.a.createElement('td', null, 'closeIcon'),
528
+ n.a.createElement(
529
+ 'td',
530
+ null,
531
+ '\u81ea\u5b9a\u4e49\u5173\u95ed\u56fe\u6807',
532
+ ),
533
+ n.a.createElement('td', null, 'ReactNode'),
534
+ n.a.createElement('td', null, '<CloseOutlined />'),
535
+ n.a.createElement('td', null),
536
+ ),
537
+ n.a.createElement(
538
+ 'tr',
539
+ null,
540
+ n.a.createElement('td', null, 'confirmLoading'),
541
+ n.a.createElement(
542
+ 'td',
543
+ null,
544
+ '\u786e\u5b9a\u6309\u94ae loading',
545
+ ),
546
+ n.a.createElement('td', null, 'boolean'),
547
+ n.a.createElement('td', null, 'false'),
548
+ n.a.createElement('td', null),
549
+ ),
550
+ n.a.createElement(
551
+ 'tr',
552
+ null,
553
+ n.a.createElement('td', null, 'destroyOnClose'),
554
+ n.a.createElement(
555
+ 'td',
556
+ null,
557
+ '\u5173\u95ed\u65f6\u9500\u6bc1 Modal \u91cc\u7684\u5b50\u5143\u7d20',
558
+ ),
559
+ n.a.createElement('td', null, 'boolean'),
560
+ n.a.createElement('td', null, 'false'),
561
+ n.a.createElement('td', null),
562
+ ),
563
+ n.a.createElement(
564
+ 'tr',
565
+ null,
566
+ n.a.createElement('td', null, 'focusTriggerAfterClose'),
567
+ n.a.createElement(
568
+ 'td',
569
+ null,
570
+ '\u5bf9\u8bdd\u6846\u5173\u95ed\u540e\u662f\u5426\u9700\u8981\u805a\u7126\u89e6\u53d1\u5143\u7d20',
571
+ ),
572
+ n.a.createElement('td', null, 'boolean'),
573
+ n.a.createElement('td', null, 'true'),
574
+ n.a.createElement('td', null, '4.9.0'),
575
+ ),
576
+ n.a.createElement(
577
+ 'tr',
578
+ null,
579
+ n.a.createElement('td', null, 'footer'),
580
+ n.a.createElement(
581
+ 'td',
582
+ null,
583
+ '\u5e95\u90e8\u5185\u5bb9\uff0c\u5f53\u4e0d\u9700\u8981\u9ed8\u8ba4\u5e95\u90e8\u6309\u94ae\u65f6\uff0c\u53ef\u4ee5\u8bbe\u4e3a ',
584
+ n.a.createElement(
585
+ 'code',
586
+ null,
587
+ 'footer=',
588
+ '{',
589
+ 'null',
590
+ '}',
591
+ ),
592
+ ),
593
+ n.a.createElement('td', null, 'ReactNode'),
594
+ n.a.createElement(
595
+ 'td',
596
+ null,
597
+ '(\u786e\u5b9a\u53d6\u6d88\u6309\u94ae)',
598
+ ),
599
+ n.a.createElement('td', null),
600
+ ),
601
+ n.a.createElement(
602
+ 'tr',
603
+ null,
604
+ n.a.createElement('td', null, 'forceRender'),
605
+ n.a.createElement(
606
+ 'td',
607
+ null,
608
+ '\u5f3a\u5236\u6e32\u67d3 Modal',
609
+ ),
610
+ n.a.createElement('td', null, 'boolean'),
611
+ n.a.createElement('td', null, 'false'),
612
+ n.a.createElement('td', null),
613
+ ),
614
+ n.a.createElement(
615
+ 'tr',
616
+ null,
617
+ n.a.createElement('td', null, 'getContainer'),
618
+ n.a.createElement(
619
+ 'td',
620
+ null,
621
+ '\u6307\u5b9a Modal \u6302\u8f7d\u7684 HTML \u8282\u70b9, false \u4e3a\u6302\u8f7d\u5728\u5f53\u524d dom',
622
+ ),
623
+ n.a.createElement(
624
+ 'td',
625
+ null,
626
+ 'HTMLElement | () => HTMLElement | Selectors | false',
627
+ ),
628
+ n.a.createElement('td', null, 'document.body'),
629
+ n.a.createElement('td', null),
630
+ ),
631
+ n.a.createElement(
632
+ 'tr',
633
+ null,
634
+ n.a.createElement('td', null, 'keyboard'),
635
+ n.a.createElement(
636
+ 'td',
637
+ null,
638
+ '\u662f\u5426\u652f\u6301\u952e\u76d8 esc \u5173\u95ed',
639
+ ),
640
+ n.a.createElement('td', null, 'boolean'),
641
+ n.a.createElement('td', null, 'true'),
642
+ n.a.createElement('td', null),
643
+ ),
644
+ n.a.createElement(
645
+ 'tr',
646
+ null,
647
+ n.a.createElement('td', null, 'mask'),
648
+ n.a.createElement(
649
+ 'td',
650
+ null,
651
+ '\u662f\u5426\u5c55\u793a\u906e\u7f69',
652
+ ),
653
+ n.a.createElement('td', null, 'boolean'),
654
+ n.a.createElement('td', null, 'true'),
655
+ n.a.createElement('td', null),
656
+ ),
657
+ n.a.createElement(
658
+ 'tr',
659
+ null,
660
+ n.a.createElement('td', null, 'maskClosable'),
661
+ n.a.createElement(
662
+ 'td',
663
+ null,
664
+ '\u70b9\u51fb\u8499\u5c42\u662f\u5426\u5141\u8bb8\u5173\u95ed',
665
+ ),
666
+ n.a.createElement('td', null, 'boolean'),
667
+ n.a.createElement('td', null, 'true'),
668
+ n.a.createElement('td', null),
669
+ ),
670
+ n.a.createElement(
671
+ 'tr',
672
+ null,
673
+ n.a.createElement('td', null, 'maskStyle'),
674
+ n.a.createElement('td', null, '\u906e\u7f69\u6837\u5f0f'),
675
+ n.a.createElement('td', null, 'CSSProperties'),
676
+ n.a.createElement('td', null),
677
+ n.a.createElement('td', null),
678
+ ),
679
+ n.a.createElement(
680
+ 'tr',
681
+ null,
682
+ n.a.createElement('td', null, 'modalRender'),
683
+ n.a.createElement(
684
+ 'td',
685
+ null,
686
+ '\u81ea\u5b9a\u4e49\u6e32\u67d3\u5bf9\u8bdd\u6846',
687
+ ),
688
+ n.a.createElement(
689
+ 'td',
690
+ null,
691
+ '(node: ReactNode) => ReactNode',
692
+ ),
693
+ n.a.createElement('td', null, '-'),
694
+ n.a.createElement('td', null, '4.7.0'),
695
+ ),
696
+ n.a.createElement(
697
+ 'tr',
698
+ null,
699
+ n.a.createElement('td', null, 'okButtonProps'),
700
+ n.a.createElement('td', null, 'ok \u6309\u94ae props'),
701
+ n.a.createElement(
702
+ 'td',
703
+ null,
704
+ n.a.createElement(
705
+ r['AnchorLink'],
706
+ { to: '/components/button/#API' },
707
+ 'ButtonProps',
708
+ ),
709
+ ),
710
+ n.a.createElement('td', null, '-'),
711
+ n.a.createElement('td', null),
712
+ ),
713
+ n.a.createElement(
714
+ 'tr',
715
+ null,
716
+ n.a.createElement('td', null, 'okText'),
717
+ n.a.createElement(
718
+ 'td',
719
+ null,
720
+ '\u786e\u8ba4\u6309\u94ae\u6587\u5b57',
721
+ ),
722
+ n.a.createElement('td', null, 'ReactNode'),
723
+ n.a.createElement(
724
+ 'td',
725
+ null,
726
+ n.a.createElement('code', null, '\u786e\u5b9a'),
727
+ ),
728
+ n.a.createElement('td', null),
729
+ ),
730
+ n.a.createElement(
731
+ 'tr',
732
+ null,
733
+ n.a.createElement('td', null, 'okType'),
734
+ n.a.createElement(
735
+ 'td',
736
+ null,
737
+ '\u786e\u8ba4\u6309\u94ae\u7c7b\u578b',
738
+ ),
739
+ n.a.createElement('td', null, 'string'),
740
+ n.a.createElement(
741
+ 'td',
742
+ null,
743
+ n.a.createElement('code', null, 'primary'),
744
+ ),
745
+ n.a.createElement('td', null),
746
+ ),
747
+ n.a.createElement(
748
+ 'tr',
749
+ null,
750
+ n.a.createElement('td', null, 'style'),
751
+ n.a.createElement(
752
+ 'td',
753
+ null,
754
+ '\u53ef\u7528\u4e8e\u8bbe\u7f6e\u6d6e\u5c42\u7684\u6837\u5f0f\uff0c\u8c03\u6574\u6d6e\u5c42\u4f4d\u7f6e\u7b49',
755
+ ),
756
+ n.a.createElement('td', null, 'CSSProperties'),
757
+ n.a.createElement('td', null, '-'),
758
+ n.a.createElement('td', null),
759
+ ),
760
+ n.a.createElement(
761
+ 'tr',
762
+ null,
763
+ n.a.createElement('td', null, 'title'),
764
+ n.a.createElement('td', null, '\u6807\u9898'),
765
+ n.a.createElement('td', null, 'ReactNode'),
766
+ n.a.createElement('td', null, '-'),
767
+ n.a.createElement('td', null),
768
+ ),
769
+ n.a.createElement(
770
+ 'tr',
771
+ null,
772
+ n.a.createElement('td', null, 'visible'),
773
+ n.a.createElement(
774
+ 'td',
775
+ null,
776
+ '\u5bf9\u8bdd\u6846\u662f\u5426\u53ef\u89c1',
777
+ ),
778
+ n.a.createElement('td', null, 'boolean'),
779
+ n.a.createElement('td', null, '-'),
780
+ n.a.createElement('td', null),
781
+ ),
782
+ n.a.createElement(
783
+ 'tr',
784
+ null,
785
+ n.a.createElement('td', null, 'width'),
786
+ n.a.createElement('td', null, '\u5bbd\u5ea6'),
787
+ n.a.createElement('td', null, 'string | number'),
788
+ n.a.createElement('td', null, '520'),
789
+ n.a.createElement('td', null),
790
+ ),
791
+ n.a.createElement(
792
+ 'tr',
793
+ null,
794
+ n.a.createElement('td', null, 'wrapClassName'),
795
+ n.a.createElement(
796
+ 'td',
797
+ null,
798
+ '\u5bf9\u8bdd\u6846\u5916\u5c42\u5bb9\u5668\u7684\u7c7b\u540d',
799
+ ),
800
+ n.a.createElement('td', null, 'string'),
801
+ n.a.createElement('td', null, '-'),
802
+ n.a.createElement('td', null),
803
+ ),
804
+ n.a.createElement(
805
+ 'tr',
806
+ null,
807
+ n.a.createElement('td', null, 'zIndex'),
808
+ n.a.createElement(
809
+ 'td',
810
+ null,
811
+ '\u8bbe\u7f6e Modal \u7684 ',
812
+ n.a.createElement('code', null, 'z-index'),
813
+ ),
814
+ n.a.createElement('td', null, 'number'),
815
+ n.a.createElement('td', null, '1000'),
816
+ n.a.createElement('td', null),
817
+ ),
818
+ n.a.createElement(
819
+ 'tr',
820
+ null,
821
+ n.a.createElement('td', null, 'onCancel'),
822
+ n.a.createElement(
823
+ 'td',
824
+ null,
825
+ '\u70b9\u51fb\u906e\u7f69\u5c42\u6216\u53f3\u4e0a\u89d2\u53c9\u6216\u53d6\u6d88\u6309\u94ae\u7684\u56de\u8c03',
826
+ ),
827
+ n.a.createElement('td', null, 'function(e)'),
828
+ n.a.createElement('td', null, '-'),
829
+ n.a.createElement('td', null),
830
+ ),
831
+ n.a.createElement(
832
+ 'tr',
833
+ null,
834
+ n.a.createElement('td', null, 'onOk'),
835
+ n.a.createElement(
836
+ 'td',
837
+ null,
838
+ '\u70b9\u51fb\u786e\u5b9a\u56de\u8c03',
839
+ ),
840
+ n.a.createElement('td', null, 'function(e)'),
841
+ n.a.createElement('td', null, '-'),
842
+ n.a.createElement('td', null),
843
+ ),
844
+ ),
845
+ ),
846
+ n.a.createElement(
847
+ 'h4',
848
+ { id: '\u6ce8\u610f' },
849
+ n.a.createElement(
850
+ r['AnchorLink'],
851
+ { to: '#\u6ce8\u610f', 'aria-hidden': 'true', tabIndex: -1 },
852
+ n.a.createElement('span', { className: 'icon icon-link' }),
853
+ ),
854
+ '\u6ce8\u610f',
855
+ ),
856
+ n.a.createElement(
857
+ 'ul',
858
+ null,
859
+ n.a.createElement(
860
+ 'li',
861
+ null,
862
+ n.a.createElement('code', null, '<Modal />'),
863
+ ' \u9ed8\u8ba4\u5173\u95ed\u540e\u72b6\u6001\u4e0d\u4f1a\u81ea\u52a8\u6e05\u7a7a, \u5982\u679c\u5e0c\u671b\u6bcf\u6b21\u6253\u5f00\u90fd\u662f\u65b0\u5185\u5bb9\uff0c\u8bf7\u8bbe\u7f6e ',
864
+ n.a.createElement('code', null, 'destroyOnClose'),
865
+ '\u3002',
866
+ ),
867
+ n.a.createElement(
868
+ 'li',
869
+ null,
870
+ n.a.createElement('code', null, '<Modal />'),
871
+ ' \u548c Form \u4e00\u8d77\u914d\u5408\u4f7f\u7528\u65f6\uff0c\u8bbe\u7f6e ',
872
+ n.a.createElement('code', null, 'destroyOnClose'),
873
+ ' \u4e5f\u4e0d\u4f1a\u5728 Modal \u5173\u95ed\u65f6\u9500\u6bc1\u8868\u5355\u5b57\u6bb5\u6570\u636e\uff0c\u9700\u8981\u8bbe\u7f6e ',
874
+ n.a.createElement(
875
+ 'code',
876
+ null,
877
+ '<Form preserve=',
878
+ '{',
879
+ 'false',
880
+ '}',
881
+ ' />',
882
+ ),
883
+ '\u3002',
884
+ ),
885
+ n.a.createElement(
886
+ 'li',
887
+ null,
888
+ n.a.createElement('code', null, 'Modal.method()'),
889
+ ' RTL \u6a21\u5f0f\u4ec5\u652f\u6301 hooks \u7528\u6cd5\u3002',
890
+ ),
891
+ ),
892
+ n.a.createElement(
893
+ 'h3',
894
+ { id: 'modalmethod' },
895
+ n.a.createElement(
896
+ r['AnchorLink'],
897
+ { to: '#modalmethod', 'aria-hidden': 'true', tabIndex: -1 },
898
+ n.a.createElement('span', { className: 'icon icon-link' }),
899
+ ),
900
+ 'Modal.method()',
901
+ ),
902
+ n.a.createElement('p', null, '\u5305\u62ec\uff1a'),
903
+ n.a.createElement(
904
+ 'ul',
905
+ null,
906
+ n.a.createElement(
907
+ 'li',
908
+ null,
909
+ n.a.createElement('code', null, 'Modal.info'),
910
+ ),
911
+ n.a.createElement(
912
+ 'li',
913
+ null,
914
+ n.a.createElement('code', null, 'Modal.success'),
915
+ ),
916
+ n.a.createElement(
917
+ 'li',
918
+ null,
919
+ n.a.createElement('code', null, 'Modal.error'),
920
+ ),
921
+ n.a.createElement(
922
+ 'li',
923
+ null,
924
+ n.a.createElement('code', null, 'Modal.warning'),
925
+ ),
926
+ n.a.createElement(
927
+ 'li',
928
+ null,
929
+ n.a.createElement('code', null, 'Modal.confirm'),
930
+ ),
931
+ ),
932
+ n.a.createElement(
933
+ 'p',
934
+ null,
935
+ '\u4ee5\u4e0a\u5747\u4e3a\u4e00\u4e2a\u51fd\u6570\uff0c\u53c2\u6570\u4e3a object\uff0c\u5177\u4f53\u5c5e\u6027\u5982\u4e0b\uff1a',
936
+ ),
937
+ n.a.createElement(
938
+ 'table',
939
+ null,
940
+ n.a.createElement(
941
+ 'thead',
942
+ null,
943
+ n.a.createElement(
944
+ 'tr',
945
+ null,
946
+ n.a.createElement('th', null, '\u53c2\u6570'),
947
+ n.a.createElement('th', null, '\u8bf4\u660e'),
948
+ n.a.createElement('th', null, '\u7c7b\u578b'),
949
+ n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
950
+ n.a.createElement('th', null, '\u7248\u672c'),
951
+ ),
952
+ ),
953
+ n.a.createElement(
954
+ 'tbody',
955
+ null,
956
+ n.a.createElement(
957
+ 'tr',
958
+ null,
959
+ n.a.createElement('td', null, 'afterClose'),
960
+ n.a.createElement(
961
+ 'td',
962
+ null,
963
+ 'Modal \u5b8c\u5168\u5173\u95ed\u540e\u7684\u56de\u8c03',
964
+ ),
965
+ n.a.createElement('td', null, 'function'),
966
+ n.a.createElement('td', null, '-'),
967
+ n.a.createElement('td', null, '4.9.0'),
968
+ ),
969
+ n.a.createElement(
970
+ 'tr',
971
+ null,
972
+ n.a.createElement('td', null, 'autoFocusButton'),
973
+ n.a.createElement(
974
+ 'td',
975
+ null,
976
+ '\u6307\u5b9a\u81ea\u52a8\u83b7\u5f97\u7126\u70b9\u7684\u6309\u94ae',
977
+ ),
978
+ n.a.createElement(
979
+ 'td',
980
+ null,
981
+ 'null | ',
982
+ n.a.createElement('code', null, 'ok'),
983
+ ' | ',
984
+ n.a.createElement('code', null, 'cancel'),
985
+ ),
986
+ n.a.createElement(
987
+ 'td',
988
+ null,
989
+ n.a.createElement('code', null, 'ok'),
990
+ ),
991
+ n.a.createElement('td', null),
992
+ ),
993
+ n.a.createElement(
994
+ 'tr',
995
+ null,
996
+ n.a.createElement('td', null, 'bodyStyle'),
997
+ n.a.createElement('td', null, 'Modal body \u6837\u5f0f'),
998
+ n.a.createElement('td', null, 'CSSProperties'),
999
+ n.a.createElement('td', null),
1000
+ n.a.createElement('td', null, '4.8.0'),
1001
+ ),
1002
+ n.a.createElement(
1003
+ 'tr',
1004
+ null,
1005
+ n.a.createElement('td', null, 'cancelButtonProps'),
1006
+ n.a.createElement('td', null, 'cancel \u6309\u94ae props'),
1007
+ n.a.createElement(
1008
+ 'td',
1009
+ null,
1010
+ n.a.createElement(
1011
+ r['AnchorLink'],
1012
+ { to: '/components/button/#API' },
1013
+ 'ButtonProps',
1014
+ ),
1015
+ ),
1016
+ n.a.createElement('td', null, '-'),
1017
+ n.a.createElement('td', null),
1018
+ ),
1019
+ n.a.createElement(
1020
+ 'tr',
1021
+ null,
1022
+ n.a.createElement('td', null, 'cancelText'),
1023
+ n.a.createElement(
1024
+ 'td',
1025
+ null,
1026
+ '\u8bbe\u7f6e Modal.confirm \u53d6\u6d88\u6309\u94ae\u6587\u5b57',
1027
+ ),
1028
+ n.a.createElement('td', null, 'string'),
1029
+ n.a.createElement(
1030
+ 'td',
1031
+ null,
1032
+ n.a.createElement('code', null, '\u53d6\u6d88'),
1033
+ ),
1034
+ n.a.createElement('td', null),
1035
+ ),
1036
+ n.a.createElement(
1037
+ 'tr',
1038
+ null,
1039
+ n.a.createElement('td', null, 'centered'),
1040
+ n.a.createElement(
1041
+ 'td',
1042
+ null,
1043
+ '\u5782\u76f4\u5c45\u4e2d\u5c55\u793a Modal',
1044
+ ),
1045
+ n.a.createElement('td', null, 'boolean'),
1046
+ n.a.createElement('td', null, 'false'),
1047
+ n.a.createElement('td', null),
1048
+ ),
1049
+ n.a.createElement(
1050
+ 'tr',
1051
+ null,
1052
+ n.a.createElement('td', null, 'className'),
1053
+ n.a.createElement('td', null, '\u5bb9\u5668\u7c7b\u540d'),
1054
+ n.a.createElement('td', null, 'string'),
1055
+ n.a.createElement('td', null, '-'),
1056
+ n.a.createElement('td', null),
1057
+ ),
1058
+ n.a.createElement(
1059
+ 'tr',
1060
+ null,
1061
+ n.a.createElement('td', null, 'closable'),
1062
+ n.a.createElement(
1063
+ 'td',
1064
+ null,
1065
+ '\u662f\u5426\u663e\u793a\u53f3\u4e0a\u89d2\u7684\u5173\u95ed\u6309\u94ae',
1066
+ ),
1067
+ n.a.createElement('td', null, 'boolean'),
1068
+ n.a.createElement('td', null, 'false'),
1069
+ n.a.createElement('td', null, '4.9.0'),
1070
+ ),
1071
+ n.a.createElement(
1072
+ 'tr',
1073
+ null,
1074
+ n.a.createElement('td', null, 'closeIcon'),
1075
+ n.a.createElement(
1076
+ 'td',
1077
+ null,
1078
+ '\u81ea\u5b9a\u4e49\u5173\u95ed\u56fe\u6807',
1079
+ ),
1080
+ n.a.createElement('td', null, 'ReactNode'),
1081
+ n.a.createElement('td', null, 'undefined'),
1082
+ n.a.createElement('td', null, '4.9.0'),
1083
+ ),
1084
+ n.a.createElement(
1085
+ 'tr',
1086
+ null,
1087
+ n.a.createElement('td', null, 'content'),
1088
+ n.a.createElement('td', null, '\u5185\u5bb9'),
1089
+ n.a.createElement('td', null, 'ReactNode'),
1090
+ n.a.createElement('td', null, '-'),
1091
+ n.a.createElement('td', null),
1092
+ ),
1093
+ n.a.createElement(
1094
+ 'tr',
1095
+ null,
1096
+ n.a.createElement('td', null, 'getContainer'),
1097
+ n.a.createElement(
1098
+ 'td',
1099
+ null,
1100
+ '\u6307\u5b9a Modal \u6302\u8f7d\u7684 HTML \u8282\u70b9, false \u4e3a\u6302\u8f7d\u5728\u5f53\u524d dom',
1101
+ ),
1102
+ n.a.createElement(
1103
+ 'td',
1104
+ null,
1105
+ 'HTMLElement | () => HTMLElement | Selectors | false',
1106
+ ),
1107
+ n.a.createElement('td', null, 'document.body'),
1108
+ n.a.createElement('td', null),
1109
+ ),
1110
+ n.a.createElement(
1111
+ 'tr',
1112
+ null,
1113
+ n.a.createElement('td', null, 'icon'),
1114
+ n.a.createElement(
1115
+ 'td',
1116
+ null,
1117
+ '\u81ea\u5b9a\u4e49\u56fe\u6807',
1118
+ ),
1119
+ n.a.createElement('td', null, 'ReactNode'),
1120
+ n.a.createElement('td', null, '<QuestionCircle />'),
1121
+ n.a.createElement('td', null, '3.12.0'),
1122
+ ),
1123
+ n.a.createElement(
1124
+ 'tr',
1125
+ null,
1126
+ n.a.createElement('td', null, 'keyboard'),
1127
+ n.a.createElement(
1128
+ 'td',
1129
+ null,
1130
+ '\u662f\u5426\u652f\u6301\u952e\u76d8 esc \u5173\u95ed',
1131
+ ),
1132
+ n.a.createElement('td', null, 'boolean'),
1133
+ n.a.createElement('td', null, 'true'),
1134
+ n.a.createElement('td', null),
1135
+ ),
1136
+ n.a.createElement(
1137
+ 'tr',
1138
+ null,
1139
+ n.a.createElement('td', null, 'mask'),
1140
+ n.a.createElement(
1141
+ 'td',
1142
+ null,
1143
+ '\u662f\u5426\u5c55\u793a\u906e\u7f69',
1144
+ ),
1145
+ n.a.createElement('td', null, 'boolean'),
1146
+ n.a.createElement('td', null, 'true'),
1147
+ n.a.createElement('td', null),
1148
+ ),
1149
+ n.a.createElement(
1150
+ 'tr',
1151
+ null,
1152
+ n.a.createElement('td', null, 'maskClosable'),
1153
+ n.a.createElement(
1154
+ 'td',
1155
+ null,
1156
+ '\u70b9\u51fb\u8499\u5c42\u662f\u5426\u5141\u8bb8\u5173\u95ed',
1157
+ ),
1158
+ n.a.createElement('td', null, 'boolean'),
1159
+ n.a.createElement('td', null, 'false'),
1160
+ n.a.createElement('td', null),
1161
+ ),
1162
+ n.a.createElement(
1163
+ 'tr',
1164
+ null,
1165
+ n.a.createElement('td', null, 'maskStyle'),
1166
+ n.a.createElement('td', null, '\u906e\u7f69\u6837\u5f0f'),
1167
+ n.a.createElement('td', null, 'object'),
1168
+ n.a.createElement('td', null, '{', '}'),
1169
+ n.a.createElement('td', null),
1170
+ ),
1171
+ n.a.createElement(
1172
+ 'tr',
1173
+ null,
1174
+ n.a.createElement('td', null, 'okButtonProps'),
1175
+ n.a.createElement('td', null, 'ok \u6309\u94ae props'),
1176
+ n.a.createElement(
1177
+ 'td',
1178
+ null,
1179
+ n.a.createElement(
1180
+ r['AnchorLink'],
1181
+ { to: '/components/button/#API' },
1182
+ 'ButtonProps',
1183
+ ),
1184
+ ),
1185
+ n.a.createElement('td', null, '-'),
1186
+ n.a.createElement('td', null),
1187
+ ),
1188
+ n.a.createElement(
1189
+ 'tr',
1190
+ null,
1191
+ n.a.createElement('td', null, 'okText'),
1192
+ n.a.createElement(
1193
+ 'td',
1194
+ null,
1195
+ '\u786e\u8ba4\u6309\u94ae\u6587\u5b57',
1196
+ ),
1197
+ n.a.createElement('td', null, 'string'),
1198
+ n.a.createElement(
1199
+ 'td',
1200
+ null,
1201
+ n.a.createElement('code', null, '\u786e\u5b9a'),
1202
+ ),
1203
+ n.a.createElement('td', null),
1204
+ ),
1205
+ n.a.createElement(
1206
+ 'tr',
1207
+ null,
1208
+ n.a.createElement('td', null, 'okType'),
1209
+ n.a.createElement(
1210
+ 'td',
1211
+ null,
1212
+ '\u786e\u8ba4\u6309\u94ae\u7c7b\u578b',
1213
+ ),
1214
+ n.a.createElement('td', null, 'string'),
1215
+ n.a.createElement(
1216
+ 'td',
1217
+ null,
1218
+ n.a.createElement('code', null, 'primary'),
1219
+ ),
1220
+ n.a.createElement('td', null),
1221
+ ),
1222
+ n.a.createElement(
1223
+ 'tr',
1224
+ null,
1225
+ n.a.createElement('td', null, 'style'),
1226
+ n.a.createElement(
1227
+ 'td',
1228
+ null,
1229
+ '\u53ef\u7528\u4e8e\u8bbe\u7f6e\u6d6e\u5c42\u7684\u6837\u5f0f\uff0c\u8c03\u6574\u6d6e\u5c42\u4f4d\u7f6e\u7b49',
1230
+ ),
1231
+ n.a.createElement('td', null, 'CSSProperties'),
1232
+ n.a.createElement('td', null, '-'),
1233
+ n.a.createElement('td', null),
1234
+ ),
1235
+ n.a.createElement(
1236
+ 'tr',
1237
+ null,
1238
+ n.a.createElement('td', null, 'title'),
1239
+ n.a.createElement('td', null, '\u6807\u9898'),
1240
+ n.a.createElement('td', null, 'ReactNode'),
1241
+ n.a.createElement('td', null, '-'),
1242
+ n.a.createElement('td', null),
1243
+ ),
1244
+ n.a.createElement(
1245
+ 'tr',
1246
+ null,
1247
+ n.a.createElement('td', null, 'width'),
1248
+ n.a.createElement('td', null, '\u5bbd\u5ea6'),
1249
+ n.a.createElement('td', null, 'string | number'),
1250
+ n.a.createElement('td', null, '416'),
1251
+ n.a.createElement('td', null),
1252
+ ),
1253
+ n.a.createElement(
1254
+ 'tr',
1255
+ null,
1256
+ n.a.createElement('td', null, 'zIndex'),
1257
+ n.a.createElement(
1258
+ 'td',
1259
+ null,
1260
+ '\u8bbe\u7f6e Modal \u7684 ',
1261
+ n.a.createElement('code', null, 'z-index'),
1262
+ ),
1263
+ n.a.createElement('td', null, 'number'),
1264
+ n.a.createElement('td', null, '1000'),
1265
+ n.a.createElement('td', null),
1266
+ ),
1267
+ n.a.createElement(
1268
+ 'tr',
1269
+ null,
1270
+ n.a.createElement('td', null, 'onCancel'),
1271
+ n.a.createElement(
1272
+ 'td',
1273
+ null,
1274
+ '\u53d6\u6d88\u56de\u8c03\uff0c\u53c2\u6570\u4e3a\u5173\u95ed\u51fd\u6570\uff0c\u8fd4\u56de promise \u65f6 resolve \u540e\u81ea\u52a8\u5173\u95ed',
1275
+ ),
1276
+ n.a.createElement('td', null, 'function(close)'),
1277
+ n.a.createElement('td', null, '-'),
1278
+ n.a.createElement('td', null),
1279
+ ),
1280
+ n.a.createElement(
1281
+ 'tr',
1282
+ null,
1283
+ n.a.createElement('td', null, 'onOk'),
1284
+ n.a.createElement(
1285
+ 'td',
1286
+ null,
1287
+ '\u70b9\u51fb\u786e\u5b9a\u56de\u8c03\uff0c\u53c2\u6570\u4e3a\u5173\u95ed\u51fd\u6570\uff0c\u8fd4\u56de promise \u65f6 resolve \u540e\u81ea\u52a8\u5173\u95ed',
1288
+ ),
1289
+ n.a.createElement('td', null, 'function(close)'),
1290
+ n.a.createElement('td', null, '-'),
1291
+ n.a.createElement('td', null),
1292
+ ),
1293
+ ),
1294
+ ),
1295
+ n.a.createElement(
1296
+ 'p',
1297
+ null,
1298
+ '\u4ee5\u4e0a\u51fd\u6570\u8c03\u7528\u540e\uff0c\u4f1a\u8fd4\u56de\u4e00\u4e2a\u5f15\u7528\uff0c\u53ef\u4ee5\u901a\u8fc7\u8be5\u5f15\u7528\u66f4\u65b0\u548c\u5173\u95ed\u5f39\u7a97\u3002',
1299
+ ),
1300
+ n.a.createElement(m['a'], {
1301
+ code: "const modal = Modal.info();\n\nmodal.update({\n title: '\u4fee\u6539\u7684\u6807\u9898',\n content: '\u4fee\u6539\u7684\u5185\u5bb9',\n});\n\n// \u5728 4.8.0 \u6216\u66f4\u9ad8\u7248\u672c\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f20\u5165\u51fd\u6570\u7684\u65b9\u5f0f\u66f4\u65b0\u5f39\u7a97\nmodal.update(prevConfig => ({\n ...prevConfig,\n title: `${prevConfig.title}\uff08\u65b0\uff09`,\n}));\n\nmodal.destroy();",
1302
+ lang: 'bash',
1303
+ }),
1304
+ n.a.createElement(
1305
+ 'ul',
1306
+ null,
1307
+ n.a.createElement(
1308
+ 'li',
1309
+ null,
1310
+ n.a.createElement('code', null, 'Modal.destroyAll'),
1311
+ ),
1312
+ ),
1313
+ n.a.createElement(
1314
+ 'p',
1315
+ null,
1316
+ '\u4f7f\u7528 ',
1317
+ n.a.createElement('code', null, 'Modal.destroyAll()'),
1318
+ ' \u53ef\u4ee5\u9500\u6bc1\u5f39\u51fa\u7684\u786e\u8ba4\u7a97\uff08\u5373\u4e0a\u8ff0\u7684 ',
1319
+ n.a.createElement('code', null, 'Modal.info'),
1320
+ '\u3001',
1321
+ n.a.createElement('code', null, 'Modal.success'),
1322
+ '\u3001',
1323
+ n.a.createElement('code', null, 'Modal.error'),
1324
+ '\u3001',
1325
+ n.a.createElement('code', null, 'Modal.warning'),
1326
+ '\u3001',
1327
+ n.a.createElement('code', null, 'Modal.confirm'),
1328
+ '\uff09\u3002\u901a\u5e38\u7528\u4e8e\u8def\u7531\u76d1\u542c\u5f53\u4e2d\uff0c\u5904\u7406\u8def\u7531\u524d\u8fdb\u3001\u540e\u9000\u4e0d\u80fd\u9500\u6bc1\u786e\u8ba4\u5bf9\u8bdd\u6846\u7684\u95ee\u9898\uff0c\u800c\u4e0d\u7528\u5404\u5904\u53bb\u4f7f\u7528\u5b9e\u4f8b\u7684\u8fd4\u56de\u503c\u8fdb\u884c\u5173\u95ed\uff08',
1329
+ n.a.createElement('code', null, 'modal.destroy()'),
1330
+ ' \u9002\u7528\u4e8e\u4e3b\u52a8\u5173\u95ed\uff0c\u800c\u4e0d\u662f\u8def\u7531\u8fd9\u6837\u88ab\u52a8\u5173\u95ed\uff09',
1331
+ ),
1332
+ n.a.createElement(m['a'], {
1333
+ code: "import { browserHistory } from 'react-router';\n\n// router change\nbrowserHistory.listen(() => {\n Modal.destroyAll();\n});",
1334
+ lang: 'bash',
1335
+ }),
1336
+ n.a.createElement(
1337
+ 'h3',
1338
+ { id: 'modalusemodal' },
1339
+ n.a.createElement(
1340
+ r['AnchorLink'],
1341
+ { to: '#modalusemodal', 'aria-hidden': 'true', tabIndex: -1 },
1342
+ n.a.createElement('span', { className: 'icon icon-link' }),
1343
+ ),
1344
+ 'Modal.useModal()',
1345
+ ),
1346
+ n.a.createElement(
1347
+ 'p',
1348
+ null,
1349
+ '\u5f53\u4f60\u9700\u8981\u4f7f\u7528 Context \u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7 ',
1350
+ n.a.createElement('code', null, 'Modal.useModal'),
1351
+ ' \u521b\u5efa\u4e00\u4e2a ',
1352
+ n.a.createElement('code', null, 'contextHolder'),
1353
+ ' \u63d2\u5165\u5b50\u8282\u70b9\u4e2d\u3002\u901a\u8fc7 hooks \u521b\u5efa\u7684\u4e34\u65f6 Modal \u5c06\u4f1a\u5f97\u5230 ',
1354
+ n.a.createElement('code', null, 'contextHolder'),
1355
+ ' \u6240\u5728\u4f4d\u7f6e\u7684\u6240\u6709\u4e0a\u4e0b\u6587\u3002\u521b\u5efa\u7684 ',
1356
+ n.a.createElement('code', null, 'modal'),
1357
+ ' \u5bf9\u8c61\u62e5\u6709\u4e0e ',
1358
+ n.a.createElement(
1359
+ r['AnchorLink'],
1360
+ { to: '#Modal.method()' },
1361
+ n.a.createElement('code', null, 'Modal.method'),
1362
+ ),
1363
+ ' \u76f8\u540c\u7684\u521b\u5efa\u901a\u77e5\u65b9\u6cd5\u3002',
1364
+ ),
1365
+ n.a.createElement(m['a'], {
1366
+ code: 'const [modal, contextHolder] = Modal.useModal();\n\nReact.useEffect(() => {\n modal.confirm({\n // ...\n });\n}, []);\n\nreturn <div>{contextHolder}</div>;',
1367
+ lang: 'bash',
1368
+ }),
1369
+ n.a.createElement(
1370
+ 'h2',
1371
+ { id: 'faq' },
1372
+ n.a.createElement(
1373
+ r['AnchorLink'],
1374
+ { to: '#faq', 'aria-hidden': 'true', tabIndex: -1 },
1375
+ n.a.createElement('span', { className: 'icon icon-link' }),
1376
+ ),
1377
+ 'FAQ',
1378
+ ),
1379
+ n.a.createElement(
1380
+ 'h3',
1381
+ {
1382
+ id: '\u4e3a\u4ec0\u4e48-modal-\u65b9\u6cd5\u4e0d\u80fd\u83b7\u53d6-contextredux\u7684\u5185\u5bb9\u548c-configprovider-localeprefixcls-\u914d\u7f6e',
1383
+ },
1384
+ n.a.createElement(
1385
+ r['AnchorLink'],
1386
+ {
1387
+ to: '#\u4e3a\u4ec0\u4e48-modal-\u65b9\u6cd5\u4e0d\u80fd\u83b7\u53d6-contextredux\u7684\u5185\u5bb9\u548c-configprovider-localeprefixcls-\u914d\u7f6e',
1388
+ 'aria-hidden': 'true',
1389
+ tabIndex: -1,
1390
+ },
1391
+ n.a.createElement('span', { className: 'icon icon-link' }),
1392
+ ),
1393
+ '\u4e3a\u4ec0\u4e48 Modal \u65b9\u6cd5\u4e0d\u80fd\u83b7\u53d6 context\u3001redux\u3001\u7684\u5185\u5bb9\u548c ConfigProvider ',
1394
+ n.a.createElement('code', null, 'locale/prefixCls'),
1395
+ ' \u914d\u7f6e\uff1f',
1396
+ ),
1397
+ n.a.createElement(
1398
+ 'p',
1399
+ null,
1400
+ '\u76f4\u63a5\u8c03\u7528 Modal \u65b9\u6cd5\uff0cantd \u4f1a\u901a\u8fc7 ',
1401
+ n.a.createElement('code', null, 'ReactDOM.render'),
1402
+ ' \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',
1403
+ ),
1404
+ n.a.createElement(
1405
+ 'p',
1406
+ null,
1407
+ '\u5f53\u4f60\u9700\u8981 context \u4fe1\u606f\uff08\u4f8b\u5982 ConfigProvider \u914d\u7f6e\u7684\u5185\u5bb9\uff09\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7 ',
1408
+ n.a.createElement('code', null, 'Modal.useModal'),
1409
+ ' \u65b9\u6cd5\u4f1a\u8fd4\u56de ',
1410
+ n.a.createElement('code', null, 'modal'),
1411
+ ' \u5b9e\u4f53\u4ee5\u53ca ',
1412
+ n.a.createElement('code', null, 'contextHolder'),
1413
+ ' \u8282\u70b9\u3002\u5c06\u5176\u63d2\u5165\u5230\u4f60\u9700\u8981\u83b7\u53d6 context \u4f4d\u7f6e\u5373\u53ef\uff1a',
1414
+ ),
1415
+ n.a.createElement(m['a'], {
1416
+ code: 'const [modal, contextHolder] = Modal.useModal();\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);',
1417
+ lang: 'bash',
1418
+ }),
1419
+ n.a.createElement(
1420
+ 'p',
1421
+ null,
1422
+ '**\u5f02\u540c\uff1a**\u901a\u8fc7 hooks \u521b\u5efa\u7684 ',
1423
+ n.a.createElement('code', null, 'contextHolder'),
1424
+ ' \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',
1425
+ ),
1426
+ n.a.createElement(
1427
+ 'h3',
1428
+ { id: '\u5982\u4f55\u5173\u95ed-modal-\u52a8\u753b' },
1429
+ n.a.createElement(
1430
+ r['AnchorLink'],
1431
+ {
1432
+ to: '#\u5982\u4f55\u5173\u95ed-modal-\u52a8\u753b',
1433
+ 'aria-hidden': 'true',
1434
+ tabIndex: -1,
1435
+ },
1436
+ n.a.createElement('span', { className: 'icon icon-link' }),
1437
+ ),
1438
+ '\u5982\u4f55\u5173\u95ed Modal \u52a8\u753b\uff1f',
1439
+ ),
1440
+ n.a.createElement(
1441
+ 'p',
1442
+ null,
1443
+ '\u4f60\u53ef\u4ee5\u901a\u8fc7 ',
1444
+ n.a.createElement('code', null, 'transitionName=""'),
1445
+ ' \u548c ',
1446
+ n.a.createElement('code', null, 'maskTransitionName=""'),
1447
+ ' \u53bb\u9664\u52a8\u753b CSS\uff0c\u4f46\u662f\u9700\u8981\u6ce8\u610f\u7684\u662f\u3002\u8be5\u65b9\u6cd5\u4e3a\u5185\u90e8\u65b9\u6cd5\uff0c\u6211\u4eec\u4e0d\u4fdd\u8bc1\u4e0b\u4e2a\u5927\u7248\u672c\u91cd\u6784\u65f6\u8be5\u5c5e\u6027\u4f1a\u88ab\u4fdd\u7559\u3002',
1448
+ ),
1449
+ n.a.createElement(
1450
+ 'h3',
1451
+ {
1452
+ id: '\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e-prefixcls-',
1453
+ },
1454
+ n.a.createElement(
1455
+ r['AnchorLink'],
1456
+ {
1457
+ to: '#\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e-prefixcls-',
1458
+ 'aria-hidden': 'true',
1459
+ tabIndex: -1,
1460
+ },
1461
+ n.a.createElement('span', { className: 'icon icon-link' }),
1462
+ ),
1463
+ '\u9759\u6001\u65b9\u6cd5\u5982\u4f55\u8bbe\u7f6e prefixCls \uff1f',
1464
+ ),
1465
+ n.a.createElement(
1466
+ 'p',
1467
+ null,
1468
+ '\u4f60\u53ef\u4ee5\u901a\u8fc7 ',
1469
+ n.a.createElement(
1470
+ r['AnchorLink'],
1471
+ {
1472
+ to: '/components/config-provider/#ConfigProvider.config()-4.13.0+',
1473
+ },
1474
+ n.a.createElement('code', null, 'ConfigProvider.config'),
1475
+ ),
1476
+ ' \u8fdb\u884c\u8bbe\u7f6e\u3002',
1477
+ ),
1478
+ ),
1479
+ ),
1480
+ )
1481
+ );
1482
+ },
1483
+ RZMt: function (e, t, l) {},
1484
+ Zxc8: function (e, t, l) {
1485
+ 'use strict';
1486
+ l.r(t);
1487
+ var a = l('q1tI'),
1488
+ n = l.n(a),
1489
+ r = l('k3GJ'),
1490
+ c = l('MZF8'),
1491
+ m = l('dEAq'),
1492
+ o = l('H1Ra');
1493
+ l('RZMt');
1494
+ function d(e, t) {
1495
+ return f(e) || s(e, t) || E(e, t) || u();
1496
+ }
1497
+ function u() {
1498
+ throw new TypeError(
1499
+ 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
1500
+ );
1501
+ }
1502
+ function E(e, t) {
1503
+ if (e) {
1504
+ if ('string' === typeof e) return i(e, t);
1505
+ var l = Object.prototype.toString.call(e).slice(8, -1);
1506
+ return (
1507
+ 'Object' === l && e.constructor && (l = e.constructor.name),
1508
+ 'Map' === l || 'Set' === l
1509
+ ? Array.from(e)
1510
+ : 'Arguments' === l ||
1511
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)
1512
+ ? i(e, t)
1513
+ : void 0
1514
+ );
1515
+ }
1516
+ }
1517
+ function i(e, t) {
1518
+ (null == t || t > e.length) && (t = e.length);
1519
+ for (var l = 0, a = new Array(t); l < t; l++) a[l] = e[l];
1520
+ return a;
1521
+ }
1522
+ function s(e, t) {
1523
+ var l =
1524
+ null == e
1525
+ ? null
1526
+ : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
1527
+ e['@@iterator'];
1528
+ if (null != l) {
1529
+ var a,
1530
+ n,
1531
+ r = [],
1532
+ c = !0,
1533
+ m = !1;
1534
+ try {
1535
+ for (l = l.call(e); !(c = (a = l.next()).done); c = !0)
1536
+ if ((r.push(a.value), t && r.length === t)) break;
1537
+ } catch (o) {
1538
+ (m = !0), (n = o);
1539
+ } finally {
1540
+ try {
1541
+ c || null == l['return'] || l['return']();
1542
+ } finally {
1543
+ if (m) throw n;
1544
+ }
1545
+ }
1546
+ return r;
1547
+ }
1548
+ }
1549
+ function f(e) {
1550
+ if (Array.isArray(e)) return e;
1551
+ }
1552
+ function p(e, t) {
1553
+ var l,
1554
+ a =
1555
+ null === (l = e.match(/\.(\w+)$/)) || void 0 === l ? void 0 : l[1];
1556
+ return a || (a = t.tsx ? 'tsx' : 'jsx'), a;
1557
+ }
1558
+ var h = function (e) {
1559
+ var t,
1560
+ l,
1561
+ u,
1562
+ E = Object(a['useRef'])(),
1563
+ i = Object(a['useContext'])(m['context']),
1564
+ s = i.locale,
1565
+ f = Object(m['useLocaleProps'])(s, e),
1566
+ h = Object(m['useDemoUrl'])(f.identifier),
1567
+ b = f.demoUrl || h,
1568
+ k =
1569
+ (null === c['a'] || void 0 === c['a']
1570
+ ? void 0
1571
+ : c['a'].location.hash) === '#'.concat(f.identifier),
1572
+ v = 1 === Object.keys(f.sources).length,
1573
+ x = Object(m['useCodeSandbox'])(
1574
+ (
1575
+ null === (t = f.hideActions) || void 0 === t
1576
+ ? void 0
1577
+ : t.includes('CSB')
1578
+ )
1579
+ ? null
1580
+ : f,
1581
+ ),
1582
+ N = Object(m['useRiddle'])(
1583
+ (
1584
+ null === (l = f.hideActions) || void 0 === l
1585
+ ? void 0
1586
+ : l.includes('RIDDLE')
1587
+ )
1588
+ ? null
1589
+ : f,
1590
+ ),
1591
+ y = Object(m['useMotions'])(f.motions || [], E.current),
1592
+ M = d(y, 2),
1593
+ g = M[0],
1594
+ w = M[1],
1595
+ C = Object(m['useCopy'])(),
1596
+ A = d(C, 2),
1597
+ L = A[0],
1598
+ P = A[1],
1599
+ _ = Object(a['useState'])('_'),
1600
+ I = d(_, 2),
1601
+ S = I[0],
1602
+ O = I[1],
1603
+ R = Object(a['useState'])(p(S, f.sources[S])),
1604
+ j = d(R, 2),
1605
+ T = j[0],
1606
+ H = j[1],
1607
+ B = Object(a['useState'])(Boolean(f.defaultShowCode)),
1608
+ F = d(B, 2),
1609
+ q = F[0],
1610
+ U = F[1],
1611
+ Z = Object(a['useState'])(Math.random()),
1612
+ D = d(Z, 2),
1613
+ J = D[0],
1614
+ $ = D[1],
1615
+ z = f.sources[S][T] || f.sources[S].content,
1616
+ G = Object(m['useTSPlaygroundUrl'])(s, z),
1617
+ Q = Object(a['useRef'])(),
1618
+ X = Object(m['usePrefersColor'])(),
1619
+ K = d(X, 1),
1620
+ V = K[0];
1621
+ function W(e) {
1622
+ O(e), H(p(e, f.sources[e]));
1623
+ }
1624
+ return (
1625
+ Object(a['useEffect'])(
1626
+ function () {
1627
+ $(Math.random());
1628
+ },
1629
+ [V],
1630
+ ),
1631
+ n.a.createElement(
1632
+ 'div',
1633
+ {
1634
+ style: f.style,
1635
+ className: [
1636
+ f.className,
1637
+ '__dumi-default-previewer',
1638
+ k ? '__dumi-default-previewer-target' : '',
1639
+ ]
1640
+ .filter(Boolean)
1641
+ .join(' '),
1642
+ id: f.identifier,
1643
+ 'data-debug': f.debug || void 0,
1644
+ 'data-iframe': f.iframe || void 0,
1645
+ },
1646
+ f.iframe &&
1647
+ n.a.createElement('div', {
1648
+ className: '__dumi-default-previewer-browser-nav',
1649
+ }),
1650
+ n.a.createElement(
1651
+ 'div',
1652
+ {
1653
+ ref: E,
1654
+ className: '__dumi-default-previewer-demo',
1655
+ style: {
1656
+ transform: f.transform ? 'translate(0, 0)' : void 0,
1657
+ padding:
1658
+ f.compact || (f.iframe && !1 !== f.compact) ? '0' : void 0,
1659
+ background: f.background,
1660
+ },
1661
+ },
1662
+ f.iframe
1663
+ ? n.a.createElement('iframe', {
1664
+ title: 'dumi-previewer',
1665
+ style: {
1666
+ height: String(f.iframe).replace(/(\d)$/, '$1px'),
1667
+ },
1668
+ key: J,
1669
+ src: b,
1670
+ ref: Q,
1671
+ })
1672
+ : f.children,
1673
+ ),
1674
+ n.a.createElement(
1675
+ 'div',
1676
+ {
1677
+ className: '__dumi-default-previewer-desc',
1678
+ 'data-title': f.title,
1679
+ },
1680
+ f.title &&
1681
+ n.a.createElement(
1682
+ m['AnchorLink'],
1683
+ { to: '#'.concat(f.identifier) },
1684
+ f.title,
1685
+ ),
1686
+ f.description &&
1687
+ n.a.createElement('div', {
1688
+ dangerouslySetInnerHTML: { __html: f.description },
1689
+ }),
1690
+ ),
1691
+ n.a.createElement(
1692
+ 'div',
1693
+ { className: '__dumi-default-previewer-actions' },
1694
+ x &&
1695
+ n.a.createElement('button', {
1696
+ title: 'Open demo on CodeSandbox.io',
1697
+ className: '__dumi-default-icon',
1698
+ role: 'codesandbox',
1699
+ onClick: x,
1700
+ }),
1701
+ N &&
1702
+ n.a.createElement('button', {
1703
+ title: 'Open demo on Riddle',
1704
+ className: '__dumi-default-icon',
1705
+ role: 'riddle',
1706
+ onClick: N,
1707
+ }),
1708
+ f.motions &&
1709
+ n.a.createElement('button', {
1710
+ title: 'Execute motions',
1711
+ className: '__dumi-default-icon',
1712
+ role: 'motions',
1713
+ disabled: w,
1714
+ onClick: function () {
1715
+ return g();
1716
+ },
1717
+ }),
1718
+ f.iframe &&
1719
+ n.a.createElement('button', {
1720
+ title: 'Reload demo iframe page',
1721
+ className: '__dumi-default-icon',
1722
+ role: 'refresh',
1723
+ onClick: function () {
1724
+ return $(Math.random());
1725
+ },
1726
+ }),
1727
+ !(null === (u = f.hideActions) || void 0 === u
1728
+ ? void 0
1729
+ : u.includes('EXTERNAL')) &&
1730
+ n.a.createElement(
1731
+ m['Link'],
1732
+ { target: '_blank', to: b },
1733
+ n.a.createElement('button', {
1734
+ title: 'Open demo in new tab',
1735
+ className: '__dumi-default-icon',
1736
+ role: 'open-demo',
1737
+ type: 'button',
1738
+ }),
1739
+ ),
1740
+ n.a.createElement('span', null),
1741
+ n.a.createElement('button', {
1742
+ title: 'Copy source code',
1743
+ className: '__dumi-default-icon',
1744
+ role: 'copy',
1745
+ 'data-status': P,
1746
+ onClick: function () {
1747
+ return L(z);
1748
+ },
1749
+ }),
1750
+ 'tsx' === T &&
1751
+ q &&
1752
+ n.a.createElement(
1753
+ m['Link'],
1754
+ { target: '_blank', to: G },
1755
+ n.a.createElement('button', {
1756
+ title: 'Get JSX via TypeScript Playground',
1757
+ className: '__dumi-default-icon',
1758
+ role: 'change-tsx',
1759
+ type: 'button',
1760
+ }),
1761
+ ),
1762
+ n.a.createElement('button', {
1763
+ title: 'Toggle source code panel',
1764
+ className: '__dumi-default-icon'.concat(
1765
+ q ? ' __dumi-default-btn-expand' : '',
1766
+ ),
1767
+ role: 'source',
1768
+ type: 'button',
1769
+ onClick: function () {
1770
+ return U(!q);
1771
+ },
1772
+ }),
1773
+ ),
1774
+ q &&
1775
+ n.a.createElement(
1776
+ 'div',
1777
+ { className: '__dumi-default-previewer-source-wrapper' },
1778
+ !v &&
1779
+ n.a.createElement(
1780
+ r['b'],
1781
+ {
1782
+ className: '__dumi-default-previewer-source-tab',
1783
+ prefixCls: '__dumi-default-tabs',
1784
+ moreIcon: '\xb7\xb7\xb7',
1785
+ defaultActiveKey: S,
1786
+ onChange: W,
1787
+ },
1788
+ Object.keys(f.sources).map(function (e) {
1789
+ return n.a.createElement(r['a'], {
1790
+ tab:
1791
+ '_' === e ? 'index.'.concat(p(e, f.sources[e])) : e,
1792
+ key: e,
1793
+ });
1794
+ }),
1795
+ ),
1796
+ n.a.createElement(
1797
+ 'div',
1798
+ { className: '__dumi-default-previewer-source' },
1799
+ n.a.createElement(o['a'], { code: z, lang: T, showCopy: !1 }),
1800
+ ),
1801
+ ),
1802
+ )
1803
+ );
1804
+ };
1805
+ t['default'] = h;
1806
+ },
1807
+ },
1808
+ ]);