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