@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,1145 @@
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[11],{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"),u=a("dEAq"),o=a("H1Ra");a("RZMt");function m(e,t){return p(e)||s(e,t)||i(e,t)||d()}function d(){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,u=!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(o){u=!0,n=o}finally{try{c||null==a["return"]||a["return"]()}finally{if(u)throw n}}return r}}function p(e){if(Array.isArray(e))return e}function f(e,t){var a,l=null===(a=e.match(/\.(\w+)$/))||void 0===a?void 0:a[1];return l||(l=t.tsx?"tsx":"jsx"),l}var h=function(e){var t,a,d,i=Object(l["useRef"])(),E=Object(l["useContext"])(u["context"]),s=E.locale,p=Object(u["useLocaleProps"])(s,e),h=Object(u["useDemoUrl"])(p.identifier),b=p.demoUrl||h,v=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(p.identifier),k=1===Object.keys(p.sources).length,g=Object(u["useCodeSandbox"])((null===(t=p.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:p),w=Object(u["useRiddle"])((null===(a=p.hideActions)||void 0===a?void 0:a.includes("RIDDLE"))?null:p),N=Object(u["useMotions"])(p.motions||[],i.current),_=m(N,2),y=_[0],A=_[1],x=Object(u["useCopy"])(),C=m(x,2),I=C[0],L=C[1],S=Object(l["useState"])("_"),O=m(S,2),j=O[0],R=O[1],P=Object(l["useState"])(f(j,p.sources[j])),M=m(P,2),T=M[0],F=M[1],q=Object(l["useState"])(Boolean(p.defaultShowCode)),B=m(q,2),U=B[0],V=B[1],Z=Object(l["useState"])(Math.random()),H=m(Z,2),J=H[0],D=H[1],$=p.sources[j][T]||p.sources[j].content,X=Object(u["useTSPlaygroundUrl"])(s,$),G=Object(l["useRef"])(),K=Object(u["usePrefersColor"])(),Q=m(K,1),W=Q[0];function z(e){R(e),F(f(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:J,src:b,ref:G}):p.children),n.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":p.title},p.title&&n.a.createElement(u["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}),w&&n.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:w}),p.motions&&n.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:A,onClick:function(){return y()}}),p.iframe&&n.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return D(Math.random())}}),!(null===(d=p.hideActions)||void 0===d?void 0:d.includes("EXTERNAL"))&&n.a.createElement(u["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":L,onClick:function(){return I($)}}),"tsx"===T&&U&&n.a.createElement(u["Link"],{target:"_blank",to:X},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 V(!U)}})),U&&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:j,onChange:z},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(o["a"],{code:$,lang:T,showCopy:!1}))))};t["default"]=h},bXt6:function(e,t,a){"use strict";a.r(t);var l=a("q1tI"),n=a.n(l),r=a("dEAq"),c=a("Zxc8"),u=a("H1Ra"),o=a("JjdP"),m=n.a.memo(o["default"]["auto-complete-basic"].component),d=n.a.memo(o["default"]["auto-complete-custom"].component),i=n.a.memo(o["default"]["auto-complete-custominput"].component),E=n.a.memo(o["default"]["auto-complete-insensitive"].component),s=n.a.memo(o["default"]["auto-complete-confirm"].component),p=n.a.memo(o["default"]["auto-complete-unconfirm"].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:"autocomplete-\u81ea\u52a8\u5b8c\u6210"},n.a.createElement(r["AnchorLink"],{to:"#autocomplete-\u81ea\u52a8\u5b8c\u6210","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"AutoComplete \u81ea\u52a8\u5b8c\u6210"),n.a.createElement("p",null,"\u8f93\u5165\u6846\u81ea\u52a8\u5b8c\u6210\u529f\u80fd\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\u4e00\u4e2a\u8f93\u5165\u6846\u800c\u4e0d\u662f\u9009\u62e9\u5668\u3002"),n.a.createElement("li",null,"\u9700\u8981\u8f93\u5165\u5efa\u8bae/\u8f85\u52a9\u63d0\u793a\u3002")),n.a.createElement("p",null,"\u548c Select \u7684\u533a\u522b\u662f\uff1a"),n.a.createElement("ul",null,n.a.createElement("li",null,"AutoComplete \u662f\u4e00\u4e2a\u5e26\u63d0\u793a\u7684\u6587\u672c\u8f93\u5165\u6846\uff0c\u7528\u6237\u53ef\u4ee5\u81ea\u7531\u8f93\u5165\uff0c\u5173\u952e\u8bcd\u662f\u8f85\u52a9",n.a.createElement("strong",null,"\u8f93\u5165"),"\u3002"),n.a.createElement("li",null,"Select \u662f\u5728\u9650\u5b9a\u7684\u53ef\u9009\u9879\u4e2d\u8fdb\u884c\u9009\u62e9\uff0c\u5173\u952e\u8bcd\u662f",n.a.createElement("strong",null,"\u9009\u62e9"),"\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\u4f7f\u7528"},n.a.createElement(r["AnchorLink"],{to:"#\u57fa\u672c\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u57fa\u672c\u4f7f\u7528")),n.a.createElement(c["default"],o["default"]["auto-complete-basic"].previewerProps,n.a.createElement(m,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u9009\u9879"},n.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u9009\u9879","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u9009\u9879")),n.a.createElement(c["default"],o["default"]["auto-complete-custom"].previewerProps,n.a.createElement(d,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u8f93\u5165\u7ec4\u4ef6"},n.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u8f93\u5165\u7ec4\u4ef6","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u8f93\u5165\u7ec4\u4ef6")),n.a.createElement(c["default"],o["default"]["auto-complete-custominput"].previewerProps,n.a.createElement(i,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u4e0d\u533a\u5206\u5927\u5c0f\u5199"},n.a.createElement(r["AnchorLink"],{to:"#\u4e0d\u533a\u5206\u5927\u5c0f\u5199","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4e0d\u533a\u5206\u5927\u5c0f\u5199")),n.a.createElement(c["default"],o["default"]["auto-complete-insensitive"].previewerProps,n.a.createElement(E,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u67e5\u8be2\u6a21\u5f0f---\u786e\u5b9a\u7c7b\u76ee"},n.a.createElement(r["AnchorLink"],{to:"#\u67e5\u8be2\u6a21\u5f0f---\u786e\u5b9a\u7c7b\u76ee","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u67e5\u8be2\u6a21\u5f0f - \u786e\u5b9a\u7c7b\u76ee")),n.a.createElement(c["default"],o["default"]["auto-complete-confirm"].previewerProps,n.a.createElement(s,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u67e5\u8be2\u6a21\u5f0f---\u4e0d\u786e\u5b9a\u7c7b\u76ee"},n.a.createElement(r["AnchorLink"],{to:"#\u67e5\u8be2\u6a21\u5f0f---\u4e0d\u786e\u5b9a\u7c7b\u76ee","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u67e5\u8be2\u6a21\u5f0f - \u4e0d\u786e\u5b9a\u7c7b\u76ee")),n.a.createElement(c["default"],o["default"]["auto-complete-unconfirm"].previewerProps,n.a.createElement(p,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,"\u652f\u6301\u6e05\u9664"),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,"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,"backfill"),n.a.createElement("td",null,"\u4f7f\u7528\u952e\u76d8\u9009\u62e9\u9009\u9879\u7684\u65f6\u5019\u628a\u9009\u4e2d\u9879\u56de\u586b\u5230\u8f93\u5165\u6846\u4e2d"),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,"children (\u81ea\u52a8\u5b8c\u6210\u7684\u6570\u636e\u6e90)"),n.a.createElement("td",null,"\u81ea\u52a8\u5b8c\u6210\u7684\u6570\u636e\u6e90"),n.a.createElement("td",null,"React.ReactElement<OptionProps> | Array<React.ReactElement<OptionProps>>"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"children (\u81ea\u5b9a\u4e49\u8f93\u5165\u6846)"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u8f93\u5165\u6846"),n.a.createElement("td",null,"HTMLInputElement | HTMLTextAreaElement | React.ReactElement<InputProps>"),n.a.createElement("td",null,"<Input />"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"defaultActiveFirstOption"),n.a.createElement("td",null,"\u662f\u5426\u9ed8\u8ba4\u9ad8\u4eae\u7b2c\u4e00\u4e2a\u9009\u9879"),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,"defaultOpen"),n.a.createElement("td",null,"\u662f\u5426\u9ed8\u8ba4\u5c55\u5f00\u4e0b\u62c9\u83dc\u5355"),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,"defaultValue"),n.a.createElement("td",null,"\u6307\u5b9a\u9ed8\u8ba4\u9009\u4e2d\u7684\u6761\u76ee"),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,"disabled"),n.a.createElement("td",null,"\u662f\u5426\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,"dropdownClassName"),n.a.createElement("td",null,"\u4e0b\u62c9\u83dc\u5355\u7684 className \u5c5e\u6027"),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,"dropdownMatchSelectWidth"),n.a.createElement("td",null,"\u4e0b\u62c9\u83dc\u5355\u548c\u9009\u62e9\u5668\u540c\u5bbd\u3002\u9ed8\u8ba4\u5c06\u8bbe\u7f6e ",n.a.createElement("code",null,"min-width"),"\uff0c\u5f53\u503c\u5c0f\u4e8e\u9009\u62e9\u6846\u5bbd\u5ea6\u65f6\u4f1a\u88ab\u5ffd\u7565\u3002false \u65f6\u4f1a\u5173\u95ed\u865a\u62df\u6eda\u52a8"),n.a.createElement("td",null,"boolean | number"),n.a.createElement("td",null,"true"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"filterOption"),n.a.createElement("td",null,"\u662f\u5426\u6839\u636e\u8f93\u5165\u9879\u8fdb\u884c\u7b5b\u9009\u3002\u5f53\u5176\u4e3a\u4e00\u4e2a\u51fd\u6570\u65f6\uff0c\u4f1a\u63a5\u6536 ",n.a.createElement("code",null,"inputValue")," ",n.a.createElement("code",null,"option")," \u4e24\u4e2a\u53c2\u6570\uff0c\u5f53 ",n.a.createElement("code",null,"option")," \u7b26\u5408\u7b5b\u9009\u6761\u4ef6\u65f6\uff0c\u5e94\u8fd4\u56de true\uff0c\u53cd\u4e4b\u5219\u8fd4\u56de false"),n.a.createElement("td",null,"boolean | function(inputValue, option)"),n.a.createElement("td",null,"true"),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://codesandbox.io/s/4j168r7jw0"},"\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,"notFoundContent"),n.a.createElement("td",null,"\u5f53\u4e0b\u62c9\u5217\u8868\u4e3a\u7a7a\u65f6\u663e\u793a\u7684\u5185\u5bb9"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"open"),n.a.createElement("td",null,"\u662f\u5426\u5c55\u5f00\u4e0b\u62c9\u83dc\u5355"),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,"options"),n.a.createElement("td",null,"\u6570\u636e\u5316\u914d\u7f6e\u9009\u9879\u5185\u5bb9\uff0c\u76f8\u6bd4 jsx \u5b9a\u4e49\u4f1a\u83b7\u5f97\u66f4\u597d\u7684\u6e32\u67d3\u6027\u80fd"),n.a.createElement("td",null,"{"," label, value ","}","[]"),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\u63d0\u793a"),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,"value"),n.a.createElement("td",null,"\u6307\u5b9a\u5f53\u524d\u9009\u4e2d\u7684\u6761\u76ee"),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,"onBlur"),n.a.createElement("td",null,"\u5931\u53bb\u7126\u70b9\u65f6\u7684\u56de\u8c03"),n.a.createElement("td",null,"function()"),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\u4e2d option\uff0c\u6216 input \u7684 value \u53d8\u5316\u65f6\uff0c\u8c03\u7528\u6b64\u51fd\u6570"),n.a.createElement("td",null,"function(value)"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onDropdownVisibleChange"),n.a.createElement("td",null,"\u5c55\u5f00\u4e0b\u62c9\u83dc\u5355\u7684\u56de\u8c03"),n.a.createElement("td",null,"function(open)"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onFocus"),n.a.createElement("td",null,"\u83b7\u5f97\u7126\u70b9\u65f6\u7684\u56de\u8c03"),n.a.createElement("td",null,"function()"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onSearch"),n.a.createElement("td",null,"\u641c\u7d22\u8865\u5168\u9879\u7684\u65f6\u5019\u8c03\u7528"),n.a.createElement("td",null,"function(value)"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onSelect"),n.a.createElement("td",null,"\u88ab\u9009\u4e2d\u65f6\u8c03\u7528\uff0c\u53c2\u6570\u4e3a\u9009\u4e2d\u9879\u7684 value \u503c"),n.a.createElement("td",null,"function(value, option)"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)))),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("h2",{id:"faq"},n.a.createElement(r["AnchorLink"],{to:"#faq","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"FAQ"),n.a.createElement("h3",{id:"\u4e3a\u4f55\u53d7\u63a7\u72b6\u6001\u4e0b\u4f7f\u7528-onsearch-\u65e0\u6cd5\u8f93\u5165\u4e2d\u6587"},n.a.createElement(r["AnchorLink"],{to:"#\u4e3a\u4f55\u53d7\u63a7\u72b6\u6001\u4e0b\u4f7f\u7528-onsearch-\u65e0\u6cd5\u8f93\u5165\u4e2d\u6587","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4e3a\u4f55\u53d7\u63a7\u72b6\u6001\u4e0b\u4f7f\u7528 onSearch \u65e0\u6cd5\u8f93\u5165\u4e2d\u6587\uff1f"),n.a.createElement("p",null,"\u8bf7\u4f7f\u7528 ",n.a.createElement("code",null,"onChange")," \u8fdb\u884c\u53d7\u63a7\u7ba1\u7406\u3002",n.a.createElement("code",null,"onSearch")," \u89e6\u53d1\u4e8e\u641c\u7d22\u8f93\u5165\uff0c\u4e0e ",n.a.createElement("code",null,"onChange")," \u65f6\u673a\u4e0d\u540c\u3002\u6b64\u5916\uff0c\u70b9\u9009\u9009\u9879\u65f6\u4e5f\u4e0d\u4f1a\u89e6\u53d1 ",n.a.createElement("code",null,"onSearch")," \u4e8b\u4ef6\u3002"),n.a.createElement("p",null,"\u76f8\u5173 issue\uff1a",n.a.createElement(r["Link"],{to:"https://github.com/ant-design/ant-design/issues/18230"},"#18230")," ",n.a.createElement(r["Link"],{to:"https://github.com/ant-design/ant-design/issues/17916"},"#17916")),n.a.createElement("h3",{id:"v3-\u7684\u90e8\u5206\u5c5e\u6027\u4e3a\u4f55\u5728-v4-\u4e2d\u6ca1\u6709\u4e86"},n.a.createElement(r["AnchorLink"],{to:"#v3-\u7684\u90e8\u5206\u5c5e\u6027\u4e3a\u4f55\u5728-v4-\u4e2d\u6ca1\u6709\u4e86","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"v3 \u7684\u90e8\u5206\u5c5e\u6027\u4e3a\u4f55\u5728 v4 \u4e2d\u6ca1\u6709\u4e86\uff1f"),n.a.createElement("p",null,"AutoComplete \u7ec4\u4ef6\u662f\u4e00\u4e2a\u652f\u6301\u81ea\u52a8\u63d0\u793a\u7684 Input \u7ec4\u4ef6\uff0c\u56e0\u800c\u5176\u4e0d\u5177\u6709 ",n.a.createElement("code",null,"labelInValue")," \u7b49\u5f71\u54cd value \u5c55\u793a\u7684\u5c5e\u6027\u3002\u5728 v3 \u7248\u672c\uff0cAutoComplete \u5b9e\u73b0\u5b58\u5728\u8f93\u5165\u503c\u5982\u679c\u9047\u5230 ",n.a.createElement("code",null,"value")," \u4e0e ",n.a.createElement("code",null,"label")," \u76f8\u540c\u65f6\u65e0\u6cd5\u6620\u5c04\u7684\u95ee\u9898\u3002 v4 \u4e2d\u4e0d\u518d\u652f\u6301 ",n.a.createElement("code",null,"label")," \u4e3a\u503c\u7684\u8f93\u5165\u5f62\u6001\u3002"),n.a.createElement("p",null,"\u6b64\u5916\u4e3a\u4e86\u7edf\u4e00 API\uff0c",n.a.createElement("code",null,"dataSource")," \u6539\u4e3a ",n.a.createElement("code",null,"options")," \u4f60\u53ef\u4ee5\u5982\u4e0b\u8f6c\u6362\uff1a"),n.a.createElement("h4",{id:"v3"},n.a.createElement(r["AnchorLink"],{to:"#v3","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"v3"),n.a.createElement(u["a"],{code:"dataSource = ['light', 'bamboo'];\n// or\ndataSource = [\n { value: 'light', text: 'Light' },\n { value: 'bamboo', text: 'Bamboo' },\n];",lang:"bash"}),n.a.createElement("h4",{id:"v4"},n.a.createElement(r["AnchorLink"],{to:"#v4","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"v4"),n.a.createElement(u["a"],{code:"options = [\n { value: 'light', label: 'Light' },\n { value: 'bamboo', label: 'Bamboo' },\n];",lang:"bash"})))))}}]);
|
1
|
+
(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
|
2
|
+
[11],
|
3
|
+
{
|
4
|
+
MZF8: function (e, t, a) {
|
5
|
+
'use strict';
|
6
|
+
var l = a('ogwx');
|
7
|
+
a.d(t, 'a', function () {
|
8
|
+
return l['b'];
|
9
|
+
});
|
10
|
+
a('VCU9');
|
11
|
+
},
|
12
|
+
RZMt: function (e, t, a) {},
|
13
|
+
Zxc8: function (e, t, a) {
|
14
|
+
'use strict';
|
15
|
+
a.r(t);
|
16
|
+
var l = a('q1tI'),
|
17
|
+
n = a.n(l),
|
18
|
+
r = a('k3GJ'),
|
19
|
+
c = a('MZF8'),
|
20
|
+
u = a('dEAq'),
|
21
|
+
o = a('H1Ra');
|
22
|
+
a('RZMt');
|
23
|
+
function m(e, t) {
|
24
|
+
return p(e) || s(e, t) || i(e, t) || d();
|
25
|
+
}
|
26
|
+
function d() {
|
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 a = Object.prototype.toString.call(e).slice(8, -1);
|
35
|
+
return (
|
36
|
+
'Object' === a && e.constructor && (a = e.constructor.name),
|
37
|
+
'Map' === a || 'Set' === a
|
38
|
+
? Array.from(e)
|
39
|
+
: 'Arguments' === a ||
|
40
|
+
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
|
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 a = 0, l = new Array(t); a < t; a++) l[a] = e[a];
|
49
|
+
return l;
|
50
|
+
}
|
51
|
+
function s(e, t) {
|
52
|
+
var a =
|
53
|
+
null == e
|
54
|
+
? null
|
55
|
+
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
|
56
|
+
e['@@iterator'];
|
57
|
+
if (null != a) {
|
58
|
+
var l,
|
59
|
+
n,
|
60
|
+
r = [],
|
61
|
+
c = !0,
|
62
|
+
u = !1;
|
63
|
+
try {
|
64
|
+
for (a = a.call(e); !(c = (l = a.next()).done); c = !0)
|
65
|
+
if ((r.push(l.value), t && r.length === t)) break;
|
66
|
+
} catch (o) {
|
67
|
+
(u = !0), (n = o);
|
68
|
+
} finally {
|
69
|
+
try {
|
70
|
+
c || null == a['return'] || a['return']();
|
71
|
+
} finally {
|
72
|
+
if (u) 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 a,
|
83
|
+
l =
|
84
|
+
null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
|
85
|
+
return l || (l = t.tsx ? 'tsx' : 'jsx'), l;
|
86
|
+
}
|
87
|
+
var h = function (e) {
|
88
|
+
var t,
|
89
|
+
a,
|
90
|
+
d,
|
91
|
+
i = Object(l['useRef'])(),
|
92
|
+
E = Object(l['useContext'])(u['context']),
|
93
|
+
s = E.locale,
|
94
|
+
p = Object(u['useLocaleProps'])(s, e),
|
95
|
+
h = Object(u['useDemoUrl'])(p.identifier),
|
96
|
+
b = p.demoUrl || h,
|
97
|
+
v =
|
98
|
+
(null === c['a'] || void 0 === c['a']
|
99
|
+
? void 0
|
100
|
+
: c['a'].location.hash) === '#'.concat(p.identifier),
|
101
|
+
k = 1 === Object.keys(p.sources).length,
|
102
|
+
g = Object(u['useCodeSandbox'])(
|
103
|
+
(
|
104
|
+
null === (t = p.hideActions) || void 0 === t
|
105
|
+
? void 0
|
106
|
+
: t.includes('CSB')
|
107
|
+
)
|
108
|
+
? null
|
109
|
+
: p,
|
110
|
+
),
|
111
|
+
w = Object(u['useRiddle'])(
|
112
|
+
(
|
113
|
+
null === (a = p.hideActions) || void 0 === a
|
114
|
+
? void 0
|
115
|
+
: a.includes('RIDDLE')
|
116
|
+
)
|
117
|
+
? null
|
118
|
+
: p,
|
119
|
+
),
|
120
|
+
N = Object(u['useMotions'])(p.motions || [], i.current),
|
121
|
+
_ = m(N, 2),
|
122
|
+
y = _[0],
|
123
|
+
A = _[1],
|
124
|
+
x = Object(u['useCopy'])(),
|
125
|
+
C = m(x, 2),
|
126
|
+
I = C[0],
|
127
|
+
L = C[1],
|
128
|
+
S = Object(l['useState'])('_'),
|
129
|
+
O = m(S, 2),
|
130
|
+
j = O[0],
|
131
|
+
R = O[1],
|
132
|
+
P = Object(l['useState'])(f(j, p.sources[j])),
|
133
|
+
M = m(P, 2),
|
134
|
+
T = M[0],
|
135
|
+
F = M[1],
|
136
|
+
q = Object(l['useState'])(Boolean(p.defaultShowCode)),
|
137
|
+
B = m(q, 2),
|
138
|
+
U = B[0],
|
139
|
+
V = B[1],
|
140
|
+
Z = Object(l['useState'])(Math.random()),
|
141
|
+
H = m(Z, 2),
|
142
|
+
J = H[0],
|
143
|
+
D = H[1],
|
144
|
+
$ = p.sources[j][T] || p.sources[j].content,
|
145
|
+
X = Object(u['useTSPlaygroundUrl'])(s, $),
|
146
|
+
G = Object(l['useRef'])(),
|
147
|
+
K = Object(u['usePrefersColor'])(),
|
148
|
+
Q = m(K, 1),
|
149
|
+
W = Q[0];
|
150
|
+
function z(e) {
|
151
|
+
R(e), F(f(e, p.sources[e]));
|
152
|
+
}
|
153
|
+
return (
|
154
|
+
Object(l['useEffect'])(
|
155
|
+
function () {
|
156
|
+
D(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
|
+
v ? '__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: J,
|
198
|
+
src: b,
|
199
|
+
ref: G,
|
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
|
+
u['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
|
+
w &&
|
231
|
+
n.a.createElement('button', {
|
232
|
+
title: 'Open demo on Riddle',
|
233
|
+
className: '__dumi-default-icon',
|
234
|
+
role: 'riddle',
|
235
|
+
onClick: w,
|
236
|
+
}),
|
237
|
+
p.motions &&
|
238
|
+
n.a.createElement('button', {
|
239
|
+
title: 'Execute motions',
|
240
|
+
className: '__dumi-default-icon',
|
241
|
+
role: 'motions',
|
242
|
+
disabled: A,
|
243
|
+
onClick: function () {
|
244
|
+
return y();
|
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 D(Math.random());
|
254
|
+
},
|
255
|
+
}),
|
256
|
+
!(null === (d = p.hideActions) || void 0 === d
|
257
|
+
? void 0
|
258
|
+
: d.includes('EXTERNAL')) &&
|
259
|
+
n.a.createElement(
|
260
|
+
u['Link'],
|
261
|
+
{ target: '_blank', to: b },
|
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': L,
|
275
|
+
onClick: function () {
|
276
|
+
return I($);
|
277
|
+
},
|
278
|
+
}),
|
279
|
+
'tsx' === T &&
|
280
|
+
U &&
|
281
|
+
n.a.createElement(
|
282
|
+
u['Link'],
|
283
|
+
{ target: '_blank', to: X },
|
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 V(!U);
|
300
|
+
},
|
301
|
+
}),
|
302
|
+
),
|
303
|
+
U &&
|
304
|
+
n.a.createElement(
|
305
|
+
'div',
|
306
|
+
{ className: '__dumi-default-previewer-source-wrapper' },
|
307
|
+
!k &&
|
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: j,
|
315
|
+
onChange: z,
|
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(o['a'], { code: $, lang: T, showCopy: !1 }),
|
329
|
+
),
|
330
|
+
),
|
331
|
+
)
|
332
|
+
);
|
333
|
+
};
|
334
|
+
t['default'] = h;
|
335
|
+
},
|
336
|
+
bXt6: function (e, t, a) {
|
337
|
+
'use strict';
|
338
|
+
a.r(t);
|
339
|
+
var l = a('q1tI'),
|
340
|
+
n = a.n(l),
|
341
|
+
r = a('dEAq'),
|
342
|
+
c = a('Zxc8'),
|
343
|
+
u = a('H1Ra'),
|
344
|
+
o = a('JjdP'),
|
345
|
+
m = n.a.memo(o['default']['auto-complete-basic'].component),
|
346
|
+
d = n.a.memo(o['default']['auto-complete-custom'].component),
|
347
|
+
i = n.a.memo(o['default']['auto-complete-custominput'].component),
|
348
|
+
E = n.a.memo(o['default']['auto-complete-insensitive'].component),
|
349
|
+
s = n.a.memo(o['default']['auto-complete-confirm'].component),
|
350
|
+
p = n.a.memo(o['default']['auto-complete-unconfirm'].component);
|
351
|
+
t['default'] = (e) => (
|
352
|
+
n.a.useEffect(() => {
|
353
|
+
var t;
|
354
|
+
null !== e &&
|
355
|
+
void 0 !== e &&
|
356
|
+
null !== (t = e.location) &&
|
357
|
+
void 0 !== t &&
|
358
|
+
t.hash &&
|
359
|
+
r['AnchorLink'].scrollToAnchor(
|
360
|
+
decodeURIComponent(e.location.hash.slice(1)),
|
361
|
+
);
|
362
|
+
}, []),
|
363
|
+
n.a.createElement(
|
364
|
+
n.a.Fragment,
|
365
|
+
null,
|
366
|
+
n.a.createElement(
|
367
|
+
n.a.Fragment,
|
368
|
+
null,
|
369
|
+
n.a.createElement(
|
370
|
+
'div',
|
371
|
+
{ className: 'markdown' },
|
372
|
+
n.a.createElement(
|
373
|
+
'h1',
|
374
|
+
{ id: 'autocomplete-\u81ea\u52a8\u5b8c\u6210' },
|
375
|
+
n.a.createElement(
|
376
|
+
r['AnchorLink'],
|
377
|
+
{
|
378
|
+
to: '#autocomplete-\u81ea\u52a8\u5b8c\u6210',
|
379
|
+
'aria-hidden': 'true',
|
380
|
+
tabIndex: -1,
|
381
|
+
},
|
382
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
383
|
+
),
|
384
|
+
'AutoComplete \u81ea\u52a8\u5b8c\u6210',
|
385
|
+
),
|
386
|
+
n.a.createElement(
|
387
|
+
'p',
|
388
|
+
null,
|
389
|
+
'\u8f93\u5165\u6846\u81ea\u52a8\u5b8c\u6210\u529f\u80fd\u3002',
|
390
|
+
),
|
391
|
+
n.a.createElement(
|
392
|
+
'h2',
|
393
|
+
{ id: '\u4f55\u65f6\u4f7f\u7528' },
|
394
|
+
n.a.createElement(
|
395
|
+
r['AnchorLink'],
|
396
|
+
{
|
397
|
+
to: '#\u4f55\u65f6\u4f7f\u7528',
|
398
|
+
'aria-hidden': 'true',
|
399
|
+
tabIndex: -1,
|
400
|
+
},
|
401
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
402
|
+
),
|
403
|
+
'\u4f55\u65f6\u4f7f\u7528',
|
404
|
+
),
|
405
|
+
n.a.createElement(
|
406
|
+
'ul',
|
407
|
+
null,
|
408
|
+
n.a.createElement(
|
409
|
+
'li',
|
410
|
+
null,
|
411
|
+
'\u9700\u8981\u4e00\u4e2a\u8f93\u5165\u6846\u800c\u4e0d\u662f\u9009\u62e9\u5668\u3002',
|
412
|
+
),
|
413
|
+
n.a.createElement(
|
414
|
+
'li',
|
415
|
+
null,
|
416
|
+
'\u9700\u8981\u8f93\u5165\u5efa\u8bae/\u8f85\u52a9\u63d0\u793a\u3002',
|
417
|
+
),
|
418
|
+
),
|
419
|
+
n.a.createElement(
|
420
|
+
'p',
|
421
|
+
null,
|
422
|
+
'\u548c Select \u7684\u533a\u522b\u662f\uff1a',
|
423
|
+
),
|
424
|
+
n.a.createElement(
|
425
|
+
'ul',
|
426
|
+
null,
|
427
|
+
n.a.createElement(
|
428
|
+
'li',
|
429
|
+
null,
|
430
|
+
'AutoComplete \u662f\u4e00\u4e2a\u5e26\u63d0\u793a\u7684\u6587\u672c\u8f93\u5165\u6846\uff0c\u7528\u6237\u53ef\u4ee5\u81ea\u7531\u8f93\u5165\uff0c\u5173\u952e\u8bcd\u662f\u8f85\u52a9',
|
431
|
+
n.a.createElement('strong', null, '\u8f93\u5165'),
|
432
|
+
'\u3002',
|
433
|
+
),
|
434
|
+
n.a.createElement(
|
435
|
+
'li',
|
436
|
+
null,
|
437
|
+
'Select \u662f\u5728\u9650\u5b9a\u7684\u53ef\u9009\u9879\u4e2d\u8fdb\u884c\u9009\u62e9\uff0c\u5173\u952e\u8bcd\u662f',
|
438
|
+
n.a.createElement('strong', null, '\u9009\u62e9'),
|
439
|
+
'\u3002',
|
440
|
+
),
|
441
|
+
),
|
442
|
+
n.a.createElement(
|
443
|
+
'h2',
|
444
|
+
{ id: '\u4ee3\u7801\u6f14\u793a' },
|
445
|
+
n.a.createElement(
|
446
|
+
r['AnchorLink'],
|
447
|
+
{
|
448
|
+
to: '#\u4ee3\u7801\u6f14\u793a',
|
449
|
+
'aria-hidden': 'true',
|
450
|
+
tabIndex: -1,
|
451
|
+
},
|
452
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
453
|
+
),
|
454
|
+
'\u4ee3\u7801\u6f14\u793a',
|
455
|
+
),
|
456
|
+
n.a.createElement(
|
457
|
+
'h3',
|
458
|
+
{ id: '\u57fa\u672c\u4f7f\u7528' },
|
459
|
+
n.a.createElement(
|
460
|
+
r['AnchorLink'],
|
461
|
+
{
|
462
|
+
to: '#\u57fa\u672c\u4f7f\u7528',
|
463
|
+
'aria-hidden': 'true',
|
464
|
+
tabIndex: -1,
|
465
|
+
},
|
466
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
467
|
+
),
|
468
|
+
'\u57fa\u672c\u4f7f\u7528',
|
469
|
+
),
|
470
|
+
),
|
471
|
+
n.a.createElement(
|
472
|
+
c['default'],
|
473
|
+
o['default']['auto-complete-basic'].previewerProps,
|
474
|
+
n.a.createElement(m, null),
|
475
|
+
),
|
476
|
+
n.a.createElement(
|
477
|
+
'div',
|
478
|
+
{ className: 'markdown' },
|
479
|
+
n.a.createElement(
|
480
|
+
'h3',
|
481
|
+
{ id: '\u81ea\u5b9a\u4e49\u9009\u9879' },
|
482
|
+
n.a.createElement(
|
483
|
+
r['AnchorLink'],
|
484
|
+
{
|
485
|
+
to: '#\u81ea\u5b9a\u4e49\u9009\u9879',
|
486
|
+
'aria-hidden': 'true',
|
487
|
+
tabIndex: -1,
|
488
|
+
},
|
489
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
490
|
+
),
|
491
|
+
'\u81ea\u5b9a\u4e49\u9009\u9879',
|
492
|
+
),
|
493
|
+
),
|
494
|
+
n.a.createElement(
|
495
|
+
c['default'],
|
496
|
+
o['default']['auto-complete-custom'].previewerProps,
|
497
|
+
n.a.createElement(d, null),
|
498
|
+
),
|
499
|
+
n.a.createElement(
|
500
|
+
'div',
|
501
|
+
{ className: 'markdown' },
|
502
|
+
n.a.createElement(
|
503
|
+
'h3',
|
504
|
+
{ id: '\u81ea\u5b9a\u4e49\u8f93\u5165\u7ec4\u4ef6' },
|
505
|
+
n.a.createElement(
|
506
|
+
r['AnchorLink'],
|
507
|
+
{
|
508
|
+
to: '#\u81ea\u5b9a\u4e49\u8f93\u5165\u7ec4\u4ef6',
|
509
|
+
'aria-hidden': 'true',
|
510
|
+
tabIndex: -1,
|
511
|
+
},
|
512
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
513
|
+
),
|
514
|
+
'\u81ea\u5b9a\u4e49\u8f93\u5165\u7ec4\u4ef6',
|
515
|
+
),
|
516
|
+
),
|
517
|
+
n.a.createElement(
|
518
|
+
c['default'],
|
519
|
+
o['default']['auto-complete-custominput'].previewerProps,
|
520
|
+
n.a.createElement(i, null),
|
521
|
+
),
|
522
|
+
n.a.createElement(
|
523
|
+
'div',
|
524
|
+
{ className: 'markdown' },
|
525
|
+
n.a.createElement(
|
526
|
+
'h3',
|
527
|
+
{ id: '\u4e0d\u533a\u5206\u5927\u5c0f\u5199' },
|
528
|
+
n.a.createElement(
|
529
|
+
r['AnchorLink'],
|
530
|
+
{
|
531
|
+
to: '#\u4e0d\u533a\u5206\u5927\u5c0f\u5199',
|
532
|
+
'aria-hidden': 'true',
|
533
|
+
tabIndex: -1,
|
534
|
+
},
|
535
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
536
|
+
),
|
537
|
+
'\u4e0d\u533a\u5206\u5927\u5c0f\u5199',
|
538
|
+
),
|
539
|
+
),
|
540
|
+
n.a.createElement(
|
541
|
+
c['default'],
|
542
|
+
o['default']['auto-complete-insensitive'].previewerProps,
|
543
|
+
n.a.createElement(E, null),
|
544
|
+
),
|
545
|
+
n.a.createElement(
|
546
|
+
'div',
|
547
|
+
{ className: 'markdown' },
|
548
|
+
n.a.createElement(
|
549
|
+
'h3',
|
550
|
+
{ id: '\u67e5\u8be2\u6a21\u5f0f---\u786e\u5b9a\u7c7b\u76ee' },
|
551
|
+
n.a.createElement(
|
552
|
+
r['AnchorLink'],
|
553
|
+
{
|
554
|
+
to: '#\u67e5\u8be2\u6a21\u5f0f---\u786e\u5b9a\u7c7b\u76ee',
|
555
|
+
'aria-hidden': 'true',
|
556
|
+
tabIndex: -1,
|
557
|
+
},
|
558
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
559
|
+
),
|
560
|
+
'\u67e5\u8be2\u6a21\u5f0f - \u786e\u5b9a\u7c7b\u76ee',
|
561
|
+
),
|
562
|
+
),
|
563
|
+
n.a.createElement(
|
564
|
+
c['default'],
|
565
|
+
o['default']['auto-complete-confirm'].previewerProps,
|
566
|
+
n.a.createElement(s, null),
|
567
|
+
),
|
568
|
+
n.a.createElement(
|
569
|
+
'div',
|
570
|
+
{ className: 'markdown' },
|
571
|
+
n.a.createElement(
|
572
|
+
'h3',
|
573
|
+
{
|
574
|
+
id: '\u67e5\u8be2\u6a21\u5f0f---\u4e0d\u786e\u5b9a\u7c7b\u76ee',
|
575
|
+
},
|
576
|
+
n.a.createElement(
|
577
|
+
r['AnchorLink'],
|
578
|
+
{
|
579
|
+
to: '#\u67e5\u8be2\u6a21\u5f0f---\u4e0d\u786e\u5b9a\u7c7b\u76ee',
|
580
|
+
'aria-hidden': 'true',
|
581
|
+
tabIndex: -1,
|
582
|
+
},
|
583
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
584
|
+
),
|
585
|
+
'\u67e5\u8be2\u6a21\u5f0f - \u4e0d\u786e\u5b9a\u7c7b\u76ee',
|
586
|
+
),
|
587
|
+
),
|
588
|
+
n.a.createElement(
|
589
|
+
c['default'],
|
590
|
+
o['default']['auto-complete-unconfirm'].previewerProps,
|
591
|
+
n.a.createElement(p, null),
|
592
|
+
),
|
593
|
+
n.a.createElement(
|
594
|
+
'div',
|
595
|
+
{ className: 'markdown' },
|
596
|
+
n.a.createElement(
|
597
|
+
'h2',
|
598
|
+
{ id: 'api' },
|
599
|
+
n.a.createElement(
|
600
|
+
r['AnchorLink'],
|
601
|
+
{ to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
|
602
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
603
|
+
),
|
604
|
+
'API',
|
605
|
+
),
|
606
|
+
n.a.createElement(
|
607
|
+
'table',
|
608
|
+
null,
|
609
|
+
n.a.createElement(
|
610
|
+
'thead',
|
611
|
+
null,
|
612
|
+
n.a.createElement(
|
613
|
+
'tr',
|
614
|
+
null,
|
615
|
+
n.a.createElement('th', null, '\u53c2\u6570'),
|
616
|
+
n.a.createElement('th', null, '\u8bf4\u660e'),
|
617
|
+
n.a.createElement('th', null, '\u7c7b\u578b'),
|
618
|
+
n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
|
619
|
+
n.a.createElement('th', null, '\u7248\u672c'),
|
620
|
+
),
|
621
|
+
),
|
622
|
+
n.a.createElement(
|
623
|
+
'tbody',
|
624
|
+
null,
|
625
|
+
n.a.createElement(
|
626
|
+
'tr',
|
627
|
+
null,
|
628
|
+
n.a.createElement('td', null, 'allowClear'),
|
629
|
+
n.a.createElement('td', null, '\u652f\u6301\u6e05\u9664'),
|
630
|
+
n.a.createElement('td', null, 'boolean'),
|
631
|
+
n.a.createElement('td', null, 'false'),
|
632
|
+
n.a.createElement('td', null),
|
633
|
+
),
|
634
|
+
n.a.createElement(
|
635
|
+
'tr',
|
636
|
+
null,
|
637
|
+
n.a.createElement('td', null, 'autoFocus'),
|
638
|
+
n.a.createElement(
|
639
|
+
'td',
|
640
|
+
null,
|
641
|
+
'\u81ea\u52a8\u83b7\u53d6\u7126\u70b9',
|
642
|
+
),
|
643
|
+
n.a.createElement('td', null, 'boolean'),
|
644
|
+
n.a.createElement('td', null, 'false'),
|
645
|
+
n.a.createElement('td', null),
|
646
|
+
),
|
647
|
+
n.a.createElement(
|
648
|
+
'tr',
|
649
|
+
null,
|
650
|
+
n.a.createElement('td', null, 'backfill'),
|
651
|
+
n.a.createElement(
|
652
|
+
'td',
|
653
|
+
null,
|
654
|
+
'\u4f7f\u7528\u952e\u76d8\u9009\u62e9\u9009\u9879\u7684\u65f6\u5019\u628a\u9009\u4e2d\u9879\u56de\u586b\u5230\u8f93\u5165\u6846\u4e2d',
|
655
|
+
),
|
656
|
+
n.a.createElement('td', null, 'boolean'),
|
657
|
+
n.a.createElement('td', null, 'false'),
|
658
|
+
n.a.createElement('td', null),
|
659
|
+
),
|
660
|
+
n.a.createElement(
|
661
|
+
'tr',
|
662
|
+
null,
|
663
|
+
n.a.createElement(
|
664
|
+
'td',
|
665
|
+
null,
|
666
|
+
'children (\u81ea\u52a8\u5b8c\u6210\u7684\u6570\u636e\u6e90)',
|
667
|
+
),
|
668
|
+
n.a.createElement(
|
669
|
+
'td',
|
670
|
+
null,
|
671
|
+
'\u81ea\u52a8\u5b8c\u6210\u7684\u6570\u636e\u6e90',
|
672
|
+
),
|
673
|
+
n.a.createElement(
|
674
|
+
'td',
|
675
|
+
null,
|
676
|
+
'React.ReactElement<OptionProps> | Array<React.ReactElement<OptionProps>>',
|
677
|
+
),
|
678
|
+
n.a.createElement('td', null, '-'),
|
679
|
+
n.a.createElement('td', null),
|
680
|
+
),
|
681
|
+
n.a.createElement(
|
682
|
+
'tr',
|
683
|
+
null,
|
684
|
+
n.a.createElement(
|
685
|
+
'td',
|
686
|
+
null,
|
687
|
+
'children (\u81ea\u5b9a\u4e49\u8f93\u5165\u6846)',
|
688
|
+
),
|
689
|
+
n.a.createElement(
|
690
|
+
'td',
|
691
|
+
null,
|
692
|
+
'\u81ea\u5b9a\u4e49\u8f93\u5165\u6846',
|
693
|
+
),
|
694
|
+
n.a.createElement(
|
695
|
+
'td',
|
696
|
+
null,
|
697
|
+
'HTMLInputElement | HTMLTextAreaElement | React.ReactElement<InputProps>',
|
698
|
+
),
|
699
|
+
n.a.createElement('td', null, '<Input />'),
|
700
|
+
n.a.createElement('td', null),
|
701
|
+
),
|
702
|
+
n.a.createElement(
|
703
|
+
'tr',
|
704
|
+
null,
|
705
|
+
n.a.createElement('td', null, 'defaultActiveFirstOption'),
|
706
|
+
n.a.createElement(
|
707
|
+
'td',
|
708
|
+
null,
|
709
|
+
'\u662f\u5426\u9ed8\u8ba4\u9ad8\u4eae\u7b2c\u4e00\u4e2a\u9009\u9879',
|
710
|
+
),
|
711
|
+
n.a.createElement('td', null, 'boolean'),
|
712
|
+
n.a.createElement('td', null, 'true'),
|
713
|
+
n.a.createElement('td', null),
|
714
|
+
),
|
715
|
+
n.a.createElement(
|
716
|
+
'tr',
|
717
|
+
null,
|
718
|
+
n.a.createElement('td', null, 'defaultOpen'),
|
719
|
+
n.a.createElement(
|
720
|
+
'td',
|
721
|
+
null,
|
722
|
+
'\u662f\u5426\u9ed8\u8ba4\u5c55\u5f00\u4e0b\u62c9\u83dc\u5355',
|
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, 'defaultValue'),
|
732
|
+
n.a.createElement(
|
733
|
+
'td',
|
734
|
+
null,
|
735
|
+
'\u6307\u5b9a\u9ed8\u8ba4\u9009\u4e2d\u7684\u6761\u76ee',
|
736
|
+
),
|
737
|
+
n.a.createElement('td', null, 'string'),
|
738
|
+
n.a.createElement('td', null, '-'),
|
739
|
+
n.a.createElement('td', null),
|
740
|
+
),
|
741
|
+
n.a.createElement(
|
742
|
+
'tr',
|
743
|
+
null,
|
744
|
+
n.a.createElement('td', null, 'disabled'),
|
745
|
+
n.a.createElement('td', null, '\u662f\u5426\u7981\u7528'),
|
746
|
+
n.a.createElement('td', null, 'boolean'),
|
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, 'dropdownClassName'),
|
754
|
+
n.a.createElement(
|
755
|
+
'td',
|
756
|
+
null,
|
757
|
+
'\u4e0b\u62c9\u83dc\u5355\u7684 className \u5c5e\u6027',
|
758
|
+
),
|
759
|
+
n.a.createElement('td', null, 'string'),
|
760
|
+
n.a.createElement('td', null, '-'),
|
761
|
+
n.a.createElement('td', null),
|
762
|
+
),
|
763
|
+
n.a.createElement(
|
764
|
+
'tr',
|
765
|
+
null,
|
766
|
+
n.a.createElement('td', null, 'dropdownMatchSelectWidth'),
|
767
|
+
n.a.createElement(
|
768
|
+
'td',
|
769
|
+
null,
|
770
|
+
'\u4e0b\u62c9\u83dc\u5355\u548c\u9009\u62e9\u5668\u540c\u5bbd\u3002\u9ed8\u8ba4\u5c06\u8bbe\u7f6e ',
|
771
|
+
n.a.createElement('code', null, 'min-width'),
|
772
|
+
'\uff0c\u5f53\u503c\u5c0f\u4e8e\u9009\u62e9\u6846\u5bbd\u5ea6\u65f6\u4f1a\u88ab\u5ffd\u7565\u3002false \u65f6\u4f1a\u5173\u95ed\u865a\u62df\u6eda\u52a8',
|
773
|
+
),
|
774
|
+
n.a.createElement('td', null, 'boolean | number'),
|
775
|
+
n.a.createElement('td', null, 'true'),
|
776
|
+
n.a.createElement('td', null),
|
777
|
+
),
|
778
|
+
n.a.createElement(
|
779
|
+
'tr',
|
780
|
+
null,
|
781
|
+
n.a.createElement('td', null, 'filterOption'),
|
782
|
+
n.a.createElement(
|
783
|
+
'td',
|
784
|
+
null,
|
785
|
+
'\u662f\u5426\u6839\u636e\u8f93\u5165\u9879\u8fdb\u884c\u7b5b\u9009\u3002\u5f53\u5176\u4e3a\u4e00\u4e2a\u51fd\u6570\u65f6\uff0c\u4f1a\u63a5\u6536 ',
|
786
|
+
n.a.createElement('code', null, 'inputValue'),
|
787
|
+
' ',
|
788
|
+
n.a.createElement('code', null, 'option'),
|
789
|
+
' \u4e24\u4e2a\u53c2\u6570\uff0c\u5f53 ',
|
790
|
+
n.a.createElement('code', null, 'option'),
|
791
|
+
' \u7b26\u5408\u7b5b\u9009\u6761\u4ef6\u65f6\uff0c\u5e94\u8fd4\u56de true\uff0c\u53cd\u4e4b\u5219\u8fd4\u56de false',
|
792
|
+
),
|
793
|
+
n.a.createElement(
|
794
|
+
'td',
|
795
|
+
null,
|
796
|
+
'boolean | function(inputValue, option)',
|
797
|
+
),
|
798
|
+
n.a.createElement('td', null, 'true'),
|
799
|
+
n.a.createElement('td', null),
|
800
|
+
),
|
801
|
+
n.a.createElement(
|
802
|
+
'tr',
|
803
|
+
null,
|
804
|
+
n.a.createElement('td', null, 'getPopupContainer'),
|
805
|
+
n.a.createElement(
|
806
|
+
'td',
|
807
|
+
null,
|
808
|
+
'\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',
|
809
|
+
n.a.createElement(
|
810
|
+
r['Link'],
|
811
|
+
{ to: 'https://codesandbox.io/s/4j168r7jw0' },
|
812
|
+
'\u793a\u4f8b',
|
813
|
+
),
|
814
|
+
),
|
815
|
+
n.a.createElement('td', null, 'function(triggerNode)'),
|
816
|
+
n.a.createElement('td', null, '() => document.body'),
|
817
|
+
n.a.createElement('td', null),
|
818
|
+
),
|
819
|
+
n.a.createElement(
|
820
|
+
'tr',
|
821
|
+
null,
|
822
|
+
n.a.createElement('td', null, 'notFoundContent'),
|
823
|
+
n.a.createElement(
|
824
|
+
'td',
|
825
|
+
null,
|
826
|
+
'\u5f53\u4e0b\u62c9\u5217\u8868\u4e3a\u7a7a\u65f6\u663e\u793a\u7684\u5185\u5bb9',
|
827
|
+
),
|
828
|
+
n.a.createElement('td', null, 'ReactNode'),
|
829
|
+
n.a.createElement('td', null, '-'),
|
830
|
+
n.a.createElement('td', null),
|
831
|
+
),
|
832
|
+
n.a.createElement(
|
833
|
+
'tr',
|
834
|
+
null,
|
835
|
+
n.a.createElement('td', null, 'open'),
|
836
|
+
n.a.createElement(
|
837
|
+
'td',
|
838
|
+
null,
|
839
|
+
'\u662f\u5426\u5c55\u5f00\u4e0b\u62c9\u83dc\u5355',
|
840
|
+
),
|
841
|
+
n.a.createElement('td', null, 'boolean'),
|
842
|
+
n.a.createElement('td', null, '-'),
|
843
|
+
n.a.createElement('td', null),
|
844
|
+
),
|
845
|
+
n.a.createElement(
|
846
|
+
'tr',
|
847
|
+
null,
|
848
|
+
n.a.createElement('td', null, 'options'),
|
849
|
+
n.a.createElement(
|
850
|
+
'td',
|
851
|
+
null,
|
852
|
+
'\u6570\u636e\u5316\u914d\u7f6e\u9009\u9879\u5185\u5bb9\uff0c\u76f8\u6bd4 jsx \u5b9a\u4e49\u4f1a\u83b7\u5f97\u66f4\u597d\u7684\u6e32\u67d3\u6027\u80fd',
|
853
|
+
),
|
854
|
+
n.a.createElement(
|
855
|
+
'td',
|
856
|
+
null,
|
857
|
+
'{',
|
858
|
+
' label, value ',
|
859
|
+
'}',
|
860
|
+
'[]',
|
861
|
+
),
|
862
|
+
n.a.createElement('td', null, '-'),
|
863
|
+
n.a.createElement('td', null),
|
864
|
+
),
|
865
|
+
n.a.createElement(
|
866
|
+
'tr',
|
867
|
+
null,
|
868
|
+
n.a.createElement('td', null, 'placeholder'),
|
869
|
+
n.a.createElement(
|
870
|
+
'td',
|
871
|
+
null,
|
872
|
+
'\u8f93\u5165\u6846\u63d0\u793a',
|
873
|
+
),
|
874
|
+
n.a.createElement('td', null, 'string'),
|
875
|
+
n.a.createElement('td', null, '-'),
|
876
|
+
n.a.createElement('td', null),
|
877
|
+
),
|
878
|
+
n.a.createElement(
|
879
|
+
'tr',
|
880
|
+
null,
|
881
|
+
n.a.createElement('td', null, 'value'),
|
882
|
+
n.a.createElement(
|
883
|
+
'td',
|
884
|
+
null,
|
885
|
+
'\u6307\u5b9a\u5f53\u524d\u9009\u4e2d\u7684\u6761\u76ee',
|
886
|
+
),
|
887
|
+
n.a.createElement('td', null, 'string'),
|
888
|
+
n.a.createElement('td', null, '-'),
|
889
|
+
n.a.createElement('td', null),
|
890
|
+
),
|
891
|
+
n.a.createElement(
|
892
|
+
'tr',
|
893
|
+
null,
|
894
|
+
n.a.createElement('td', null, 'onBlur'),
|
895
|
+
n.a.createElement(
|
896
|
+
'td',
|
897
|
+
null,
|
898
|
+
'\u5931\u53bb\u7126\u70b9\u65f6\u7684\u56de\u8c03',
|
899
|
+
),
|
900
|
+
n.a.createElement('td', null, 'function()'),
|
901
|
+
n.a.createElement('td', null, '-'),
|
902
|
+
n.a.createElement('td', null),
|
903
|
+
),
|
904
|
+
n.a.createElement(
|
905
|
+
'tr',
|
906
|
+
null,
|
907
|
+
n.a.createElement('td', null, 'onChange'),
|
908
|
+
n.a.createElement(
|
909
|
+
'td',
|
910
|
+
null,
|
911
|
+
'\u9009\u4e2d option\uff0c\u6216 input \u7684 value \u53d8\u5316\u65f6\uff0c\u8c03\u7528\u6b64\u51fd\u6570',
|
912
|
+
),
|
913
|
+
n.a.createElement('td', null, 'function(value)'),
|
914
|
+
n.a.createElement('td', null, '-'),
|
915
|
+
n.a.createElement('td', null),
|
916
|
+
),
|
917
|
+
n.a.createElement(
|
918
|
+
'tr',
|
919
|
+
null,
|
920
|
+
n.a.createElement('td', null, 'onDropdownVisibleChange'),
|
921
|
+
n.a.createElement(
|
922
|
+
'td',
|
923
|
+
null,
|
924
|
+
'\u5c55\u5f00\u4e0b\u62c9\u83dc\u5355\u7684\u56de\u8c03',
|
925
|
+
),
|
926
|
+
n.a.createElement('td', null, 'function(open)'),
|
927
|
+
n.a.createElement('td', null, '-'),
|
928
|
+
n.a.createElement('td', null),
|
929
|
+
),
|
930
|
+
n.a.createElement(
|
931
|
+
'tr',
|
932
|
+
null,
|
933
|
+
n.a.createElement('td', null, 'onFocus'),
|
934
|
+
n.a.createElement(
|
935
|
+
'td',
|
936
|
+
null,
|
937
|
+
'\u83b7\u5f97\u7126\u70b9\u65f6\u7684\u56de\u8c03',
|
938
|
+
),
|
939
|
+
n.a.createElement('td', null, 'function()'),
|
940
|
+
n.a.createElement('td', null, '-'),
|
941
|
+
n.a.createElement('td', null),
|
942
|
+
),
|
943
|
+
n.a.createElement(
|
944
|
+
'tr',
|
945
|
+
null,
|
946
|
+
n.a.createElement('td', null, 'onSearch'),
|
947
|
+
n.a.createElement(
|
948
|
+
'td',
|
949
|
+
null,
|
950
|
+
'\u641c\u7d22\u8865\u5168\u9879\u7684\u65f6\u5019\u8c03\u7528',
|
951
|
+
),
|
952
|
+
n.a.createElement('td', null, 'function(value)'),
|
953
|
+
n.a.createElement('td', null, '-'),
|
954
|
+
n.a.createElement('td', null),
|
955
|
+
),
|
956
|
+
n.a.createElement(
|
957
|
+
'tr',
|
958
|
+
null,
|
959
|
+
n.a.createElement('td', null, 'onSelect'),
|
960
|
+
n.a.createElement(
|
961
|
+
'td',
|
962
|
+
null,
|
963
|
+
'\u88ab\u9009\u4e2d\u65f6\u8c03\u7528\uff0c\u53c2\u6570\u4e3a\u9009\u4e2d\u9879\u7684 value \u503c',
|
964
|
+
),
|
965
|
+
n.a.createElement('td', null, 'function(value, option)'),
|
966
|
+
n.a.createElement('td', null, '-'),
|
967
|
+
n.a.createElement('td', null),
|
968
|
+
),
|
969
|
+
),
|
970
|
+
),
|
971
|
+
n.a.createElement(
|
972
|
+
'h2',
|
973
|
+
{ id: '\u65b9\u6cd5' },
|
974
|
+
n.a.createElement(
|
975
|
+
r['AnchorLink'],
|
976
|
+
{ to: '#\u65b9\u6cd5', 'aria-hidden': 'true', tabIndex: -1 },
|
977
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
978
|
+
),
|
979
|
+
'\u65b9\u6cd5',
|
980
|
+
),
|
981
|
+
n.a.createElement(
|
982
|
+
'table',
|
983
|
+
null,
|
984
|
+
n.a.createElement(
|
985
|
+
'thead',
|
986
|
+
null,
|
987
|
+
n.a.createElement(
|
988
|
+
'tr',
|
989
|
+
null,
|
990
|
+
n.a.createElement('th', null, '\u540d\u79f0'),
|
991
|
+
n.a.createElement('th', null, '\u63cf\u8ff0'),
|
992
|
+
n.a.createElement('th', null, '\u7248\u672c'),
|
993
|
+
),
|
994
|
+
),
|
995
|
+
n.a.createElement(
|
996
|
+
'tbody',
|
997
|
+
null,
|
998
|
+
n.a.createElement(
|
999
|
+
'tr',
|
1000
|
+
null,
|
1001
|
+
n.a.createElement('td', null, 'blur()'),
|
1002
|
+
n.a.createElement('td', null, '\u79fb\u9664\u7126\u70b9'),
|
1003
|
+
n.a.createElement('td', null),
|
1004
|
+
),
|
1005
|
+
n.a.createElement(
|
1006
|
+
'tr',
|
1007
|
+
null,
|
1008
|
+
n.a.createElement('td', null, 'focus()'),
|
1009
|
+
n.a.createElement('td', null, '\u83b7\u53d6\u7126\u70b9'),
|
1010
|
+
n.a.createElement('td', null),
|
1011
|
+
),
|
1012
|
+
),
|
1013
|
+
),
|
1014
|
+
n.a.createElement(
|
1015
|
+
'h2',
|
1016
|
+
{ id: 'faq' },
|
1017
|
+
n.a.createElement(
|
1018
|
+
r['AnchorLink'],
|
1019
|
+
{ to: '#faq', 'aria-hidden': 'true', tabIndex: -1 },
|
1020
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
1021
|
+
),
|
1022
|
+
'FAQ',
|
1023
|
+
),
|
1024
|
+
n.a.createElement(
|
1025
|
+
'h3',
|
1026
|
+
{
|
1027
|
+
id: '\u4e3a\u4f55\u53d7\u63a7\u72b6\u6001\u4e0b\u4f7f\u7528-onsearch-\u65e0\u6cd5\u8f93\u5165\u4e2d\u6587',
|
1028
|
+
},
|
1029
|
+
n.a.createElement(
|
1030
|
+
r['AnchorLink'],
|
1031
|
+
{
|
1032
|
+
to: '#\u4e3a\u4f55\u53d7\u63a7\u72b6\u6001\u4e0b\u4f7f\u7528-onsearch-\u65e0\u6cd5\u8f93\u5165\u4e2d\u6587',
|
1033
|
+
'aria-hidden': 'true',
|
1034
|
+
tabIndex: -1,
|
1035
|
+
},
|
1036
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
1037
|
+
),
|
1038
|
+
'\u4e3a\u4f55\u53d7\u63a7\u72b6\u6001\u4e0b\u4f7f\u7528 onSearch \u65e0\u6cd5\u8f93\u5165\u4e2d\u6587\uff1f',
|
1039
|
+
),
|
1040
|
+
n.a.createElement(
|
1041
|
+
'p',
|
1042
|
+
null,
|
1043
|
+
'\u8bf7\u4f7f\u7528 ',
|
1044
|
+
n.a.createElement('code', null, 'onChange'),
|
1045
|
+
' \u8fdb\u884c\u53d7\u63a7\u7ba1\u7406\u3002',
|
1046
|
+
n.a.createElement('code', null, 'onSearch'),
|
1047
|
+
' \u89e6\u53d1\u4e8e\u641c\u7d22\u8f93\u5165\uff0c\u4e0e ',
|
1048
|
+
n.a.createElement('code', null, 'onChange'),
|
1049
|
+
' \u65f6\u673a\u4e0d\u540c\u3002\u6b64\u5916\uff0c\u70b9\u9009\u9009\u9879\u65f6\u4e5f\u4e0d\u4f1a\u89e6\u53d1 ',
|
1050
|
+
n.a.createElement('code', null, 'onSearch'),
|
1051
|
+
' \u4e8b\u4ef6\u3002',
|
1052
|
+
),
|
1053
|
+
n.a.createElement(
|
1054
|
+
'p',
|
1055
|
+
null,
|
1056
|
+
'\u76f8\u5173 issue\uff1a',
|
1057
|
+
n.a.createElement(
|
1058
|
+
r['Link'],
|
1059
|
+
{
|
1060
|
+
to: 'https://github.com/ant-design/ant-design/issues/18230',
|
1061
|
+
},
|
1062
|
+
'#18230',
|
1063
|
+
),
|
1064
|
+
' ',
|
1065
|
+
n.a.createElement(
|
1066
|
+
r['Link'],
|
1067
|
+
{
|
1068
|
+
to: 'https://github.com/ant-design/ant-design/issues/17916',
|
1069
|
+
},
|
1070
|
+
'#17916',
|
1071
|
+
),
|
1072
|
+
),
|
1073
|
+
n.a.createElement(
|
1074
|
+
'h3',
|
1075
|
+
{
|
1076
|
+
id: 'v3-\u7684\u90e8\u5206\u5c5e\u6027\u4e3a\u4f55\u5728-v4-\u4e2d\u6ca1\u6709\u4e86',
|
1077
|
+
},
|
1078
|
+
n.a.createElement(
|
1079
|
+
r['AnchorLink'],
|
1080
|
+
{
|
1081
|
+
to: '#v3-\u7684\u90e8\u5206\u5c5e\u6027\u4e3a\u4f55\u5728-v4-\u4e2d\u6ca1\u6709\u4e86',
|
1082
|
+
'aria-hidden': 'true',
|
1083
|
+
tabIndex: -1,
|
1084
|
+
},
|
1085
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
1086
|
+
),
|
1087
|
+
'v3 \u7684\u90e8\u5206\u5c5e\u6027\u4e3a\u4f55\u5728 v4 \u4e2d\u6ca1\u6709\u4e86\uff1f',
|
1088
|
+
),
|
1089
|
+
n.a.createElement(
|
1090
|
+
'p',
|
1091
|
+
null,
|
1092
|
+
'AutoComplete \u7ec4\u4ef6\u662f\u4e00\u4e2a\u652f\u6301\u81ea\u52a8\u63d0\u793a\u7684 Input \u7ec4\u4ef6\uff0c\u56e0\u800c\u5176\u4e0d\u5177\u6709 ',
|
1093
|
+
n.a.createElement('code', null, 'labelInValue'),
|
1094
|
+
' \u7b49\u5f71\u54cd value \u5c55\u793a\u7684\u5c5e\u6027\u3002\u5728 v3 \u7248\u672c\uff0cAutoComplete \u5b9e\u73b0\u5b58\u5728\u8f93\u5165\u503c\u5982\u679c\u9047\u5230 ',
|
1095
|
+
n.a.createElement('code', null, 'value'),
|
1096
|
+
' \u4e0e ',
|
1097
|
+
n.a.createElement('code', null, 'label'),
|
1098
|
+
' \u76f8\u540c\u65f6\u65e0\u6cd5\u6620\u5c04\u7684\u95ee\u9898\u3002 v4 \u4e2d\u4e0d\u518d\u652f\u6301 ',
|
1099
|
+
n.a.createElement('code', null, 'label'),
|
1100
|
+
' \u4e3a\u503c\u7684\u8f93\u5165\u5f62\u6001\u3002',
|
1101
|
+
),
|
1102
|
+
n.a.createElement(
|
1103
|
+
'p',
|
1104
|
+
null,
|
1105
|
+
'\u6b64\u5916\u4e3a\u4e86\u7edf\u4e00 API\uff0c',
|
1106
|
+
n.a.createElement('code', null, 'dataSource'),
|
1107
|
+
' \u6539\u4e3a ',
|
1108
|
+
n.a.createElement('code', null, 'options'),
|
1109
|
+
' \u4f60\u53ef\u4ee5\u5982\u4e0b\u8f6c\u6362\uff1a',
|
1110
|
+
),
|
1111
|
+
n.a.createElement(
|
1112
|
+
'h4',
|
1113
|
+
{ id: 'v3' },
|
1114
|
+
n.a.createElement(
|
1115
|
+
r['AnchorLink'],
|
1116
|
+
{ to: '#v3', 'aria-hidden': 'true', tabIndex: -1 },
|
1117
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
1118
|
+
),
|
1119
|
+
'v3',
|
1120
|
+
),
|
1121
|
+
n.a.createElement(u['a'], {
|
1122
|
+
code: "dataSource = ['light', 'bamboo'];\n// or\ndataSource = [\n { value: 'light', text: 'Light' },\n { value: 'bamboo', text: 'Bamboo' },\n];",
|
1123
|
+
lang: 'bash',
|
1124
|
+
}),
|
1125
|
+
n.a.createElement(
|
1126
|
+
'h4',
|
1127
|
+
{ id: 'v4' },
|
1128
|
+
n.a.createElement(
|
1129
|
+
r['AnchorLink'],
|
1130
|
+
{ to: '#v4', 'aria-hidden': 'true', tabIndex: -1 },
|
1131
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
1132
|
+
),
|
1133
|
+
'v4',
|
1134
|
+
),
|
1135
|
+
n.a.createElement(u['a'], {
|
1136
|
+
code: "options = [\n { value: 'light', label: 'Light' },\n { value: 'bamboo', label: 'Bamboo' },\n];",
|
1137
|
+
lang: 'bash',
|
1138
|
+
}),
|
1139
|
+
),
|
1140
|
+
),
|
1141
|
+
)
|
1142
|
+
);
|
1143
|
+
},
|
1144
|
+
},
|
1145
|
+
]);
|