@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.
Files changed (164) hide show
  1. package/.history/package_20211011190148.json +141 -0
  2. package/.history/package_20211011193053.json +141 -0
  3. package/dist/@fle-ui/next.css +2 -2
  4. package/dist/@fle-ui/next.css.map +1 -1
  5. package/dist/@fle-ui/next.js +1 -1
  6. package/dist/@fle-ui/next.min.css +2 -2
  7. package/dist/@fle-ui/next.min.css.map +1 -1
  8. package/dist/@fle-ui/next.min.js +1 -1
  9. package/docs-dist/components__affix__affix.md.js +701 -1
  10. package/docs-dist/components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~00d1741d.js +22482 -1
  11. package/docs-dist/components__alert__alert.md.js +942 -1
  12. package/docs-dist/components__anchor__anchor.md.js +789 -1
  13. package/docs-dist/components__auto-complete__autoComplete.md.js +1145 -1
  14. package/docs-dist/components__avatar__avatar.md.js +854 -1
  15. package/docs-dist/components__back-top__backTop.md.js +581 -1
  16. package/docs-dist/components__badge__badge.md.js +972 -1
  17. package/docs-dist/components__breadcrumb__breadcrumb.md.js +914 -1
  18. package/docs-dist/components__button__button.md.js +1037 -1
  19. package/docs-dist/components__calendar__calendar.md.js +897 -1
  20. package/docs-dist/components__card__card.md.js +1106 -1
  21. package/docs-dist/components__carousel__carousel.md.js +770 -1
  22. package/docs-dist/components__cascader__cascader.md.js +1378 -1
  23. package/docs-dist/components__checkbox__checkbox.md.js +876 -1
  24. package/docs-dist/components__collapse__collapse.md.js +959 -1
  25. package/docs-dist/components__comment__comment.md.js +586 -1
  26. package/docs-dist/components__config-provider__configProvider.md.js +1055 -1
  27. package/docs-dist/components__date-picker__date-picker.md.js +2622 -1
  28. package/docs-dist/components__descriptions__descriptions.md.js +863 -1
  29. package/docs-dist/components__divider__divider.md.js +681 -1
  30. package/docs-dist/components__drawer__drawer.md.js +997 -1
  31. package/docs-dist/components__dropdown__dropdown.md.js +1170 -1
  32. package/docs-dist/components__empty__empty.md.js +692 -1
  33. package/docs-dist/components__form__form.md.js +4099 -1
  34. package/docs-dist/components__grid__grid.md.js +999 -1
  35. package/docs-dist/components__icon__icon.md.js +739 -1
  36. package/docs-dist/components__image__image.md.js +745 -1
  37. package/docs-dist/components__input-number__inputNumber.md.js +1006 -1
  38. package/docs-dist/components__input__input.md.js +1579 -1
  39. package/docs-dist/components__layout__layout.md.js +1220 -1
  40. package/docs-dist/components__list__list.md.js +1255 -1
  41. package/docs-dist/components__mentions__mentions.md.js +943 -1
  42. package/docs-dist/components__menu__menu.md.js +1370 -1
  43. package/docs-dist/components__message__message.md.js +1223 -1
  44. package/docs-dist/components__modal__modal.md.js +1808 -1
  45. package/docs-dist/components__notification__notification.md.js +1192 -1
  46. package/docs-dist/components__page-header__page-header.md.js +781 -1
  47. package/docs-dist/components__pagination__pagination.md.js +954 -1
  48. package/docs-dist/components__popconfirm__popconfirm.md.js +792 -1
  49. package/docs-dist/components__popover__popover.md.js +665 -1
  50. package/docs-dist/components__progress__progress.md.js +1139 -1
  51. package/docs-dist/components__radio__radio.md.js +999 -1
  52. package/docs-dist/components__rate__rate.md.js +851 -1
  53. package/docs-dist/components__result__result.md.js +681 -1
  54. package/docs-dist/components__select__select.md.js +2081 -1
  55. package/docs-dist/components__slider__slider.md.js +1053 -1
  56. package/docs-dist/components__space__space.md.js +746 -1
  57. package/docs-dist/components__spin__spin.md.js +730 -1
  58. package/docs-dist/components__statistic__statistic.md.js +827 -1
  59. package/docs-dist/components__steps__steps.md.js +1097 -1
  60. package/docs-dist/components__switch__switch.md.js +763 -1
  61. package/docs-dist/components__table__table.md.js +3692 -1
  62. package/docs-dist/components__tabs__tabs.md.js +1213 -1
  63. package/docs-dist/components__tag__tag.md.js +779 -1
  64. package/docs-dist/components__time-picker__time-picker.md.js +1232 -1
  65. package/docs-dist/components__timeline__timeline.md.js +799 -1
  66. package/docs-dist/components__tooltip__tooltip.md.js +888 -1
  67. package/docs-dist/components__transfer__transfer.md.js +1226 -1
  68. package/docs-dist/components__tree-select__tree-select.md.js +1042 -1
  69. package/docs-dist/components__typography__typography.md.js +1793 -1
  70. package/docs-dist/components__upload__upload.md.js +1798 -1
  71. package/docs-dist/demos_bmurcdaerb.js +603 -1
  72. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.chunk.css +1 -1
  73. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.js +21570 -1
  74. package/docs-dist/demos_citsitats.js +549 -1
  75. package/docs-dist/demos_daolpu.chunk.css +1 -1
  76. package/docs-dist/demos_daolpu.js +22680 -1
  77. package/docs-dist/demos_dirg.js +47 -1
  78. package/docs-dist/demos_drac.js +748 -1
  79. package/docs-dist/demos_ecaps.js +529 -1
  80. package/docs-dist/demos_egami.js +153 -1
  81. package/docs-dist/demos_egassem.js +187 -1
  82. package/docs-dist/demos_egdab.js +872 -1
  83. package/docs-dist/demos_elbat.chunk.css +1 -1
  84. package/docs-dist/demos_elbat.js +27626 -1
  85. package/docs-dist/demos_enilemit.js +627 -1
  86. package/docs-dist/demos_espalloc.js +705 -1
  87. package/docs-dist/demos_etar.js +547 -1
  88. package/docs-dist/demos_etelpmoc-otua.js +613 -1
  89. package/docs-dist/demos_gat.js +487 -1
  90. package/docs-dist/demos_hctiws.js +439 -1
  91. package/docs-dist/demos_ladom.js +791 -1
  92. package/docs-dist/demos_lesuorac.js +193 -1
  93. package/docs-dist/demos_mrifnocpop.js +671 -1
  94. package/docs-dist/demos_mrof.js +3082 -1
  95. package/docs-dist/demos_nips.js +461 -1
  96. package/docs-dist/demos_noitacifiton.js +765 -1
  97. package/docs-dist/demos_noitanigap.js +233 -1
  98. package/docs-dist/demos_nottub.js +847 -1
  99. package/docs-dist/demos_nwodpord.js +965 -1
  100. package/docs-dist/demos_oidar.js +340 -1
  101. package/docs-dist/demos_pitloot.js +204 -1
  102. package/docs-dist/demos_pot-kcab.js +62 -1
  103. package/docs-dist/demos_radnelac.js +285 -1
  104. package/docs-dist/demos_ratava.js +647 -1
  105. package/docs-dist/demos_rebmun-tupni.js +209 -1
  106. package/docs-dist/demos_redacsac.js +576 -1
  107. package/docs-dist/demos_redaeh-egap.js +761 -1
  108. package/docs-dist/demos_redils.js +659 -1
  109. package/docs-dist/demos_redivid.js +167 -1
  110. package/docs-dist/demos_redivorp-gifnoc.js +2154 -1
  111. package/docs-dist/demos_refsnart.js +774 -1
  112. package/docs-dist/demos_rekcip-emit.js +183 -1
  113. package/docs-dist/demos_rekcip-etad.js +469 -1
  114. package/docs-dist/demos_revopop.js +335 -1
  115. package/docs-dist/demos_reward.js +484 -1
  116. package/docs-dist/demos_rohcna.js +194 -1
  117. package/docs-dist/demos_sbat.chunk.css +1 -1
  118. package/docs-dist/demos_sbat.js +22358 -1
  119. package/docs-dist/demos_snoitnem.js +202 -1
  120. package/docs-dist/demos_snoitpircsed.js +351 -1
  121. package/docs-dist/demos_spets.js +910 -1
  122. package/docs-dist/demos_ssergorp.js +698 -1
  123. package/docs-dist/demos_tceles.js +1416 -1
  124. package/docs-dist/demos_tluser.js +530 -1
  125. package/docs-dist/demos_tnemmoc.js +560 -1
  126. package/docs-dist/demos_trela.js +341 -1
  127. package/docs-dist/demos_tsil.js +603 -1
  128. package/docs-dist/demos_tuoyal.js +872 -1
  129. package/docs-dist/demos_tupni.js +1245 -1
  130. package/docs-dist/demos_unem.js +1012 -1
  131. package/docs-dist/demos_xiffa.js +93 -1
  132. package/docs-dist/demos_xobkcehc.js +186 -1
  133. package/docs-dist/demos_yhpargopyt.js +798 -1
  134. package/docs-dist/demos_ytpme.js +433 -1
  135. package/docs-dist/docs__document__getting-started.md.js +193 -1
  136. package/docs-dist/docs__document__introduce.md.js +441 -1
  137. package/docs-dist/docs__document__practical-projects.md.js +117 -1
  138. package/docs-dist/docs__index.md.js +27 -1
  139. package/docs-dist/docs__story__index.md.js +89 -1
  140. package/docs-dist/dumi_demos.js +456 -1
  141. package/docs-dist/umi.js +28727 -1
  142. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~3ba4f4a1.js +2590 -1
  143. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~ac3aca9a.js +8970 -1
  144. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~e29e5a37.js +2619 -1
  145. package/docs-dist/vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_egami~~4cc402e9.js +57323 -1
  146. package/docs-dist/vendors~demos_daolpu~demos_elbat.js +1649 -1
  147. package/docs-dist/vendors~demos_daolpu~demos_elbat~demos_sbat.js +4169 -1
  148. package/docs-dist/vendors~demos_gat.js +4673 -1
  149. package/docs-dist/vendors~demos_ladom.js +1855 -1
  150. package/docs-dist/vendors~demos_redivorp-gifnoc.js +9666 -1
  151. package/docs-dist/vendors~demos_sbat.js +1601 -1
  152. package/docs-dist/vendors~demos_trela.js +1722 -1
  153. package/docs-dist/vendors~demos_tsil.js +4970 -1
  154. package/docs-dist/vendors~demos_tuoyal.js +748 -1
  155. package/docs-dist/vendors~wrappers.js +1360 -1
  156. package/docs-dist/wrappers.js +21 -1
  157. package/es/drawer/style/drawer.less +8 -4
  158. package/es/drawer/style/index.css +1 -1
  159. package/es/style/themes/default.less +57 -29
  160. package/lib/drawer/style/drawer.less +8 -4
  161. package/lib/drawer/style/index.css +1 -1
  162. package/lib/style/themes/default.less +57 -29
  163. package/package.json +1 -1
  164. package/report.html +1 -1
@@ -1 +1,586 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[23],{MZF8:function(e,t,a){"use strict";var n=a("ogwx");a.d(t,"a",(function(){return n["b"]}));a("VCU9")},Qjwm:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),l=a.n(n),r=a("dEAq"),c=a("Zxc8"),o=a("JjdP"),i=l.a.memo(o["default"]["comment-basic"].component),d=l.a.memo(o["default"]["comment-matchlist"].component);t["default"]=e=>(l.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)))}),[]),l.a.createElement(l.a.Fragment,null,l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"markdown"},l.a.createElement("h1",{id:"comment-\u8bc4\u8bba"},l.a.createElement(r["AnchorLink"],{to:"#comment-\u8bc4\u8bba","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"Comment \u8bc4\u8bba"),l.a.createElement("p",null,"\u5bf9\u7f51\u7ad9\u5185\u5bb9\u7684\u53cd\u9988\u3001\u8bc4\u4ef7\u548c\u8ba8\u8bba\u3002"),l.a.createElement("h2",{id:"\u4f55\u65f6\u4f7f\u7528"},l.a.createElement(r["AnchorLink"],{to:"#\u4f55\u65f6\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u4f55\u65f6\u4f7f\u7528"),l.a.createElement("p",null,"\u8bc4\u8bba\u7ec4\u4ef6\u53ef\u7528\u4e8e\u5bf9\u4e8b\u7269\u7684\u8ba8\u8bba\uff0c\u4f8b\u5982\u9875\u9762\u3001\u535a\u5ba2\u6587\u7ae0\u3001\u95ee\u9898\u7b49\u7b49\u3002"),l.a.createElement("h2",{id:"\u4ee3\u7801\u6f14\u793a"},l.a.createElement(r["AnchorLink"],{to:"#\u4ee3\u7801\u6f14\u793a","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u4ee3\u7801\u6f14\u793a"),l.a.createElement("h3",{id:"\u57fa\u672c\u8bc4\u8bba"},l.a.createElement(r["AnchorLink"],{to:"#\u57fa\u672c\u8bc4\u8bba","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u57fa\u672c\u8bc4\u8bba")),l.a.createElement(c["default"],o["default"]["comment-basic"].previewerProps,l.a.createElement(i,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u914d\u5408-list-\u7ec4\u4ef6"},l.a.createElement(r["AnchorLink"],{to:"#\u914d\u5408-list-\u7ec4\u4ef6","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u914d\u5408 List \u7ec4\u4ef6")),l.a.createElement(c["default"],o["default"]["comment-matchlist"].previewerProps,l.a.createElement(d,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h2",{id:"api"},l.a.createElement(r["AnchorLink"],{to:"#api","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"API"),l.a.createElement("table",null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,"\u53c2\u6570"),l.a.createElement("th",null,"\u8bf4\u660e"),l.a.createElement("th",null,"\u7c7b\u578b"),l.a.createElement("th",null,"\u9ed8\u8ba4\u503c"),l.a.createElement("th",null,"\u7248\u672c"))),l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,"actions"),l.a.createElement("td",null,"\u5728\u8bc4\u8bba\u5185\u5bb9\u4e0b\u9762\u5448\u73b0\u7684\u64cd\u4f5c\u9879\u5217\u8868"),l.a.createElement("td",null,"Array<ReactNode>"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"author"),l.a.createElement("td",null,"\u8981\u663e\u793a\u4e3a\u6ce8\u91ca\u4f5c\u8005\u7684\u5143\u7d20"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"avatar"),l.a.createElement("td",null,"\u8981\u663e\u793a\u4e3a\u8bc4\u8bba\u5934\u50cf\u7684\u5143\u7d20 - \u901a\u5e38\u662f antd Avatar \u6216\u8005 src"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"children"),l.a.createElement("td",null,"\u5d4c\u5957\u6ce8\u91ca\u5e94\u4f5c\u4e3a\u6ce8\u91ca\u7684\u5b50\u9879\u63d0\u4f9b"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"content"),l.a.createElement("td",null,"\u8bc4\u8bba\u7684\u4e3b\u8981\u5185\u5bb9"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"datetime"),l.a.createElement("td",null,"\u5c55\u793a\u65f6\u95f4\u63cf\u8ff0"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)))),l.a.createElement("style",{dangerouslySetInnerHTML:{__html:"\n.comment-action {\n padding-left: 8px;\n cursor: 'auto';\n}\n\n[class*='-col-rtl'] .comment-action {\n padding-right: 8px;\n padding-left: 0;\n}\n"}})))))},RZMt:function(e,t,a){},Zxc8:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),l=a.n(n),r=a("k3GJ"),c=a("MZF8"),o=a("dEAq"),i=a("H1Ra");a("RZMt");function d(e,t){return f(e)||E(e,t)||m(e,t)||u()}function u(){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 m(e,t){if(e){if("string"===typeof e)return s(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function E(e,t){var a=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,l,r=[],c=!0,o=!1;try{for(a=a.call(e);!(c=(n=a.next()).done);c=!0)if(r.push(n.value),t&&r.length===t)break}catch(i){o=!0,l=i}finally{try{c||null==a["return"]||a["return"]()}finally{if(o)throw l}}return r}}function f(e){if(Array.isArray(e))return e}function p(e,t){var a,n=null===(a=e.match(/\.(\w+)$/))||void 0===a?void 0:a[1];return n||(n=t.tsx?"tsx":"jsx"),n}var b=function(e){var t,a,u,m=Object(n["useRef"])(),s=Object(n["useContext"])(o["context"]),E=s.locale,f=Object(o["useLocaleProps"])(E,e),b=Object(o["useDemoUrl"])(f.identifier),h=f.demoUrl||b,v=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(f.identifier),_=1===Object.keys(f.sources).length,y=Object(o["useCodeSandbox"])((null===(t=f.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:f),k=Object(o["useRiddle"])((null===(a=f.hideActions)||void 0===a?void 0:a.includes("RIDDLE"))?null:f),g=Object(o["useMotions"])(f.motions||[],m.current),w=d(g,2),N=w[0],x=w[1],j=Object(o["useCopy"])(),A=d(j,2),O=A[0],C=A[1],S=Object(n["useState"])("_"),I=d(S,2),R=I[0],L=I[1],M=Object(n["useState"])(p(R,f.sources[R])),P=d(M,2),T=P[0],U=P[1],Z=Object(n["useState"])(Boolean(f.defaultShowCode)),J=d(Z,2),q=J[0],F=J[1],$=Object(n["useState"])(Math.random()),B=d($,2),D=B[0],H=B[1],G=f.sources[R][T]||f.sources[R].content,X=Object(o["useTSPlaygroundUrl"])(E,G),K=Object(n["useRef"])(),Q=Object(o["usePrefersColor"])(),V=d(Q,1),z=V[0];function W(e){L(e),U(p(e,f.sources[e]))}return Object(n["useEffect"])((function(){H(Math.random())}),[z]),l.a.createElement("div",{style:f.style,className:[f.className,"__dumi-default-previewer",v?"__dumi-default-previewer-target":""].filter(Boolean).join(" "),id:f.identifier,"data-debug":f.debug||void 0,"data-iframe":f.iframe||void 0},f.iframe&&l.a.createElement("div",{className:"__dumi-default-previewer-browser-nav"}),l.a.createElement("div",{ref:m,className:"__dumi-default-previewer-demo",style:{transform:f.transform?"translate(0, 0)":void 0,padding:f.compact||f.iframe&&!1!==f.compact?"0":void 0,background:f.background}},f.iframe?l.a.createElement("iframe",{title:"dumi-previewer",style:{height:String(f.iframe).replace(/(\d)$/,"$1px")},key:D,src:h,ref:K}):f.children),l.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":f.title},f.title&&l.a.createElement(o["AnchorLink"],{to:"#".concat(f.identifier)},f.title),f.description&&l.a.createElement("div",{dangerouslySetInnerHTML:{__html:f.description}})),l.a.createElement("div",{className:"__dumi-default-previewer-actions"},y&&l.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:y}),k&&l.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:k}),f.motions&&l.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:x,onClick:function(){return N()}}),f.iframe&&l.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return H(Math.random())}}),!(null===(u=f.hideActions)||void 0===u?void 0:u.includes("EXTERNAL"))&&l.a.createElement(o["Link"],{target:"_blank",to:h},l.a.createElement("button",{title:"Open demo in new tab",className:"__dumi-default-icon",role:"open-demo",type:"button"})),l.a.createElement("span",null),l.a.createElement("button",{title:"Copy source code",className:"__dumi-default-icon",role:"copy","data-status":C,onClick:function(){return O(G)}}),"tsx"===T&&q&&l.a.createElement(o["Link"],{target:"_blank",to:X},l.a.createElement("button",{title:"Get JSX via TypeScript Playground",className:"__dumi-default-icon",role:"change-tsx",type:"button"})),l.a.createElement("button",{title:"Toggle source code panel",className:"__dumi-default-icon".concat(q?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:function(){return F(!q)}})),q&&l.a.createElement("div",{className:"__dumi-default-previewer-source-wrapper"},!_&&l.a.createElement(r["b"],{className:"__dumi-default-previewer-source-tab",prefixCls:"__dumi-default-tabs",moreIcon:"\xb7\xb7\xb7",defaultActiveKey:R,onChange:W},Object.keys(f.sources).map((function(e){return l.a.createElement(r["a"],{tab:"_"===e?"index.".concat(p(e,f.sources[e])):e,key:e})}))),l.a.createElement("div",{className:"__dumi-default-previewer-source"},l.a.createElement(i["a"],{code:G,lang:T,showCopy:!1}))))};t["default"]=b}}]);
1
+ (window['webpackJsonp'] = window['webpackJsonp'] || []).push([
2
+ [23],
3
+ {
4
+ MZF8: function (e, t, a) {
5
+ 'use strict';
6
+ var n = a('ogwx');
7
+ a.d(t, 'a', function () {
8
+ return n['b'];
9
+ });
10
+ a('VCU9');
11
+ },
12
+ Qjwm: function (e, t, a) {
13
+ 'use strict';
14
+ a.r(t);
15
+ var n = a('q1tI'),
16
+ l = a.n(n),
17
+ r = a('dEAq'),
18
+ c = a('Zxc8'),
19
+ o = a('JjdP'),
20
+ i = l.a.memo(o['default']['comment-basic'].component),
21
+ d = l.a.memo(o['default']['comment-matchlist'].component);
22
+ t['default'] = (e) => (
23
+ l.a.useEffect(() => {
24
+ var t;
25
+ null !== e &&
26
+ void 0 !== e &&
27
+ null !== (t = e.location) &&
28
+ void 0 !== t &&
29
+ t.hash &&
30
+ r['AnchorLink'].scrollToAnchor(
31
+ decodeURIComponent(e.location.hash.slice(1)),
32
+ );
33
+ }, []),
34
+ l.a.createElement(
35
+ l.a.Fragment,
36
+ null,
37
+ l.a.createElement(
38
+ l.a.Fragment,
39
+ null,
40
+ l.a.createElement(
41
+ 'div',
42
+ { className: 'markdown' },
43
+ l.a.createElement(
44
+ 'h1',
45
+ { id: 'comment-\u8bc4\u8bba' },
46
+ l.a.createElement(
47
+ r['AnchorLink'],
48
+ {
49
+ to: '#comment-\u8bc4\u8bba',
50
+ 'aria-hidden': 'true',
51
+ tabIndex: -1,
52
+ },
53
+ l.a.createElement('span', { className: 'icon icon-link' }),
54
+ ),
55
+ 'Comment \u8bc4\u8bba',
56
+ ),
57
+ l.a.createElement(
58
+ 'p',
59
+ null,
60
+ '\u5bf9\u7f51\u7ad9\u5185\u5bb9\u7684\u53cd\u9988\u3001\u8bc4\u4ef7\u548c\u8ba8\u8bba\u3002',
61
+ ),
62
+ l.a.createElement(
63
+ 'h2',
64
+ { id: '\u4f55\u65f6\u4f7f\u7528' },
65
+ l.a.createElement(
66
+ r['AnchorLink'],
67
+ {
68
+ to: '#\u4f55\u65f6\u4f7f\u7528',
69
+ 'aria-hidden': 'true',
70
+ tabIndex: -1,
71
+ },
72
+ l.a.createElement('span', { className: 'icon icon-link' }),
73
+ ),
74
+ '\u4f55\u65f6\u4f7f\u7528',
75
+ ),
76
+ l.a.createElement(
77
+ 'p',
78
+ null,
79
+ '\u8bc4\u8bba\u7ec4\u4ef6\u53ef\u7528\u4e8e\u5bf9\u4e8b\u7269\u7684\u8ba8\u8bba\uff0c\u4f8b\u5982\u9875\u9762\u3001\u535a\u5ba2\u6587\u7ae0\u3001\u95ee\u9898\u7b49\u7b49\u3002',
80
+ ),
81
+ l.a.createElement(
82
+ 'h2',
83
+ { id: '\u4ee3\u7801\u6f14\u793a' },
84
+ l.a.createElement(
85
+ r['AnchorLink'],
86
+ {
87
+ to: '#\u4ee3\u7801\u6f14\u793a',
88
+ 'aria-hidden': 'true',
89
+ tabIndex: -1,
90
+ },
91
+ l.a.createElement('span', { className: 'icon icon-link' }),
92
+ ),
93
+ '\u4ee3\u7801\u6f14\u793a',
94
+ ),
95
+ l.a.createElement(
96
+ 'h3',
97
+ { id: '\u57fa\u672c\u8bc4\u8bba' },
98
+ l.a.createElement(
99
+ r['AnchorLink'],
100
+ {
101
+ to: '#\u57fa\u672c\u8bc4\u8bba',
102
+ 'aria-hidden': 'true',
103
+ tabIndex: -1,
104
+ },
105
+ l.a.createElement('span', { className: 'icon icon-link' }),
106
+ ),
107
+ '\u57fa\u672c\u8bc4\u8bba',
108
+ ),
109
+ ),
110
+ l.a.createElement(
111
+ c['default'],
112
+ o['default']['comment-basic'].previewerProps,
113
+ l.a.createElement(i, null),
114
+ ),
115
+ l.a.createElement(
116
+ 'div',
117
+ { className: 'markdown' },
118
+ l.a.createElement(
119
+ 'h3',
120
+ { id: '\u914d\u5408-list-\u7ec4\u4ef6' },
121
+ l.a.createElement(
122
+ r['AnchorLink'],
123
+ {
124
+ to: '#\u914d\u5408-list-\u7ec4\u4ef6',
125
+ 'aria-hidden': 'true',
126
+ tabIndex: -1,
127
+ },
128
+ l.a.createElement('span', { className: 'icon icon-link' }),
129
+ ),
130
+ '\u914d\u5408 List \u7ec4\u4ef6',
131
+ ),
132
+ ),
133
+ l.a.createElement(
134
+ c['default'],
135
+ o['default']['comment-matchlist'].previewerProps,
136
+ l.a.createElement(d, null),
137
+ ),
138
+ l.a.createElement(
139
+ 'div',
140
+ { className: 'markdown' },
141
+ l.a.createElement(
142
+ 'h2',
143
+ { id: 'api' },
144
+ l.a.createElement(
145
+ r['AnchorLink'],
146
+ { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
147
+ l.a.createElement('span', { className: 'icon icon-link' }),
148
+ ),
149
+ 'API',
150
+ ),
151
+ l.a.createElement(
152
+ 'table',
153
+ null,
154
+ l.a.createElement(
155
+ 'thead',
156
+ null,
157
+ l.a.createElement(
158
+ 'tr',
159
+ null,
160
+ l.a.createElement('th', null, '\u53c2\u6570'),
161
+ l.a.createElement('th', null, '\u8bf4\u660e'),
162
+ l.a.createElement('th', null, '\u7c7b\u578b'),
163
+ l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
164
+ l.a.createElement('th', null, '\u7248\u672c'),
165
+ ),
166
+ ),
167
+ l.a.createElement(
168
+ 'tbody',
169
+ null,
170
+ l.a.createElement(
171
+ 'tr',
172
+ null,
173
+ l.a.createElement('td', null, 'actions'),
174
+ l.a.createElement(
175
+ 'td',
176
+ null,
177
+ '\u5728\u8bc4\u8bba\u5185\u5bb9\u4e0b\u9762\u5448\u73b0\u7684\u64cd\u4f5c\u9879\u5217\u8868',
178
+ ),
179
+ l.a.createElement('td', null, 'Array<ReactNode>'),
180
+ l.a.createElement('td', null, '-'),
181
+ l.a.createElement('td', null),
182
+ ),
183
+ l.a.createElement(
184
+ 'tr',
185
+ null,
186
+ l.a.createElement('td', null, 'author'),
187
+ l.a.createElement(
188
+ 'td',
189
+ null,
190
+ '\u8981\u663e\u793a\u4e3a\u6ce8\u91ca\u4f5c\u8005\u7684\u5143\u7d20',
191
+ ),
192
+ l.a.createElement('td', null, 'ReactNode'),
193
+ l.a.createElement('td', null, '-'),
194
+ l.a.createElement('td', null),
195
+ ),
196
+ l.a.createElement(
197
+ 'tr',
198
+ null,
199
+ l.a.createElement('td', null, 'avatar'),
200
+ l.a.createElement(
201
+ 'td',
202
+ null,
203
+ '\u8981\u663e\u793a\u4e3a\u8bc4\u8bba\u5934\u50cf\u7684\u5143\u7d20 - \u901a\u5e38\u662f antd Avatar \u6216\u8005 src',
204
+ ),
205
+ l.a.createElement('td', null, 'ReactNode'),
206
+ l.a.createElement('td', null, '-'),
207
+ l.a.createElement('td', null),
208
+ ),
209
+ l.a.createElement(
210
+ 'tr',
211
+ null,
212
+ l.a.createElement('td', null, 'children'),
213
+ l.a.createElement(
214
+ 'td',
215
+ null,
216
+ '\u5d4c\u5957\u6ce8\u91ca\u5e94\u4f5c\u4e3a\u6ce8\u91ca\u7684\u5b50\u9879\u63d0\u4f9b',
217
+ ),
218
+ l.a.createElement('td', null, 'ReactNode'),
219
+ l.a.createElement('td', null, '-'),
220
+ l.a.createElement('td', null),
221
+ ),
222
+ l.a.createElement(
223
+ 'tr',
224
+ null,
225
+ l.a.createElement('td', null, 'content'),
226
+ l.a.createElement(
227
+ 'td',
228
+ null,
229
+ '\u8bc4\u8bba\u7684\u4e3b\u8981\u5185\u5bb9',
230
+ ),
231
+ l.a.createElement('td', null, 'ReactNode'),
232
+ l.a.createElement('td', null, '-'),
233
+ l.a.createElement('td', null),
234
+ ),
235
+ l.a.createElement(
236
+ 'tr',
237
+ null,
238
+ l.a.createElement('td', null, 'datetime'),
239
+ l.a.createElement(
240
+ 'td',
241
+ null,
242
+ '\u5c55\u793a\u65f6\u95f4\u63cf\u8ff0',
243
+ ),
244
+ l.a.createElement('td', null, 'ReactNode'),
245
+ l.a.createElement('td', null, '-'),
246
+ l.a.createElement('td', null),
247
+ ),
248
+ ),
249
+ ),
250
+ l.a.createElement('style', {
251
+ dangerouslySetInnerHTML: {
252
+ __html:
253
+ "\n.comment-action {\n padding-left: 8px;\n cursor: 'auto';\n}\n\n[class*='-col-rtl'] .comment-action {\n padding-right: 8px;\n padding-left: 0;\n}\n",
254
+ },
255
+ }),
256
+ ),
257
+ ),
258
+ )
259
+ );
260
+ },
261
+ RZMt: function (e, t, a) {},
262
+ Zxc8: function (e, t, a) {
263
+ 'use strict';
264
+ a.r(t);
265
+ var n = a('q1tI'),
266
+ l = a.n(n),
267
+ r = a('k3GJ'),
268
+ c = a('MZF8'),
269
+ o = a('dEAq'),
270
+ i = a('H1Ra');
271
+ a('RZMt');
272
+ function d(e, t) {
273
+ return f(e) || E(e, t) || m(e, t) || u();
274
+ }
275
+ function u() {
276
+ throw new TypeError(
277
+ 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
278
+ );
279
+ }
280
+ function m(e, t) {
281
+ if (e) {
282
+ if ('string' === typeof e) return s(e, t);
283
+ var a = Object.prototype.toString.call(e).slice(8, -1);
284
+ return (
285
+ 'Object' === a && e.constructor && (a = e.constructor.name),
286
+ 'Map' === a || 'Set' === a
287
+ ? Array.from(e)
288
+ : 'Arguments' === a ||
289
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
290
+ ? s(e, t)
291
+ : void 0
292
+ );
293
+ }
294
+ }
295
+ function s(e, t) {
296
+ (null == t || t > e.length) && (t = e.length);
297
+ for (var a = 0, n = new Array(t); a < t; a++) n[a] = e[a];
298
+ return n;
299
+ }
300
+ function E(e, t) {
301
+ var a =
302
+ null == e
303
+ ? null
304
+ : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
305
+ e['@@iterator'];
306
+ if (null != a) {
307
+ var n,
308
+ l,
309
+ r = [],
310
+ c = !0,
311
+ o = !1;
312
+ try {
313
+ for (a = a.call(e); !(c = (n = a.next()).done); c = !0)
314
+ if ((r.push(n.value), t && r.length === t)) break;
315
+ } catch (i) {
316
+ (o = !0), (l = i);
317
+ } finally {
318
+ try {
319
+ c || null == a['return'] || a['return']();
320
+ } finally {
321
+ if (o) throw l;
322
+ }
323
+ }
324
+ return r;
325
+ }
326
+ }
327
+ function f(e) {
328
+ if (Array.isArray(e)) return e;
329
+ }
330
+ function p(e, t) {
331
+ var a,
332
+ n =
333
+ null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
334
+ return n || (n = t.tsx ? 'tsx' : 'jsx'), n;
335
+ }
336
+ var b = function (e) {
337
+ var t,
338
+ a,
339
+ u,
340
+ m = Object(n['useRef'])(),
341
+ s = Object(n['useContext'])(o['context']),
342
+ E = s.locale,
343
+ f = Object(o['useLocaleProps'])(E, e),
344
+ b = Object(o['useDemoUrl'])(f.identifier),
345
+ h = f.demoUrl || b,
346
+ v =
347
+ (null === c['a'] || void 0 === c['a']
348
+ ? void 0
349
+ : c['a'].location.hash) === '#'.concat(f.identifier),
350
+ _ = 1 === Object.keys(f.sources).length,
351
+ y = Object(o['useCodeSandbox'])(
352
+ (
353
+ null === (t = f.hideActions) || void 0 === t
354
+ ? void 0
355
+ : t.includes('CSB')
356
+ )
357
+ ? null
358
+ : f,
359
+ ),
360
+ k = Object(o['useRiddle'])(
361
+ (
362
+ null === (a = f.hideActions) || void 0 === a
363
+ ? void 0
364
+ : a.includes('RIDDLE')
365
+ )
366
+ ? null
367
+ : f,
368
+ ),
369
+ g = Object(o['useMotions'])(f.motions || [], m.current),
370
+ w = d(g, 2),
371
+ N = w[0],
372
+ x = w[1],
373
+ j = Object(o['useCopy'])(),
374
+ A = d(j, 2),
375
+ O = A[0],
376
+ C = A[1],
377
+ S = Object(n['useState'])('_'),
378
+ I = d(S, 2),
379
+ R = I[0],
380
+ L = I[1],
381
+ M = Object(n['useState'])(p(R, f.sources[R])),
382
+ P = d(M, 2),
383
+ T = P[0],
384
+ U = P[1],
385
+ Z = Object(n['useState'])(Boolean(f.defaultShowCode)),
386
+ J = d(Z, 2),
387
+ q = J[0],
388
+ F = J[1],
389
+ $ = Object(n['useState'])(Math.random()),
390
+ B = d($, 2),
391
+ D = B[0],
392
+ H = B[1],
393
+ G = f.sources[R][T] || f.sources[R].content,
394
+ X = Object(o['useTSPlaygroundUrl'])(E, G),
395
+ K = Object(n['useRef'])(),
396
+ Q = Object(o['usePrefersColor'])(),
397
+ V = d(Q, 1),
398
+ z = V[0];
399
+ function W(e) {
400
+ L(e), U(p(e, f.sources[e]));
401
+ }
402
+ return (
403
+ Object(n['useEffect'])(
404
+ function () {
405
+ H(Math.random());
406
+ },
407
+ [z],
408
+ ),
409
+ l.a.createElement(
410
+ 'div',
411
+ {
412
+ style: f.style,
413
+ className: [
414
+ f.className,
415
+ '__dumi-default-previewer',
416
+ v ? '__dumi-default-previewer-target' : '',
417
+ ]
418
+ .filter(Boolean)
419
+ .join(' '),
420
+ id: f.identifier,
421
+ 'data-debug': f.debug || void 0,
422
+ 'data-iframe': f.iframe || void 0,
423
+ },
424
+ f.iframe &&
425
+ l.a.createElement('div', {
426
+ className: '__dumi-default-previewer-browser-nav',
427
+ }),
428
+ l.a.createElement(
429
+ 'div',
430
+ {
431
+ ref: m,
432
+ className: '__dumi-default-previewer-demo',
433
+ style: {
434
+ transform: f.transform ? 'translate(0, 0)' : void 0,
435
+ padding:
436
+ f.compact || (f.iframe && !1 !== f.compact) ? '0' : void 0,
437
+ background: f.background,
438
+ },
439
+ },
440
+ f.iframe
441
+ ? l.a.createElement('iframe', {
442
+ title: 'dumi-previewer',
443
+ style: {
444
+ height: String(f.iframe).replace(/(\d)$/, '$1px'),
445
+ },
446
+ key: D,
447
+ src: h,
448
+ ref: K,
449
+ })
450
+ : f.children,
451
+ ),
452
+ l.a.createElement(
453
+ 'div',
454
+ {
455
+ className: '__dumi-default-previewer-desc',
456
+ 'data-title': f.title,
457
+ },
458
+ f.title &&
459
+ l.a.createElement(
460
+ o['AnchorLink'],
461
+ { to: '#'.concat(f.identifier) },
462
+ f.title,
463
+ ),
464
+ f.description &&
465
+ l.a.createElement('div', {
466
+ dangerouslySetInnerHTML: { __html: f.description },
467
+ }),
468
+ ),
469
+ l.a.createElement(
470
+ 'div',
471
+ { className: '__dumi-default-previewer-actions' },
472
+ y &&
473
+ l.a.createElement('button', {
474
+ title: 'Open demo on CodeSandbox.io',
475
+ className: '__dumi-default-icon',
476
+ role: 'codesandbox',
477
+ onClick: y,
478
+ }),
479
+ k &&
480
+ l.a.createElement('button', {
481
+ title: 'Open demo on Riddle',
482
+ className: '__dumi-default-icon',
483
+ role: 'riddle',
484
+ onClick: k,
485
+ }),
486
+ f.motions &&
487
+ l.a.createElement('button', {
488
+ title: 'Execute motions',
489
+ className: '__dumi-default-icon',
490
+ role: 'motions',
491
+ disabled: x,
492
+ onClick: function () {
493
+ return N();
494
+ },
495
+ }),
496
+ f.iframe &&
497
+ l.a.createElement('button', {
498
+ title: 'Reload demo iframe page',
499
+ className: '__dumi-default-icon',
500
+ role: 'refresh',
501
+ onClick: function () {
502
+ return H(Math.random());
503
+ },
504
+ }),
505
+ !(null === (u = f.hideActions) || void 0 === u
506
+ ? void 0
507
+ : u.includes('EXTERNAL')) &&
508
+ l.a.createElement(
509
+ o['Link'],
510
+ { target: '_blank', to: h },
511
+ l.a.createElement('button', {
512
+ title: 'Open demo in new tab',
513
+ className: '__dumi-default-icon',
514
+ role: 'open-demo',
515
+ type: 'button',
516
+ }),
517
+ ),
518
+ l.a.createElement('span', null),
519
+ l.a.createElement('button', {
520
+ title: 'Copy source code',
521
+ className: '__dumi-default-icon',
522
+ role: 'copy',
523
+ 'data-status': C,
524
+ onClick: function () {
525
+ return O(G);
526
+ },
527
+ }),
528
+ 'tsx' === T &&
529
+ q &&
530
+ l.a.createElement(
531
+ o['Link'],
532
+ { target: '_blank', to: X },
533
+ l.a.createElement('button', {
534
+ title: 'Get JSX via TypeScript Playground',
535
+ className: '__dumi-default-icon',
536
+ role: 'change-tsx',
537
+ type: 'button',
538
+ }),
539
+ ),
540
+ l.a.createElement('button', {
541
+ title: 'Toggle source code panel',
542
+ className: '__dumi-default-icon'.concat(
543
+ q ? ' __dumi-default-btn-expand' : '',
544
+ ),
545
+ role: 'source',
546
+ type: 'button',
547
+ onClick: function () {
548
+ return F(!q);
549
+ },
550
+ }),
551
+ ),
552
+ q &&
553
+ l.a.createElement(
554
+ 'div',
555
+ { className: '__dumi-default-previewer-source-wrapper' },
556
+ !_ &&
557
+ l.a.createElement(
558
+ r['b'],
559
+ {
560
+ className: '__dumi-default-previewer-source-tab',
561
+ prefixCls: '__dumi-default-tabs',
562
+ moreIcon: '\xb7\xb7\xb7',
563
+ defaultActiveKey: R,
564
+ onChange: W,
565
+ },
566
+ Object.keys(f.sources).map(function (e) {
567
+ return l.a.createElement(r['a'], {
568
+ tab:
569
+ '_' === e ? 'index.'.concat(p(e, f.sources[e])) : e,
570
+ key: e,
571
+ });
572
+ }),
573
+ ),
574
+ l.a.createElement(
575
+ 'div',
576
+ { className: '__dumi-default-previewer-source' },
577
+ l.a.createElement(i['a'], { code: G, lang: T, showCopy: !1 }),
578
+ ),
579
+ ),
580
+ )
581
+ );
582
+ };
583
+ t['default'] = b;
584
+ },
585
+ },
586
+ ]);