@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.
- package/.history/package_20211011190148.json +141 -0
- package/.history/package_20211011193053.json +141 -0
- package/dist/@fle-ui/next.css +2 -2
- package/dist/@fle-ui/next.css.map +1 -1
- package/dist/@fle-ui/next.js +1 -1
- package/dist/@fle-ui/next.min.css +2 -2
- package/dist/@fle-ui/next.min.css.map +1 -1
- package/dist/@fle-ui/next.min.js +1 -1
- package/docs-dist/components__affix__affix.md.js +701 -1
- package/docs-dist/components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~00d1741d.js +22482 -1
- package/docs-dist/components__alert__alert.md.js +942 -1
- package/docs-dist/components__anchor__anchor.md.js +789 -1
- package/docs-dist/components__auto-complete__autoComplete.md.js +1145 -1
- package/docs-dist/components__avatar__avatar.md.js +854 -1
- package/docs-dist/components__back-top__backTop.md.js +581 -1
- package/docs-dist/components__badge__badge.md.js +972 -1
- package/docs-dist/components__breadcrumb__breadcrumb.md.js +914 -1
- package/docs-dist/components__button__button.md.js +1037 -1
- package/docs-dist/components__calendar__calendar.md.js +897 -1
- package/docs-dist/components__card__card.md.js +1106 -1
- package/docs-dist/components__carousel__carousel.md.js +770 -1
- package/docs-dist/components__cascader__cascader.md.js +1378 -1
- package/docs-dist/components__checkbox__checkbox.md.js +876 -1
- package/docs-dist/components__collapse__collapse.md.js +959 -1
- package/docs-dist/components__comment__comment.md.js +586 -1
- package/docs-dist/components__config-provider__configProvider.md.js +1055 -1
- package/docs-dist/components__date-picker__date-picker.md.js +2622 -1
- package/docs-dist/components__descriptions__descriptions.md.js +863 -1
- package/docs-dist/components__divider__divider.md.js +681 -1
- package/docs-dist/components__drawer__drawer.md.js +997 -1
- package/docs-dist/components__dropdown__dropdown.md.js +1170 -1
- package/docs-dist/components__empty__empty.md.js +692 -1
- package/docs-dist/components__form__form.md.js +4099 -1
- package/docs-dist/components__grid__grid.md.js +999 -1
- package/docs-dist/components__icon__icon.md.js +739 -1
- package/docs-dist/components__image__image.md.js +745 -1
- package/docs-dist/components__input-number__inputNumber.md.js +1006 -1
- package/docs-dist/components__input__input.md.js +1579 -1
- package/docs-dist/components__layout__layout.md.js +1220 -1
- package/docs-dist/components__list__list.md.js +1255 -1
- package/docs-dist/components__mentions__mentions.md.js +943 -1
- package/docs-dist/components__menu__menu.md.js +1370 -1
- package/docs-dist/components__message__message.md.js +1223 -1
- package/docs-dist/components__modal__modal.md.js +1808 -1
- package/docs-dist/components__notification__notification.md.js +1192 -1
- package/docs-dist/components__page-header__page-header.md.js +781 -1
- package/docs-dist/components__pagination__pagination.md.js +954 -1
- package/docs-dist/components__popconfirm__popconfirm.md.js +792 -1
- package/docs-dist/components__popover__popover.md.js +665 -1
- package/docs-dist/components__progress__progress.md.js +1139 -1
- package/docs-dist/components__radio__radio.md.js +999 -1
- package/docs-dist/components__rate__rate.md.js +851 -1
- package/docs-dist/components__result__result.md.js +681 -1
- package/docs-dist/components__select__select.md.js +2081 -1
- package/docs-dist/components__slider__slider.md.js +1053 -1
- package/docs-dist/components__space__space.md.js +746 -1
- package/docs-dist/components__spin__spin.md.js +730 -1
- package/docs-dist/components__statistic__statistic.md.js +827 -1
- package/docs-dist/components__steps__steps.md.js +1097 -1
- package/docs-dist/components__switch__switch.md.js +763 -1
- package/docs-dist/components__table__table.md.js +3692 -1
- package/docs-dist/components__tabs__tabs.md.js +1213 -1
- package/docs-dist/components__tag__tag.md.js +779 -1
- package/docs-dist/components__time-picker__time-picker.md.js +1232 -1
- package/docs-dist/components__timeline__timeline.md.js +799 -1
- package/docs-dist/components__tooltip__tooltip.md.js +888 -1
- package/docs-dist/components__transfer__transfer.md.js +1226 -1
- package/docs-dist/components__tree-select__tree-select.md.js +1042 -1
- package/docs-dist/components__typography__typography.md.js +1793 -1
- package/docs-dist/components__upload__upload.md.js +1798 -1
- package/docs-dist/demos_bmurcdaerb.js +603 -1
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.chunk.css +1 -1
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.js +21570 -1
- package/docs-dist/demos_citsitats.js +549 -1
- package/docs-dist/demos_daolpu.chunk.css +1 -1
- package/docs-dist/demos_daolpu.js +22680 -1
- package/docs-dist/demos_dirg.js +47 -1
- package/docs-dist/demos_drac.js +748 -1
- package/docs-dist/demos_ecaps.js +529 -1
- package/docs-dist/demos_egami.js +153 -1
- package/docs-dist/demos_egassem.js +187 -1
- package/docs-dist/demos_egdab.js +872 -1
- package/docs-dist/demos_elbat.chunk.css +1 -1
- package/docs-dist/demos_elbat.js +27626 -1
- package/docs-dist/demos_enilemit.js +627 -1
- package/docs-dist/demos_espalloc.js +705 -1
- package/docs-dist/demos_etar.js +547 -1
- package/docs-dist/demos_etelpmoc-otua.js +613 -1
- package/docs-dist/demos_gat.js +487 -1
- package/docs-dist/demos_hctiws.js +439 -1
- package/docs-dist/demos_ladom.js +791 -1
- package/docs-dist/demos_lesuorac.js +193 -1
- package/docs-dist/demos_mrifnocpop.js +671 -1
- package/docs-dist/demos_mrof.js +3082 -1
- package/docs-dist/demos_nips.js +461 -1
- package/docs-dist/demos_noitacifiton.js +765 -1
- package/docs-dist/demos_noitanigap.js +233 -1
- package/docs-dist/demos_nottub.js +847 -1
- package/docs-dist/demos_nwodpord.js +965 -1
- package/docs-dist/demos_oidar.js +340 -1
- package/docs-dist/demos_pitloot.js +204 -1
- package/docs-dist/demos_pot-kcab.js +62 -1
- package/docs-dist/demos_radnelac.js +285 -1
- package/docs-dist/demos_ratava.js +647 -1
- package/docs-dist/demos_rebmun-tupni.js +209 -1
- package/docs-dist/demos_redacsac.js +576 -1
- package/docs-dist/demos_redaeh-egap.js +761 -1
- package/docs-dist/demos_redils.js +659 -1
- package/docs-dist/demos_redivid.js +167 -1
- package/docs-dist/demos_redivorp-gifnoc.js +2154 -1
- package/docs-dist/demos_refsnart.js +774 -1
- package/docs-dist/demos_rekcip-emit.js +183 -1
- package/docs-dist/demos_rekcip-etad.js +469 -1
- package/docs-dist/demos_revopop.js +335 -1
- package/docs-dist/demos_reward.js +484 -1
- package/docs-dist/demos_rohcna.js +194 -1
- package/docs-dist/demos_sbat.chunk.css +1 -1
- package/docs-dist/demos_sbat.js +22358 -1
- package/docs-dist/demos_snoitnem.js +202 -1
- package/docs-dist/demos_snoitpircsed.js +351 -1
- package/docs-dist/demos_spets.js +910 -1
- package/docs-dist/demos_ssergorp.js +698 -1
- package/docs-dist/demos_tceles.js +1416 -1
- package/docs-dist/demos_tluser.js +530 -1
- package/docs-dist/demos_tnemmoc.js +560 -1
- package/docs-dist/demos_trela.js +341 -1
- package/docs-dist/demos_tsil.js +603 -1
- package/docs-dist/demos_tuoyal.js +872 -1
- package/docs-dist/demos_tupni.js +1245 -1
- package/docs-dist/demos_unem.js +1012 -1
- package/docs-dist/demos_xiffa.js +93 -1
- package/docs-dist/demos_xobkcehc.js +186 -1
- package/docs-dist/demos_yhpargopyt.js +798 -1
- package/docs-dist/demos_ytpme.js +433 -1
- package/docs-dist/docs__document__getting-started.md.js +193 -1
- package/docs-dist/docs__document__introduce.md.js +441 -1
- package/docs-dist/docs__document__practical-projects.md.js +117 -1
- package/docs-dist/docs__index.md.js +27 -1
- package/docs-dist/docs__story__index.md.js +89 -1
- package/docs-dist/dumi_demos.js +456 -1
- package/docs-dist/umi.js +28727 -1
- package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~3ba4f4a1.js +2590 -1
- package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~ac3aca9a.js +8970 -1
- package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~e29e5a37.js +2619 -1
- package/docs-dist/vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_egami~~4cc402e9.js +57323 -1
- package/docs-dist/vendors~demos_daolpu~demos_elbat.js +1649 -1
- package/docs-dist/vendors~demos_daolpu~demos_elbat~demos_sbat.js +4169 -1
- package/docs-dist/vendors~demos_gat.js +4673 -1
- package/docs-dist/vendors~demos_ladom.js +1855 -1
- package/docs-dist/vendors~demos_redivorp-gifnoc.js +9666 -1
- package/docs-dist/vendors~demos_sbat.js +1601 -1
- package/docs-dist/vendors~demos_trela.js +1722 -1
- package/docs-dist/vendors~demos_tsil.js +4970 -1
- package/docs-dist/vendors~demos_tuoyal.js +748 -1
- package/docs-dist/vendors~wrappers.js +1360 -1
- package/docs-dist/wrappers.js +21 -1
- package/es/drawer/style/drawer.less +8 -4
- package/es/drawer/style/index.css +1 -1
- package/es/style/themes/default.less +57 -29
- package/lib/drawer/style/drawer.less +8 -4
- package/lib/drawer/style/index.css +1 -1
- package/lib/style/themes/default.less +57 -29
- package/package.json +1 -1
- package/report.html +1 -1
@@ -1 +1,701 @@
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[8],{MZF8:function(e,t,a){"use strict";var n=a("ogwx");a.d(t,"a",(function(){return n["b"]}));a("VCU9")},"R+jr":function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),l=a.n(n),r=a("dEAq"),c=a("Zxc8"),i=a("H1Ra"),o=a("JjdP"),u=l.a.memo(o["default"]["affix-basic"].component),d=l.a.memo(o["default"]["affix-on-change"].component),m=l.a.memo(o["default"]["affix-target"].component);t["default"]=e=>(l.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&r["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),l.a.createElement(l.a.Fragment,null,l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"markdown"},l.a.createElement("h1",{id:"affix-\u56fa\u9489"},l.a.createElement(r["AnchorLink"],{to:"#affix-\u56fa\u9489","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"Affix \u56fa\u9489"),l.a.createElement("p",null,"\u5c06\u9875\u9762\u5143\u7d20\u9489\u5728\u53ef\u89c6\u8303\u56f4\u3002"),l.a.createElement("h2",{id:"\u4f55\u65f6\u4f7f\u7528"},l.a.createElement(r["AnchorLink"],{to:"#\u4f55\u65f6\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u4f55\u65f6\u4f7f\u7528"),l.a.createElement("p",null,"\u5f53\u5185\u5bb9\u533a\u57df\u6bd4\u8f83\u957f\uff0c\u9700\u8981\u6eda\u52a8\u9875\u9762\u65f6\uff0c\u8fd9\u90e8\u5206\u5185\u5bb9\u5bf9\u5e94\u7684\u64cd\u4f5c\u6216\u8005\u5bfc\u822a\u9700\u8981\u5728\u6eda\u52a8\u8303\u56f4\u5185\u59cb\u7ec8\u5c55\u73b0\u3002\u5e38\u7528\u4e8e\u4fa7\u8fb9\u83dc\u5355\u548c\u6309\u94ae\u7ec4\u5408\u3002"),l.a.createElement("p",null,"\u9875\u9762\u53ef\u89c6\u8303\u56f4\u8fc7\u5c0f\u65f6\uff0c\u614e\u7528\u6b64\u529f\u80fd\u4ee5\u514d\u906e\u6321\u9875\u9762\u5185\u5bb9\u3002"),l.a.createElement("h2",{id:"\u4ee3\u7801\u6f14\u793a"},l.a.createElement(r["AnchorLink"],{to:"#\u4ee3\u7801\u6f14\u793a","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u4ee3\u7801\u6f14\u793a"),l.a.createElement("h3",{id:"\u57fa\u672c"},l.a.createElement(r["AnchorLink"],{to:"#\u57fa\u672c","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u57fa\u672c")),l.a.createElement(c["default"],o["default"]["affix-basic"].previewerProps,l.a.createElement(u,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u56fa\u5b9a\u72b6\u6001\u6539\u53d8\u7684\u56de\u8c03"},l.a.createElement(r["AnchorLink"],{to:"#\u56fa\u5b9a\u72b6\u6001\u6539\u53d8\u7684\u56de\u8c03","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u56fa\u5b9a\u72b6\u6001\u6539\u53d8\u7684\u56de\u8c03")),l.a.createElement(c["default"],o["default"]["affix-on-change"].previewerProps,l.a.createElement(d,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u6eda\u52a8\u5bb9\u5668"},l.a.createElement(r["AnchorLink"],{to:"#\u6eda\u52a8\u5bb9\u5668","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u6eda\u52a8\u5bb9\u5668")),l.a.createElement(c["default"],o["default"]["affix-target"].previewerProps,l.a.createElement(m,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h2",{id:"api"},l.a.createElement(r["AnchorLink"],{to:"#api","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"API"),l.a.createElement("table",null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,"\u6210\u5458"),l.a.createElement("th",null,"\u8bf4\u660e"),l.a.createElement("th",null,"\u7c7b\u578b"),l.a.createElement("th",null,"\u9ed8\u8ba4\u503c"))),l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,"offsetBottom"),l.a.createElement("td",null,"\u8ddd\u79bb\u7a97\u53e3\u5e95\u90e8\u8fbe\u5230\u6307\u5b9a\u504f\u79fb\u91cf\u540e\u89e6\u53d1"),l.a.createElement("td",null,"number"),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"offsetTop"),l.a.createElement("td",null,"\u8ddd\u79bb\u7a97\u53e3\u9876\u90e8\u8fbe\u5230\u6307\u5b9a\u504f\u79fb\u91cf\u540e\u89e6\u53d1"),l.a.createElement("td",null,"number"),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"target"),l.a.createElement("td",null,"\u8bbe\u7f6e ",l.a.createElement("code",null,"Affix")," \u9700\u8981\u76d1\u542c\u5176\u6eda\u52a8\u4e8b\u4ef6\u7684\u5143\u7d20\uff0c\u503c\u4e3a\u4e00\u4e2a\u8fd4\u56de\u5bf9\u5e94 DOM \u5143\u7d20\u7684\u51fd\u6570"),l.a.createElement("td",null,"() => HTMLElement"),l.a.createElement("td",null,"() => window")),l.a.createElement("tr",null,l.a.createElement("td",null,"onChange"),l.a.createElement("td",null,"\u56fa\u5b9a\u72b6\u6001\u6539\u53d8\u65f6\u89e6\u53d1\u7684\u56de\u8c03\u51fd\u6570"),l.a.createElement("td",null,"function(affixed)"),l.a.createElement("td",null,"-")))),l.a.createElement("p",null,l.a.createElement("strong",null,"\u6ce8\u610f\uff1a"),l.a.createElement("code",null,"Affix")," \u5185\u7684\u5143\u7d20\u4e0d\u8981\u4f7f\u7528\u7edd\u5bf9\u5b9a\u4f4d\uff0c\u5982\u9700\u8981\u7edd\u5bf9\u5b9a\u4f4d\u7684\u6548\u679c\uff0c\u53ef\u4ee5\u76f4\u63a5\u8bbe\u7f6e ",l.a.createElement("code",null,"Affix")," \u4e3a\u7edd\u5bf9\u5b9a\u4f4d\uff1a"),l.a.createElement(i["a"],{code:"<Affix style={{ position: 'absolute', top: y, left: x }}>...</Affix>",lang:"bash"}),l.a.createElement("h2",{id:"faq"},l.a.createElement(r["AnchorLink"],{to:"#faq","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"FAQ"),l.a.createElement("h3",{id:"affix-\u4f7f\u7528-target-\u7ed1\u5b9a\u5bb9\u5668\u65f6\u5143\u7d20\u4f1a\u8dd1\u5230\u5bb9\u5668\u5916"},l.a.createElement(r["AnchorLink"],{to:"#affix-\u4f7f\u7528-target-\u7ed1\u5b9a\u5bb9\u5668\u65f6\u5143\u7d20\u4f1a\u8dd1\u5230\u5bb9\u5668\u5916","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"Affix \u4f7f\u7528 ",l.a.createElement("code",null,"target")," \u7ed1\u5b9a\u5bb9\u5668\u65f6\uff0c\u5143\u7d20\u4f1a\u8dd1\u5230\u5bb9\u5668\u5916\u3002"),l.a.createElement("p",null,"\u4ece\u6027\u80fd\u89d2\u5ea6\u8003\u8651\uff0c\u6211\u4eec\u53ea\u76d1\u542c\u5bb9\u5668\u6eda\u52a8\u4e8b\u4ef6\u3002\u5982\u679c\u5e0c\u671b\u4efb\u610f\u6eda\u52a8\uff0c\u4f60\u53ef\u4ee5\u5728\u7a97\u4f53\u6dfb\u52a0\u6eda\u52a8\u76d1\u542c\uff1a",l.a.createElement(r["Link"],{to:"https://codesandbox.io/s/2xyj5zr85p"},"https://codesandbox.io/s/2xyj5zr85p")),l.a.createElement("p",null,"\u76f8\u5173 issue\uff1a",l.a.createElement(r["Link"],{to:"https://github.com/ant-design/ant-design/issues/3938"},"#3938")," ",l.a.createElement(r["Link"],{to:"https://github.com/ant-design/ant-design/issues/5642"},"#5642")," ",l.a.createElement(r["Link"],{to:"https://github.com/ant-design/ant-design/issues/16120"},"#16120")),l.a.createElement("h3",{id:"affix-\u5728\u6c34\u5e73\u6eda\u52a8\u5bb9\u5668\u4e2d\u4f7f\u7528\u65f6-\u5143\u7d20-left-\u4f4d\u7f6e\u4e0d\u6b63\u786e"},l.a.createElement(r["AnchorLink"],{to:"#affix-\u5728\u6c34\u5e73\u6eda\u52a8\u5bb9\u5668\u4e2d\u4f7f\u7528\u65f6-\u5143\u7d20-left-\u4f4d\u7f6e\u4e0d\u6b63\u786e","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"Affix \u5728\u6c34\u5e73\u6eda\u52a8\u5bb9\u5668\u4e2d\u4f7f\u7528\u65f6\uff0c \u5143\u7d20 ",l.a.createElement("code",null,"left")," \u4f4d\u7f6e\u4e0d\u6b63\u786e\u3002"),l.a.createElement("p",null,"Affix \u4e00\u822c\u53ea\u9002\u7528\u4e8e\u5355\u5411\u6eda\u52a8\u7684\u533a\u57df\uff0c\u53ea\u652f\u6301\u5728\u5782\u76f4\u6eda\u52a8\u5bb9\u5668\u4e2d\u4f7f\u7528\u3002\u5982\u679c\u5e0c\u671b\u5728\u6c34\u5e73\u5bb9\u5668\u4e2d\u4f7f\u7528\uff0c\u4f60\u53ef\u4ee5\u8003\u8651\u4f7f\u7528 \u539f\u751f ",l.a.createElement("code",null,"position: sticky")," \u5b9e\u73b0\u3002"),l.a.createElement("p",null,"\u76f8\u5173 issue: ",l.a.createElement(r["Link"],{to:"https://github.com/ant-design/ant-design/issues/29108"},"#29108")),l.a.createElement("style",{dangerouslySetInnerHTML:{__html:"\n#affix-target .scrollable-container {\n height: 100px;\n overflow-y: scroll;\n}\n#affix-target .background {\n padding-top: 60px;\n height: 300px;\n background-image: url('https://zos.alipayobjects.com/rmsportal/RmjwQiJorKyobvI.jpg');\n}\n"}})))))},RZMt:function(e,t,a){},Zxc8:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),l=a.n(n),r=a("k3GJ"),c=a("MZF8"),i=a("dEAq"),o=a("H1Ra");a("RZMt");function u(e,t){return E(e)||f(e,t)||m(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 m(e,t){if(e){if("string"===typeof e)return s(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function f(e,t){var a=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,l,r=[],c=!0,i=!1;try{for(a=a.call(e);!(c=(n=a.next()).done);c=!0)if(r.push(n.value),t&&r.length===t)break}catch(o){i=!0,l=o}finally{try{c||null==a["return"]||a["return"]()}finally{if(i)throw l}}return r}}function E(e){if(Array.isArray(e))return e}function p(e,t){var a,n=null===(a=e.match(/\.(\w+)$/))||void 0===a?void 0:a[1];return n||(n=t.tsx?"tsx":"jsx"),n}var h=function(e){var t,a,d,m=Object(n["useRef"])(),s=Object(n["useContext"])(i["context"]),f=s.locale,E=Object(i["useLocaleProps"])(f,e),h=Object(i["useDemoUrl"])(E.identifier),b=E.demoUrl||h,g=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(E.identifier),v=1===Object.keys(E.sources).length,x=Object(i["useCodeSandbox"])((null===(t=E.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:E),k=Object(i["useRiddle"])((null===(a=E.hideActions)||void 0===a?void 0:a.includes("RIDDLE"))?null:E),y=Object(i["useMotions"])(E.motions||[],m.current),_=u(y,2),w=_[0],A=_[1],N=Object(i["useCopy"])(),j=u(N,2),L=j[0],O=j[1],I=Object(n["useState"])("_"),C=u(I,2),S=C[0],R=C[1],M=Object(n["useState"])(p(S,E.sources[S])),T=u(M,2),P=T[0],q=T[1],J=Object(n["useState"])(Boolean(E.defaultShowCode)),U=u(J,2),Z=U[0],F=U[1],H=Object(n["useState"])(Math.random()),B=u(H,2),D=B[0],$=B[1],z=E.sources[S][P]||E.sources[S].content,G=Object(i["useTSPlaygroundUrl"])(f,z),K=Object(n["useRef"])(),Q=Object(i["usePrefersColor"])(),X=u(Q,1),V=X[0];function W(e){R(e),q(p(e,E.sources[e]))}return Object(n["useEffect"])((function(){$(Math.random())}),[V]),l.a.createElement("div",{style:E.style,className:[E.className,"__dumi-default-previewer",g?"__dumi-default-previewer-target":""].filter(Boolean).join(" "),id:E.identifier,"data-debug":E.debug||void 0,"data-iframe":E.iframe||void 0},E.iframe&&l.a.createElement("div",{className:"__dumi-default-previewer-browser-nav"}),l.a.createElement("div",{ref:m,className:"__dumi-default-previewer-demo",style:{transform:E.transform?"translate(0, 0)":void 0,padding:E.compact||E.iframe&&!1!==E.compact?"0":void 0,background:E.background}},E.iframe?l.a.createElement("iframe",{title:"dumi-previewer",style:{height:String(E.iframe).replace(/(\d)$/,"$1px")},key:D,src:b,ref:K}):E.children),l.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":E.title},E.title&&l.a.createElement(i["AnchorLink"],{to:"#".concat(E.identifier)},E.title),E.description&&l.a.createElement("div",{dangerouslySetInnerHTML:{__html:E.description}})),l.a.createElement("div",{className:"__dumi-default-previewer-actions"},x&&l.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:x}),k&&l.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:k}),E.motions&&l.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:A,onClick:function(){return w()}}),E.iframe&&l.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return $(Math.random())}}),!(null===(d=E.hideActions)||void 0===d?void 0:d.includes("EXTERNAL"))&&l.a.createElement(i["Link"],{target:"_blank",to:b},l.a.createElement("button",{title:"Open demo in new tab",className:"__dumi-default-icon",role:"open-demo",type:"button"})),l.a.createElement("span",null),l.a.createElement("button",{title:"Copy source code",className:"__dumi-default-icon",role:"copy","data-status":O,onClick:function(){return L(z)}}),"tsx"===P&&Z&&l.a.createElement(i["Link"],{target:"_blank",to:G},l.a.createElement("button",{title:"Get JSX via TypeScript Playground",className:"__dumi-default-icon",role:"change-tsx",type:"button"})),l.a.createElement("button",{title:"Toggle source code panel",className:"__dumi-default-icon".concat(Z?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:function(){return F(!Z)}})),Z&&l.a.createElement("div",{className:"__dumi-default-previewer-source-wrapper"},!v&&l.a.createElement(r["b"],{className:"__dumi-default-previewer-source-tab",prefixCls:"__dumi-default-tabs",moreIcon:"\xb7\xb7\xb7",defaultActiveKey:S,onChange:W},Object.keys(E.sources).map((function(e){return l.a.createElement(r["a"],{tab:"_"===e?"index.".concat(p(e,E.sources[e])):e,key:e})}))),l.a.createElement("div",{className:"__dumi-default-previewer-source"},l.a.createElement(o["a"],{code:z,lang:P,showCopy:!1}))))};t["default"]=h}}]);
|
1
|
+
(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
|
2
|
+
[8],
|
3
|
+
{
|
4
|
+
MZF8: function (e, t, a) {
|
5
|
+
'use strict';
|
6
|
+
var n = a('ogwx');
|
7
|
+
a.d(t, 'a', function () {
|
8
|
+
return n['b'];
|
9
|
+
});
|
10
|
+
a('VCU9');
|
11
|
+
},
|
12
|
+
'R+jr': function (e, t, a) {
|
13
|
+
'use strict';
|
14
|
+
a.r(t);
|
15
|
+
var n = a('q1tI'),
|
16
|
+
l = a.n(n),
|
17
|
+
r = a('dEAq'),
|
18
|
+
c = a('Zxc8'),
|
19
|
+
i = a('H1Ra'),
|
20
|
+
o = a('JjdP'),
|
21
|
+
u = l.a.memo(o['default']['affix-basic'].component),
|
22
|
+
d = l.a.memo(o['default']['affix-on-change'].component),
|
23
|
+
m = l.a.memo(o['default']['affix-target'].component);
|
24
|
+
t['default'] = (e) => (
|
25
|
+
l.a.useEffect(() => {
|
26
|
+
var t;
|
27
|
+
null !== e &&
|
28
|
+
void 0 !== e &&
|
29
|
+
null !== (t = e.location) &&
|
30
|
+
void 0 !== t &&
|
31
|
+
t.hash &&
|
32
|
+
r['AnchorLink'].scrollToAnchor(
|
33
|
+
decodeURIComponent(e.location.hash.slice(1)),
|
34
|
+
);
|
35
|
+
}, []),
|
36
|
+
l.a.createElement(
|
37
|
+
l.a.Fragment,
|
38
|
+
null,
|
39
|
+
l.a.createElement(
|
40
|
+
l.a.Fragment,
|
41
|
+
null,
|
42
|
+
l.a.createElement(
|
43
|
+
'div',
|
44
|
+
{ className: 'markdown' },
|
45
|
+
l.a.createElement(
|
46
|
+
'h1',
|
47
|
+
{ id: 'affix-\u56fa\u9489' },
|
48
|
+
l.a.createElement(
|
49
|
+
r['AnchorLink'],
|
50
|
+
{
|
51
|
+
to: '#affix-\u56fa\u9489',
|
52
|
+
'aria-hidden': 'true',
|
53
|
+
tabIndex: -1,
|
54
|
+
},
|
55
|
+
l.a.createElement('span', { className: 'icon icon-link' }),
|
56
|
+
),
|
57
|
+
'Affix \u56fa\u9489',
|
58
|
+
),
|
59
|
+
l.a.createElement(
|
60
|
+
'p',
|
61
|
+
null,
|
62
|
+
'\u5c06\u9875\u9762\u5143\u7d20\u9489\u5728\u53ef\u89c6\u8303\u56f4\u3002',
|
63
|
+
),
|
64
|
+
l.a.createElement(
|
65
|
+
'h2',
|
66
|
+
{ id: '\u4f55\u65f6\u4f7f\u7528' },
|
67
|
+
l.a.createElement(
|
68
|
+
r['AnchorLink'],
|
69
|
+
{
|
70
|
+
to: '#\u4f55\u65f6\u4f7f\u7528',
|
71
|
+
'aria-hidden': 'true',
|
72
|
+
tabIndex: -1,
|
73
|
+
},
|
74
|
+
l.a.createElement('span', { className: 'icon icon-link' }),
|
75
|
+
),
|
76
|
+
'\u4f55\u65f6\u4f7f\u7528',
|
77
|
+
),
|
78
|
+
l.a.createElement(
|
79
|
+
'p',
|
80
|
+
null,
|
81
|
+
'\u5f53\u5185\u5bb9\u533a\u57df\u6bd4\u8f83\u957f\uff0c\u9700\u8981\u6eda\u52a8\u9875\u9762\u65f6\uff0c\u8fd9\u90e8\u5206\u5185\u5bb9\u5bf9\u5e94\u7684\u64cd\u4f5c\u6216\u8005\u5bfc\u822a\u9700\u8981\u5728\u6eda\u52a8\u8303\u56f4\u5185\u59cb\u7ec8\u5c55\u73b0\u3002\u5e38\u7528\u4e8e\u4fa7\u8fb9\u83dc\u5355\u548c\u6309\u94ae\u7ec4\u5408\u3002',
|
82
|
+
),
|
83
|
+
l.a.createElement(
|
84
|
+
'p',
|
85
|
+
null,
|
86
|
+
'\u9875\u9762\u53ef\u89c6\u8303\u56f4\u8fc7\u5c0f\u65f6\uff0c\u614e\u7528\u6b64\u529f\u80fd\u4ee5\u514d\u906e\u6321\u9875\u9762\u5185\u5bb9\u3002',
|
87
|
+
),
|
88
|
+
l.a.createElement(
|
89
|
+
'h2',
|
90
|
+
{ id: '\u4ee3\u7801\u6f14\u793a' },
|
91
|
+
l.a.createElement(
|
92
|
+
r['AnchorLink'],
|
93
|
+
{
|
94
|
+
to: '#\u4ee3\u7801\u6f14\u793a',
|
95
|
+
'aria-hidden': 'true',
|
96
|
+
tabIndex: -1,
|
97
|
+
},
|
98
|
+
l.a.createElement('span', { className: 'icon icon-link' }),
|
99
|
+
),
|
100
|
+
'\u4ee3\u7801\u6f14\u793a',
|
101
|
+
),
|
102
|
+
l.a.createElement(
|
103
|
+
'h3',
|
104
|
+
{ id: '\u57fa\u672c' },
|
105
|
+
l.a.createElement(
|
106
|
+
r['AnchorLink'],
|
107
|
+
{ to: '#\u57fa\u672c', 'aria-hidden': 'true', tabIndex: -1 },
|
108
|
+
l.a.createElement('span', { className: 'icon icon-link' }),
|
109
|
+
),
|
110
|
+
'\u57fa\u672c',
|
111
|
+
),
|
112
|
+
),
|
113
|
+
l.a.createElement(
|
114
|
+
c['default'],
|
115
|
+
o['default']['affix-basic'].previewerProps,
|
116
|
+
l.a.createElement(u, null),
|
117
|
+
),
|
118
|
+
l.a.createElement(
|
119
|
+
'div',
|
120
|
+
{ className: 'markdown' },
|
121
|
+
l.a.createElement(
|
122
|
+
'h3',
|
123
|
+
{
|
124
|
+
id: '\u56fa\u5b9a\u72b6\u6001\u6539\u53d8\u7684\u56de\u8c03',
|
125
|
+
},
|
126
|
+
l.a.createElement(
|
127
|
+
r['AnchorLink'],
|
128
|
+
{
|
129
|
+
to: '#\u56fa\u5b9a\u72b6\u6001\u6539\u53d8\u7684\u56de\u8c03',
|
130
|
+
'aria-hidden': 'true',
|
131
|
+
tabIndex: -1,
|
132
|
+
},
|
133
|
+
l.a.createElement('span', { className: 'icon icon-link' }),
|
134
|
+
),
|
135
|
+
'\u56fa\u5b9a\u72b6\u6001\u6539\u53d8\u7684\u56de\u8c03',
|
136
|
+
),
|
137
|
+
),
|
138
|
+
l.a.createElement(
|
139
|
+
c['default'],
|
140
|
+
o['default']['affix-on-change'].previewerProps,
|
141
|
+
l.a.createElement(d, null),
|
142
|
+
),
|
143
|
+
l.a.createElement(
|
144
|
+
'div',
|
145
|
+
{ className: 'markdown' },
|
146
|
+
l.a.createElement(
|
147
|
+
'h3',
|
148
|
+
{ id: '\u6eda\u52a8\u5bb9\u5668' },
|
149
|
+
l.a.createElement(
|
150
|
+
r['AnchorLink'],
|
151
|
+
{
|
152
|
+
to: '#\u6eda\u52a8\u5bb9\u5668',
|
153
|
+
'aria-hidden': 'true',
|
154
|
+
tabIndex: -1,
|
155
|
+
},
|
156
|
+
l.a.createElement('span', { className: 'icon icon-link' }),
|
157
|
+
),
|
158
|
+
'\u6eda\u52a8\u5bb9\u5668',
|
159
|
+
),
|
160
|
+
),
|
161
|
+
l.a.createElement(
|
162
|
+
c['default'],
|
163
|
+
o['default']['affix-target'].previewerProps,
|
164
|
+
l.a.createElement(m, null),
|
165
|
+
),
|
166
|
+
l.a.createElement(
|
167
|
+
'div',
|
168
|
+
{ className: 'markdown' },
|
169
|
+
l.a.createElement(
|
170
|
+
'h2',
|
171
|
+
{ id: 'api' },
|
172
|
+
l.a.createElement(
|
173
|
+
r['AnchorLink'],
|
174
|
+
{ to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
|
175
|
+
l.a.createElement('span', { className: 'icon icon-link' }),
|
176
|
+
),
|
177
|
+
'API',
|
178
|
+
),
|
179
|
+
l.a.createElement(
|
180
|
+
'table',
|
181
|
+
null,
|
182
|
+
l.a.createElement(
|
183
|
+
'thead',
|
184
|
+
null,
|
185
|
+
l.a.createElement(
|
186
|
+
'tr',
|
187
|
+
null,
|
188
|
+
l.a.createElement('th', null, '\u6210\u5458'),
|
189
|
+
l.a.createElement('th', null, '\u8bf4\u660e'),
|
190
|
+
l.a.createElement('th', null, '\u7c7b\u578b'),
|
191
|
+
l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
|
192
|
+
),
|
193
|
+
),
|
194
|
+
l.a.createElement(
|
195
|
+
'tbody',
|
196
|
+
null,
|
197
|
+
l.a.createElement(
|
198
|
+
'tr',
|
199
|
+
null,
|
200
|
+
l.a.createElement('td', null, 'offsetBottom'),
|
201
|
+
l.a.createElement(
|
202
|
+
'td',
|
203
|
+
null,
|
204
|
+
'\u8ddd\u79bb\u7a97\u53e3\u5e95\u90e8\u8fbe\u5230\u6307\u5b9a\u504f\u79fb\u91cf\u540e\u89e6\u53d1',
|
205
|
+
),
|
206
|
+
l.a.createElement('td', null, 'number'),
|
207
|
+
l.a.createElement('td', null, '-'),
|
208
|
+
),
|
209
|
+
l.a.createElement(
|
210
|
+
'tr',
|
211
|
+
null,
|
212
|
+
l.a.createElement('td', null, 'offsetTop'),
|
213
|
+
l.a.createElement(
|
214
|
+
'td',
|
215
|
+
null,
|
216
|
+
'\u8ddd\u79bb\u7a97\u53e3\u9876\u90e8\u8fbe\u5230\u6307\u5b9a\u504f\u79fb\u91cf\u540e\u89e6\u53d1',
|
217
|
+
),
|
218
|
+
l.a.createElement('td', null, 'number'),
|
219
|
+
l.a.createElement('td', null, '-'),
|
220
|
+
),
|
221
|
+
l.a.createElement(
|
222
|
+
'tr',
|
223
|
+
null,
|
224
|
+
l.a.createElement('td', null, 'target'),
|
225
|
+
l.a.createElement(
|
226
|
+
'td',
|
227
|
+
null,
|
228
|
+
'\u8bbe\u7f6e ',
|
229
|
+
l.a.createElement('code', null, 'Affix'),
|
230
|
+
' \u9700\u8981\u76d1\u542c\u5176\u6eda\u52a8\u4e8b\u4ef6\u7684\u5143\u7d20\uff0c\u503c\u4e3a\u4e00\u4e2a\u8fd4\u56de\u5bf9\u5e94 DOM \u5143\u7d20\u7684\u51fd\u6570',
|
231
|
+
),
|
232
|
+
l.a.createElement('td', null, '() => HTMLElement'),
|
233
|
+
l.a.createElement('td', null, '() => window'),
|
234
|
+
),
|
235
|
+
l.a.createElement(
|
236
|
+
'tr',
|
237
|
+
null,
|
238
|
+
l.a.createElement('td', null, 'onChange'),
|
239
|
+
l.a.createElement(
|
240
|
+
'td',
|
241
|
+
null,
|
242
|
+
'\u56fa\u5b9a\u72b6\u6001\u6539\u53d8\u65f6\u89e6\u53d1\u7684\u56de\u8c03\u51fd\u6570',
|
243
|
+
),
|
244
|
+
l.a.createElement('td', null, 'function(affixed)'),
|
245
|
+
l.a.createElement('td', null, '-'),
|
246
|
+
),
|
247
|
+
),
|
248
|
+
),
|
249
|
+
l.a.createElement(
|
250
|
+
'p',
|
251
|
+
null,
|
252
|
+
l.a.createElement('strong', null, '\u6ce8\u610f\uff1a'),
|
253
|
+
l.a.createElement('code', null, 'Affix'),
|
254
|
+
' \u5185\u7684\u5143\u7d20\u4e0d\u8981\u4f7f\u7528\u7edd\u5bf9\u5b9a\u4f4d\uff0c\u5982\u9700\u8981\u7edd\u5bf9\u5b9a\u4f4d\u7684\u6548\u679c\uff0c\u53ef\u4ee5\u76f4\u63a5\u8bbe\u7f6e ',
|
255
|
+
l.a.createElement('code', null, 'Affix'),
|
256
|
+
' \u4e3a\u7edd\u5bf9\u5b9a\u4f4d\uff1a',
|
257
|
+
),
|
258
|
+
l.a.createElement(i['a'], {
|
259
|
+
code: "<Affix style={{ position: 'absolute', top: y, left: x }}>...</Affix>",
|
260
|
+
lang: 'bash',
|
261
|
+
}),
|
262
|
+
l.a.createElement(
|
263
|
+
'h2',
|
264
|
+
{ id: 'faq' },
|
265
|
+
l.a.createElement(
|
266
|
+
r['AnchorLink'],
|
267
|
+
{ to: '#faq', 'aria-hidden': 'true', tabIndex: -1 },
|
268
|
+
l.a.createElement('span', { className: 'icon icon-link' }),
|
269
|
+
),
|
270
|
+
'FAQ',
|
271
|
+
),
|
272
|
+
l.a.createElement(
|
273
|
+
'h3',
|
274
|
+
{
|
275
|
+
id: 'affix-\u4f7f\u7528-target-\u7ed1\u5b9a\u5bb9\u5668\u65f6\u5143\u7d20\u4f1a\u8dd1\u5230\u5bb9\u5668\u5916',
|
276
|
+
},
|
277
|
+
l.a.createElement(
|
278
|
+
r['AnchorLink'],
|
279
|
+
{
|
280
|
+
to: '#affix-\u4f7f\u7528-target-\u7ed1\u5b9a\u5bb9\u5668\u65f6\u5143\u7d20\u4f1a\u8dd1\u5230\u5bb9\u5668\u5916',
|
281
|
+
'aria-hidden': 'true',
|
282
|
+
tabIndex: -1,
|
283
|
+
},
|
284
|
+
l.a.createElement('span', { className: 'icon icon-link' }),
|
285
|
+
),
|
286
|
+
'Affix \u4f7f\u7528 ',
|
287
|
+
l.a.createElement('code', null, 'target'),
|
288
|
+
' \u7ed1\u5b9a\u5bb9\u5668\u65f6\uff0c\u5143\u7d20\u4f1a\u8dd1\u5230\u5bb9\u5668\u5916\u3002',
|
289
|
+
),
|
290
|
+
l.a.createElement(
|
291
|
+
'p',
|
292
|
+
null,
|
293
|
+
'\u4ece\u6027\u80fd\u89d2\u5ea6\u8003\u8651\uff0c\u6211\u4eec\u53ea\u76d1\u542c\u5bb9\u5668\u6eda\u52a8\u4e8b\u4ef6\u3002\u5982\u679c\u5e0c\u671b\u4efb\u610f\u6eda\u52a8\uff0c\u4f60\u53ef\u4ee5\u5728\u7a97\u4f53\u6dfb\u52a0\u6eda\u52a8\u76d1\u542c\uff1a',
|
294
|
+
l.a.createElement(
|
295
|
+
r['Link'],
|
296
|
+
{ to: 'https://codesandbox.io/s/2xyj5zr85p' },
|
297
|
+
'https://codesandbox.io/s/2xyj5zr85p',
|
298
|
+
),
|
299
|
+
),
|
300
|
+
l.a.createElement(
|
301
|
+
'p',
|
302
|
+
null,
|
303
|
+
'\u76f8\u5173 issue\uff1a',
|
304
|
+
l.a.createElement(
|
305
|
+
r['Link'],
|
306
|
+
{
|
307
|
+
to: 'https://github.com/ant-design/ant-design/issues/3938',
|
308
|
+
},
|
309
|
+
'#3938',
|
310
|
+
),
|
311
|
+
' ',
|
312
|
+
l.a.createElement(
|
313
|
+
r['Link'],
|
314
|
+
{
|
315
|
+
to: 'https://github.com/ant-design/ant-design/issues/5642',
|
316
|
+
},
|
317
|
+
'#5642',
|
318
|
+
),
|
319
|
+
' ',
|
320
|
+
l.a.createElement(
|
321
|
+
r['Link'],
|
322
|
+
{
|
323
|
+
to: 'https://github.com/ant-design/ant-design/issues/16120',
|
324
|
+
},
|
325
|
+
'#16120',
|
326
|
+
),
|
327
|
+
),
|
328
|
+
l.a.createElement(
|
329
|
+
'h3',
|
330
|
+
{
|
331
|
+
id: 'affix-\u5728\u6c34\u5e73\u6eda\u52a8\u5bb9\u5668\u4e2d\u4f7f\u7528\u65f6-\u5143\u7d20-left-\u4f4d\u7f6e\u4e0d\u6b63\u786e',
|
332
|
+
},
|
333
|
+
l.a.createElement(
|
334
|
+
r['AnchorLink'],
|
335
|
+
{
|
336
|
+
to: '#affix-\u5728\u6c34\u5e73\u6eda\u52a8\u5bb9\u5668\u4e2d\u4f7f\u7528\u65f6-\u5143\u7d20-left-\u4f4d\u7f6e\u4e0d\u6b63\u786e',
|
337
|
+
'aria-hidden': 'true',
|
338
|
+
tabIndex: -1,
|
339
|
+
},
|
340
|
+
l.a.createElement('span', { className: 'icon icon-link' }),
|
341
|
+
),
|
342
|
+
'Affix \u5728\u6c34\u5e73\u6eda\u52a8\u5bb9\u5668\u4e2d\u4f7f\u7528\u65f6\uff0c \u5143\u7d20 ',
|
343
|
+
l.a.createElement('code', null, 'left'),
|
344
|
+
' \u4f4d\u7f6e\u4e0d\u6b63\u786e\u3002',
|
345
|
+
),
|
346
|
+
l.a.createElement(
|
347
|
+
'p',
|
348
|
+
null,
|
349
|
+
'Affix \u4e00\u822c\u53ea\u9002\u7528\u4e8e\u5355\u5411\u6eda\u52a8\u7684\u533a\u57df\uff0c\u53ea\u652f\u6301\u5728\u5782\u76f4\u6eda\u52a8\u5bb9\u5668\u4e2d\u4f7f\u7528\u3002\u5982\u679c\u5e0c\u671b\u5728\u6c34\u5e73\u5bb9\u5668\u4e2d\u4f7f\u7528\uff0c\u4f60\u53ef\u4ee5\u8003\u8651\u4f7f\u7528 \u539f\u751f ',
|
350
|
+
l.a.createElement('code', null, 'position: sticky'),
|
351
|
+
' \u5b9e\u73b0\u3002',
|
352
|
+
),
|
353
|
+
l.a.createElement(
|
354
|
+
'p',
|
355
|
+
null,
|
356
|
+
'\u76f8\u5173 issue: ',
|
357
|
+
l.a.createElement(
|
358
|
+
r['Link'],
|
359
|
+
{
|
360
|
+
to: 'https://github.com/ant-design/ant-design/issues/29108',
|
361
|
+
},
|
362
|
+
'#29108',
|
363
|
+
),
|
364
|
+
),
|
365
|
+
l.a.createElement('style', {
|
366
|
+
dangerouslySetInnerHTML: {
|
367
|
+
__html:
|
368
|
+
"\n#affix-target .scrollable-container {\n height: 100px;\n overflow-y: scroll;\n}\n#affix-target .background {\n padding-top: 60px;\n height: 300px;\n background-image: url('https://zos.alipayobjects.com/rmsportal/RmjwQiJorKyobvI.jpg');\n}\n",
|
369
|
+
},
|
370
|
+
}),
|
371
|
+
),
|
372
|
+
),
|
373
|
+
)
|
374
|
+
);
|
375
|
+
},
|
376
|
+
RZMt: function (e, t, a) {},
|
377
|
+
Zxc8: function (e, t, a) {
|
378
|
+
'use strict';
|
379
|
+
a.r(t);
|
380
|
+
var n = a('q1tI'),
|
381
|
+
l = a.n(n),
|
382
|
+
r = a('k3GJ'),
|
383
|
+
c = a('MZF8'),
|
384
|
+
i = a('dEAq'),
|
385
|
+
o = a('H1Ra');
|
386
|
+
a('RZMt');
|
387
|
+
function u(e, t) {
|
388
|
+
return E(e) || f(e, t) || m(e, t) || d();
|
389
|
+
}
|
390
|
+
function d() {
|
391
|
+
throw new TypeError(
|
392
|
+
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
|
393
|
+
);
|
394
|
+
}
|
395
|
+
function m(e, t) {
|
396
|
+
if (e) {
|
397
|
+
if ('string' === typeof e) return s(e, t);
|
398
|
+
var a = Object.prototype.toString.call(e).slice(8, -1);
|
399
|
+
return (
|
400
|
+
'Object' === a && e.constructor && (a = e.constructor.name),
|
401
|
+
'Map' === a || 'Set' === a
|
402
|
+
? Array.from(e)
|
403
|
+
: 'Arguments' === a ||
|
404
|
+
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
|
405
|
+
? s(e, t)
|
406
|
+
: void 0
|
407
|
+
);
|
408
|
+
}
|
409
|
+
}
|
410
|
+
function s(e, t) {
|
411
|
+
(null == t || t > e.length) && (t = e.length);
|
412
|
+
for (var a = 0, n = new Array(t); a < t; a++) n[a] = e[a];
|
413
|
+
return n;
|
414
|
+
}
|
415
|
+
function f(e, t) {
|
416
|
+
var a =
|
417
|
+
null == e
|
418
|
+
? null
|
419
|
+
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
|
420
|
+
e['@@iterator'];
|
421
|
+
if (null != a) {
|
422
|
+
var n,
|
423
|
+
l,
|
424
|
+
r = [],
|
425
|
+
c = !0,
|
426
|
+
i = !1;
|
427
|
+
try {
|
428
|
+
for (a = a.call(e); !(c = (n = a.next()).done); c = !0)
|
429
|
+
if ((r.push(n.value), t && r.length === t)) break;
|
430
|
+
} catch (o) {
|
431
|
+
(i = !0), (l = o);
|
432
|
+
} finally {
|
433
|
+
try {
|
434
|
+
c || null == a['return'] || a['return']();
|
435
|
+
} finally {
|
436
|
+
if (i) throw l;
|
437
|
+
}
|
438
|
+
}
|
439
|
+
return r;
|
440
|
+
}
|
441
|
+
}
|
442
|
+
function E(e) {
|
443
|
+
if (Array.isArray(e)) return e;
|
444
|
+
}
|
445
|
+
function p(e, t) {
|
446
|
+
var a,
|
447
|
+
n =
|
448
|
+
null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
|
449
|
+
return n || (n = t.tsx ? 'tsx' : 'jsx'), n;
|
450
|
+
}
|
451
|
+
var h = function (e) {
|
452
|
+
var t,
|
453
|
+
a,
|
454
|
+
d,
|
455
|
+
m = Object(n['useRef'])(),
|
456
|
+
s = Object(n['useContext'])(i['context']),
|
457
|
+
f = s.locale,
|
458
|
+
E = Object(i['useLocaleProps'])(f, e),
|
459
|
+
h = Object(i['useDemoUrl'])(E.identifier),
|
460
|
+
b = E.demoUrl || h,
|
461
|
+
g =
|
462
|
+
(null === c['a'] || void 0 === c['a']
|
463
|
+
? void 0
|
464
|
+
: c['a'].location.hash) === '#'.concat(E.identifier),
|
465
|
+
v = 1 === Object.keys(E.sources).length,
|
466
|
+
x = Object(i['useCodeSandbox'])(
|
467
|
+
(
|
468
|
+
null === (t = E.hideActions) || void 0 === t
|
469
|
+
? void 0
|
470
|
+
: t.includes('CSB')
|
471
|
+
)
|
472
|
+
? null
|
473
|
+
: E,
|
474
|
+
),
|
475
|
+
k = Object(i['useRiddle'])(
|
476
|
+
(
|
477
|
+
null === (a = E.hideActions) || void 0 === a
|
478
|
+
? void 0
|
479
|
+
: a.includes('RIDDLE')
|
480
|
+
)
|
481
|
+
? null
|
482
|
+
: E,
|
483
|
+
),
|
484
|
+
y = Object(i['useMotions'])(E.motions || [], m.current),
|
485
|
+
_ = u(y, 2),
|
486
|
+
w = _[0],
|
487
|
+
A = _[1],
|
488
|
+
N = Object(i['useCopy'])(),
|
489
|
+
j = u(N, 2),
|
490
|
+
L = j[0],
|
491
|
+
O = j[1],
|
492
|
+
I = Object(n['useState'])('_'),
|
493
|
+
C = u(I, 2),
|
494
|
+
S = C[0],
|
495
|
+
R = C[1],
|
496
|
+
M = Object(n['useState'])(p(S, E.sources[S])),
|
497
|
+
T = u(M, 2),
|
498
|
+
P = T[0],
|
499
|
+
q = T[1],
|
500
|
+
J = Object(n['useState'])(Boolean(E.defaultShowCode)),
|
501
|
+
U = u(J, 2),
|
502
|
+
Z = U[0],
|
503
|
+
F = U[1],
|
504
|
+
H = Object(n['useState'])(Math.random()),
|
505
|
+
B = u(H, 2),
|
506
|
+
D = B[0],
|
507
|
+
$ = B[1],
|
508
|
+
z = E.sources[S][P] || E.sources[S].content,
|
509
|
+
G = Object(i['useTSPlaygroundUrl'])(f, z),
|
510
|
+
K = Object(n['useRef'])(),
|
511
|
+
Q = Object(i['usePrefersColor'])(),
|
512
|
+
X = u(Q, 1),
|
513
|
+
V = X[0];
|
514
|
+
function W(e) {
|
515
|
+
R(e), q(p(e, E.sources[e]));
|
516
|
+
}
|
517
|
+
return (
|
518
|
+
Object(n['useEffect'])(
|
519
|
+
function () {
|
520
|
+
$(Math.random());
|
521
|
+
},
|
522
|
+
[V],
|
523
|
+
),
|
524
|
+
l.a.createElement(
|
525
|
+
'div',
|
526
|
+
{
|
527
|
+
style: E.style,
|
528
|
+
className: [
|
529
|
+
E.className,
|
530
|
+
'__dumi-default-previewer',
|
531
|
+
g ? '__dumi-default-previewer-target' : '',
|
532
|
+
]
|
533
|
+
.filter(Boolean)
|
534
|
+
.join(' '),
|
535
|
+
id: E.identifier,
|
536
|
+
'data-debug': E.debug || void 0,
|
537
|
+
'data-iframe': E.iframe || void 0,
|
538
|
+
},
|
539
|
+
E.iframe &&
|
540
|
+
l.a.createElement('div', {
|
541
|
+
className: '__dumi-default-previewer-browser-nav',
|
542
|
+
}),
|
543
|
+
l.a.createElement(
|
544
|
+
'div',
|
545
|
+
{
|
546
|
+
ref: m,
|
547
|
+
className: '__dumi-default-previewer-demo',
|
548
|
+
style: {
|
549
|
+
transform: E.transform ? 'translate(0, 0)' : void 0,
|
550
|
+
padding:
|
551
|
+
E.compact || (E.iframe && !1 !== E.compact) ? '0' : void 0,
|
552
|
+
background: E.background,
|
553
|
+
},
|
554
|
+
},
|
555
|
+
E.iframe
|
556
|
+
? l.a.createElement('iframe', {
|
557
|
+
title: 'dumi-previewer',
|
558
|
+
style: {
|
559
|
+
height: String(E.iframe).replace(/(\d)$/, '$1px'),
|
560
|
+
},
|
561
|
+
key: D,
|
562
|
+
src: b,
|
563
|
+
ref: K,
|
564
|
+
})
|
565
|
+
: E.children,
|
566
|
+
),
|
567
|
+
l.a.createElement(
|
568
|
+
'div',
|
569
|
+
{
|
570
|
+
className: '__dumi-default-previewer-desc',
|
571
|
+
'data-title': E.title,
|
572
|
+
},
|
573
|
+
E.title &&
|
574
|
+
l.a.createElement(
|
575
|
+
i['AnchorLink'],
|
576
|
+
{ to: '#'.concat(E.identifier) },
|
577
|
+
E.title,
|
578
|
+
),
|
579
|
+
E.description &&
|
580
|
+
l.a.createElement('div', {
|
581
|
+
dangerouslySetInnerHTML: { __html: E.description },
|
582
|
+
}),
|
583
|
+
),
|
584
|
+
l.a.createElement(
|
585
|
+
'div',
|
586
|
+
{ className: '__dumi-default-previewer-actions' },
|
587
|
+
x &&
|
588
|
+
l.a.createElement('button', {
|
589
|
+
title: 'Open demo on CodeSandbox.io',
|
590
|
+
className: '__dumi-default-icon',
|
591
|
+
role: 'codesandbox',
|
592
|
+
onClick: x,
|
593
|
+
}),
|
594
|
+
k &&
|
595
|
+
l.a.createElement('button', {
|
596
|
+
title: 'Open demo on Riddle',
|
597
|
+
className: '__dumi-default-icon',
|
598
|
+
role: 'riddle',
|
599
|
+
onClick: k,
|
600
|
+
}),
|
601
|
+
E.motions &&
|
602
|
+
l.a.createElement('button', {
|
603
|
+
title: 'Execute motions',
|
604
|
+
className: '__dumi-default-icon',
|
605
|
+
role: 'motions',
|
606
|
+
disabled: A,
|
607
|
+
onClick: function () {
|
608
|
+
return w();
|
609
|
+
},
|
610
|
+
}),
|
611
|
+
E.iframe &&
|
612
|
+
l.a.createElement('button', {
|
613
|
+
title: 'Reload demo iframe page',
|
614
|
+
className: '__dumi-default-icon',
|
615
|
+
role: 'refresh',
|
616
|
+
onClick: function () {
|
617
|
+
return $(Math.random());
|
618
|
+
},
|
619
|
+
}),
|
620
|
+
!(null === (d = E.hideActions) || void 0 === d
|
621
|
+
? void 0
|
622
|
+
: d.includes('EXTERNAL')) &&
|
623
|
+
l.a.createElement(
|
624
|
+
i['Link'],
|
625
|
+
{ target: '_blank', to: b },
|
626
|
+
l.a.createElement('button', {
|
627
|
+
title: 'Open demo in new tab',
|
628
|
+
className: '__dumi-default-icon',
|
629
|
+
role: 'open-demo',
|
630
|
+
type: 'button',
|
631
|
+
}),
|
632
|
+
),
|
633
|
+
l.a.createElement('span', null),
|
634
|
+
l.a.createElement('button', {
|
635
|
+
title: 'Copy source code',
|
636
|
+
className: '__dumi-default-icon',
|
637
|
+
role: 'copy',
|
638
|
+
'data-status': O,
|
639
|
+
onClick: function () {
|
640
|
+
return L(z);
|
641
|
+
},
|
642
|
+
}),
|
643
|
+
'tsx' === P &&
|
644
|
+
Z &&
|
645
|
+
l.a.createElement(
|
646
|
+
i['Link'],
|
647
|
+
{ target: '_blank', to: G },
|
648
|
+
l.a.createElement('button', {
|
649
|
+
title: 'Get JSX via TypeScript Playground',
|
650
|
+
className: '__dumi-default-icon',
|
651
|
+
role: 'change-tsx',
|
652
|
+
type: 'button',
|
653
|
+
}),
|
654
|
+
),
|
655
|
+
l.a.createElement('button', {
|
656
|
+
title: 'Toggle source code panel',
|
657
|
+
className: '__dumi-default-icon'.concat(
|
658
|
+
Z ? ' __dumi-default-btn-expand' : '',
|
659
|
+
),
|
660
|
+
role: 'source',
|
661
|
+
type: 'button',
|
662
|
+
onClick: function () {
|
663
|
+
return F(!Z);
|
664
|
+
},
|
665
|
+
}),
|
666
|
+
),
|
667
|
+
Z &&
|
668
|
+
l.a.createElement(
|
669
|
+
'div',
|
670
|
+
{ className: '__dumi-default-previewer-source-wrapper' },
|
671
|
+
!v &&
|
672
|
+
l.a.createElement(
|
673
|
+
r['b'],
|
674
|
+
{
|
675
|
+
className: '__dumi-default-previewer-source-tab',
|
676
|
+
prefixCls: '__dumi-default-tabs',
|
677
|
+
moreIcon: '\xb7\xb7\xb7',
|
678
|
+
defaultActiveKey: S,
|
679
|
+
onChange: W,
|
680
|
+
},
|
681
|
+
Object.keys(E.sources).map(function (e) {
|
682
|
+
return l.a.createElement(r['a'], {
|
683
|
+
tab:
|
684
|
+
'_' === e ? 'index.'.concat(p(e, E.sources[e])) : e,
|
685
|
+
key: e,
|
686
|
+
});
|
687
|
+
}),
|
688
|
+
),
|
689
|
+
l.a.createElement(
|
690
|
+
'div',
|
691
|
+
{ className: '__dumi-default-previewer-source' },
|
692
|
+
l.a.createElement(o['a'], { code: z, lang: P, showCopy: !1 }),
|
693
|
+
),
|
694
|
+
),
|
695
|
+
)
|
696
|
+
);
|
697
|
+
};
|
698
|
+
t['default'] = h;
|
699
|
+
},
|
700
|
+
},
|
701
|
+
]);
|