@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,1378 @@
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[20],{"+YBU":function(e,t,a){"use strict";a.r(t);var l=a("q1tI"),n=a.n(l),r=a("dEAq"),c=a("Zxc8"),m=a("H1Ra"),d=a("JjdP"),u=n.a.memo(d["default"]["cascader-basic"].component),o=n.a.memo(d["default"]["cascader-defaultvalue"].component),i=n.a.memo(d["default"]["cascader-custom"].component),E=n.a.memo(d["default"]["cascader-move"].component),s=n.a.memo(d["default"]["cascader-disabled"].component),p=n.a.memo(d["default"]["cascader-change"].component),h=n.a.memo(d["default"]["cascader-size"].component),f=n.a.memo(d["default"]["cascader-changed"].component),b=n.a.memo(d["default"]["cascader-search"].component),v=n.a.memo(d["default"]["cascader-active"].component),k=n.a.memo(d["default"]["cascader-customname"].component),w=n.a.memo(d["default"]["cascader-dropdown"].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:"cascader-\u7ea7\u8054\u9009\u62e9"},n.a.createElement(r["AnchorLink"],{to:"#cascader-\u7ea7\u8054\u9009\u62e9","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Cascader \u7ea7\u8054\u9009\u62e9"),n.a.createElement("p",null,"\u7ea7\u8054\u9009\u62e9\u6846\u3002"),n.a.createElement("h2",{id:"\u4f55\u65f6\u4f7f\u7528"},n.a.createElement(r["AnchorLink"],{to:"#\u4f55\u65f6\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4f55\u65f6\u4f7f\u7528"),n.a.createElement("ul",null,n.a.createElement("li",null,"\u9700\u8981\u4ece\u4e00\u7ec4\u76f8\u5173\u8054\u7684\u6570\u636e\u96c6\u5408\u8fdb\u884c\u9009\u62e9\uff0c\u4f8b\u5982\u7701\u5e02\u533a\uff0c\u516c\u53f8\u5c42\u7ea7\uff0c\u4e8b\u7269\u5206\u7c7b\u7b49\u3002"),n.a.createElement("li",null,"\u4ece\u4e00\u4e2a\u8f83\u5927\u7684\u6570\u636e\u96c6\u5408\u4e2d\u8fdb\u884c\u9009\u62e9\u65f6\uff0c\u7528\u591a\u7ea7\u5206\u7c7b\u8fdb\u884c\u5206\u9694\uff0c\u65b9\u4fbf\u9009\u62e9\u3002"),n.a.createElement("li",null,"\u6bd4\u8d77 Select \u7ec4\u4ef6\uff0c\u53ef\u4ee5\u5728\u540c\u4e00\u4e2a\u6d6e\u5c42\u4e2d\u5b8c\u6210\u9009\u62e9\uff0c\u6709\u8f83\u597d\u7684\u4f53\u9a8c\u3002")),n.a.createElement("h2",{id:"\u4ee3\u7801\u6f14\u793a"},n.a.createElement(r["AnchorLink"],{to:"#\u4ee3\u7801\u6f14\u793a","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4ee3\u7801\u6f14\u793a"),n.a.createElement("h3",{id:"\u57fa\u672c"},n.a.createElement(r["AnchorLink"],{to:"#\u57fa\u672c","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u57fa\u672c")),n.a.createElement(c["default"],d["default"]["cascader-basic"].previewerProps,n.a.createElement(u,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u9ed8\u8ba4\u503c"},n.a.createElement(r["AnchorLink"],{to:"#\u9ed8\u8ba4\u503c","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u9ed8\u8ba4\u503c")),n.a.createElement(c["default"],d["default"]["cascader-defaultvalue"].previewerProps,n.a.createElement(o,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u53ef\u4ee5\u81ea\u5b9a\u4e49\u663e\u793a"},n.a.createElement(r["AnchorLink"],{to:"#\u53ef\u4ee5\u81ea\u5b9a\u4e49\u663e\u793a","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u53ef\u4ee5\u81ea\u5b9a\u4e49\u663e\u793a")),n.a.createElement(c["default"],d["default"]["cascader-custom"].previewerProps,n.a.createElement(i,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u79fb\u5165\u5c55\u5f00"},n.a.createElement(r["AnchorLink"],{to:"#\u79fb\u5165\u5c55\u5f00","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u79fb\u5165\u5c55\u5f00")),n.a.createElement(c["default"],d["default"]["cascader-move"].previewerProps,n.a.createElement(E,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u7981\u7528\u9009\u9879"},n.a.createElement(r["AnchorLink"],{to:"#\u7981\u7528\u9009\u9879","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u7981\u7528\u9009\u9879")),n.a.createElement(c["default"],d["default"]["cascader-disabled"].previewerProps,n.a.createElement(s,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u9009\u62e9\u5373\u6539\u53d8"},n.a.createElement(r["AnchorLink"],{to:"#\u9009\u62e9\u5373\u6539\u53d8","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u9009\u62e9\u5373\u6539\u53d8")),n.a.createElement(c["default"],d["default"]["cascader-change"].previewerProps,n.a.createElement(p,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u5927\u5c0f"},n.a.createElement(r["AnchorLink"],{to:"#\u5927\u5c0f","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5927\u5c0f")),n.a.createElement(c["default"],d["default"]["cascader-size"].previewerProps,n.a.createElement(h,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u5df2\u9009\u9879"},n.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u5df2\u9009\u9879","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u5df2\u9009\u9879")),n.a.createElement(c["default"],d["default"]["cascader-changed"].previewerProps,n.a.createElement(f,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u641c\u7d22"},n.a.createElement(r["AnchorLink"],{to:"#\u641c\u7d22","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u641c\u7d22")),n.a.createElement(c["default"],d["default"]["cascader-search"].previewerProps,n.a.createElement(b,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u52a8\u6001\u52a0\u8f7d\u9009\u9879"},n.a.createElement(r["AnchorLink"],{to:"#\u52a8\u6001\u52a0\u8f7d\u9009\u9879","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u52a8\u6001\u52a0\u8f7d\u9009\u9879")),n.a.createElement(c["default"],d["default"]["cascader-active"].previewerProps,n.a.createElement(v,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u5b57\u6bb5\u540d"},n.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u5b57\u6bb5\u540d","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u5b57\u6bb5\u540d")),n.a.createElement(c["default"],d["default"]["cascader-customname"].previewerProps,n.a.createElement(k,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h2",{id:"\u6269\u5c55\u83dc\u5355"},n.a.createElement(r["AnchorLink"],{to:"#\u6269\u5c55\u83dc\u5355","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u6269\u5c55\u83dc\u5355")),n.a.createElement(c["default"],d["default"]["cascader-dropdown"].previewerProps,n.a.createElement(w,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h2",{id:"api"},n.a.createElement(r["AnchorLink"],{to:"#api","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"API"),n.a.createElement("table",null,n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,"\u53c2\u6570"),n.a.createElement("th",null,"\u8bf4\u660e"),n.a.createElement("th",null,"\u7c7b\u578b"),n.a.createElement("th",null,"\u9ed8\u8ba4\u503c"),n.a.createElement("th",null,"\u7248\u672c"))),n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",null,"allowClear"),n.a.createElement("td",null,"\u662f\u5426\u652f\u6301\u6e05\u9664"),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,"autoFocus"),n.a.createElement("td",null,"\u81ea\u52a8\u83b7\u53d6\u7126\u70b9"),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,"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,"changeOnSelect"),n.a.createElement("td",null,"\u5f53\u6b64\u9879\u4e3a true \u65f6\uff0c\u70b9\u9009\u6bcf\u7ea7\u83dc\u5355\u9009\u9879\u503c\u90fd\u4f1a\u53d1\u751f\u53d8\u5316\uff0c\u5177\u4f53\u89c1\u4e0a\u9762\u7684\u6f14\u793a"),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,"className"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\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,"defaultValue"),n.a.createElement("td",null,"\u9ed8\u8ba4\u7684\u9009\u4e2d\u9879"),n.a.createElement("td",null,"string[] | number[]"),n.a.createElement("td",null,"[]"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"disabled"),n.a.createElement("td",null,"\u7981\u7528"),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,"displayRender"),n.a.createElement("td",null,"\u9009\u62e9\u540e\u5c55\u793a\u7684\u6e32\u67d3\u51fd\u6570"),n.a.createElement("td",null,"(label, selectedOptions) => ReactNode"),n.a.createElement("td",null,"label => label.join(",n.a.createElement("code",null,"/"),")"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"dropdownRender"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u4e0b\u62c9\u6846\u5185\u5bb9"),n.a.createElement("td",null,"(menus: ReactNode) => ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null,"4.4.0")),n.a.createElement("tr",null,n.a.createElement("td",null,"expandIcon"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u6b21\u7ea7\u83dc\u5355\u5c55\u5f00\u56fe\u6807"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null,"4.4.0")),n.a.createElement("tr",null,n.a.createElement("td",null,"expandTrigger"),n.a.createElement("td",null,"\u6b21\u7ea7\u83dc\u5355\u7684\u5c55\u5f00\u65b9\u5f0f\uff0c\u53ef\u9009 'click' \u548c 'hover'"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,"click")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"fieldNames"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49 options \u4e2d label name children \u7684\u5b57\u6bb5"),n.a.createElement("td",null,"object"),n.a.createElement("td",null,"{"," label: ",n.a.createElement("code",null,"label"),", value: ",n.a.createElement("code",null,"value"),", children: ",n.a.createElement("code",null,"children")," ","}"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"getPopupContainer"),n.a.createElement("td",null,"\u83dc\u5355\u6e32\u67d3\u7236\u8282\u70b9\u3002\u9ed8\u8ba4\u6e32\u67d3\u5230 body \u4e0a\uff0c\u5982\u679c\u4f60\u9047\u5230\u83dc\u5355\u6eda\u52a8\u5b9a\u4f4d\u95ee\u9898\uff0c\u8bd5\u8bd5\u4fee\u6539\u4e3a\u6eda\u52a8\u7684\u533a\u57df\uff0c\u5e76\u76f8\u5bf9\u5176\u5b9a\u4f4d\u3002",n.a.createElement(r["Link"],{to:"https://codepen.io/afc163/pen/zEjNOy?editors=0010"},"\u793a\u4f8b")),n.a.createElement("td",null,"function(triggerNode)"),n.a.createElement("td",null,"() => document.body"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"loadData"),n.a.createElement("td",null,"\u7528\u4e8e\u52a8\u6001\u52a0\u8f7d\u9009\u9879\uff0c\u65e0\u6cd5\u4e0e ",n.a.createElement("code",null,"showSearch")," \u4e00\u8d77\u4f7f\u7528"),n.a.createElement("td",null,"(selectedOptions) => void"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"notFoundContent"),n.a.createElement("td",null,"\u5f53\u4e0b\u62c9\u5217\u8868\u4e3a\u7a7a\u65f6\u663e\u793a\u7684\u5185\u5bb9"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,"Not Found")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"options"),n.a.createElement("td",null,"\u53ef\u9009\u9879\u6570\u636e\u6e90"),n.a.createElement("td",null,n.a.createElement(r["AnchorLink"],{to:"#Option"},"Option"),"[]"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"placeholder"),n.a.createElement("td",null,"\u8f93\u5165\u6846\u5360\u4f4d\u6587\u672c"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,"\u8bf7\u9009\u62e9")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"popupClassName"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u6d6e\u5c42\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,"popupPlacement"),n.a.createElement("td",null,"\u6d6e\u5c42\u9884\u8bbe\u4f4d\u7f6e\uff1a",n.a.createElement("code",null,"bottomLeft")," ",n.a.createElement("code",null,"bottomRight")," ",n.a.createElement("code",null,"topLeft")," ",n.a.createElement("code",null,"topRight")),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,"bottomLeft")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"popupVisible"),n.a.createElement("td",null,"\u63a7\u5236\u6d6e\u5c42\u663e\u9690"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"showSearch"),n.a.createElement("td",null,"\u5728\u9009\u62e9\u6846\u4e2d\u663e\u793a\u641c\u7d22\u6846"),n.a.createElement("td",null,"boolean | ",n.a.createElement(r["AnchorLink"],{to:"#showSearch"},"Object")),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,"\u8f93\u5165\u6846\u5927\u5c0f"),n.a.createElement("td",null,n.a.createElement("code",null,"large")," | ",n.a.createElement("code",null,"middle")," | ",n.a.createElement("code",null,"small")),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,"\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,"suffixIcon"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u7684\u9009\u62e9\u6846\u540e\u7f00\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,"value"),n.a.createElement("td",null,"\u6307\u5b9a\u9009\u4e2d\u9879"),n.a.createElement("td",null,"string[] | number[]"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onChange"),n.a.createElement("td",null,"\u9009\u62e9\u5b8c\u6210\u540e\u7684\u56de\u8c03"),n.a.createElement("td",null,"(value, selectedOptions) => void"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onPopupVisibleChange"),n.a.createElement("td",null,"\u663e\u793a/\u9690\u85cf\u6d6e\u5c42\u7684\u56de\u8c03"),n.a.createElement("td",null,"(value) => void"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)))),n.a.createElement("h3",{id:"showsearch"},n.a.createElement(r["AnchorLink"],{to:"#showsearch","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"showSearch"),n.a.createElement("p",null,n.a.createElement("code",null,"showSearch")," \u4e3a\u5bf9\u8c61\u65f6\uff0c\u5176\u4e2d\u7684\u5b57\u6bb5\uff1a"),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,"filter"),n.a.createElement("td",null,"\u63a5\u6536 ",n.a.createElement("code",null,"inputValue")," ",n.a.createElement("code",null,"path")," \u4e24\u4e2a\u53c2\u6570\uff0c\u5f53 ",n.a.createElement("code",null,"path")," \u7b26\u5408\u7b5b\u9009\u6761\u4ef6\u65f6\uff0c\u5e94\u8fd4\u56de true\uff0c\u53cd\u4e4b\u5219\u8fd4\u56de false"),n.a.createElement("td",null,"function(inputValue, path): boolean"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"limit"),n.a.createElement("td",null,"\u641c\u7d22\u7ed3\u679c\u5c55\u793a\u6570\u91cf"),n.a.createElement("td",null,"number | false"),n.a.createElement("td",null,"50"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"matchInputWidth"),n.a.createElement("td",null,"\u641c\u7d22\u7ed3\u679c\u5217\u8868\u662f\u5426\u4e0e\u8f93\u5165\u6846\u540c\u5bbd\uff08",n.a.createElement(r["Link"],{to:"https://github.com/ant-design/ant-design/issues/25779"},"\u6548\u679c"),"\uff09"),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,"render"),n.a.createElement("td",null,"\u7528\u4e8e\u6e32\u67d3 filter \u540e\u7684\u9009\u9879"),n.a.createElement("td",null,"function(inputValue, path): ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"sort"),n.a.createElement("td",null,"\u7528\u4e8e\u6392\u5e8f filter \u540e\u7684\u9009\u9879"),n.a.createElement("td",null,"function(a, b, inputValue)"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)))),n.a.createElement("h3",{id:"option"},n.a.createElement(r["AnchorLink"],{to:"#option","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Option"),n.a.createElement(m["a"],{code:"interface Option {\n value: string | number;\n label?: React.ReactNode;\n disabled?: boolean;\n children?: Option[];\n}",lang:"typescript"}),n.a.createElement("h2",{id:"\u65b9\u6cd5"},n.a.createElement(r["AnchorLink"],{to:"#\u65b9\u6cd5","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u65b9\u6cd5"),n.a.createElement("table",null,n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,"\u540d\u79f0"),n.a.createElement("th",null,"\u63cf\u8ff0"),n.a.createElement("th",null,"\u7248\u672c"))),n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",null,"blur()"),n.a.createElement("td",null,"\u79fb\u9664\u7126\u70b9"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"focus()"),n.a.createElement("td",null,"\u83b7\u53d6\u7126\u70b9"),n.a.createElement("td",null)))),n.a.createElement("blockquote",null,n.a.createElement("p",null,"\u6ce8\u610f\uff0c\u5982\u679c\u9700\u8981\u83b7\u5f97\u4e2d\u56fd\u7701\u5e02\u533a\u6570\u636e\uff0c\u53ef\u4ee5\u53c2\u8003 ",n.a.createElement(r["Link"],{to:"https://gist.github.com/afc163/7582f35654fd03d5be7009444345ea17"},"china-division"),"\u3002"))))))},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"),m=a("dEAq"),d=a("H1Ra");a("RZMt");function u(e,t){return p(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,m=!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(d){m=!0,n=d}finally{try{c||null==a["return"]||a["return"]()}finally{if(m)throw n}}return r}}function p(e){if(Array.isArray(e))return e}function h(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 f=function(e){var t,a,o,i=Object(l["useRef"])(),E=Object(l["useContext"])(m["context"]),s=E.locale,p=Object(m["useLocaleProps"])(s,e),f=Object(m["useDemoUrl"])(p.identifier),b=p.demoUrl||f,v=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(p.identifier),k=1===Object.keys(p.sources).length,w=Object(m["useCodeSandbox"])((null===(t=p.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:p),N=Object(m["useRiddle"])((null===(a=p.hideActions)||void 0===a?void 0:a.includes("RIDDLE"))?null:p),g=Object(m["useMotions"])(p.motions||[],i.current),y=u(g,2),_=y[0],x=y[1],A=Object(m["useCopy"])(),L=u(A,2),O=L[0],I=L[1],j=Object(l["useState"])("_"),C=u(j,2),S=C[0],R=C[1],P=Object(l["useState"])(h(S,p.sources[S])),M=u(P,2),T=M[0],V=M[1],F=Object(l["useState"])(Boolean(p.defaultShowCode)),U=u(F,2),Z=U[0],q=U[1],J=Object(l["useState"])(Math.random()),z=u(J,2),B=z[0],D=z[1],$=p.sources[S][T]||p.sources[S].content,H=Object(m["useTSPlaygroundUrl"])(s,$),G=Object(l["useRef"])(),X=Object(m["usePrefersColor"])(),K=u(X,1),W=K[0];function Y(e){R(e),V(h(e,p.sources[e]))}return Object(l["useEffect"])((function(){D(Math.random())}),[W]),n.a.createElement("div",{style:p.style,className:[p.className,"__dumi-default-previewer",v?"__dumi-default-previewer-target":""].filter(Boolean).join(" "),id:p.identifier,"data-debug":p.debug||void 0,"data-iframe":p.iframe||void 0},p.iframe&&n.a.createElement("div",{className:"__dumi-default-previewer-browser-nav"}),n.a.createElement("div",{ref:i,className:"__dumi-default-previewer-demo",style:{transform:p.transform?"translate(0, 0)":void 0,padding:p.compact||p.iframe&&!1!==p.compact?"0":void 0,background:p.background}},p.iframe?n.a.createElement("iframe",{title:"dumi-previewer",style:{height:String(p.iframe).replace(/(\d)$/,"$1px")},key:B,src:b,ref:G}):p.children),n.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":p.title},p.title&&n.a.createElement(m["AnchorLink"],{to:"#".concat(p.identifier)},p.title),p.description&&n.a.createElement("div",{dangerouslySetInnerHTML:{__html:p.description}})),n.a.createElement("div",{className:"__dumi-default-previewer-actions"},w&&n.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:w}),N&&n.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:N}),p.motions&&n.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:x,onClick:function(){return _()}}),p.iframe&&n.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return D(Math.random())}}),!(null===(o=p.hideActions)||void 0===o?void 0:o.includes("EXTERNAL"))&&n.a.createElement(m["Link"],{target:"_blank",to:b},n.a.createElement("button",{title:"Open demo in new tab",className:"__dumi-default-icon",role:"open-demo",type:"button"})),n.a.createElement("span",null),n.a.createElement("button",{title:"Copy source code",className:"__dumi-default-icon",role:"copy","data-status":I,onClick:function(){return O($)}}),"tsx"===T&&Z&&n.a.createElement(m["Link"],{target:"_blank",to:H},n.a.createElement("button",{title:"Get JSX via TypeScript Playground",className:"__dumi-default-icon",role:"change-tsx",type:"button"})),n.a.createElement("button",{title:"Toggle source code panel",className:"__dumi-default-icon".concat(Z?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:function(){return q(!Z)}})),Z&&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:S,onChange:Y},Object.keys(p.sources).map((function(e){return n.a.createElement(r["a"],{tab:"_"===e?"index.".concat(h(e,p.sources[e])):e,key:e})}))),n.a.createElement("div",{className:"__dumi-default-previewer-source"},n.a.createElement(d["a"],{code:$,lang:T,showCopy:!1}))))};t["default"]=f}}]);
|
1
|
+
(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
|
2
|
+
[20],
|
3
|
+
{
|
4
|
+
'+YBU': 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
|
+
m = a('H1Ra'),
|
12
|
+
d = a('JjdP'),
|
13
|
+
u = n.a.memo(d['default']['cascader-basic'].component),
|
14
|
+
o = n.a.memo(d['default']['cascader-defaultvalue'].component),
|
15
|
+
i = n.a.memo(d['default']['cascader-custom'].component),
|
16
|
+
E = n.a.memo(d['default']['cascader-move'].component),
|
17
|
+
s = n.a.memo(d['default']['cascader-disabled'].component),
|
18
|
+
p = n.a.memo(d['default']['cascader-change'].component),
|
19
|
+
h = n.a.memo(d['default']['cascader-size'].component),
|
20
|
+
f = n.a.memo(d['default']['cascader-changed'].component),
|
21
|
+
b = n.a.memo(d['default']['cascader-search'].component),
|
22
|
+
v = n.a.memo(d['default']['cascader-active'].component),
|
23
|
+
k = n.a.memo(d['default']['cascader-customname'].component),
|
24
|
+
w = n.a.memo(d['default']['cascader-dropdown'].component);
|
25
|
+
t['default'] = (e) => (
|
26
|
+
n.a.useEffect(() => {
|
27
|
+
var t;
|
28
|
+
null !== e &&
|
29
|
+
void 0 !== e &&
|
30
|
+
null !== (t = e.location) &&
|
31
|
+
void 0 !== t &&
|
32
|
+
t.hash &&
|
33
|
+
r['AnchorLink'].scrollToAnchor(
|
34
|
+
decodeURIComponent(e.location.hash.slice(1)),
|
35
|
+
);
|
36
|
+
}, []),
|
37
|
+
n.a.createElement(
|
38
|
+
n.a.Fragment,
|
39
|
+
null,
|
40
|
+
n.a.createElement(
|
41
|
+
n.a.Fragment,
|
42
|
+
null,
|
43
|
+
n.a.createElement(
|
44
|
+
'div',
|
45
|
+
{ className: 'markdown' },
|
46
|
+
n.a.createElement(
|
47
|
+
'h1',
|
48
|
+
{ id: 'cascader-\u7ea7\u8054\u9009\u62e9' },
|
49
|
+
n.a.createElement(
|
50
|
+
r['AnchorLink'],
|
51
|
+
{
|
52
|
+
to: '#cascader-\u7ea7\u8054\u9009\u62e9',
|
53
|
+
'aria-hidden': 'true',
|
54
|
+
tabIndex: -1,
|
55
|
+
},
|
56
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
57
|
+
),
|
58
|
+
'Cascader \u7ea7\u8054\u9009\u62e9',
|
59
|
+
),
|
60
|
+
n.a.createElement(
|
61
|
+
'p',
|
62
|
+
null,
|
63
|
+
'\u7ea7\u8054\u9009\u62e9\u6846\u3002',
|
64
|
+
),
|
65
|
+
n.a.createElement(
|
66
|
+
'h2',
|
67
|
+
{ id: '\u4f55\u65f6\u4f7f\u7528' },
|
68
|
+
n.a.createElement(
|
69
|
+
r['AnchorLink'],
|
70
|
+
{
|
71
|
+
to: '#\u4f55\u65f6\u4f7f\u7528',
|
72
|
+
'aria-hidden': 'true',
|
73
|
+
tabIndex: -1,
|
74
|
+
},
|
75
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
76
|
+
),
|
77
|
+
'\u4f55\u65f6\u4f7f\u7528',
|
78
|
+
),
|
79
|
+
n.a.createElement(
|
80
|
+
'ul',
|
81
|
+
null,
|
82
|
+
n.a.createElement(
|
83
|
+
'li',
|
84
|
+
null,
|
85
|
+
'\u9700\u8981\u4ece\u4e00\u7ec4\u76f8\u5173\u8054\u7684\u6570\u636e\u96c6\u5408\u8fdb\u884c\u9009\u62e9\uff0c\u4f8b\u5982\u7701\u5e02\u533a\uff0c\u516c\u53f8\u5c42\u7ea7\uff0c\u4e8b\u7269\u5206\u7c7b\u7b49\u3002',
|
86
|
+
),
|
87
|
+
n.a.createElement(
|
88
|
+
'li',
|
89
|
+
null,
|
90
|
+
'\u4ece\u4e00\u4e2a\u8f83\u5927\u7684\u6570\u636e\u96c6\u5408\u4e2d\u8fdb\u884c\u9009\u62e9\u65f6\uff0c\u7528\u591a\u7ea7\u5206\u7c7b\u8fdb\u884c\u5206\u9694\uff0c\u65b9\u4fbf\u9009\u62e9\u3002',
|
91
|
+
),
|
92
|
+
n.a.createElement(
|
93
|
+
'li',
|
94
|
+
null,
|
95
|
+
'\u6bd4\u8d77 Select \u7ec4\u4ef6\uff0c\u53ef\u4ee5\u5728\u540c\u4e00\u4e2a\u6d6e\u5c42\u4e2d\u5b8c\u6210\u9009\u62e9\uff0c\u6709\u8f83\u597d\u7684\u4f53\u9a8c\u3002',
|
96
|
+
),
|
97
|
+
),
|
98
|
+
n.a.createElement(
|
99
|
+
'h2',
|
100
|
+
{ id: '\u4ee3\u7801\u6f14\u793a' },
|
101
|
+
n.a.createElement(
|
102
|
+
r['AnchorLink'],
|
103
|
+
{
|
104
|
+
to: '#\u4ee3\u7801\u6f14\u793a',
|
105
|
+
'aria-hidden': 'true',
|
106
|
+
tabIndex: -1,
|
107
|
+
},
|
108
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
109
|
+
),
|
110
|
+
'\u4ee3\u7801\u6f14\u793a',
|
111
|
+
),
|
112
|
+
n.a.createElement(
|
113
|
+
'h3',
|
114
|
+
{ id: '\u57fa\u672c' },
|
115
|
+
n.a.createElement(
|
116
|
+
r['AnchorLink'],
|
117
|
+
{ to: '#\u57fa\u672c', 'aria-hidden': 'true', tabIndex: -1 },
|
118
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
119
|
+
),
|
120
|
+
'\u57fa\u672c',
|
121
|
+
),
|
122
|
+
),
|
123
|
+
n.a.createElement(
|
124
|
+
c['default'],
|
125
|
+
d['default']['cascader-basic'].previewerProps,
|
126
|
+
n.a.createElement(u, null),
|
127
|
+
),
|
128
|
+
n.a.createElement(
|
129
|
+
'div',
|
130
|
+
{ className: 'markdown' },
|
131
|
+
n.a.createElement(
|
132
|
+
'h3',
|
133
|
+
{ id: '\u9ed8\u8ba4\u503c' },
|
134
|
+
n.a.createElement(
|
135
|
+
r['AnchorLink'],
|
136
|
+
{
|
137
|
+
to: '#\u9ed8\u8ba4\u503c',
|
138
|
+
'aria-hidden': 'true',
|
139
|
+
tabIndex: -1,
|
140
|
+
},
|
141
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
142
|
+
),
|
143
|
+
'\u9ed8\u8ba4\u503c',
|
144
|
+
),
|
145
|
+
),
|
146
|
+
n.a.createElement(
|
147
|
+
c['default'],
|
148
|
+
d['default']['cascader-defaultvalue'].previewerProps,
|
149
|
+
n.a.createElement(o, null),
|
150
|
+
),
|
151
|
+
n.a.createElement(
|
152
|
+
'div',
|
153
|
+
{ className: 'markdown' },
|
154
|
+
n.a.createElement(
|
155
|
+
'h3',
|
156
|
+
{ id: '\u53ef\u4ee5\u81ea\u5b9a\u4e49\u663e\u793a' },
|
157
|
+
n.a.createElement(
|
158
|
+
r['AnchorLink'],
|
159
|
+
{
|
160
|
+
to: '#\u53ef\u4ee5\u81ea\u5b9a\u4e49\u663e\u793a',
|
161
|
+
'aria-hidden': 'true',
|
162
|
+
tabIndex: -1,
|
163
|
+
},
|
164
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
165
|
+
),
|
166
|
+
'\u53ef\u4ee5\u81ea\u5b9a\u4e49\u663e\u793a',
|
167
|
+
),
|
168
|
+
),
|
169
|
+
n.a.createElement(
|
170
|
+
c['default'],
|
171
|
+
d['default']['cascader-custom'].previewerProps,
|
172
|
+
n.a.createElement(i, null),
|
173
|
+
),
|
174
|
+
n.a.createElement(
|
175
|
+
'div',
|
176
|
+
{ className: 'markdown' },
|
177
|
+
n.a.createElement(
|
178
|
+
'h3',
|
179
|
+
{ id: '\u79fb\u5165\u5c55\u5f00' },
|
180
|
+
n.a.createElement(
|
181
|
+
r['AnchorLink'],
|
182
|
+
{
|
183
|
+
to: '#\u79fb\u5165\u5c55\u5f00',
|
184
|
+
'aria-hidden': 'true',
|
185
|
+
tabIndex: -1,
|
186
|
+
},
|
187
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
188
|
+
),
|
189
|
+
'\u79fb\u5165\u5c55\u5f00',
|
190
|
+
),
|
191
|
+
),
|
192
|
+
n.a.createElement(
|
193
|
+
c['default'],
|
194
|
+
d['default']['cascader-move'].previewerProps,
|
195
|
+
n.a.createElement(E, null),
|
196
|
+
),
|
197
|
+
n.a.createElement(
|
198
|
+
'div',
|
199
|
+
{ className: 'markdown' },
|
200
|
+
n.a.createElement(
|
201
|
+
'h3',
|
202
|
+
{ id: '\u7981\u7528\u9009\u9879' },
|
203
|
+
n.a.createElement(
|
204
|
+
r['AnchorLink'],
|
205
|
+
{
|
206
|
+
to: '#\u7981\u7528\u9009\u9879',
|
207
|
+
'aria-hidden': 'true',
|
208
|
+
tabIndex: -1,
|
209
|
+
},
|
210
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
211
|
+
),
|
212
|
+
'\u7981\u7528\u9009\u9879',
|
213
|
+
),
|
214
|
+
),
|
215
|
+
n.a.createElement(
|
216
|
+
c['default'],
|
217
|
+
d['default']['cascader-disabled'].previewerProps,
|
218
|
+
n.a.createElement(s, null),
|
219
|
+
),
|
220
|
+
n.a.createElement(
|
221
|
+
'div',
|
222
|
+
{ className: 'markdown' },
|
223
|
+
n.a.createElement(
|
224
|
+
'h3',
|
225
|
+
{ id: '\u9009\u62e9\u5373\u6539\u53d8' },
|
226
|
+
n.a.createElement(
|
227
|
+
r['AnchorLink'],
|
228
|
+
{
|
229
|
+
to: '#\u9009\u62e9\u5373\u6539\u53d8',
|
230
|
+
'aria-hidden': 'true',
|
231
|
+
tabIndex: -1,
|
232
|
+
},
|
233
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
234
|
+
),
|
235
|
+
'\u9009\u62e9\u5373\u6539\u53d8',
|
236
|
+
),
|
237
|
+
),
|
238
|
+
n.a.createElement(
|
239
|
+
c['default'],
|
240
|
+
d['default']['cascader-change'].previewerProps,
|
241
|
+
n.a.createElement(p, null),
|
242
|
+
),
|
243
|
+
n.a.createElement(
|
244
|
+
'div',
|
245
|
+
{ className: 'markdown' },
|
246
|
+
n.a.createElement(
|
247
|
+
'h3',
|
248
|
+
{ id: '\u5927\u5c0f' },
|
249
|
+
n.a.createElement(
|
250
|
+
r['AnchorLink'],
|
251
|
+
{ to: '#\u5927\u5c0f', 'aria-hidden': 'true', tabIndex: -1 },
|
252
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
253
|
+
),
|
254
|
+
'\u5927\u5c0f',
|
255
|
+
),
|
256
|
+
),
|
257
|
+
n.a.createElement(
|
258
|
+
c['default'],
|
259
|
+
d['default']['cascader-size'].previewerProps,
|
260
|
+
n.a.createElement(h, null),
|
261
|
+
),
|
262
|
+
n.a.createElement(
|
263
|
+
'div',
|
264
|
+
{ className: 'markdown' },
|
265
|
+
n.a.createElement(
|
266
|
+
'h3',
|
267
|
+
{ id: '\u81ea\u5b9a\u4e49\u5df2\u9009\u9879' },
|
268
|
+
n.a.createElement(
|
269
|
+
r['AnchorLink'],
|
270
|
+
{
|
271
|
+
to: '#\u81ea\u5b9a\u4e49\u5df2\u9009\u9879',
|
272
|
+
'aria-hidden': 'true',
|
273
|
+
tabIndex: -1,
|
274
|
+
},
|
275
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
276
|
+
),
|
277
|
+
'\u81ea\u5b9a\u4e49\u5df2\u9009\u9879',
|
278
|
+
),
|
279
|
+
),
|
280
|
+
n.a.createElement(
|
281
|
+
c['default'],
|
282
|
+
d['default']['cascader-changed'].previewerProps,
|
283
|
+
n.a.createElement(f, null),
|
284
|
+
),
|
285
|
+
n.a.createElement(
|
286
|
+
'div',
|
287
|
+
{ className: 'markdown' },
|
288
|
+
n.a.createElement(
|
289
|
+
'h3',
|
290
|
+
{ id: '\u641c\u7d22' },
|
291
|
+
n.a.createElement(
|
292
|
+
r['AnchorLink'],
|
293
|
+
{ to: '#\u641c\u7d22', 'aria-hidden': 'true', tabIndex: -1 },
|
294
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
295
|
+
),
|
296
|
+
'\u641c\u7d22',
|
297
|
+
),
|
298
|
+
),
|
299
|
+
n.a.createElement(
|
300
|
+
c['default'],
|
301
|
+
d['default']['cascader-search'].previewerProps,
|
302
|
+
n.a.createElement(b, null),
|
303
|
+
),
|
304
|
+
n.a.createElement(
|
305
|
+
'div',
|
306
|
+
{ className: 'markdown' },
|
307
|
+
n.a.createElement(
|
308
|
+
'h3',
|
309
|
+
{ id: '\u52a8\u6001\u52a0\u8f7d\u9009\u9879' },
|
310
|
+
n.a.createElement(
|
311
|
+
r['AnchorLink'],
|
312
|
+
{
|
313
|
+
to: '#\u52a8\u6001\u52a0\u8f7d\u9009\u9879',
|
314
|
+
'aria-hidden': 'true',
|
315
|
+
tabIndex: -1,
|
316
|
+
},
|
317
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
318
|
+
),
|
319
|
+
'\u52a8\u6001\u52a0\u8f7d\u9009\u9879',
|
320
|
+
),
|
321
|
+
),
|
322
|
+
n.a.createElement(
|
323
|
+
c['default'],
|
324
|
+
d['default']['cascader-active'].previewerProps,
|
325
|
+
n.a.createElement(v, null),
|
326
|
+
),
|
327
|
+
n.a.createElement(
|
328
|
+
'div',
|
329
|
+
{ className: 'markdown' },
|
330
|
+
n.a.createElement(
|
331
|
+
'h3',
|
332
|
+
{ id: '\u81ea\u5b9a\u4e49\u5b57\u6bb5\u540d' },
|
333
|
+
n.a.createElement(
|
334
|
+
r['AnchorLink'],
|
335
|
+
{
|
336
|
+
to: '#\u81ea\u5b9a\u4e49\u5b57\u6bb5\u540d',
|
337
|
+
'aria-hidden': 'true',
|
338
|
+
tabIndex: -1,
|
339
|
+
},
|
340
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
341
|
+
),
|
342
|
+
'\u81ea\u5b9a\u4e49\u5b57\u6bb5\u540d',
|
343
|
+
),
|
344
|
+
),
|
345
|
+
n.a.createElement(
|
346
|
+
c['default'],
|
347
|
+
d['default']['cascader-customname'].previewerProps,
|
348
|
+
n.a.createElement(k, null),
|
349
|
+
),
|
350
|
+
n.a.createElement(
|
351
|
+
'div',
|
352
|
+
{ className: 'markdown' },
|
353
|
+
n.a.createElement(
|
354
|
+
'h2',
|
355
|
+
{ id: '\u6269\u5c55\u83dc\u5355' },
|
356
|
+
n.a.createElement(
|
357
|
+
r['AnchorLink'],
|
358
|
+
{
|
359
|
+
to: '#\u6269\u5c55\u83dc\u5355',
|
360
|
+
'aria-hidden': 'true',
|
361
|
+
tabIndex: -1,
|
362
|
+
},
|
363
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
364
|
+
),
|
365
|
+
'\u6269\u5c55\u83dc\u5355',
|
366
|
+
),
|
367
|
+
),
|
368
|
+
n.a.createElement(
|
369
|
+
c['default'],
|
370
|
+
d['default']['cascader-dropdown'].previewerProps,
|
371
|
+
n.a.createElement(w, null),
|
372
|
+
),
|
373
|
+
n.a.createElement(
|
374
|
+
'div',
|
375
|
+
{ className: 'markdown' },
|
376
|
+
n.a.createElement(
|
377
|
+
'h2',
|
378
|
+
{ id: 'api' },
|
379
|
+
n.a.createElement(
|
380
|
+
r['AnchorLink'],
|
381
|
+
{ to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
|
382
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
383
|
+
),
|
384
|
+
'API',
|
385
|
+
),
|
386
|
+
n.a.createElement(
|
387
|
+
'table',
|
388
|
+
null,
|
389
|
+
n.a.createElement(
|
390
|
+
'thead',
|
391
|
+
null,
|
392
|
+
n.a.createElement(
|
393
|
+
'tr',
|
394
|
+
null,
|
395
|
+
n.a.createElement('th', null, '\u53c2\u6570'),
|
396
|
+
n.a.createElement('th', null, '\u8bf4\u660e'),
|
397
|
+
n.a.createElement('th', null, '\u7c7b\u578b'),
|
398
|
+
n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
|
399
|
+
n.a.createElement('th', null, '\u7248\u672c'),
|
400
|
+
),
|
401
|
+
),
|
402
|
+
n.a.createElement(
|
403
|
+
'tbody',
|
404
|
+
null,
|
405
|
+
n.a.createElement(
|
406
|
+
'tr',
|
407
|
+
null,
|
408
|
+
n.a.createElement('td', null, 'allowClear'),
|
409
|
+
n.a.createElement(
|
410
|
+
'td',
|
411
|
+
null,
|
412
|
+
'\u662f\u5426\u652f\u6301\u6e05\u9664',
|
413
|
+
),
|
414
|
+
n.a.createElement('td', null, 'boolean'),
|
415
|
+
n.a.createElement('td', null, 'true'),
|
416
|
+
n.a.createElement('td', null),
|
417
|
+
),
|
418
|
+
n.a.createElement(
|
419
|
+
'tr',
|
420
|
+
null,
|
421
|
+
n.a.createElement('td', null, 'autoFocus'),
|
422
|
+
n.a.createElement(
|
423
|
+
'td',
|
424
|
+
null,
|
425
|
+
'\u81ea\u52a8\u83b7\u53d6\u7126\u70b9',
|
426
|
+
),
|
427
|
+
n.a.createElement('td', null, 'boolean'),
|
428
|
+
n.a.createElement('td', null, 'false'),
|
429
|
+
n.a.createElement('td', null),
|
430
|
+
),
|
431
|
+
n.a.createElement(
|
432
|
+
'tr',
|
433
|
+
null,
|
434
|
+
n.a.createElement('td', null, 'bordered'),
|
435
|
+
n.a.createElement(
|
436
|
+
'td',
|
437
|
+
null,
|
438
|
+
'\u662f\u5426\u6709\u8fb9\u6846',
|
439
|
+
),
|
440
|
+
n.a.createElement('td', null, 'boolean'),
|
441
|
+
n.a.createElement('td', null, 'true'),
|
442
|
+
n.a.createElement('td', null),
|
443
|
+
),
|
444
|
+
n.a.createElement(
|
445
|
+
'tr',
|
446
|
+
null,
|
447
|
+
n.a.createElement('td', null, 'changeOnSelect'),
|
448
|
+
n.a.createElement(
|
449
|
+
'td',
|
450
|
+
null,
|
451
|
+
'\u5f53\u6b64\u9879\u4e3a true \u65f6\uff0c\u70b9\u9009\u6bcf\u7ea7\u83dc\u5355\u9009\u9879\u503c\u90fd\u4f1a\u53d1\u751f\u53d8\u5316\uff0c\u5177\u4f53\u89c1\u4e0a\u9762\u7684\u6f14\u793a',
|
452
|
+
),
|
453
|
+
n.a.createElement('td', null, 'boolean'),
|
454
|
+
n.a.createElement('td', null, 'false'),
|
455
|
+
n.a.createElement('td', null),
|
456
|
+
),
|
457
|
+
n.a.createElement(
|
458
|
+
'tr',
|
459
|
+
null,
|
460
|
+
n.a.createElement('td', null, 'className'),
|
461
|
+
n.a.createElement(
|
462
|
+
'td',
|
463
|
+
null,
|
464
|
+
'\u81ea\u5b9a\u4e49\u7c7b\u540d',
|
465
|
+
),
|
466
|
+
n.a.createElement('td', null, 'string'),
|
467
|
+
n.a.createElement('td', null, '-'),
|
468
|
+
n.a.createElement('td', null),
|
469
|
+
),
|
470
|
+
n.a.createElement(
|
471
|
+
'tr',
|
472
|
+
null,
|
473
|
+
n.a.createElement('td', null, 'defaultValue'),
|
474
|
+
n.a.createElement(
|
475
|
+
'td',
|
476
|
+
null,
|
477
|
+
'\u9ed8\u8ba4\u7684\u9009\u4e2d\u9879',
|
478
|
+
),
|
479
|
+
n.a.createElement('td', null, 'string[] | number[]'),
|
480
|
+
n.a.createElement('td', null, '[]'),
|
481
|
+
n.a.createElement('td', null),
|
482
|
+
),
|
483
|
+
n.a.createElement(
|
484
|
+
'tr',
|
485
|
+
null,
|
486
|
+
n.a.createElement('td', null, 'disabled'),
|
487
|
+
n.a.createElement('td', null, '\u7981\u7528'),
|
488
|
+
n.a.createElement('td', null, 'boolean'),
|
489
|
+
n.a.createElement('td', null, 'false'),
|
490
|
+
n.a.createElement('td', null),
|
491
|
+
),
|
492
|
+
n.a.createElement(
|
493
|
+
'tr',
|
494
|
+
null,
|
495
|
+
n.a.createElement('td', null, 'displayRender'),
|
496
|
+
n.a.createElement(
|
497
|
+
'td',
|
498
|
+
null,
|
499
|
+
'\u9009\u62e9\u540e\u5c55\u793a\u7684\u6e32\u67d3\u51fd\u6570',
|
500
|
+
),
|
501
|
+
n.a.createElement(
|
502
|
+
'td',
|
503
|
+
null,
|
504
|
+
'(label, selectedOptions) => ReactNode',
|
505
|
+
),
|
506
|
+
n.a.createElement(
|
507
|
+
'td',
|
508
|
+
null,
|
509
|
+
'label => label.join(',
|
510
|
+
n.a.createElement('code', null, '/'),
|
511
|
+
')',
|
512
|
+
),
|
513
|
+
n.a.createElement('td', null),
|
514
|
+
),
|
515
|
+
n.a.createElement(
|
516
|
+
'tr',
|
517
|
+
null,
|
518
|
+
n.a.createElement('td', null, 'dropdownRender'),
|
519
|
+
n.a.createElement(
|
520
|
+
'td',
|
521
|
+
null,
|
522
|
+
'\u81ea\u5b9a\u4e49\u4e0b\u62c9\u6846\u5185\u5bb9',
|
523
|
+
),
|
524
|
+
n.a.createElement(
|
525
|
+
'td',
|
526
|
+
null,
|
527
|
+
'(menus: ReactNode) => ReactNode',
|
528
|
+
),
|
529
|
+
n.a.createElement('td', null, '-'),
|
530
|
+
n.a.createElement('td', null, '4.4.0'),
|
531
|
+
),
|
532
|
+
n.a.createElement(
|
533
|
+
'tr',
|
534
|
+
null,
|
535
|
+
n.a.createElement('td', null, 'expandIcon'),
|
536
|
+
n.a.createElement(
|
537
|
+
'td',
|
538
|
+
null,
|
539
|
+
'\u81ea\u5b9a\u4e49\u6b21\u7ea7\u83dc\u5355\u5c55\u5f00\u56fe\u6807',
|
540
|
+
),
|
541
|
+
n.a.createElement('td', null, 'ReactNode'),
|
542
|
+
n.a.createElement('td', null, '-'),
|
543
|
+
n.a.createElement('td', null, '4.4.0'),
|
544
|
+
),
|
545
|
+
n.a.createElement(
|
546
|
+
'tr',
|
547
|
+
null,
|
548
|
+
n.a.createElement('td', null, 'expandTrigger'),
|
549
|
+
n.a.createElement(
|
550
|
+
'td',
|
551
|
+
null,
|
552
|
+
"\u6b21\u7ea7\u83dc\u5355\u7684\u5c55\u5f00\u65b9\u5f0f\uff0c\u53ef\u9009 'click' \u548c 'hover'",
|
553
|
+
),
|
554
|
+
n.a.createElement('td', null, 'string'),
|
555
|
+
n.a.createElement(
|
556
|
+
'td',
|
557
|
+
null,
|
558
|
+
n.a.createElement('code', null, 'click'),
|
559
|
+
),
|
560
|
+
n.a.createElement('td', null),
|
561
|
+
),
|
562
|
+
n.a.createElement(
|
563
|
+
'tr',
|
564
|
+
null,
|
565
|
+
n.a.createElement('td', null, 'fieldNames'),
|
566
|
+
n.a.createElement(
|
567
|
+
'td',
|
568
|
+
null,
|
569
|
+
'\u81ea\u5b9a\u4e49 options \u4e2d label name children \u7684\u5b57\u6bb5',
|
570
|
+
),
|
571
|
+
n.a.createElement('td', null, 'object'),
|
572
|
+
n.a.createElement(
|
573
|
+
'td',
|
574
|
+
null,
|
575
|
+
'{',
|
576
|
+
' label: ',
|
577
|
+
n.a.createElement('code', null, 'label'),
|
578
|
+
', value: ',
|
579
|
+
n.a.createElement('code', null, 'value'),
|
580
|
+
', children: ',
|
581
|
+
n.a.createElement('code', null, 'children'),
|
582
|
+
' ',
|
583
|
+
'}',
|
584
|
+
),
|
585
|
+
n.a.createElement('td', null),
|
586
|
+
),
|
587
|
+
n.a.createElement(
|
588
|
+
'tr',
|
589
|
+
null,
|
590
|
+
n.a.createElement('td', null, 'getPopupContainer'),
|
591
|
+
n.a.createElement(
|
592
|
+
'td',
|
593
|
+
null,
|
594
|
+
'\u83dc\u5355\u6e32\u67d3\u7236\u8282\u70b9\u3002\u9ed8\u8ba4\u6e32\u67d3\u5230 body \u4e0a\uff0c\u5982\u679c\u4f60\u9047\u5230\u83dc\u5355\u6eda\u52a8\u5b9a\u4f4d\u95ee\u9898\uff0c\u8bd5\u8bd5\u4fee\u6539\u4e3a\u6eda\u52a8\u7684\u533a\u57df\uff0c\u5e76\u76f8\u5bf9\u5176\u5b9a\u4f4d\u3002',
|
595
|
+
n.a.createElement(
|
596
|
+
r['Link'],
|
597
|
+
{
|
598
|
+
to: 'https://codepen.io/afc163/pen/zEjNOy?editors=0010',
|
599
|
+
},
|
600
|
+
'\u793a\u4f8b',
|
601
|
+
),
|
602
|
+
),
|
603
|
+
n.a.createElement('td', null, 'function(triggerNode)'),
|
604
|
+
n.a.createElement('td', null, '() => document.body'),
|
605
|
+
n.a.createElement('td', null),
|
606
|
+
),
|
607
|
+
n.a.createElement(
|
608
|
+
'tr',
|
609
|
+
null,
|
610
|
+
n.a.createElement('td', null, 'loadData'),
|
611
|
+
n.a.createElement(
|
612
|
+
'td',
|
613
|
+
null,
|
614
|
+
'\u7528\u4e8e\u52a8\u6001\u52a0\u8f7d\u9009\u9879\uff0c\u65e0\u6cd5\u4e0e ',
|
615
|
+
n.a.createElement('code', null, 'showSearch'),
|
616
|
+
' \u4e00\u8d77\u4f7f\u7528',
|
617
|
+
),
|
618
|
+
n.a.createElement('td', null, '(selectedOptions) => void'),
|
619
|
+
n.a.createElement('td', null, '-'),
|
620
|
+
n.a.createElement('td', null),
|
621
|
+
),
|
622
|
+
n.a.createElement(
|
623
|
+
'tr',
|
624
|
+
null,
|
625
|
+
n.a.createElement('td', null, 'notFoundContent'),
|
626
|
+
n.a.createElement(
|
627
|
+
'td',
|
628
|
+
null,
|
629
|
+
'\u5f53\u4e0b\u62c9\u5217\u8868\u4e3a\u7a7a\u65f6\u663e\u793a\u7684\u5185\u5bb9',
|
630
|
+
),
|
631
|
+
n.a.createElement('td', null, 'string'),
|
632
|
+
n.a.createElement(
|
633
|
+
'td',
|
634
|
+
null,
|
635
|
+
n.a.createElement('code', null, 'Not Found'),
|
636
|
+
),
|
637
|
+
n.a.createElement('td', null),
|
638
|
+
),
|
639
|
+
n.a.createElement(
|
640
|
+
'tr',
|
641
|
+
null,
|
642
|
+
n.a.createElement('td', null, 'options'),
|
643
|
+
n.a.createElement(
|
644
|
+
'td',
|
645
|
+
null,
|
646
|
+
'\u53ef\u9009\u9879\u6570\u636e\u6e90',
|
647
|
+
),
|
648
|
+
n.a.createElement(
|
649
|
+
'td',
|
650
|
+
null,
|
651
|
+
n.a.createElement(
|
652
|
+
r['AnchorLink'],
|
653
|
+
{ to: '#Option' },
|
654
|
+
'Option',
|
655
|
+
),
|
656
|
+
'[]',
|
657
|
+
),
|
658
|
+
n.a.createElement('td', null, '-'),
|
659
|
+
n.a.createElement('td', null),
|
660
|
+
),
|
661
|
+
n.a.createElement(
|
662
|
+
'tr',
|
663
|
+
null,
|
664
|
+
n.a.createElement('td', null, 'placeholder'),
|
665
|
+
n.a.createElement(
|
666
|
+
'td',
|
667
|
+
null,
|
668
|
+
'\u8f93\u5165\u6846\u5360\u4f4d\u6587\u672c',
|
669
|
+
),
|
670
|
+
n.a.createElement('td', null, 'string'),
|
671
|
+
n.a.createElement(
|
672
|
+
'td',
|
673
|
+
null,
|
674
|
+
n.a.createElement('code', null, '\u8bf7\u9009\u62e9'),
|
675
|
+
),
|
676
|
+
n.a.createElement('td', null),
|
677
|
+
),
|
678
|
+
n.a.createElement(
|
679
|
+
'tr',
|
680
|
+
null,
|
681
|
+
n.a.createElement('td', null, 'popupClassName'),
|
682
|
+
n.a.createElement(
|
683
|
+
'td',
|
684
|
+
null,
|
685
|
+
'\u81ea\u5b9a\u4e49\u6d6e\u5c42\u7c7b\u540d',
|
686
|
+
),
|
687
|
+
n.a.createElement('td', null, 'string'),
|
688
|
+
n.a.createElement('td', null, '-'),
|
689
|
+
n.a.createElement('td', null),
|
690
|
+
),
|
691
|
+
n.a.createElement(
|
692
|
+
'tr',
|
693
|
+
null,
|
694
|
+
n.a.createElement('td', null, 'popupPlacement'),
|
695
|
+
n.a.createElement(
|
696
|
+
'td',
|
697
|
+
null,
|
698
|
+
'\u6d6e\u5c42\u9884\u8bbe\u4f4d\u7f6e\uff1a',
|
699
|
+
n.a.createElement('code', null, 'bottomLeft'),
|
700
|
+
' ',
|
701
|
+
n.a.createElement('code', null, 'bottomRight'),
|
702
|
+
' ',
|
703
|
+
n.a.createElement('code', null, 'topLeft'),
|
704
|
+
' ',
|
705
|
+
n.a.createElement('code', null, 'topRight'),
|
706
|
+
),
|
707
|
+
n.a.createElement('td', null, 'string'),
|
708
|
+
n.a.createElement(
|
709
|
+
'td',
|
710
|
+
null,
|
711
|
+
n.a.createElement('code', null, 'bottomLeft'),
|
712
|
+
),
|
713
|
+
n.a.createElement('td', null),
|
714
|
+
),
|
715
|
+
n.a.createElement(
|
716
|
+
'tr',
|
717
|
+
null,
|
718
|
+
n.a.createElement('td', null, 'popupVisible'),
|
719
|
+
n.a.createElement(
|
720
|
+
'td',
|
721
|
+
null,
|
722
|
+
'\u63a7\u5236\u6d6e\u5c42\u663e\u9690',
|
723
|
+
),
|
724
|
+
n.a.createElement('td', null, 'boolean'),
|
725
|
+
n.a.createElement('td', null, '-'),
|
726
|
+
n.a.createElement('td', null),
|
727
|
+
),
|
728
|
+
n.a.createElement(
|
729
|
+
'tr',
|
730
|
+
null,
|
731
|
+
n.a.createElement('td', null, 'showSearch'),
|
732
|
+
n.a.createElement(
|
733
|
+
'td',
|
734
|
+
null,
|
735
|
+
'\u5728\u9009\u62e9\u6846\u4e2d\u663e\u793a\u641c\u7d22\u6846',
|
736
|
+
),
|
737
|
+
n.a.createElement(
|
738
|
+
'td',
|
739
|
+
null,
|
740
|
+
'boolean | ',
|
741
|
+
n.a.createElement(
|
742
|
+
r['AnchorLink'],
|
743
|
+
{ to: '#showSearch' },
|
744
|
+
'Object',
|
745
|
+
),
|
746
|
+
),
|
747
|
+
n.a.createElement('td', null, 'false'),
|
748
|
+
n.a.createElement('td', null),
|
749
|
+
),
|
750
|
+
n.a.createElement(
|
751
|
+
'tr',
|
752
|
+
null,
|
753
|
+
n.a.createElement('td', null, 'size'),
|
754
|
+
n.a.createElement(
|
755
|
+
'td',
|
756
|
+
null,
|
757
|
+
'\u8f93\u5165\u6846\u5927\u5c0f',
|
758
|
+
),
|
759
|
+
n.a.createElement(
|
760
|
+
'td',
|
761
|
+
null,
|
762
|
+
n.a.createElement('code', null, 'large'),
|
763
|
+
' | ',
|
764
|
+
n.a.createElement('code', null, 'middle'),
|
765
|
+
' | ',
|
766
|
+
n.a.createElement('code', null, 'small'),
|
767
|
+
),
|
768
|
+
n.a.createElement('td', null, '-'),
|
769
|
+
n.a.createElement('td', null),
|
770
|
+
),
|
771
|
+
n.a.createElement(
|
772
|
+
'tr',
|
773
|
+
null,
|
774
|
+
n.a.createElement('td', null, 'style'),
|
775
|
+
n.a.createElement(
|
776
|
+
'td',
|
777
|
+
null,
|
778
|
+
'\u81ea\u5b9a\u4e49\u6837\u5f0f',
|
779
|
+
),
|
780
|
+
n.a.createElement('td', null, 'CSSProperties'),
|
781
|
+
n.a.createElement('td', null, '-'),
|
782
|
+
n.a.createElement('td', null),
|
783
|
+
),
|
784
|
+
n.a.createElement(
|
785
|
+
'tr',
|
786
|
+
null,
|
787
|
+
n.a.createElement('td', null, 'suffixIcon'),
|
788
|
+
n.a.createElement(
|
789
|
+
'td',
|
790
|
+
null,
|
791
|
+
'\u81ea\u5b9a\u4e49\u7684\u9009\u62e9\u6846\u540e\u7f00\u56fe\u6807',
|
792
|
+
),
|
793
|
+
n.a.createElement('td', null, 'ReactNode'),
|
794
|
+
n.a.createElement('td', null, '-'),
|
795
|
+
n.a.createElement('td', null),
|
796
|
+
),
|
797
|
+
n.a.createElement(
|
798
|
+
'tr',
|
799
|
+
null,
|
800
|
+
n.a.createElement('td', null, 'value'),
|
801
|
+
n.a.createElement(
|
802
|
+
'td',
|
803
|
+
null,
|
804
|
+
'\u6307\u5b9a\u9009\u4e2d\u9879',
|
805
|
+
),
|
806
|
+
n.a.createElement('td', null, 'string[] | number[]'),
|
807
|
+
n.a.createElement('td', null, '-'),
|
808
|
+
n.a.createElement('td', null),
|
809
|
+
),
|
810
|
+
n.a.createElement(
|
811
|
+
'tr',
|
812
|
+
null,
|
813
|
+
n.a.createElement('td', null, 'onChange'),
|
814
|
+
n.a.createElement(
|
815
|
+
'td',
|
816
|
+
null,
|
817
|
+
'\u9009\u62e9\u5b8c\u6210\u540e\u7684\u56de\u8c03',
|
818
|
+
),
|
819
|
+
n.a.createElement(
|
820
|
+
'td',
|
821
|
+
null,
|
822
|
+
'(value, selectedOptions) => void',
|
823
|
+
),
|
824
|
+
n.a.createElement('td', null, '-'),
|
825
|
+
n.a.createElement('td', null),
|
826
|
+
),
|
827
|
+
n.a.createElement(
|
828
|
+
'tr',
|
829
|
+
null,
|
830
|
+
n.a.createElement('td', null, 'onPopupVisibleChange'),
|
831
|
+
n.a.createElement(
|
832
|
+
'td',
|
833
|
+
null,
|
834
|
+
'\u663e\u793a/\u9690\u85cf\u6d6e\u5c42\u7684\u56de\u8c03',
|
835
|
+
),
|
836
|
+
n.a.createElement('td', null, '(value) => void'),
|
837
|
+
n.a.createElement('td', null, '-'),
|
838
|
+
n.a.createElement('td', null),
|
839
|
+
),
|
840
|
+
),
|
841
|
+
),
|
842
|
+
n.a.createElement(
|
843
|
+
'h3',
|
844
|
+
{ id: 'showsearch' },
|
845
|
+
n.a.createElement(
|
846
|
+
r['AnchorLink'],
|
847
|
+
{ to: '#showsearch', 'aria-hidden': 'true', tabIndex: -1 },
|
848
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
849
|
+
),
|
850
|
+
'showSearch',
|
851
|
+
),
|
852
|
+
n.a.createElement(
|
853
|
+
'p',
|
854
|
+
null,
|
855
|
+
n.a.createElement('code', null, 'showSearch'),
|
856
|
+
' \u4e3a\u5bf9\u8c61\u65f6\uff0c\u5176\u4e2d\u7684\u5b57\u6bb5\uff1a',
|
857
|
+
),
|
858
|
+
n.a.createElement(
|
859
|
+
'table',
|
860
|
+
null,
|
861
|
+
n.a.createElement(
|
862
|
+
'thead',
|
863
|
+
null,
|
864
|
+
n.a.createElement(
|
865
|
+
'tr',
|
866
|
+
null,
|
867
|
+
n.a.createElement('th', null, '\u53c2\u6570'),
|
868
|
+
n.a.createElement('th', null, '\u8bf4\u660e'),
|
869
|
+
n.a.createElement('th', null, '\u7c7b\u578b'),
|
870
|
+
n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
|
871
|
+
n.a.createElement('th', null, '\u7248\u672c'),
|
872
|
+
),
|
873
|
+
),
|
874
|
+
n.a.createElement(
|
875
|
+
'tbody',
|
876
|
+
null,
|
877
|
+
n.a.createElement(
|
878
|
+
'tr',
|
879
|
+
null,
|
880
|
+
n.a.createElement('td', null, 'filter'),
|
881
|
+
n.a.createElement(
|
882
|
+
'td',
|
883
|
+
null,
|
884
|
+
'\u63a5\u6536 ',
|
885
|
+
n.a.createElement('code', null, 'inputValue'),
|
886
|
+
' ',
|
887
|
+
n.a.createElement('code', null, 'path'),
|
888
|
+
' \u4e24\u4e2a\u53c2\u6570\uff0c\u5f53 ',
|
889
|
+
n.a.createElement('code', null, 'path'),
|
890
|
+
' \u7b26\u5408\u7b5b\u9009\u6761\u4ef6\u65f6\uff0c\u5e94\u8fd4\u56de true\uff0c\u53cd\u4e4b\u5219\u8fd4\u56de false',
|
891
|
+
),
|
892
|
+
n.a.createElement(
|
893
|
+
'td',
|
894
|
+
null,
|
895
|
+
'function(inputValue, path): boolean',
|
896
|
+
),
|
897
|
+
n.a.createElement('td', null, '-'),
|
898
|
+
n.a.createElement('td', null),
|
899
|
+
),
|
900
|
+
n.a.createElement(
|
901
|
+
'tr',
|
902
|
+
null,
|
903
|
+
n.a.createElement('td', null, 'limit'),
|
904
|
+
n.a.createElement(
|
905
|
+
'td',
|
906
|
+
null,
|
907
|
+
'\u641c\u7d22\u7ed3\u679c\u5c55\u793a\u6570\u91cf',
|
908
|
+
),
|
909
|
+
n.a.createElement('td', null, 'number | false'),
|
910
|
+
n.a.createElement('td', null, '50'),
|
911
|
+
n.a.createElement('td', null),
|
912
|
+
),
|
913
|
+
n.a.createElement(
|
914
|
+
'tr',
|
915
|
+
null,
|
916
|
+
n.a.createElement('td', null, 'matchInputWidth'),
|
917
|
+
n.a.createElement(
|
918
|
+
'td',
|
919
|
+
null,
|
920
|
+
'\u641c\u7d22\u7ed3\u679c\u5217\u8868\u662f\u5426\u4e0e\u8f93\u5165\u6846\u540c\u5bbd\uff08',
|
921
|
+
n.a.createElement(
|
922
|
+
r['Link'],
|
923
|
+
{
|
924
|
+
to: 'https://github.com/ant-design/ant-design/issues/25779',
|
925
|
+
},
|
926
|
+
'\u6548\u679c',
|
927
|
+
),
|
928
|
+
'\uff09',
|
929
|
+
),
|
930
|
+
n.a.createElement('td', null, 'boolean'),
|
931
|
+
n.a.createElement('td', null, 'true'),
|
932
|
+
n.a.createElement('td', null),
|
933
|
+
),
|
934
|
+
n.a.createElement(
|
935
|
+
'tr',
|
936
|
+
null,
|
937
|
+
n.a.createElement('td', null, 'render'),
|
938
|
+
n.a.createElement(
|
939
|
+
'td',
|
940
|
+
null,
|
941
|
+
'\u7528\u4e8e\u6e32\u67d3 filter \u540e\u7684\u9009\u9879',
|
942
|
+
),
|
943
|
+
n.a.createElement(
|
944
|
+
'td',
|
945
|
+
null,
|
946
|
+
'function(inputValue, path): ReactNode',
|
947
|
+
),
|
948
|
+
n.a.createElement('td', null, '-'),
|
949
|
+
n.a.createElement('td', null),
|
950
|
+
),
|
951
|
+
n.a.createElement(
|
952
|
+
'tr',
|
953
|
+
null,
|
954
|
+
n.a.createElement('td', null, 'sort'),
|
955
|
+
n.a.createElement(
|
956
|
+
'td',
|
957
|
+
null,
|
958
|
+
'\u7528\u4e8e\u6392\u5e8f filter \u540e\u7684\u9009\u9879',
|
959
|
+
),
|
960
|
+
n.a.createElement('td', null, 'function(a, b, inputValue)'),
|
961
|
+
n.a.createElement('td', null, '-'),
|
962
|
+
n.a.createElement('td', null),
|
963
|
+
),
|
964
|
+
),
|
965
|
+
),
|
966
|
+
n.a.createElement(
|
967
|
+
'h3',
|
968
|
+
{ id: 'option' },
|
969
|
+
n.a.createElement(
|
970
|
+
r['AnchorLink'],
|
971
|
+
{ to: '#option', 'aria-hidden': 'true', tabIndex: -1 },
|
972
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
973
|
+
),
|
974
|
+
'Option',
|
975
|
+
),
|
976
|
+
n.a.createElement(m['a'], {
|
977
|
+
code: 'interface Option {\n value: string | number;\n label?: React.ReactNode;\n disabled?: boolean;\n children?: Option[];\n}',
|
978
|
+
lang: 'typescript',
|
979
|
+
}),
|
980
|
+
n.a.createElement(
|
981
|
+
'h2',
|
982
|
+
{ id: '\u65b9\u6cd5' },
|
983
|
+
n.a.createElement(
|
984
|
+
r['AnchorLink'],
|
985
|
+
{ to: '#\u65b9\u6cd5', 'aria-hidden': 'true', tabIndex: -1 },
|
986
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
987
|
+
),
|
988
|
+
'\u65b9\u6cd5',
|
989
|
+
),
|
990
|
+
n.a.createElement(
|
991
|
+
'table',
|
992
|
+
null,
|
993
|
+
n.a.createElement(
|
994
|
+
'thead',
|
995
|
+
null,
|
996
|
+
n.a.createElement(
|
997
|
+
'tr',
|
998
|
+
null,
|
999
|
+
n.a.createElement('th', null, '\u540d\u79f0'),
|
1000
|
+
n.a.createElement('th', null, '\u63cf\u8ff0'),
|
1001
|
+
n.a.createElement('th', null, '\u7248\u672c'),
|
1002
|
+
),
|
1003
|
+
),
|
1004
|
+
n.a.createElement(
|
1005
|
+
'tbody',
|
1006
|
+
null,
|
1007
|
+
n.a.createElement(
|
1008
|
+
'tr',
|
1009
|
+
null,
|
1010
|
+
n.a.createElement('td', null, 'blur()'),
|
1011
|
+
n.a.createElement('td', null, '\u79fb\u9664\u7126\u70b9'),
|
1012
|
+
n.a.createElement('td', null),
|
1013
|
+
),
|
1014
|
+
n.a.createElement(
|
1015
|
+
'tr',
|
1016
|
+
null,
|
1017
|
+
n.a.createElement('td', null, 'focus()'),
|
1018
|
+
n.a.createElement('td', null, '\u83b7\u53d6\u7126\u70b9'),
|
1019
|
+
n.a.createElement('td', null),
|
1020
|
+
),
|
1021
|
+
),
|
1022
|
+
),
|
1023
|
+
n.a.createElement(
|
1024
|
+
'blockquote',
|
1025
|
+
null,
|
1026
|
+
n.a.createElement(
|
1027
|
+
'p',
|
1028
|
+
null,
|
1029
|
+
'\u6ce8\u610f\uff0c\u5982\u679c\u9700\u8981\u83b7\u5f97\u4e2d\u56fd\u7701\u5e02\u533a\u6570\u636e\uff0c\u53ef\u4ee5\u53c2\u8003 ',
|
1030
|
+
n.a.createElement(
|
1031
|
+
r['Link'],
|
1032
|
+
{
|
1033
|
+
to: 'https://gist.github.com/afc163/7582f35654fd03d5be7009444345ea17',
|
1034
|
+
},
|
1035
|
+
'china-division',
|
1036
|
+
),
|
1037
|
+
'\u3002',
|
1038
|
+
),
|
1039
|
+
),
|
1040
|
+
),
|
1041
|
+
),
|
1042
|
+
)
|
1043
|
+
);
|
1044
|
+
},
|
1045
|
+
MZF8: function (e, t, a) {
|
1046
|
+
'use strict';
|
1047
|
+
var l = a('ogwx');
|
1048
|
+
a.d(t, 'a', function () {
|
1049
|
+
return l['b'];
|
1050
|
+
});
|
1051
|
+
a('VCU9');
|
1052
|
+
},
|
1053
|
+
RZMt: function (e, t, a) {},
|
1054
|
+
Zxc8: function (e, t, a) {
|
1055
|
+
'use strict';
|
1056
|
+
a.r(t);
|
1057
|
+
var l = a('q1tI'),
|
1058
|
+
n = a.n(l),
|
1059
|
+
r = a('k3GJ'),
|
1060
|
+
c = a('MZF8'),
|
1061
|
+
m = a('dEAq'),
|
1062
|
+
d = a('H1Ra');
|
1063
|
+
a('RZMt');
|
1064
|
+
function u(e, t) {
|
1065
|
+
return p(e) || s(e, t) || i(e, t) || o();
|
1066
|
+
}
|
1067
|
+
function o() {
|
1068
|
+
throw new TypeError(
|
1069
|
+
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
|
1070
|
+
);
|
1071
|
+
}
|
1072
|
+
function i(e, t) {
|
1073
|
+
if (e) {
|
1074
|
+
if ('string' === typeof e) return E(e, t);
|
1075
|
+
var a = Object.prototype.toString.call(e).slice(8, -1);
|
1076
|
+
return (
|
1077
|
+
'Object' === a && e.constructor && (a = e.constructor.name),
|
1078
|
+
'Map' === a || 'Set' === a
|
1079
|
+
? Array.from(e)
|
1080
|
+
: 'Arguments' === a ||
|
1081
|
+
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
|
1082
|
+
? E(e, t)
|
1083
|
+
: void 0
|
1084
|
+
);
|
1085
|
+
}
|
1086
|
+
}
|
1087
|
+
function E(e, t) {
|
1088
|
+
(null == t || t > e.length) && (t = e.length);
|
1089
|
+
for (var a = 0, l = new Array(t); a < t; a++) l[a] = e[a];
|
1090
|
+
return l;
|
1091
|
+
}
|
1092
|
+
function s(e, t) {
|
1093
|
+
var a =
|
1094
|
+
null == e
|
1095
|
+
? null
|
1096
|
+
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
|
1097
|
+
e['@@iterator'];
|
1098
|
+
if (null != a) {
|
1099
|
+
var l,
|
1100
|
+
n,
|
1101
|
+
r = [],
|
1102
|
+
c = !0,
|
1103
|
+
m = !1;
|
1104
|
+
try {
|
1105
|
+
for (a = a.call(e); !(c = (l = a.next()).done); c = !0)
|
1106
|
+
if ((r.push(l.value), t && r.length === t)) break;
|
1107
|
+
} catch (d) {
|
1108
|
+
(m = !0), (n = d);
|
1109
|
+
} finally {
|
1110
|
+
try {
|
1111
|
+
c || null == a['return'] || a['return']();
|
1112
|
+
} finally {
|
1113
|
+
if (m) throw n;
|
1114
|
+
}
|
1115
|
+
}
|
1116
|
+
return r;
|
1117
|
+
}
|
1118
|
+
}
|
1119
|
+
function p(e) {
|
1120
|
+
if (Array.isArray(e)) return e;
|
1121
|
+
}
|
1122
|
+
function h(e, t) {
|
1123
|
+
var a,
|
1124
|
+
l =
|
1125
|
+
null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
|
1126
|
+
return l || (l = t.tsx ? 'tsx' : 'jsx'), l;
|
1127
|
+
}
|
1128
|
+
var f = function (e) {
|
1129
|
+
var t,
|
1130
|
+
a,
|
1131
|
+
o,
|
1132
|
+
i = Object(l['useRef'])(),
|
1133
|
+
E = Object(l['useContext'])(m['context']),
|
1134
|
+
s = E.locale,
|
1135
|
+
p = Object(m['useLocaleProps'])(s, e),
|
1136
|
+
f = Object(m['useDemoUrl'])(p.identifier),
|
1137
|
+
b = p.demoUrl || f,
|
1138
|
+
v =
|
1139
|
+
(null === c['a'] || void 0 === c['a']
|
1140
|
+
? void 0
|
1141
|
+
: c['a'].location.hash) === '#'.concat(p.identifier),
|
1142
|
+
k = 1 === Object.keys(p.sources).length,
|
1143
|
+
w = Object(m['useCodeSandbox'])(
|
1144
|
+
(
|
1145
|
+
null === (t = p.hideActions) || void 0 === t
|
1146
|
+
? void 0
|
1147
|
+
: t.includes('CSB')
|
1148
|
+
)
|
1149
|
+
? null
|
1150
|
+
: p,
|
1151
|
+
),
|
1152
|
+
N = Object(m['useRiddle'])(
|
1153
|
+
(
|
1154
|
+
null === (a = p.hideActions) || void 0 === a
|
1155
|
+
? void 0
|
1156
|
+
: a.includes('RIDDLE')
|
1157
|
+
)
|
1158
|
+
? null
|
1159
|
+
: p,
|
1160
|
+
),
|
1161
|
+
g = Object(m['useMotions'])(p.motions || [], i.current),
|
1162
|
+
y = u(g, 2),
|
1163
|
+
_ = y[0],
|
1164
|
+
x = y[1],
|
1165
|
+
A = Object(m['useCopy'])(),
|
1166
|
+
L = u(A, 2),
|
1167
|
+
O = L[0],
|
1168
|
+
I = L[1],
|
1169
|
+
j = Object(l['useState'])('_'),
|
1170
|
+
C = u(j, 2),
|
1171
|
+
S = C[0],
|
1172
|
+
R = C[1],
|
1173
|
+
P = Object(l['useState'])(h(S, p.sources[S])),
|
1174
|
+
M = u(P, 2),
|
1175
|
+
T = M[0],
|
1176
|
+
V = M[1],
|
1177
|
+
F = Object(l['useState'])(Boolean(p.defaultShowCode)),
|
1178
|
+
U = u(F, 2),
|
1179
|
+
Z = U[0],
|
1180
|
+
q = U[1],
|
1181
|
+
J = Object(l['useState'])(Math.random()),
|
1182
|
+
z = u(J, 2),
|
1183
|
+
B = z[0],
|
1184
|
+
D = z[1],
|
1185
|
+
$ = p.sources[S][T] || p.sources[S].content,
|
1186
|
+
H = Object(m['useTSPlaygroundUrl'])(s, $),
|
1187
|
+
G = Object(l['useRef'])(),
|
1188
|
+
X = Object(m['usePrefersColor'])(),
|
1189
|
+
K = u(X, 1),
|
1190
|
+
W = K[0];
|
1191
|
+
function Y(e) {
|
1192
|
+
R(e), V(h(e, p.sources[e]));
|
1193
|
+
}
|
1194
|
+
return (
|
1195
|
+
Object(l['useEffect'])(
|
1196
|
+
function () {
|
1197
|
+
D(Math.random());
|
1198
|
+
},
|
1199
|
+
[W],
|
1200
|
+
),
|
1201
|
+
n.a.createElement(
|
1202
|
+
'div',
|
1203
|
+
{
|
1204
|
+
style: p.style,
|
1205
|
+
className: [
|
1206
|
+
p.className,
|
1207
|
+
'__dumi-default-previewer',
|
1208
|
+
v ? '__dumi-default-previewer-target' : '',
|
1209
|
+
]
|
1210
|
+
.filter(Boolean)
|
1211
|
+
.join(' '),
|
1212
|
+
id: p.identifier,
|
1213
|
+
'data-debug': p.debug || void 0,
|
1214
|
+
'data-iframe': p.iframe || void 0,
|
1215
|
+
},
|
1216
|
+
p.iframe &&
|
1217
|
+
n.a.createElement('div', {
|
1218
|
+
className: '__dumi-default-previewer-browser-nav',
|
1219
|
+
}),
|
1220
|
+
n.a.createElement(
|
1221
|
+
'div',
|
1222
|
+
{
|
1223
|
+
ref: i,
|
1224
|
+
className: '__dumi-default-previewer-demo',
|
1225
|
+
style: {
|
1226
|
+
transform: p.transform ? 'translate(0, 0)' : void 0,
|
1227
|
+
padding:
|
1228
|
+
p.compact || (p.iframe && !1 !== p.compact) ? '0' : void 0,
|
1229
|
+
background: p.background,
|
1230
|
+
},
|
1231
|
+
},
|
1232
|
+
p.iframe
|
1233
|
+
? n.a.createElement('iframe', {
|
1234
|
+
title: 'dumi-previewer',
|
1235
|
+
style: {
|
1236
|
+
height: String(p.iframe).replace(/(\d)$/, '$1px'),
|
1237
|
+
},
|
1238
|
+
key: B,
|
1239
|
+
src: b,
|
1240
|
+
ref: G,
|
1241
|
+
})
|
1242
|
+
: p.children,
|
1243
|
+
),
|
1244
|
+
n.a.createElement(
|
1245
|
+
'div',
|
1246
|
+
{
|
1247
|
+
className: '__dumi-default-previewer-desc',
|
1248
|
+
'data-title': p.title,
|
1249
|
+
},
|
1250
|
+
p.title &&
|
1251
|
+
n.a.createElement(
|
1252
|
+
m['AnchorLink'],
|
1253
|
+
{ to: '#'.concat(p.identifier) },
|
1254
|
+
p.title,
|
1255
|
+
),
|
1256
|
+
p.description &&
|
1257
|
+
n.a.createElement('div', {
|
1258
|
+
dangerouslySetInnerHTML: { __html: p.description },
|
1259
|
+
}),
|
1260
|
+
),
|
1261
|
+
n.a.createElement(
|
1262
|
+
'div',
|
1263
|
+
{ className: '__dumi-default-previewer-actions' },
|
1264
|
+
w &&
|
1265
|
+
n.a.createElement('button', {
|
1266
|
+
title: 'Open demo on CodeSandbox.io',
|
1267
|
+
className: '__dumi-default-icon',
|
1268
|
+
role: 'codesandbox',
|
1269
|
+
onClick: w,
|
1270
|
+
}),
|
1271
|
+
N &&
|
1272
|
+
n.a.createElement('button', {
|
1273
|
+
title: 'Open demo on Riddle',
|
1274
|
+
className: '__dumi-default-icon',
|
1275
|
+
role: 'riddle',
|
1276
|
+
onClick: N,
|
1277
|
+
}),
|
1278
|
+
p.motions &&
|
1279
|
+
n.a.createElement('button', {
|
1280
|
+
title: 'Execute motions',
|
1281
|
+
className: '__dumi-default-icon',
|
1282
|
+
role: 'motions',
|
1283
|
+
disabled: x,
|
1284
|
+
onClick: function () {
|
1285
|
+
return _();
|
1286
|
+
},
|
1287
|
+
}),
|
1288
|
+
p.iframe &&
|
1289
|
+
n.a.createElement('button', {
|
1290
|
+
title: 'Reload demo iframe page',
|
1291
|
+
className: '__dumi-default-icon',
|
1292
|
+
role: 'refresh',
|
1293
|
+
onClick: function () {
|
1294
|
+
return D(Math.random());
|
1295
|
+
},
|
1296
|
+
}),
|
1297
|
+
!(null === (o = p.hideActions) || void 0 === o
|
1298
|
+
? void 0
|
1299
|
+
: o.includes('EXTERNAL')) &&
|
1300
|
+
n.a.createElement(
|
1301
|
+
m['Link'],
|
1302
|
+
{ target: '_blank', to: b },
|
1303
|
+
n.a.createElement('button', {
|
1304
|
+
title: 'Open demo in new tab',
|
1305
|
+
className: '__dumi-default-icon',
|
1306
|
+
role: 'open-demo',
|
1307
|
+
type: 'button',
|
1308
|
+
}),
|
1309
|
+
),
|
1310
|
+
n.a.createElement('span', null),
|
1311
|
+
n.a.createElement('button', {
|
1312
|
+
title: 'Copy source code',
|
1313
|
+
className: '__dumi-default-icon',
|
1314
|
+
role: 'copy',
|
1315
|
+
'data-status': I,
|
1316
|
+
onClick: function () {
|
1317
|
+
return O($);
|
1318
|
+
},
|
1319
|
+
}),
|
1320
|
+
'tsx' === T &&
|
1321
|
+
Z &&
|
1322
|
+
n.a.createElement(
|
1323
|
+
m['Link'],
|
1324
|
+
{ target: '_blank', to: H },
|
1325
|
+
n.a.createElement('button', {
|
1326
|
+
title: 'Get JSX via TypeScript Playground',
|
1327
|
+
className: '__dumi-default-icon',
|
1328
|
+
role: 'change-tsx',
|
1329
|
+
type: 'button',
|
1330
|
+
}),
|
1331
|
+
),
|
1332
|
+
n.a.createElement('button', {
|
1333
|
+
title: 'Toggle source code panel',
|
1334
|
+
className: '__dumi-default-icon'.concat(
|
1335
|
+
Z ? ' __dumi-default-btn-expand' : '',
|
1336
|
+
),
|
1337
|
+
role: 'source',
|
1338
|
+
type: 'button',
|
1339
|
+
onClick: function () {
|
1340
|
+
return q(!Z);
|
1341
|
+
},
|
1342
|
+
}),
|
1343
|
+
),
|
1344
|
+
Z &&
|
1345
|
+
n.a.createElement(
|
1346
|
+
'div',
|
1347
|
+
{ className: '__dumi-default-previewer-source-wrapper' },
|
1348
|
+
!k &&
|
1349
|
+
n.a.createElement(
|
1350
|
+
r['b'],
|
1351
|
+
{
|
1352
|
+
className: '__dumi-default-previewer-source-tab',
|
1353
|
+
prefixCls: '__dumi-default-tabs',
|
1354
|
+
moreIcon: '\xb7\xb7\xb7',
|
1355
|
+
defaultActiveKey: S,
|
1356
|
+
onChange: Y,
|
1357
|
+
},
|
1358
|
+
Object.keys(p.sources).map(function (e) {
|
1359
|
+
return n.a.createElement(r['a'], {
|
1360
|
+
tab:
|
1361
|
+
'_' === e ? 'index.'.concat(h(e, p.sources[e])) : e,
|
1362
|
+
key: e,
|
1363
|
+
});
|
1364
|
+
}),
|
1365
|
+
),
|
1366
|
+
n.a.createElement(
|
1367
|
+
'div',
|
1368
|
+
{ className: '__dumi-default-previewer-source' },
|
1369
|
+
n.a.createElement(d['a'], { code: $, lang: T, showCopy: !1 }),
|
1370
|
+
),
|
1371
|
+
),
|
1372
|
+
)
|
1373
|
+
);
|
1374
|
+
};
|
1375
|
+
t['default'] = f;
|
1376
|
+
},
|
1377
|
+
},
|
1378
|
+
]);
|