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