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