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