@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,1106 @@
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[18],{FQPb:function(e,t,a){"use strict";a.r(t);var l=a("q1tI"),n=a.n(l),r=a("dEAq"),c=a("Zxc8"),d=a("H1Ra"),m=a("JjdP"),u=n.a.memo(m["default"]["card-basic"].component),o=n.a.memo(m["default"]["card-border"].component),i=n.a.memo(m["default"]["card-concise"].component),E=n.a.memo(m["default"]["card-flexible"].component),s=n.a.memo(m["default"]["card-grid"].component),f=n.a.memo(m["default"]["card-preload"].component),p=n.a.memo(m["default"]["card-embedded"].component),b=n.a.memo(m["default"]["card-inside"].component),h=n.a.memo(m["default"]["card-tab"].component),v=n.a.memo(m["default"]["card-more"].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:"card-\u5361\u7247"},n.a.createElement(r["AnchorLink"],{to:"#card-\u5361\u7247","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Card \u5361\u7247"),n.a.createElement("p",null,"\u901a\u7528\u5361\u7247\u5bb9\u5668\u3002"),n.a.createElement("h2",{id:"\u4f55\u65f6\u4f7f\u7528"},n.a.createElement(r["AnchorLink"],{to:"#\u4f55\u65f6\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4f55\u65f6\u4f7f\u7528"),n.a.createElement("p",null,"\u6700\u57fa\u7840\u7684\u5361\u7247\u5bb9\u5668\uff0c\u53ef\u627f\u8f7d\u6587\u5b57\u3001\u5217\u8868\u3001\u56fe\u7247\u3001\u6bb5\u843d\uff0c\u5e38\u7528\u4e8e\u540e\u53f0\u6982\u89c8\u9875\u9762\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:"\u5178\u578b\u5361\u7247"},n.a.createElement(r["AnchorLink"],{to:"#\u5178\u578b\u5361\u7247","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5178\u578b\u5361\u7247")),n.a.createElement(c["default"],m["default"]["card-basic"].previewerProps,n.a.createElement(u,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u65e0\u8fb9\u6846"},n.a.createElement(r["AnchorLink"],{to:"#\u65e0\u8fb9\u6846","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u65e0\u8fb9\u6846")),n.a.createElement(c["default"],m["default"]["card-border"].previewerProps,n.a.createElement(o,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u7b80\u6d01\u5361\u7247"},n.a.createElement(r["AnchorLink"],{to:"#\u7b80\u6d01\u5361\u7247","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u7b80\u6d01\u5361\u7247")),n.a.createElement(c["default"],m["default"]["card-concise"].previewerProps,n.a.createElement(i,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u66f4\u7075\u6d3b\u7684\u5185\u5bb9\u5c55\u793a"},n.a.createElement(r["AnchorLink"],{to:"#\u66f4\u7075\u6d3b\u7684\u5185\u5bb9\u5c55\u793a","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u66f4\u7075\u6d3b\u7684\u5185\u5bb9\u5c55\u793a")),n.a.createElement(c["default"],m["default"]["card-flexible"].previewerProps,n.a.createElement(E,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u6805\u683c\u5361\u7247"},n.a.createElement(r["AnchorLink"],{to:"#\u6805\u683c\u5361\u7247","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u6805\u683c\u5361\u7247")),n.a.createElement(c["default"],m["default"]["card-grid"].previewerProps,n.a.createElement(s,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u9884\u52a0\u8f7d\u7684\u5361\u7247"},n.a.createElement(r["AnchorLink"],{to:"#\u9884\u52a0\u8f7d\u7684\u5361\u7247","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u9884\u52a0\u8f7d\u7684\u5361\u7247")),n.a.createElement(c["default"],m["default"]["card-preload"].previewerProps,n.a.createElement(f,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u7f51\u683c\u578b\u5185\u5d4c\u5361\u7247"},n.a.createElement(r["AnchorLink"],{to:"#\u7f51\u683c\u578b\u5185\u5d4c\u5361\u7247","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u7f51\u683c\u578b\u5185\u5d4c\u5361\u7247")),n.a.createElement(c["default"],m["default"]["card-embedded"].previewerProps,n.a.createElement(p,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u5185\u90e8\u5361\u7247"},n.a.createElement(r["AnchorLink"],{to:"#\u5185\u90e8\u5361\u7247","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5185\u90e8\u5361\u7247")),n.a.createElement(c["default"],m["default"]["card-inside"].previewerProps,n.a.createElement(b,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u5e26\u9875\u7b7e\u7684\u5361\u7247"},n.a.createElement(r["AnchorLink"],{to:"#\u5e26\u9875\u7b7e\u7684\u5361\u7247","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5e26\u9875\u7b7e\u7684\u5361\u7247")),n.a.createElement(c["default"],m["default"]["card-tab"].previewerProps,n.a.createElement(h,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u652f\u6301\u66f4\u591a\u5185\u5bb9\u914d\u7f6e"},n.a.createElement(r["AnchorLink"],{to:"#\u652f\u6301\u66f4\u591a\u5185\u5bb9\u914d\u7f6e","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u652f\u6301\u66f4\u591a\u5185\u5bb9\u914d\u7f6e")),n.a.createElement(c["default"],m["default"]["card-more"].previewerProps,n.a.createElement(v,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(d["a"],{code:'<Card title="\u5361\u7247\u6807\u9898">\u5361\u7247\u5185\u5bb9</Card>',lang:"bash"}),n.a.createElement("h3",{id:"card"},n.a.createElement(r["AnchorLink"],{to:"#card","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Card"),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,"actions"),n.a.createElement("td",null,"\u5361\u7247\u64cd\u4f5c\u7ec4\uff0c\u4f4d\u7f6e\u5728\u5361\u7247\u5e95\u90e8"),n.a.createElement("td",null,"Array<ReactNode>"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"activeTabKey"),n.a.createElement("td",null,"\u5f53\u524d\u6fc0\u6d3b\u9875\u7b7e\u7684 key"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"bodyStyle"),n.a.createElement("td",null,"\u5185\u5bb9\u533a\u57df\u81ea\u5b9a\u4e49\u6837\u5f0f"),n.a.createElement("td",null,"CSSProperties"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"bordered"),n.a.createElement("td",null,"\u662f\u5426\u6709\u8fb9\u6846"),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,"cover"),n.a.createElement("td",null,"\u5361\u7247\u5c01\u9762"),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,"defaultActiveTabKey"),n.a.createElement("td",null,"\u521d\u59cb\u5316\u9009\u4e2d\u9875\u7b7e\u7684 key\uff0c\u5982\u679c\u6ca1\u6709\u8bbe\u7f6e activeTabKey"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,"\u7b2c\u4e00\u4e2a\u9875\u7b7e")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"extra"),n.a.createElement("td",null,"\u5361\u7247\u53f3\u4e0a\u89d2\u7684\u64cd\u4f5c\u533a\u57df"),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,"headStyle"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u6807\u9898\u533a\u57df\u6837\u5f0f"),n.a.createElement("td",null,"CSSProperties"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"hoverable"),n.a.createElement("td",null,"\u9f20\u6807\u79fb\u8fc7\u65f6\u53ef\u6d6e\u8d77"),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,"loading"),n.a.createElement("td",null,"\u5f53\u5361\u7247\u5185\u5bb9\u8fd8\u5728\u52a0\u8f7d\u4e2d\u65f6\uff0c\u53ef\u4ee5\u7528 loading \u5c55\u793a\u4e00\u4e2a\u5360\u4f4d"),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,"size"),n.a.createElement("td",null,"card \u7684\u5c3a\u5bf8"),n.a.createElement("td",null,n.a.createElement("code",null,"default")," | ",n.a.createElement("code",null,"small")),n.a.createElement("td",null,n.a.createElement("code",null,"default")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"tabBarExtraContent"),n.a.createElement("td",null,"tab bar \u4e0a\u989d\u5916\u7684\u5143\u7d20"),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,"tabList"),n.a.createElement("td",null,"\u9875\u7b7e\u6807\u9898\u5217\u8868"),n.a.createElement("td",null,"Array<","{","key: string, tab: ReactNode","}",">"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"tabProps"),n.a.createElement("td",null,n.a.createElement(r["AnchorLink"],{to:"/components/tabs/#Tabs"},"Tabs")),n.a.createElement("td",null,"-"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"title"),n.a.createElement("td",null,"\u5361\u7247\u6807\u9898"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"type"),n.a.createElement("td",null,"\u5361\u7247\u7c7b\u578b\uff0c\u53ef\u8bbe\u7f6e\u4e3a ",n.a.createElement("code",null,"inner")," \u6216 \u4e0d\u8bbe\u7f6e"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onTabChange"),n.a.createElement("td",null,"\u9875\u7b7e\u5207\u6362\u7684\u56de\u8c03"),n.a.createElement("td",null,"(key) => void"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)))),n.a.createElement("h3",{id:"cardgrid"},n.a.createElement(r["AnchorLink"],{to:"#cardgrid","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Card.Grid"),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,"className"),n.a.createElement("td",null,"\u7f51\u683c\u5bb9\u5668\u7c7b\u540d"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"hoverable"),n.a.createElement("td",null,"\u9f20\u6807\u79fb\u8fc7\u65f6\u53ef\u6d6e\u8d77"),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,"style"),n.a.createElement("td",null,"\u5b9a\u4e49\u7f51\u683c\u5bb9\u5668\u7c7b\u540d\u7684\u6837\u5f0f"),n.a.createElement("td",null,"CSSProperties"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)))),n.a.createElement("h3",{id:"cardmeta"},n.a.createElement(r["AnchorLink"],{to:"#cardmeta","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Card.Meta"),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,"avatar"),n.a.createElement("td",null,"\u5934\u50cf/\u56fe\u6807"),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,"className"),n.a.createElement("td",null,"\u5bb9\u5668\u7c7b\u540d"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"description"),n.a.createElement("td",null,"\u63cf\u8ff0\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,"style"),n.a.createElement("td",null,"\u5b9a\u4e49\u5bb9\u5668\u7c7b\u540d\u7684\u6837\u5f0f"),n.a.createElement("td",null,"CSSProperties"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"title"),n.a.createElement("td",null,"\u6807\u9898\u5185\u5bb9"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)))),n.a.createElement("style",{dangerouslySetInnerHTML:{__html:"\n .site-card-border-less-wrapper {\n padding: 30px;\n background: #ececec;\n }\n"}})))))},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"),d=a("dEAq"),m=a("H1Ra");a("RZMt");function u(e,t){return f(e)||s(e,t)||i(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){if(e){if("string"===typeof e)return E(e,t);var 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)?E(e,t):void 0}}function E(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 s(e,t){var a=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l,n,r=[],c=!0,d=!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){d=!0,n=m}finally{try{c||null==a["return"]||a["return"]()}finally{if(d)throw n}}return r}}function f(e){if(Array.isArray(e))return e}function p(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 b=function(e){var t,a,o,i=Object(l["useRef"])(),E=Object(l["useContext"])(d["context"]),s=E.locale,f=Object(d["useLocaleProps"])(s,e),b=Object(d["useDemoUrl"])(f.identifier),h=f.demoUrl||b,v=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(f.identifier),k=1===Object.keys(f.sources).length,y=Object(d["useCodeSandbox"])((null===(t=f.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:f),N=Object(d["useRiddle"])((null===(a=f.hideActions)||void 0===a?void 0:a.includes("RIDDLE"))?null:f),w=Object(d["useMotions"])(f.motions||[],i.current),g=u(w,2),_=g[0],x=g[1],A=Object(d["useCopy"])(),C=u(A,2),S=C[0],I=C[1],L=Object(l["useState"])("_"),j=u(L,2),O=j[0],P=j[1],R=Object(l["useState"])(p(O,f.sources[O])),T=u(R,2),M=T[0],U=T[1],Z=Object(l["useState"])(Boolean(f.defaultShowCode)),F=u(Z,2),J=F[0],q=F[1],B=Object(l["useState"])(Math.random()),H=u(B,2),K=H[0],$=H[1],D=f.sources[O][M]||f.sources[O].content,G=Object(d["useTSPlaygroundUrl"])(s,D),X=Object(l["useRef"])(),z=Object(d["usePrefersColor"])(),Q=u(z,1),V=Q[0];function W(e){P(e),U(p(e,f.sources[e]))}return Object(l["useEffect"])((function(){$(Math.random())}),[V]),n.a.createElement("div",{style:f.style,className:[f.className,"__dumi-default-previewer",v?"__dumi-default-previewer-target":""].filter(Boolean).join(" "),id:f.identifier,"data-debug":f.debug||void 0,"data-iframe":f.iframe||void 0},f.iframe&&n.a.createElement("div",{className:"__dumi-default-previewer-browser-nav"}),n.a.createElement("div",{ref:i,className:"__dumi-default-previewer-demo",style:{transform:f.transform?"translate(0, 0)":void 0,padding:f.compact||f.iframe&&!1!==f.compact?"0":void 0,background:f.background}},f.iframe?n.a.createElement("iframe",{title:"dumi-previewer",style:{height:String(f.iframe).replace(/(\d)$/,"$1px")},key:K,src:h,ref:X}):f.children),n.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":f.title},f.title&&n.a.createElement(d["AnchorLink"],{to:"#".concat(f.identifier)},f.title),f.description&&n.a.createElement("div",{dangerouslySetInnerHTML:{__html:f.description}})),n.a.createElement("div",{className:"__dumi-default-previewer-actions"},y&&n.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:y}),N&&n.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:N}),f.motions&&n.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:x,onClick:function(){return _()}}),f.iframe&&n.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return $(Math.random())}}),!(null===(o=f.hideActions)||void 0===o?void 0:o.includes("EXTERNAL"))&&n.a.createElement(d["Link"],{target:"_blank",to:h},n.a.createElement("button",{title:"Open demo in new tab",className:"__dumi-default-icon",role:"open-demo",type:"button"})),n.a.createElement("span",null),n.a.createElement("button",{title:"Copy source code",className:"__dumi-default-icon",role:"copy","data-status":I,onClick:function(){return S(D)}}),"tsx"===M&&J&&n.a.createElement(d["Link"],{target:"_blank",to:G},n.a.createElement("button",{title:"Get JSX via TypeScript Playground",className:"__dumi-default-icon",role:"change-tsx",type:"button"})),n.a.createElement("button",{title:"Toggle source code panel",className:"__dumi-default-icon".concat(J?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:function(){return q(!J)}})),J&&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:O,onChange:W},Object.keys(f.sources).map((function(e){return n.a.createElement(r["a"],{tab:"_"===e?"index.".concat(p(e,f.sources[e])):e,key:e})}))),n.a.createElement("div",{className:"__dumi-default-previewer-source"},n.a.createElement(m["a"],{code:D,lang:M,showCopy:!1}))))};t["default"]=b}}]);
|
1
|
+
(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
|
2
|
+
[18],
|
3
|
+
{
|
4
|
+
FQPb: 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
|
+
d = a('H1Ra'),
|
12
|
+
m = a('JjdP'),
|
13
|
+
u = n.a.memo(m['default']['card-basic'].component),
|
14
|
+
o = n.a.memo(m['default']['card-border'].component),
|
15
|
+
i = n.a.memo(m['default']['card-concise'].component),
|
16
|
+
E = n.a.memo(m['default']['card-flexible'].component),
|
17
|
+
s = n.a.memo(m['default']['card-grid'].component),
|
18
|
+
f = n.a.memo(m['default']['card-preload'].component),
|
19
|
+
p = n.a.memo(m['default']['card-embedded'].component),
|
20
|
+
b = n.a.memo(m['default']['card-inside'].component),
|
21
|
+
h = n.a.memo(m['default']['card-tab'].component),
|
22
|
+
v = n.a.memo(m['default']['card-more'].component);
|
23
|
+
t['default'] = (e) => (
|
24
|
+
n.a.useEffect(() => {
|
25
|
+
var t;
|
26
|
+
null !== e &&
|
27
|
+
void 0 !== e &&
|
28
|
+
null !== (t = e.location) &&
|
29
|
+
void 0 !== t &&
|
30
|
+
t.hash &&
|
31
|
+
r['AnchorLink'].scrollToAnchor(
|
32
|
+
decodeURIComponent(e.location.hash.slice(1)),
|
33
|
+
);
|
34
|
+
}, []),
|
35
|
+
n.a.createElement(
|
36
|
+
n.a.Fragment,
|
37
|
+
null,
|
38
|
+
n.a.createElement(
|
39
|
+
n.a.Fragment,
|
40
|
+
null,
|
41
|
+
n.a.createElement(
|
42
|
+
'div',
|
43
|
+
{ className: 'markdown' },
|
44
|
+
n.a.createElement(
|
45
|
+
'h1',
|
46
|
+
{ id: 'card-\u5361\u7247' },
|
47
|
+
n.a.createElement(
|
48
|
+
r['AnchorLink'],
|
49
|
+
{
|
50
|
+
to: '#card-\u5361\u7247',
|
51
|
+
'aria-hidden': 'true',
|
52
|
+
tabIndex: -1,
|
53
|
+
},
|
54
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
55
|
+
),
|
56
|
+
'Card \u5361\u7247',
|
57
|
+
),
|
58
|
+
n.a.createElement(
|
59
|
+
'p',
|
60
|
+
null,
|
61
|
+
'\u901a\u7528\u5361\u7247\u5bb9\u5668\u3002',
|
62
|
+
),
|
63
|
+
n.a.createElement(
|
64
|
+
'h2',
|
65
|
+
{ id: '\u4f55\u65f6\u4f7f\u7528' },
|
66
|
+
n.a.createElement(
|
67
|
+
r['AnchorLink'],
|
68
|
+
{
|
69
|
+
to: '#\u4f55\u65f6\u4f7f\u7528',
|
70
|
+
'aria-hidden': 'true',
|
71
|
+
tabIndex: -1,
|
72
|
+
},
|
73
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
74
|
+
),
|
75
|
+
'\u4f55\u65f6\u4f7f\u7528',
|
76
|
+
),
|
77
|
+
n.a.createElement(
|
78
|
+
'p',
|
79
|
+
null,
|
80
|
+
'\u6700\u57fa\u7840\u7684\u5361\u7247\u5bb9\u5668\uff0c\u53ef\u627f\u8f7d\u6587\u5b57\u3001\u5217\u8868\u3001\u56fe\u7247\u3001\u6bb5\u843d\uff0c\u5e38\u7528\u4e8e\u540e\u53f0\u6982\u89c8\u9875\u9762\u3002',
|
81
|
+
),
|
82
|
+
n.a.createElement(
|
83
|
+
'h2',
|
84
|
+
{ id: '\u4ee3\u7801\u6f14\u793a' },
|
85
|
+
n.a.createElement(
|
86
|
+
r['AnchorLink'],
|
87
|
+
{
|
88
|
+
to: '#\u4ee3\u7801\u6f14\u793a',
|
89
|
+
'aria-hidden': 'true',
|
90
|
+
tabIndex: -1,
|
91
|
+
},
|
92
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
93
|
+
),
|
94
|
+
'\u4ee3\u7801\u6f14\u793a',
|
95
|
+
),
|
96
|
+
n.a.createElement(
|
97
|
+
'h3',
|
98
|
+
{ id: '\u5178\u578b\u5361\u7247' },
|
99
|
+
n.a.createElement(
|
100
|
+
r['AnchorLink'],
|
101
|
+
{
|
102
|
+
to: '#\u5178\u578b\u5361\u7247',
|
103
|
+
'aria-hidden': 'true',
|
104
|
+
tabIndex: -1,
|
105
|
+
},
|
106
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
107
|
+
),
|
108
|
+
'\u5178\u578b\u5361\u7247',
|
109
|
+
),
|
110
|
+
),
|
111
|
+
n.a.createElement(
|
112
|
+
c['default'],
|
113
|
+
m['default']['card-basic'].previewerProps,
|
114
|
+
n.a.createElement(u, null),
|
115
|
+
),
|
116
|
+
n.a.createElement(
|
117
|
+
'div',
|
118
|
+
{ className: 'markdown' },
|
119
|
+
n.a.createElement(
|
120
|
+
'h3',
|
121
|
+
{ id: '\u65e0\u8fb9\u6846' },
|
122
|
+
n.a.createElement(
|
123
|
+
r['AnchorLink'],
|
124
|
+
{
|
125
|
+
to: '#\u65e0\u8fb9\u6846',
|
126
|
+
'aria-hidden': 'true',
|
127
|
+
tabIndex: -1,
|
128
|
+
},
|
129
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
130
|
+
),
|
131
|
+
'\u65e0\u8fb9\u6846',
|
132
|
+
),
|
133
|
+
),
|
134
|
+
n.a.createElement(
|
135
|
+
c['default'],
|
136
|
+
m['default']['card-border'].previewerProps,
|
137
|
+
n.a.createElement(o, null),
|
138
|
+
),
|
139
|
+
n.a.createElement(
|
140
|
+
'div',
|
141
|
+
{ className: 'markdown' },
|
142
|
+
n.a.createElement(
|
143
|
+
'h3',
|
144
|
+
{ id: '\u7b80\u6d01\u5361\u7247' },
|
145
|
+
n.a.createElement(
|
146
|
+
r['AnchorLink'],
|
147
|
+
{
|
148
|
+
to: '#\u7b80\u6d01\u5361\u7247',
|
149
|
+
'aria-hidden': 'true',
|
150
|
+
tabIndex: -1,
|
151
|
+
},
|
152
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
153
|
+
),
|
154
|
+
'\u7b80\u6d01\u5361\u7247',
|
155
|
+
),
|
156
|
+
),
|
157
|
+
n.a.createElement(
|
158
|
+
c['default'],
|
159
|
+
m['default']['card-concise'].previewerProps,
|
160
|
+
n.a.createElement(i, null),
|
161
|
+
),
|
162
|
+
n.a.createElement(
|
163
|
+
'div',
|
164
|
+
{ className: 'markdown' },
|
165
|
+
n.a.createElement(
|
166
|
+
'h3',
|
167
|
+
{ id: '\u66f4\u7075\u6d3b\u7684\u5185\u5bb9\u5c55\u793a' },
|
168
|
+
n.a.createElement(
|
169
|
+
r['AnchorLink'],
|
170
|
+
{
|
171
|
+
to: '#\u66f4\u7075\u6d3b\u7684\u5185\u5bb9\u5c55\u793a',
|
172
|
+
'aria-hidden': 'true',
|
173
|
+
tabIndex: -1,
|
174
|
+
},
|
175
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
176
|
+
),
|
177
|
+
'\u66f4\u7075\u6d3b\u7684\u5185\u5bb9\u5c55\u793a',
|
178
|
+
),
|
179
|
+
),
|
180
|
+
n.a.createElement(
|
181
|
+
c['default'],
|
182
|
+
m['default']['card-flexible'].previewerProps,
|
183
|
+
n.a.createElement(E, null),
|
184
|
+
),
|
185
|
+
n.a.createElement(
|
186
|
+
'div',
|
187
|
+
{ className: 'markdown' },
|
188
|
+
n.a.createElement(
|
189
|
+
'h3',
|
190
|
+
{ id: '\u6805\u683c\u5361\u7247' },
|
191
|
+
n.a.createElement(
|
192
|
+
r['AnchorLink'],
|
193
|
+
{
|
194
|
+
to: '#\u6805\u683c\u5361\u7247',
|
195
|
+
'aria-hidden': 'true',
|
196
|
+
tabIndex: -1,
|
197
|
+
},
|
198
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
199
|
+
),
|
200
|
+
'\u6805\u683c\u5361\u7247',
|
201
|
+
),
|
202
|
+
),
|
203
|
+
n.a.createElement(
|
204
|
+
c['default'],
|
205
|
+
m['default']['card-grid'].previewerProps,
|
206
|
+
n.a.createElement(s, null),
|
207
|
+
),
|
208
|
+
n.a.createElement(
|
209
|
+
'div',
|
210
|
+
{ className: 'markdown' },
|
211
|
+
n.a.createElement(
|
212
|
+
'h3',
|
213
|
+
{ id: '\u9884\u52a0\u8f7d\u7684\u5361\u7247' },
|
214
|
+
n.a.createElement(
|
215
|
+
r['AnchorLink'],
|
216
|
+
{
|
217
|
+
to: '#\u9884\u52a0\u8f7d\u7684\u5361\u7247',
|
218
|
+
'aria-hidden': 'true',
|
219
|
+
tabIndex: -1,
|
220
|
+
},
|
221
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
222
|
+
),
|
223
|
+
'\u9884\u52a0\u8f7d\u7684\u5361\u7247',
|
224
|
+
),
|
225
|
+
),
|
226
|
+
n.a.createElement(
|
227
|
+
c['default'],
|
228
|
+
m['default']['card-preload'].previewerProps,
|
229
|
+
n.a.createElement(f, null),
|
230
|
+
),
|
231
|
+
n.a.createElement(
|
232
|
+
'div',
|
233
|
+
{ className: 'markdown' },
|
234
|
+
n.a.createElement(
|
235
|
+
'h3',
|
236
|
+
{ id: '\u7f51\u683c\u578b\u5185\u5d4c\u5361\u7247' },
|
237
|
+
n.a.createElement(
|
238
|
+
r['AnchorLink'],
|
239
|
+
{
|
240
|
+
to: '#\u7f51\u683c\u578b\u5185\u5d4c\u5361\u7247',
|
241
|
+
'aria-hidden': 'true',
|
242
|
+
tabIndex: -1,
|
243
|
+
},
|
244
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
245
|
+
),
|
246
|
+
'\u7f51\u683c\u578b\u5185\u5d4c\u5361\u7247',
|
247
|
+
),
|
248
|
+
),
|
249
|
+
n.a.createElement(
|
250
|
+
c['default'],
|
251
|
+
m['default']['card-embedded'].previewerProps,
|
252
|
+
n.a.createElement(p, null),
|
253
|
+
),
|
254
|
+
n.a.createElement(
|
255
|
+
'div',
|
256
|
+
{ className: 'markdown' },
|
257
|
+
n.a.createElement(
|
258
|
+
'h3',
|
259
|
+
{ id: '\u5185\u90e8\u5361\u7247' },
|
260
|
+
n.a.createElement(
|
261
|
+
r['AnchorLink'],
|
262
|
+
{
|
263
|
+
to: '#\u5185\u90e8\u5361\u7247',
|
264
|
+
'aria-hidden': 'true',
|
265
|
+
tabIndex: -1,
|
266
|
+
},
|
267
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
268
|
+
),
|
269
|
+
'\u5185\u90e8\u5361\u7247',
|
270
|
+
),
|
271
|
+
),
|
272
|
+
n.a.createElement(
|
273
|
+
c['default'],
|
274
|
+
m['default']['card-inside'].previewerProps,
|
275
|
+
n.a.createElement(b, null),
|
276
|
+
),
|
277
|
+
n.a.createElement(
|
278
|
+
'div',
|
279
|
+
{ className: 'markdown' },
|
280
|
+
n.a.createElement(
|
281
|
+
'h3',
|
282
|
+
{ id: '\u5e26\u9875\u7b7e\u7684\u5361\u7247' },
|
283
|
+
n.a.createElement(
|
284
|
+
r['AnchorLink'],
|
285
|
+
{
|
286
|
+
to: '#\u5e26\u9875\u7b7e\u7684\u5361\u7247',
|
287
|
+
'aria-hidden': 'true',
|
288
|
+
tabIndex: -1,
|
289
|
+
},
|
290
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
291
|
+
),
|
292
|
+
'\u5e26\u9875\u7b7e\u7684\u5361\u7247',
|
293
|
+
),
|
294
|
+
),
|
295
|
+
n.a.createElement(
|
296
|
+
c['default'],
|
297
|
+
m['default']['card-tab'].previewerProps,
|
298
|
+
n.a.createElement(h, null),
|
299
|
+
),
|
300
|
+
n.a.createElement(
|
301
|
+
'div',
|
302
|
+
{ className: 'markdown' },
|
303
|
+
n.a.createElement(
|
304
|
+
'h3',
|
305
|
+
{ id: '\u652f\u6301\u66f4\u591a\u5185\u5bb9\u914d\u7f6e' },
|
306
|
+
n.a.createElement(
|
307
|
+
r['AnchorLink'],
|
308
|
+
{
|
309
|
+
to: '#\u652f\u6301\u66f4\u591a\u5185\u5bb9\u914d\u7f6e',
|
310
|
+
'aria-hidden': 'true',
|
311
|
+
tabIndex: -1,
|
312
|
+
},
|
313
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
314
|
+
),
|
315
|
+
'\u652f\u6301\u66f4\u591a\u5185\u5bb9\u914d\u7f6e',
|
316
|
+
),
|
317
|
+
),
|
318
|
+
n.a.createElement(
|
319
|
+
c['default'],
|
320
|
+
m['default']['card-more'].previewerProps,
|
321
|
+
n.a.createElement(v, null),
|
322
|
+
),
|
323
|
+
n.a.createElement(
|
324
|
+
'div',
|
325
|
+
{ className: 'markdown' },
|
326
|
+
n.a.createElement(
|
327
|
+
'h2',
|
328
|
+
{ id: 'api' },
|
329
|
+
n.a.createElement(
|
330
|
+
r['AnchorLink'],
|
331
|
+
{ to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
|
332
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
333
|
+
),
|
334
|
+
'API',
|
335
|
+
),
|
336
|
+
n.a.createElement(d['a'], {
|
337
|
+
code: '<Card title="\u5361\u7247\u6807\u9898">\u5361\u7247\u5185\u5bb9</Card>',
|
338
|
+
lang: 'bash',
|
339
|
+
}),
|
340
|
+
n.a.createElement(
|
341
|
+
'h3',
|
342
|
+
{ id: 'card' },
|
343
|
+
n.a.createElement(
|
344
|
+
r['AnchorLink'],
|
345
|
+
{ to: '#card', 'aria-hidden': 'true', tabIndex: -1 },
|
346
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
347
|
+
),
|
348
|
+
'Card',
|
349
|
+
),
|
350
|
+
n.a.createElement(
|
351
|
+
'table',
|
352
|
+
null,
|
353
|
+
n.a.createElement(
|
354
|
+
'thead',
|
355
|
+
null,
|
356
|
+
n.a.createElement(
|
357
|
+
'tr',
|
358
|
+
null,
|
359
|
+
n.a.createElement('th', null, '\u53c2\u6570'),
|
360
|
+
n.a.createElement('th', null, '\u8bf4\u660e'),
|
361
|
+
n.a.createElement('th', null, '\u7c7b\u578b'),
|
362
|
+
n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
|
363
|
+
n.a.createElement('th', null, '\u7248\u672c'),
|
364
|
+
),
|
365
|
+
),
|
366
|
+
n.a.createElement(
|
367
|
+
'tbody',
|
368
|
+
null,
|
369
|
+
n.a.createElement(
|
370
|
+
'tr',
|
371
|
+
null,
|
372
|
+
n.a.createElement('td', null, 'actions'),
|
373
|
+
n.a.createElement(
|
374
|
+
'td',
|
375
|
+
null,
|
376
|
+
'\u5361\u7247\u64cd\u4f5c\u7ec4\uff0c\u4f4d\u7f6e\u5728\u5361\u7247\u5e95\u90e8',
|
377
|
+
),
|
378
|
+
n.a.createElement('td', null, 'Array<ReactNode>'),
|
379
|
+
n.a.createElement('td', null, '-'),
|
380
|
+
n.a.createElement('td', null),
|
381
|
+
),
|
382
|
+
n.a.createElement(
|
383
|
+
'tr',
|
384
|
+
null,
|
385
|
+
n.a.createElement('td', null, 'activeTabKey'),
|
386
|
+
n.a.createElement(
|
387
|
+
'td',
|
388
|
+
null,
|
389
|
+
'\u5f53\u524d\u6fc0\u6d3b\u9875\u7b7e\u7684 key',
|
390
|
+
),
|
391
|
+
n.a.createElement('td', null, 'string'),
|
392
|
+
n.a.createElement('td', null, '-'),
|
393
|
+
n.a.createElement('td', null),
|
394
|
+
),
|
395
|
+
n.a.createElement(
|
396
|
+
'tr',
|
397
|
+
null,
|
398
|
+
n.a.createElement('td', null, 'bodyStyle'),
|
399
|
+
n.a.createElement(
|
400
|
+
'td',
|
401
|
+
null,
|
402
|
+
'\u5185\u5bb9\u533a\u57df\u81ea\u5b9a\u4e49\u6837\u5f0f',
|
403
|
+
),
|
404
|
+
n.a.createElement('td', null, 'CSSProperties'),
|
405
|
+
n.a.createElement('td', null, '-'),
|
406
|
+
n.a.createElement('td', null),
|
407
|
+
),
|
408
|
+
n.a.createElement(
|
409
|
+
'tr',
|
410
|
+
null,
|
411
|
+
n.a.createElement('td', null, 'bordered'),
|
412
|
+
n.a.createElement(
|
413
|
+
'td',
|
414
|
+
null,
|
415
|
+
'\u662f\u5426\u6709\u8fb9\u6846',
|
416
|
+
),
|
417
|
+
n.a.createElement('td', null, 'boolean'),
|
418
|
+
n.a.createElement('td', null, 'true'),
|
419
|
+
n.a.createElement('td', null),
|
420
|
+
),
|
421
|
+
n.a.createElement(
|
422
|
+
'tr',
|
423
|
+
null,
|
424
|
+
n.a.createElement('td', null, 'cover'),
|
425
|
+
n.a.createElement('td', null, '\u5361\u7247\u5c01\u9762'),
|
426
|
+
n.a.createElement('td', null, 'ReactNode'),
|
427
|
+
n.a.createElement('td', null, '-'),
|
428
|
+
n.a.createElement('td', null),
|
429
|
+
),
|
430
|
+
n.a.createElement(
|
431
|
+
'tr',
|
432
|
+
null,
|
433
|
+
n.a.createElement('td', null, 'defaultActiveTabKey'),
|
434
|
+
n.a.createElement(
|
435
|
+
'td',
|
436
|
+
null,
|
437
|
+
'\u521d\u59cb\u5316\u9009\u4e2d\u9875\u7b7e\u7684 key\uff0c\u5982\u679c\u6ca1\u6709\u8bbe\u7f6e activeTabKey',
|
438
|
+
),
|
439
|
+
n.a.createElement('td', null, 'string'),
|
440
|
+
n.a.createElement(
|
441
|
+
'td',
|
442
|
+
null,
|
443
|
+
n.a.createElement(
|
444
|
+
'code',
|
445
|
+
null,
|
446
|
+
'\u7b2c\u4e00\u4e2a\u9875\u7b7e',
|
447
|
+
),
|
448
|
+
),
|
449
|
+
n.a.createElement('td', null),
|
450
|
+
),
|
451
|
+
n.a.createElement(
|
452
|
+
'tr',
|
453
|
+
null,
|
454
|
+
n.a.createElement('td', null, 'extra'),
|
455
|
+
n.a.createElement(
|
456
|
+
'td',
|
457
|
+
null,
|
458
|
+
'\u5361\u7247\u53f3\u4e0a\u89d2\u7684\u64cd\u4f5c\u533a\u57df',
|
459
|
+
),
|
460
|
+
n.a.createElement('td', null, 'ReactNode'),
|
461
|
+
n.a.createElement('td', null, '-'),
|
462
|
+
n.a.createElement('td', null),
|
463
|
+
),
|
464
|
+
n.a.createElement(
|
465
|
+
'tr',
|
466
|
+
null,
|
467
|
+
n.a.createElement('td', null, 'headStyle'),
|
468
|
+
n.a.createElement(
|
469
|
+
'td',
|
470
|
+
null,
|
471
|
+
'\u81ea\u5b9a\u4e49\u6807\u9898\u533a\u57df\u6837\u5f0f',
|
472
|
+
),
|
473
|
+
n.a.createElement('td', null, 'CSSProperties'),
|
474
|
+
n.a.createElement('td', null, '-'),
|
475
|
+
n.a.createElement('td', null),
|
476
|
+
),
|
477
|
+
n.a.createElement(
|
478
|
+
'tr',
|
479
|
+
null,
|
480
|
+
n.a.createElement('td', null, 'hoverable'),
|
481
|
+
n.a.createElement(
|
482
|
+
'td',
|
483
|
+
null,
|
484
|
+
'\u9f20\u6807\u79fb\u8fc7\u65f6\u53ef\u6d6e\u8d77',
|
485
|
+
),
|
486
|
+
n.a.createElement('td', null, 'boolean'),
|
487
|
+
n.a.createElement('td', null, 'false'),
|
488
|
+
n.a.createElement('td', null),
|
489
|
+
),
|
490
|
+
n.a.createElement(
|
491
|
+
'tr',
|
492
|
+
null,
|
493
|
+
n.a.createElement('td', null, 'loading'),
|
494
|
+
n.a.createElement(
|
495
|
+
'td',
|
496
|
+
null,
|
497
|
+
'\u5f53\u5361\u7247\u5185\u5bb9\u8fd8\u5728\u52a0\u8f7d\u4e2d\u65f6\uff0c\u53ef\u4ee5\u7528 loading \u5c55\u793a\u4e00\u4e2a\u5360\u4f4d',
|
498
|
+
),
|
499
|
+
n.a.createElement('td', null, 'boolean'),
|
500
|
+
n.a.createElement('td', null, 'false'),
|
501
|
+
n.a.createElement('td', null),
|
502
|
+
),
|
503
|
+
n.a.createElement(
|
504
|
+
'tr',
|
505
|
+
null,
|
506
|
+
n.a.createElement('td', null, 'size'),
|
507
|
+
n.a.createElement('td', null, 'card \u7684\u5c3a\u5bf8'),
|
508
|
+
n.a.createElement(
|
509
|
+
'td',
|
510
|
+
null,
|
511
|
+
n.a.createElement('code', null, 'default'),
|
512
|
+
' | ',
|
513
|
+
n.a.createElement('code', null, 'small'),
|
514
|
+
),
|
515
|
+
n.a.createElement(
|
516
|
+
'td',
|
517
|
+
null,
|
518
|
+
n.a.createElement('code', null, 'default'),
|
519
|
+
),
|
520
|
+
n.a.createElement('td', null),
|
521
|
+
),
|
522
|
+
n.a.createElement(
|
523
|
+
'tr',
|
524
|
+
null,
|
525
|
+
n.a.createElement('td', null, 'tabBarExtraContent'),
|
526
|
+
n.a.createElement(
|
527
|
+
'td',
|
528
|
+
null,
|
529
|
+
'tab bar \u4e0a\u989d\u5916\u7684\u5143\u7d20',
|
530
|
+
),
|
531
|
+
n.a.createElement('td', null, 'ReactNode'),
|
532
|
+
n.a.createElement('td', null, '-'),
|
533
|
+
n.a.createElement('td', null),
|
534
|
+
),
|
535
|
+
n.a.createElement(
|
536
|
+
'tr',
|
537
|
+
null,
|
538
|
+
n.a.createElement('td', null, 'tabList'),
|
539
|
+
n.a.createElement(
|
540
|
+
'td',
|
541
|
+
null,
|
542
|
+
'\u9875\u7b7e\u6807\u9898\u5217\u8868',
|
543
|
+
),
|
544
|
+
n.a.createElement(
|
545
|
+
'td',
|
546
|
+
null,
|
547
|
+
'Array<',
|
548
|
+
'{',
|
549
|
+
'key: string, tab: ReactNode',
|
550
|
+
'}',
|
551
|
+
'>',
|
552
|
+
),
|
553
|
+
n.a.createElement('td', null, '-'),
|
554
|
+
n.a.createElement('td', null),
|
555
|
+
),
|
556
|
+
n.a.createElement(
|
557
|
+
'tr',
|
558
|
+
null,
|
559
|
+
n.a.createElement('td', null, 'tabProps'),
|
560
|
+
n.a.createElement(
|
561
|
+
'td',
|
562
|
+
null,
|
563
|
+
n.a.createElement(
|
564
|
+
r['AnchorLink'],
|
565
|
+
{ to: '/components/tabs/#Tabs' },
|
566
|
+
'Tabs',
|
567
|
+
),
|
568
|
+
),
|
569
|
+
n.a.createElement('td', null, '-'),
|
570
|
+
n.a.createElement('td', null, '-'),
|
571
|
+
n.a.createElement('td', null),
|
572
|
+
),
|
573
|
+
n.a.createElement(
|
574
|
+
'tr',
|
575
|
+
null,
|
576
|
+
n.a.createElement('td', null, 'title'),
|
577
|
+
n.a.createElement('td', null, '\u5361\u7247\u6807\u9898'),
|
578
|
+
n.a.createElement('td', null, 'ReactNode'),
|
579
|
+
n.a.createElement('td', null, '-'),
|
580
|
+
n.a.createElement('td', null),
|
581
|
+
),
|
582
|
+
n.a.createElement(
|
583
|
+
'tr',
|
584
|
+
null,
|
585
|
+
n.a.createElement('td', null, 'type'),
|
586
|
+
n.a.createElement(
|
587
|
+
'td',
|
588
|
+
null,
|
589
|
+
'\u5361\u7247\u7c7b\u578b\uff0c\u53ef\u8bbe\u7f6e\u4e3a ',
|
590
|
+
n.a.createElement('code', null, 'inner'),
|
591
|
+
' \u6216 \u4e0d\u8bbe\u7f6e',
|
592
|
+
),
|
593
|
+
n.a.createElement('td', null, 'string'),
|
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, 'onTabChange'),
|
601
|
+
n.a.createElement(
|
602
|
+
'td',
|
603
|
+
null,
|
604
|
+
'\u9875\u7b7e\u5207\u6362\u7684\u56de\u8c03',
|
605
|
+
),
|
606
|
+
n.a.createElement('td', null, '(key) => void'),
|
607
|
+
n.a.createElement('td', null, '-'),
|
608
|
+
n.a.createElement('td', null),
|
609
|
+
),
|
610
|
+
),
|
611
|
+
),
|
612
|
+
n.a.createElement(
|
613
|
+
'h3',
|
614
|
+
{ id: 'cardgrid' },
|
615
|
+
n.a.createElement(
|
616
|
+
r['AnchorLink'],
|
617
|
+
{ to: '#cardgrid', 'aria-hidden': 'true', tabIndex: -1 },
|
618
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
619
|
+
),
|
620
|
+
'Card.Grid',
|
621
|
+
),
|
622
|
+
n.a.createElement(
|
623
|
+
'table',
|
624
|
+
null,
|
625
|
+
n.a.createElement(
|
626
|
+
'thead',
|
627
|
+
null,
|
628
|
+
n.a.createElement(
|
629
|
+
'tr',
|
630
|
+
null,
|
631
|
+
n.a.createElement('th', null, '\u53c2\u6570'),
|
632
|
+
n.a.createElement('th', null, '\u8bf4\u660e'),
|
633
|
+
n.a.createElement('th', null, '\u7c7b\u578b'),
|
634
|
+
n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
|
635
|
+
n.a.createElement('th', null, '\u7248\u672c'),
|
636
|
+
),
|
637
|
+
),
|
638
|
+
n.a.createElement(
|
639
|
+
'tbody',
|
640
|
+
null,
|
641
|
+
n.a.createElement(
|
642
|
+
'tr',
|
643
|
+
null,
|
644
|
+
n.a.createElement('td', null, 'className'),
|
645
|
+
n.a.createElement(
|
646
|
+
'td',
|
647
|
+
null,
|
648
|
+
'\u7f51\u683c\u5bb9\u5668\u7c7b\u540d',
|
649
|
+
),
|
650
|
+
n.a.createElement('td', null, 'string'),
|
651
|
+
n.a.createElement('td', null, '-'),
|
652
|
+
n.a.createElement('td', null),
|
653
|
+
),
|
654
|
+
n.a.createElement(
|
655
|
+
'tr',
|
656
|
+
null,
|
657
|
+
n.a.createElement('td', null, 'hoverable'),
|
658
|
+
n.a.createElement(
|
659
|
+
'td',
|
660
|
+
null,
|
661
|
+
'\u9f20\u6807\u79fb\u8fc7\u65f6\u53ef\u6d6e\u8d77',
|
662
|
+
),
|
663
|
+
n.a.createElement('td', null, 'boolean'),
|
664
|
+
n.a.createElement('td', null, 'true'),
|
665
|
+
n.a.createElement('td', null),
|
666
|
+
),
|
667
|
+
n.a.createElement(
|
668
|
+
'tr',
|
669
|
+
null,
|
670
|
+
n.a.createElement('td', null, 'style'),
|
671
|
+
n.a.createElement(
|
672
|
+
'td',
|
673
|
+
null,
|
674
|
+
'\u5b9a\u4e49\u7f51\u683c\u5bb9\u5668\u7c7b\u540d\u7684\u6837\u5f0f',
|
675
|
+
),
|
676
|
+
n.a.createElement('td', null, 'CSSProperties'),
|
677
|
+
n.a.createElement('td', null, '-'),
|
678
|
+
n.a.createElement('td', null),
|
679
|
+
),
|
680
|
+
),
|
681
|
+
),
|
682
|
+
n.a.createElement(
|
683
|
+
'h3',
|
684
|
+
{ id: 'cardmeta' },
|
685
|
+
n.a.createElement(
|
686
|
+
r['AnchorLink'],
|
687
|
+
{ to: '#cardmeta', 'aria-hidden': 'true', tabIndex: -1 },
|
688
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
689
|
+
),
|
690
|
+
'Card.Meta',
|
691
|
+
),
|
692
|
+
n.a.createElement(
|
693
|
+
'table',
|
694
|
+
null,
|
695
|
+
n.a.createElement(
|
696
|
+
'thead',
|
697
|
+
null,
|
698
|
+
n.a.createElement(
|
699
|
+
'tr',
|
700
|
+
null,
|
701
|
+
n.a.createElement('th', null, '\u53c2\u6570'),
|
702
|
+
n.a.createElement('th', null, '\u8bf4\u660e'),
|
703
|
+
n.a.createElement('th', null, '\u7c7b\u578b'),
|
704
|
+
n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
|
705
|
+
n.a.createElement('th', null, '\u7248\u672c'),
|
706
|
+
),
|
707
|
+
),
|
708
|
+
n.a.createElement(
|
709
|
+
'tbody',
|
710
|
+
null,
|
711
|
+
n.a.createElement(
|
712
|
+
'tr',
|
713
|
+
null,
|
714
|
+
n.a.createElement('td', null, 'avatar'),
|
715
|
+
n.a.createElement('td', null, '\u5934\u50cf/\u56fe\u6807'),
|
716
|
+
n.a.createElement('td', null, 'ReactNode'),
|
717
|
+
n.a.createElement('td', null, '-'),
|
718
|
+
n.a.createElement('td', null),
|
719
|
+
),
|
720
|
+
n.a.createElement(
|
721
|
+
'tr',
|
722
|
+
null,
|
723
|
+
n.a.createElement('td', null, 'className'),
|
724
|
+
n.a.createElement('td', null, '\u5bb9\u5668\u7c7b\u540d'),
|
725
|
+
n.a.createElement('td', null, 'string'),
|
726
|
+
n.a.createElement('td', null, '-'),
|
727
|
+
n.a.createElement('td', null),
|
728
|
+
),
|
729
|
+
n.a.createElement(
|
730
|
+
'tr',
|
731
|
+
null,
|
732
|
+
n.a.createElement('td', null, 'description'),
|
733
|
+
n.a.createElement('td', null, '\u63cf\u8ff0\u5185\u5bb9'),
|
734
|
+
n.a.createElement('td', null, 'ReactNode'),
|
735
|
+
n.a.createElement('td', null, '-'),
|
736
|
+
n.a.createElement('td', null),
|
737
|
+
),
|
738
|
+
n.a.createElement(
|
739
|
+
'tr',
|
740
|
+
null,
|
741
|
+
n.a.createElement('td', null, 'style'),
|
742
|
+
n.a.createElement(
|
743
|
+
'td',
|
744
|
+
null,
|
745
|
+
'\u5b9a\u4e49\u5bb9\u5668\u7c7b\u540d\u7684\u6837\u5f0f',
|
746
|
+
),
|
747
|
+
n.a.createElement('td', null, 'CSSProperties'),
|
748
|
+
n.a.createElement('td', null, '-'),
|
749
|
+
n.a.createElement('td', null),
|
750
|
+
),
|
751
|
+
n.a.createElement(
|
752
|
+
'tr',
|
753
|
+
null,
|
754
|
+
n.a.createElement('td', null, 'title'),
|
755
|
+
n.a.createElement('td', null, '\u6807\u9898\u5185\u5bb9'),
|
756
|
+
n.a.createElement('td', null, 'ReactNode'),
|
757
|
+
n.a.createElement('td', null, '-'),
|
758
|
+
n.a.createElement('td', null),
|
759
|
+
),
|
760
|
+
),
|
761
|
+
),
|
762
|
+
n.a.createElement('style', {
|
763
|
+
dangerouslySetInnerHTML: {
|
764
|
+
__html:
|
765
|
+
'\n .site-card-border-less-wrapper {\n padding: 30px;\n background: #ececec;\n }\n',
|
766
|
+
},
|
767
|
+
}),
|
768
|
+
),
|
769
|
+
),
|
770
|
+
)
|
771
|
+
);
|
772
|
+
},
|
773
|
+
MZF8: function (e, t, a) {
|
774
|
+
'use strict';
|
775
|
+
var l = a('ogwx');
|
776
|
+
a.d(t, 'a', function () {
|
777
|
+
return l['b'];
|
778
|
+
});
|
779
|
+
a('VCU9');
|
780
|
+
},
|
781
|
+
RZMt: function (e, t, a) {},
|
782
|
+
Zxc8: function (e, t, a) {
|
783
|
+
'use strict';
|
784
|
+
a.r(t);
|
785
|
+
var l = a('q1tI'),
|
786
|
+
n = a.n(l),
|
787
|
+
r = a('k3GJ'),
|
788
|
+
c = a('MZF8'),
|
789
|
+
d = a('dEAq'),
|
790
|
+
m = a('H1Ra');
|
791
|
+
a('RZMt');
|
792
|
+
function u(e, t) {
|
793
|
+
return f(e) || s(e, t) || i(e, t) || o();
|
794
|
+
}
|
795
|
+
function o() {
|
796
|
+
throw new TypeError(
|
797
|
+
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
|
798
|
+
);
|
799
|
+
}
|
800
|
+
function i(e, t) {
|
801
|
+
if (e) {
|
802
|
+
if ('string' === typeof e) return E(e, t);
|
803
|
+
var a = Object.prototype.toString.call(e).slice(8, -1);
|
804
|
+
return (
|
805
|
+
'Object' === a && e.constructor && (a = e.constructor.name),
|
806
|
+
'Map' === a || 'Set' === a
|
807
|
+
? Array.from(e)
|
808
|
+
: 'Arguments' === a ||
|
809
|
+
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
|
810
|
+
? E(e, t)
|
811
|
+
: void 0
|
812
|
+
);
|
813
|
+
}
|
814
|
+
}
|
815
|
+
function E(e, t) {
|
816
|
+
(null == t || t > e.length) && (t = e.length);
|
817
|
+
for (var a = 0, l = new Array(t); a < t; a++) l[a] = e[a];
|
818
|
+
return l;
|
819
|
+
}
|
820
|
+
function s(e, t) {
|
821
|
+
var a =
|
822
|
+
null == e
|
823
|
+
? null
|
824
|
+
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
|
825
|
+
e['@@iterator'];
|
826
|
+
if (null != a) {
|
827
|
+
var l,
|
828
|
+
n,
|
829
|
+
r = [],
|
830
|
+
c = !0,
|
831
|
+
d = !1;
|
832
|
+
try {
|
833
|
+
for (a = a.call(e); !(c = (l = a.next()).done); c = !0)
|
834
|
+
if ((r.push(l.value), t && r.length === t)) break;
|
835
|
+
} catch (m) {
|
836
|
+
(d = !0), (n = m);
|
837
|
+
} finally {
|
838
|
+
try {
|
839
|
+
c || null == a['return'] || a['return']();
|
840
|
+
} finally {
|
841
|
+
if (d) throw n;
|
842
|
+
}
|
843
|
+
}
|
844
|
+
return r;
|
845
|
+
}
|
846
|
+
}
|
847
|
+
function f(e) {
|
848
|
+
if (Array.isArray(e)) return e;
|
849
|
+
}
|
850
|
+
function p(e, t) {
|
851
|
+
var a,
|
852
|
+
l =
|
853
|
+
null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
|
854
|
+
return l || (l = t.tsx ? 'tsx' : 'jsx'), l;
|
855
|
+
}
|
856
|
+
var b = function (e) {
|
857
|
+
var t,
|
858
|
+
a,
|
859
|
+
o,
|
860
|
+
i = Object(l['useRef'])(),
|
861
|
+
E = Object(l['useContext'])(d['context']),
|
862
|
+
s = E.locale,
|
863
|
+
f = Object(d['useLocaleProps'])(s, e),
|
864
|
+
b = Object(d['useDemoUrl'])(f.identifier),
|
865
|
+
h = f.demoUrl || b,
|
866
|
+
v =
|
867
|
+
(null === c['a'] || void 0 === c['a']
|
868
|
+
? void 0
|
869
|
+
: c['a'].location.hash) === '#'.concat(f.identifier),
|
870
|
+
k = 1 === Object.keys(f.sources).length,
|
871
|
+
y = Object(d['useCodeSandbox'])(
|
872
|
+
(
|
873
|
+
null === (t = f.hideActions) || void 0 === t
|
874
|
+
? void 0
|
875
|
+
: t.includes('CSB')
|
876
|
+
)
|
877
|
+
? null
|
878
|
+
: f,
|
879
|
+
),
|
880
|
+
N = Object(d['useRiddle'])(
|
881
|
+
(
|
882
|
+
null === (a = f.hideActions) || void 0 === a
|
883
|
+
? void 0
|
884
|
+
: a.includes('RIDDLE')
|
885
|
+
)
|
886
|
+
? null
|
887
|
+
: f,
|
888
|
+
),
|
889
|
+
w = Object(d['useMotions'])(f.motions || [], i.current),
|
890
|
+
g = u(w, 2),
|
891
|
+
_ = g[0],
|
892
|
+
x = g[1],
|
893
|
+
A = Object(d['useCopy'])(),
|
894
|
+
C = u(A, 2),
|
895
|
+
S = C[0],
|
896
|
+
I = C[1],
|
897
|
+
L = Object(l['useState'])('_'),
|
898
|
+
j = u(L, 2),
|
899
|
+
O = j[0],
|
900
|
+
P = j[1],
|
901
|
+
R = Object(l['useState'])(p(O, f.sources[O])),
|
902
|
+
T = u(R, 2),
|
903
|
+
M = T[0],
|
904
|
+
U = T[1],
|
905
|
+
Z = Object(l['useState'])(Boolean(f.defaultShowCode)),
|
906
|
+
F = u(Z, 2),
|
907
|
+
J = F[0],
|
908
|
+
q = F[1],
|
909
|
+
B = Object(l['useState'])(Math.random()),
|
910
|
+
H = u(B, 2),
|
911
|
+
K = H[0],
|
912
|
+
$ = H[1],
|
913
|
+
D = f.sources[O][M] || f.sources[O].content,
|
914
|
+
G = Object(d['useTSPlaygroundUrl'])(s, D),
|
915
|
+
X = Object(l['useRef'])(),
|
916
|
+
z = Object(d['usePrefersColor'])(),
|
917
|
+
Q = u(z, 1),
|
918
|
+
V = Q[0];
|
919
|
+
function W(e) {
|
920
|
+
P(e), U(p(e, f.sources[e]));
|
921
|
+
}
|
922
|
+
return (
|
923
|
+
Object(l['useEffect'])(
|
924
|
+
function () {
|
925
|
+
$(Math.random());
|
926
|
+
},
|
927
|
+
[V],
|
928
|
+
),
|
929
|
+
n.a.createElement(
|
930
|
+
'div',
|
931
|
+
{
|
932
|
+
style: f.style,
|
933
|
+
className: [
|
934
|
+
f.className,
|
935
|
+
'__dumi-default-previewer',
|
936
|
+
v ? '__dumi-default-previewer-target' : '',
|
937
|
+
]
|
938
|
+
.filter(Boolean)
|
939
|
+
.join(' '),
|
940
|
+
id: f.identifier,
|
941
|
+
'data-debug': f.debug || void 0,
|
942
|
+
'data-iframe': f.iframe || void 0,
|
943
|
+
},
|
944
|
+
f.iframe &&
|
945
|
+
n.a.createElement('div', {
|
946
|
+
className: '__dumi-default-previewer-browser-nav',
|
947
|
+
}),
|
948
|
+
n.a.createElement(
|
949
|
+
'div',
|
950
|
+
{
|
951
|
+
ref: i,
|
952
|
+
className: '__dumi-default-previewer-demo',
|
953
|
+
style: {
|
954
|
+
transform: f.transform ? 'translate(0, 0)' : void 0,
|
955
|
+
padding:
|
956
|
+
f.compact || (f.iframe && !1 !== f.compact) ? '0' : void 0,
|
957
|
+
background: f.background,
|
958
|
+
},
|
959
|
+
},
|
960
|
+
f.iframe
|
961
|
+
? n.a.createElement('iframe', {
|
962
|
+
title: 'dumi-previewer',
|
963
|
+
style: {
|
964
|
+
height: String(f.iframe).replace(/(\d)$/, '$1px'),
|
965
|
+
},
|
966
|
+
key: K,
|
967
|
+
src: h,
|
968
|
+
ref: X,
|
969
|
+
})
|
970
|
+
: f.children,
|
971
|
+
),
|
972
|
+
n.a.createElement(
|
973
|
+
'div',
|
974
|
+
{
|
975
|
+
className: '__dumi-default-previewer-desc',
|
976
|
+
'data-title': f.title,
|
977
|
+
},
|
978
|
+
f.title &&
|
979
|
+
n.a.createElement(
|
980
|
+
d['AnchorLink'],
|
981
|
+
{ to: '#'.concat(f.identifier) },
|
982
|
+
f.title,
|
983
|
+
),
|
984
|
+
f.description &&
|
985
|
+
n.a.createElement('div', {
|
986
|
+
dangerouslySetInnerHTML: { __html: f.description },
|
987
|
+
}),
|
988
|
+
),
|
989
|
+
n.a.createElement(
|
990
|
+
'div',
|
991
|
+
{ className: '__dumi-default-previewer-actions' },
|
992
|
+
y &&
|
993
|
+
n.a.createElement('button', {
|
994
|
+
title: 'Open demo on CodeSandbox.io',
|
995
|
+
className: '__dumi-default-icon',
|
996
|
+
role: 'codesandbox',
|
997
|
+
onClick: y,
|
998
|
+
}),
|
999
|
+
N &&
|
1000
|
+
n.a.createElement('button', {
|
1001
|
+
title: 'Open demo on Riddle',
|
1002
|
+
className: '__dumi-default-icon',
|
1003
|
+
role: 'riddle',
|
1004
|
+
onClick: N,
|
1005
|
+
}),
|
1006
|
+
f.motions &&
|
1007
|
+
n.a.createElement('button', {
|
1008
|
+
title: 'Execute motions',
|
1009
|
+
className: '__dumi-default-icon',
|
1010
|
+
role: 'motions',
|
1011
|
+
disabled: x,
|
1012
|
+
onClick: function () {
|
1013
|
+
return _();
|
1014
|
+
},
|
1015
|
+
}),
|
1016
|
+
f.iframe &&
|
1017
|
+
n.a.createElement('button', {
|
1018
|
+
title: 'Reload demo iframe page',
|
1019
|
+
className: '__dumi-default-icon',
|
1020
|
+
role: 'refresh',
|
1021
|
+
onClick: function () {
|
1022
|
+
return $(Math.random());
|
1023
|
+
},
|
1024
|
+
}),
|
1025
|
+
!(null === (o = f.hideActions) || void 0 === o
|
1026
|
+
? void 0
|
1027
|
+
: o.includes('EXTERNAL')) &&
|
1028
|
+
n.a.createElement(
|
1029
|
+
d['Link'],
|
1030
|
+
{ target: '_blank', to: h },
|
1031
|
+
n.a.createElement('button', {
|
1032
|
+
title: 'Open demo in new tab',
|
1033
|
+
className: '__dumi-default-icon',
|
1034
|
+
role: 'open-demo',
|
1035
|
+
type: 'button',
|
1036
|
+
}),
|
1037
|
+
),
|
1038
|
+
n.a.createElement('span', null),
|
1039
|
+
n.a.createElement('button', {
|
1040
|
+
title: 'Copy source code',
|
1041
|
+
className: '__dumi-default-icon',
|
1042
|
+
role: 'copy',
|
1043
|
+
'data-status': I,
|
1044
|
+
onClick: function () {
|
1045
|
+
return S(D);
|
1046
|
+
},
|
1047
|
+
}),
|
1048
|
+
'tsx' === M &&
|
1049
|
+
J &&
|
1050
|
+
n.a.createElement(
|
1051
|
+
d['Link'],
|
1052
|
+
{ target: '_blank', to: G },
|
1053
|
+
n.a.createElement('button', {
|
1054
|
+
title: 'Get JSX via TypeScript Playground',
|
1055
|
+
className: '__dumi-default-icon',
|
1056
|
+
role: 'change-tsx',
|
1057
|
+
type: 'button',
|
1058
|
+
}),
|
1059
|
+
),
|
1060
|
+
n.a.createElement('button', {
|
1061
|
+
title: 'Toggle source code panel',
|
1062
|
+
className: '__dumi-default-icon'.concat(
|
1063
|
+
J ? ' __dumi-default-btn-expand' : '',
|
1064
|
+
),
|
1065
|
+
role: 'source',
|
1066
|
+
type: 'button',
|
1067
|
+
onClick: function () {
|
1068
|
+
return q(!J);
|
1069
|
+
},
|
1070
|
+
}),
|
1071
|
+
),
|
1072
|
+
J &&
|
1073
|
+
n.a.createElement(
|
1074
|
+
'div',
|
1075
|
+
{ className: '__dumi-default-previewer-source-wrapper' },
|
1076
|
+
!k &&
|
1077
|
+
n.a.createElement(
|
1078
|
+
r['b'],
|
1079
|
+
{
|
1080
|
+
className: '__dumi-default-previewer-source-tab',
|
1081
|
+
prefixCls: '__dumi-default-tabs',
|
1082
|
+
moreIcon: '\xb7\xb7\xb7',
|
1083
|
+
defaultActiveKey: O,
|
1084
|
+
onChange: W,
|
1085
|
+
},
|
1086
|
+
Object.keys(f.sources).map(function (e) {
|
1087
|
+
return n.a.createElement(r['a'], {
|
1088
|
+
tab:
|
1089
|
+
'_' === e ? 'index.'.concat(p(e, f.sources[e])) : e,
|
1090
|
+
key: e,
|
1091
|
+
});
|
1092
|
+
}),
|
1093
|
+
),
|
1094
|
+
n.a.createElement(
|
1095
|
+
'div',
|
1096
|
+
{ className: '__dumi-default-previewer-source' },
|
1097
|
+
n.a.createElement(m['a'], { code: D, lang: M, showCopy: !1 }),
|
1098
|
+
),
|
1099
|
+
),
|
1100
|
+
)
|
1101
|
+
);
|
1102
|
+
};
|
1103
|
+
t['default'] = b;
|
1104
|
+
},
|
1105
|
+
},
|
1106
|
+
]);
|