@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,897 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[17],{"/cpe":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("H1Ra"),d=a("JjdP"),m=l.a.memo(d["default"]["calendar-basic"].component),u=l.a.memo(d["default"]["calendar-notice-calendar"].component),i=l.a.memo(d["default"]["calendar-card"].component),s=l.a.memo(d["default"]["calendar-select"].component),E=l.a.memo(d["default"]["calendar-customize-header"].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:"calendar-\u65e5\u5386"},l.a.createElement(r["AnchorLink"],{to:"#calendar-\u65e5\u5386","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"Calendar \u65e5\u5386"),l.a.createElement("p",null,"\u6309\u7167\u65e5\u5386\u5f62\u5f0f\u5c55\u793a\u6570\u636e\u7684\u5bb9\u5668\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,"\u5f53\u6570\u636e\u662f\u65e5\u671f\u6216\u6309\u7167\u65e5\u671f\u5212\u5206\u65f6\uff0c\u4f8b\u5982\u65e5\u7a0b\u3001\u8bfe\u8868\u3001\u4ef7\u683c\u65e5\u5386\u7b49\uff0c\u519c\u5386\u7b49\u3002\u76ee\u524d\u652f\u6301\u5e74/\u6708\u5207\u6362\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"},l.a.createElement(r["AnchorLink"],{to:"#\u57fa\u672c","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u57fa\u672c")),l.a.createElement(c["default"],d["default"]["calendar-basic"].previewerProps,l.a.createElement(m,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u901a\u77e5\u4e8b\u9879\u65e5\u5386"},l.a.createElement(r["AnchorLink"],{to:"#\u901a\u77e5\u4e8b\u9879\u65e5\u5386","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u901a\u77e5\u4e8b\u9879\u65e5\u5386")),l.a.createElement(c["default"],d["default"]["calendar-notice-calendar"].previewerProps,l.a.createElement(u,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u5361\u7247\u6a21\u5f0f"},l.a.createElement(r["AnchorLink"],{to:"#\u5361\u7247\u6a21\u5f0f","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u5361\u7247\u6a21\u5f0f")),l.a.createElement(c["default"],d["default"]["calendar-card"].previewerProps,l.a.createElement(i,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u9009\u62e9\u529f\u80fd"},l.a.createElement(r["AnchorLink"],{to:"#\u9009\u62e9\u529f\u80fd","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u9009\u62e9\u529f\u80fd")),l.a.createElement(c["default"],d["default"]["calendar-select"].previewerProps,l.a.createElement(s,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u5934\u90e8"},l.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u5934\u90e8","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u5934\u90e8")),l.a.createElement(c["default"],d["default"]["calendar-customize-header"].previewerProps,l.a.createElement(E,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("p",null,"**\u6ce8\u610f\uff1a**Calendar \u90e8\u5206 locale \u662f\u4ece value \u4e2d\u8bfb\u53d6\uff0c\u6240\u4ee5\u8bf7\u5148\u6b63\u786e\u8bbe\u7f6e moment \u7684 locale\u3002"),l.a.createElement(o["a"],{code:"// \u9ed8\u8ba4\u8bed\u8a00\u4e3a en-US\uff0c\u6240\u4ee5\u5982\u679c\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u8bed\u8a00\uff0c\u63a8\u8350\u5728\u5165\u53e3\u6587\u4ef6\u5168\u5c40\u8bbe\u7f6e locale\n// import moment from 'moment';\n// import 'moment/locale/zh-cn';\n// moment.locale('zh-cn');\n\n<Calendar\n dateCellRender={dateCellRender}\n monthCellRender={monthCellRender}\n onPanelChange={onPanelChange}\n onSelect={onSelect}\n/>",lang:"bash"}),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,"dateCellRender"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u6e32\u67d3\u65e5\u671f\u5355\u5143\u683c\uff0c\u8fd4\u56de\u5185\u5bb9\u4f1a\u88ab\u8ffd\u52a0\u5230\u5355\u5143\u683c"),l.a.createElement("td",null,"function(date: moment): ReactNode"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"dateFullCellRender"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u6e32\u67d3\u65e5\u671f\u5355\u5143\u683c\uff0c\u8fd4\u56de\u5185\u5bb9\u8986\u76d6\u5355\u5143\u683c"),l.a.createElement("td",null,"function(date: moment): ReactNode"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"defaultValue"),l.a.createElement("td",null,"\u9ed8\u8ba4\u5c55\u793a\u7684\u65e5\u671f"),l.a.createElement("td",null,l.a.createElement(r["Link"],{to:"http://momentjs.com/"},"moment")),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"disabledDate"),l.a.createElement("td",null,"\u4e0d\u53ef\u9009\u62e9\u7684\u65e5\u671f\uff0c\u53c2\u6570\u4e3a\u5f53\u524d ",l.a.createElement("code",null,"value"),"\uff0c\u6ce8\u610f\u4f7f\u7528\u65f6",l.a.createElement(r["Link"],{to:"https://github.com/ant-design/ant-design/issues/30987"},"\u4e0d\u8981\u76f4\u63a5\u4fee\u6539")),l.a.createElement("td",null,"(currentDate: moment) => boolean"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"fullscreen"),l.a.createElement("td",null,"\u662f\u5426\u5168\u5c4f\u663e\u793a"),l.a.createElement("td",null,"boolean"),l.a.createElement("td",null,"true"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"headerRender"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u5934\u90e8\u5185\u5bb9"),l.a.createElement("td",null,"function(object:","{","value: moment, type: string, onChange: f(), onTypeChange: f()","}",")"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"locale"),l.a.createElement("td",null,"\u56fd\u9645\u5316\u914d\u7f6e"),l.a.createElement("td",null,"object"),l.a.createElement("td",null,l.a.createElement(r["Link"],{to:"https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json"},"(\u9ed8\u8ba4\u914d\u7f6e)")),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"mode"),l.a.createElement("td",null,"\u521d\u59cb\u6a21\u5f0f"),l.a.createElement("td",null,l.a.createElement("code",null,"month")," | ",l.a.createElement("code",null,"year")),l.a.createElement("td",null,l.a.createElement("code",null,"month")),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"monthCellRender"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u6e32\u67d3\u6708\u5355\u5143\u683c\uff0c\u8fd4\u56de\u5185\u5bb9\u4f1a\u88ab\u8ffd\u52a0\u5230\u5355\u5143\u683c"),l.a.createElement("td",null,"function(date: moment): ReactNode"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"monthFullCellRender"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u6e32\u67d3\u6708\u5355\u5143\u683c\uff0c\u8fd4\u56de\u5185\u5bb9\u8986\u76d6\u5355\u5143\u683c"),l.a.createElement("td",null,"function(date: moment): ReactNode"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"validRange"),l.a.createElement("td",null,"\u8bbe\u7f6e\u53ef\u4ee5\u663e\u793a\u7684\u65e5\u671f"),l.a.createElement("td",null,"[",l.a.createElement(r["Link"],{to:"http://momentjs.com/"},"moment"),", ",l.a.createElement(r["Link"],{to:"http://momentjs.com/"},"moment"),"]"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"value"),l.a.createElement("td",null,"\u5c55\u793a\u65e5\u671f"),l.a.createElement("td",null,l.a.createElement(r["Link"],{to:"http://momentjs.com/"},"moment")),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"onChange"),l.a.createElement("td",null,"\u65e5\u671f\u53d8\u5316\u56de\u8c03"),l.a.createElement("td",null,"function(date: moment\uff09"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"onPanelChange"),l.a.createElement("td",null,"\u65e5\u671f\u9762\u677f\u53d8\u5316\u56de\u8c03"),l.a.createElement("td",null,"function(date: moment, mode: string)"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)),l.a.createElement("tr",null,l.a.createElement("td",null,"onSelect"),l.a.createElement("td",null,"\u70b9\u51fb\u9009\u62e9\u65e5\u671f\u56de\u8c03"),l.a.createElement("td",null,"function(date: moment\uff09"),l.a.createElement("td",null,"-"),l.a.createElement("td",null)))),l.a.createElement("h2",{id:"faq"},l.a.createElement(r["AnchorLink"],{to:"#faq","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"FAQ"),l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement(r["AnchorLink"],{to:"/docs/react/replace-moment#Calendar"},"\u5982\u4f55\u5728 Calendar \u4e2d\u4f7f\u7528\u81ea\u5b9a\u4e49\u65e5\u671f\u5e93\uff08\u5982 dayjs \uff09"))),l.a.createElement("style",{dangerouslySetInnerHTML:{__html:'\n .site-calendar-demo-card {\n width: 300px;\n border: 1px solid #f0f0f0;\n border-radius: 2px;\n}\n[data-theme="dark"] .site-calendar-demo-card {\n border: 1px solid #303030;\n }\n\n .site-calendar-customize-header-wrapper {\n width: 300px;\n border: 1px solid #f0f0f0;\n border-radius: 2px;\n}\n [data-theme="dark"] .site-calendar-customize-header-wrapper {\n border: 1px solid #303030;\n }\n'}})))))},MZF8:function(e,t,a){"use strict";var n=a("ogwx");a.d(t,"a",(function(){return n["b"]}));a("VCU9")},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"),d=a("H1Ra");a("RZMt");function m(e,t){return f(e)||E(e,t)||i(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 i(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(d){o=!0,l=d}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 h=function(e){var t,a,u,i=Object(n["useRef"])(),s=Object(n["useContext"])(o["context"]),E=s.locale,f=Object(o["useLocaleProps"])(E,e),h=Object(o["useDemoUrl"])(f.identifier),b=f.demoUrl||h,v=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(f.identifier),k=1===Object.keys(f.sources).length,g=Object(o["useCodeSandbox"])((null===(t=f.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:f),_=Object(o["useRiddle"])((null===(a=f.hideActions)||void 0===a?void 0:a.includes("RIDDLE"))?null:f),y=Object(o["useMotions"])(f.motions||[],i.current),w=m(y,2),C=w[0],x=w[1],N=Object(o["useCopy"])(),j=m(N,2),A=j[0],L=j[1],R=Object(n["useState"])("_"),O=m(R,2),S=O[0],I=O[1],P=Object(n["useState"])(p(S,f.sources[S])),M=m(P,2),T=M[0],F=M[1],U=Object(n["useState"])(Boolean(f.defaultShowCode)),q=m(U,2),z=q[0],Z=q[1],D=Object(n["useState"])(Math.random()),J=m(D,2),H=J[0],$=J[1],B=f.sources[S][T]||f.sources[S].content,G=Object(o["useTSPlaygroundUrl"])(E,B),V=Object(n["useRef"])(),X=Object(o["usePrefersColor"])(),K=m(X,1),Q=K[0];function W(e){I(e),F(p(e,f.sources[e]))}return Object(n["useEffect"])((function(){$(Math.random())}),[Q]),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:i,className:"__dumi-default-previewer-demo",style:{transform:f.transform?"translate(0, 0)":void 0,padding:f.compact||f.iframe&&!1!==f.compact?"0":void 0,background:f.background}},f.iframe?l.a.createElement("iframe",{title:"dumi-previewer",style:{height:String(f.iframe).replace(/(\d)$/,"$1px")},key:H,src:b,ref:V}):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"},g&&l.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:g}),_&&l.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:_}),f.motions&&l.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:x,onClick:function(){return C()}}),f.iframe&&l.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return $(Math.random())}}),!(null===(u=f.hideActions)||void 0===u?void 0:u.includes("EXTERNAL"))&&l.a.createElement(o["Link"],{target:"_blank",to:b},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":L,onClick:function(){return A(B)}}),"tsx"===T&&z&&l.a.createElement(o["Link"],{target:"_blank",to:G},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(z?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:function(){return Z(!z)}})),z&&l.a.createElement("div",{className:"__dumi-default-previewer-source-wrapper"},!k&&l.a.createElement(r["b"],{className:"__dumi-default-previewer-source-tab",prefixCls:"__dumi-default-tabs",moreIcon:"\xb7\xb7\xb7",defaultActiveKey:S,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(d["a"],{code:B,lang:T,showCopy:!1}))))};t["default"]=h}}]);
1
+ (window['webpackJsonp'] = window['webpackJsonp'] || []).push([
2
+ [17],
3
+ {
4
+ '/cpe': function (e, t, a) {
5
+ 'use strict';
6
+ a.r(t);
7
+ var n = a('q1tI'),
8
+ l = a.n(n),
9
+ r = a('dEAq'),
10
+ c = a('Zxc8'),
11
+ o = a('H1Ra'),
12
+ d = a('JjdP'),
13
+ m = l.a.memo(d['default']['calendar-basic'].component),
14
+ u = l.a.memo(d['default']['calendar-notice-calendar'].component),
15
+ i = l.a.memo(d['default']['calendar-card'].component),
16
+ s = l.a.memo(d['default']['calendar-select'].component),
17
+ E = l.a.memo(d['default']['calendar-customize-header'].component);
18
+ t['default'] = (e) => (
19
+ l.a.useEffect(() => {
20
+ var t;
21
+ null !== e &&
22
+ void 0 !== e &&
23
+ null !== (t = e.location) &&
24
+ void 0 !== t &&
25
+ t.hash &&
26
+ r['AnchorLink'].scrollToAnchor(
27
+ decodeURIComponent(e.location.hash.slice(1)),
28
+ );
29
+ }, []),
30
+ l.a.createElement(
31
+ l.a.Fragment,
32
+ null,
33
+ l.a.createElement(
34
+ l.a.Fragment,
35
+ null,
36
+ l.a.createElement(
37
+ 'div',
38
+ { className: 'markdown' },
39
+ l.a.createElement(
40
+ 'h1',
41
+ { id: 'calendar-\u65e5\u5386' },
42
+ l.a.createElement(
43
+ r['AnchorLink'],
44
+ {
45
+ to: '#calendar-\u65e5\u5386',
46
+ 'aria-hidden': 'true',
47
+ tabIndex: -1,
48
+ },
49
+ l.a.createElement('span', { className: 'icon icon-link' }),
50
+ ),
51
+ 'Calendar \u65e5\u5386',
52
+ ),
53
+ l.a.createElement(
54
+ 'p',
55
+ null,
56
+ '\u6309\u7167\u65e5\u5386\u5f62\u5f0f\u5c55\u793a\u6570\u636e\u7684\u5bb9\u5668\u3002',
57
+ ),
58
+ l.a.createElement(
59
+ 'h2',
60
+ { id: '\u4f55\u65f6\u4f7f\u7528' },
61
+ l.a.createElement(
62
+ r['AnchorLink'],
63
+ {
64
+ to: '#\u4f55\u65f6\u4f7f\u7528',
65
+ 'aria-hidden': 'true',
66
+ tabIndex: -1,
67
+ },
68
+ l.a.createElement('span', { className: 'icon icon-link' }),
69
+ ),
70
+ '\u4f55\u65f6\u4f7f\u7528',
71
+ ),
72
+ l.a.createElement(
73
+ 'p',
74
+ null,
75
+ '\u5f53\u6570\u636e\u662f\u65e5\u671f\u6216\u6309\u7167\u65e5\u671f\u5212\u5206\u65f6\uff0c\u4f8b\u5982\u65e5\u7a0b\u3001\u8bfe\u8868\u3001\u4ef7\u683c\u65e5\u5386\u7b49\uff0c\u519c\u5386\u7b49\u3002\u76ee\u524d\u652f\u6301\u5e74/\u6708\u5207\u6362\u3002',
76
+ ),
77
+ l.a.createElement(
78
+ 'h2',
79
+ { id: '\u4ee3\u7801\u6f14\u793a' },
80
+ l.a.createElement(
81
+ r['AnchorLink'],
82
+ {
83
+ to: '#\u4ee3\u7801\u6f14\u793a',
84
+ 'aria-hidden': 'true',
85
+ tabIndex: -1,
86
+ },
87
+ l.a.createElement('span', { className: 'icon icon-link' }),
88
+ ),
89
+ '\u4ee3\u7801\u6f14\u793a',
90
+ ),
91
+ l.a.createElement(
92
+ 'h3',
93
+ { id: '\u57fa\u672c' },
94
+ l.a.createElement(
95
+ r['AnchorLink'],
96
+ { to: '#\u57fa\u672c', 'aria-hidden': 'true', tabIndex: -1 },
97
+ l.a.createElement('span', { className: 'icon icon-link' }),
98
+ ),
99
+ '\u57fa\u672c',
100
+ ),
101
+ ),
102
+ l.a.createElement(
103
+ c['default'],
104
+ d['default']['calendar-basic'].previewerProps,
105
+ l.a.createElement(m, null),
106
+ ),
107
+ l.a.createElement(
108
+ 'div',
109
+ { className: 'markdown' },
110
+ l.a.createElement(
111
+ 'h3',
112
+ { id: '\u901a\u77e5\u4e8b\u9879\u65e5\u5386' },
113
+ l.a.createElement(
114
+ r['AnchorLink'],
115
+ {
116
+ to: '#\u901a\u77e5\u4e8b\u9879\u65e5\u5386',
117
+ 'aria-hidden': 'true',
118
+ tabIndex: -1,
119
+ },
120
+ l.a.createElement('span', { className: 'icon icon-link' }),
121
+ ),
122
+ '\u901a\u77e5\u4e8b\u9879\u65e5\u5386',
123
+ ),
124
+ ),
125
+ l.a.createElement(
126
+ c['default'],
127
+ d['default']['calendar-notice-calendar'].previewerProps,
128
+ l.a.createElement(u, null),
129
+ ),
130
+ l.a.createElement(
131
+ 'div',
132
+ { className: 'markdown' },
133
+ l.a.createElement(
134
+ 'h3',
135
+ { id: '\u5361\u7247\u6a21\u5f0f' },
136
+ l.a.createElement(
137
+ r['AnchorLink'],
138
+ {
139
+ to: '#\u5361\u7247\u6a21\u5f0f',
140
+ 'aria-hidden': 'true',
141
+ tabIndex: -1,
142
+ },
143
+ l.a.createElement('span', { className: 'icon icon-link' }),
144
+ ),
145
+ '\u5361\u7247\u6a21\u5f0f',
146
+ ),
147
+ ),
148
+ l.a.createElement(
149
+ c['default'],
150
+ d['default']['calendar-card'].previewerProps,
151
+ l.a.createElement(i, null),
152
+ ),
153
+ l.a.createElement(
154
+ 'div',
155
+ { className: 'markdown' },
156
+ l.a.createElement(
157
+ 'h3',
158
+ { id: '\u9009\u62e9\u529f\u80fd' },
159
+ l.a.createElement(
160
+ r['AnchorLink'],
161
+ {
162
+ to: '#\u9009\u62e9\u529f\u80fd',
163
+ 'aria-hidden': 'true',
164
+ tabIndex: -1,
165
+ },
166
+ l.a.createElement('span', { className: 'icon icon-link' }),
167
+ ),
168
+ '\u9009\u62e9\u529f\u80fd',
169
+ ),
170
+ ),
171
+ l.a.createElement(
172
+ c['default'],
173
+ d['default']['calendar-select'].previewerProps,
174
+ l.a.createElement(s, null),
175
+ ),
176
+ l.a.createElement(
177
+ 'div',
178
+ { className: 'markdown' },
179
+ l.a.createElement(
180
+ 'h3',
181
+ { id: '\u81ea\u5b9a\u4e49\u5934\u90e8' },
182
+ l.a.createElement(
183
+ r['AnchorLink'],
184
+ {
185
+ to: '#\u81ea\u5b9a\u4e49\u5934\u90e8',
186
+ 'aria-hidden': 'true',
187
+ tabIndex: -1,
188
+ },
189
+ l.a.createElement('span', { className: 'icon icon-link' }),
190
+ ),
191
+ '\u81ea\u5b9a\u4e49\u5934\u90e8',
192
+ ),
193
+ ),
194
+ l.a.createElement(
195
+ c['default'],
196
+ d['default']['calendar-customize-header'].previewerProps,
197
+ l.a.createElement(E, null),
198
+ ),
199
+ l.a.createElement(
200
+ 'div',
201
+ { className: 'markdown' },
202
+ l.a.createElement(
203
+ 'h2',
204
+ { id: 'api' },
205
+ l.a.createElement(
206
+ r['AnchorLink'],
207
+ { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
208
+ l.a.createElement('span', { className: 'icon icon-link' }),
209
+ ),
210
+ 'API',
211
+ ),
212
+ l.a.createElement(
213
+ 'p',
214
+ null,
215
+ '**\u6ce8\u610f\uff1a**Calendar \u90e8\u5206 locale \u662f\u4ece value \u4e2d\u8bfb\u53d6\uff0c\u6240\u4ee5\u8bf7\u5148\u6b63\u786e\u8bbe\u7f6e moment \u7684 locale\u3002',
216
+ ),
217
+ l.a.createElement(o['a'], {
218
+ code: "// \u9ed8\u8ba4\u8bed\u8a00\u4e3a en-US\uff0c\u6240\u4ee5\u5982\u679c\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u8bed\u8a00\uff0c\u63a8\u8350\u5728\u5165\u53e3\u6587\u4ef6\u5168\u5c40\u8bbe\u7f6e locale\n// import moment from 'moment';\n// import 'moment/locale/zh-cn';\n// moment.locale('zh-cn');\n\n<Calendar\n dateCellRender={dateCellRender}\n monthCellRender={monthCellRender}\n onPanelChange={onPanelChange}\n onSelect={onSelect}\n/>",
219
+ lang: 'bash',
220
+ }),
221
+ l.a.createElement(
222
+ 'table',
223
+ null,
224
+ l.a.createElement(
225
+ 'thead',
226
+ null,
227
+ l.a.createElement(
228
+ 'tr',
229
+ null,
230
+ l.a.createElement('th', null, '\u53c2\u6570'),
231
+ l.a.createElement('th', null, '\u8bf4\u660e'),
232
+ l.a.createElement('th', null, '\u7c7b\u578b'),
233
+ l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
234
+ l.a.createElement('th', null, '\u7248\u672c'),
235
+ ),
236
+ ),
237
+ l.a.createElement(
238
+ 'tbody',
239
+ null,
240
+ l.a.createElement(
241
+ 'tr',
242
+ null,
243
+ l.a.createElement('td', null, 'dateCellRender'),
244
+ l.a.createElement(
245
+ 'td',
246
+ null,
247
+ '\u81ea\u5b9a\u4e49\u6e32\u67d3\u65e5\u671f\u5355\u5143\u683c\uff0c\u8fd4\u56de\u5185\u5bb9\u4f1a\u88ab\u8ffd\u52a0\u5230\u5355\u5143\u683c',
248
+ ),
249
+ l.a.createElement(
250
+ 'td',
251
+ null,
252
+ 'function(date: moment): ReactNode',
253
+ ),
254
+ l.a.createElement('td', null, '-'),
255
+ l.a.createElement('td', null),
256
+ ),
257
+ l.a.createElement(
258
+ 'tr',
259
+ null,
260
+ l.a.createElement('td', null, 'dateFullCellRender'),
261
+ l.a.createElement(
262
+ 'td',
263
+ null,
264
+ '\u81ea\u5b9a\u4e49\u6e32\u67d3\u65e5\u671f\u5355\u5143\u683c\uff0c\u8fd4\u56de\u5185\u5bb9\u8986\u76d6\u5355\u5143\u683c',
265
+ ),
266
+ l.a.createElement(
267
+ 'td',
268
+ null,
269
+ 'function(date: moment): ReactNode',
270
+ ),
271
+ l.a.createElement('td', null, '-'),
272
+ l.a.createElement('td', null),
273
+ ),
274
+ l.a.createElement(
275
+ 'tr',
276
+ null,
277
+ l.a.createElement('td', null, 'defaultValue'),
278
+ l.a.createElement(
279
+ 'td',
280
+ null,
281
+ '\u9ed8\u8ba4\u5c55\u793a\u7684\u65e5\u671f',
282
+ ),
283
+ l.a.createElement(
284
+ 'td',
285
+ null,
286
+ l.a.createElement(
287
+ r['Link'],
288
+ { to: 'http://momentjs.com/' },
289
+ 'moment',
290
+ ),
291
+ ),
292
+ l.a.createElement('td', null, '-'),
293
+ l.a.createElement('td', null),
294
+ ),
295
+ l.a.createElement(
296
+ 'tr',
297
+ null,
298
+ l.a.createElement('td', null, 'disabledDate'),
299
+ l.a.createElement(
300
+ 'td',
301
+ null,
302
+ '\u4e0d\u53ef\u9009\u62e9\u7684\u65e5\u671f\uff0c\u53c2\u6570\u4e3a\u5f53\u524d ',
303
+ l.a.createElement('code', null, 'value'),
304
+ '\uff0c\u6ce8\u610f\u4f7f\u7528\u65f6',
305
+ l.a.createElement(
306
+ r['Link'],
307
+ {
308
+ to: 'https://github.com/ant-design/ant-design/issues/30987',
309
+ },
310
+ '\u4e0d\u8981\u76f4\u63a5\u4fee\u6539',
311
+ ),
312
+ ),
313
+ l.a.createElement(
314
+ 'td',
315
+ null,
316
+ '(currentDate: moment) => boolean',
317
+ ),
318
+ l.a.createElement('td', null, '-'),
319
+ l.a.createElement('td', null),
320
+ ),
321
+ l.a.createElement(
322
+ 'tr',
323
+ null,
324
+ l.a.createElement('td', null, 'fullscreen'),
325
+ l.a.createElement(
326
+ 'td',
327
+ null,
328
+ '\u662f\u5426\u5168\u5c4f\u663e\u793a',
329
+ ),
330
+ l.a.createElement('td', null, 'boolean'),
331
+ l.a.createElement('td', null, 'true'),
332
+ l.a.createElement('td', null),
333
+ ),
334
+ l.a.createElement(
335
+ 'tr',
336
+ null,
337
+ l.a.createElement('td', null, 'headerRender'),
338
+ l.a.createElement(
339
+ 'td',
340
+ null,
341
+ '\u81ea\u5b9a\u4e49\u5934\u90e8\u5185\u5bb9',
342
+ ),
343
+ l.a.createElement(
344
+ 'td',
345
+ null,
346
+ 'function(object:',
347
+ '{',
348
+ 'value: moment, type: string, onChange: f(), onTypeChange: f()',
349
+ '}',
350
+ ')',
351
+ ),
352
+ l.a.createElement('td', null, '-'),
353
+ l.a.createElement('td', null),
354
+ ),
355
+ l.a.createElement(
356
+ 'tr',
357
+ null,
358
+ l.a.createElement('td', null, 'locale'),
359
+ l.a.createElement(
360
+ 'td',
361
+ null,
362
+ '\u56fd\u9645\u5316\u914d\u7f6e',
363
+ ),
364
+ l.a.createElement('td', null, 'object'),
365
+ l.a.createElement(
366
+ 'td',
367
+ null,
368
+ l.a.createElement(
369
+ r['Link'],
370
+ {
371
+ to: 'https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json',
372
+ },
373
+ '(\u9ed8\u8ba4\u914d\u7f6e)',
374
+ ),
375
+ ),
376
+ l.a.createElement('td', null),
377
+ ),
378
+ l.a.createElement(
379
+ 'tr',
380
+ null,
381
+ l.a.createElement('td', null, 'mode'),
382
+ l.a.createElement('td', null, '\u521d\u59cb\u6a21\u5f0f'),
383
+ l.a.createElement(
384
+ 'td',
385
+ null,
386
+ l.a.createElement('code', null, 'month'),
387
+ ' | ',
388
+ l.a.createElement('code', null, 'year'),
389
+ ),
390
+ l.a.createElement(
391
+ 'td',
392
+ null,
393
+ l.a.createElement('code', null, 'month'),
394
+ ),
395
+ l.a.createElement('td', null),
396
+ ),
397
+ l.a.createElement(
398
+ 'tr',
399
+ null,
400
+ l.a.createElement('td', null, 'monthCellRender'),
401
+ l.a.createElement(
402
+ 'td',
403
+ null,
404
+ '\u81ea\u5b9a\u4e49\u6e32\u67d3\u6708\u5355\u5143\u683c\uff0c\u8fd4\u56de\u5185\u5bb9\u4f1a\u88ab\u8ffd\u52a0\u5230\u5355\u5143\u683c',
405
+ ),
406
+ l.a.createElement(
407
+ 'td',
408
+ null,
409
+ 'function(date: moment): ReactNode',
410
+ ),
411
+ l.a.createElement('td', null, '-'),
412
+ l.a.createElement('td', null),
413
+ ),
414
+ l.a.createElement(
415
+ 'tr',
416
+ null,
417
+ l.a.createElement('td', null, 'monthFullCellRender'),
418
+ l.a.createElement(
419
+ 'td',
420
+ null,
421
+ '\u81ea\u5b9a\u4e49\u6e32\u67d3\u6708\u5355\u5143\u683c\uff0c\u8fd4\u56de\u5185\u5bb9\u8986\u76d6\u5355\u5143\u683c',
422
+ ),
423
+ l.a.createElement(
424
+ 'td',
425
+ null,
426
+ 'function(date: moment): ReactNode',
427
+ ),
428
+ l.a.createElement('td', null, '-'),
429
+ l.a.createElement('td', null),
430
+ ),
431
+ l.a.createElement(
432
+ 'tr',
433
+ null,
434
+ l.a.createElement('td', null, 'validRange'),
435
+ l.a.createElement(
436
+ 'td',
437
+ null,
438
+ '\u8bbe\u7f6e\u53ef\u4ee5\u663e\u793a\u7684\u65e5\u671f',
439
+ ),
440
+ l.a.createElement(
441
+ 'td',
442
+ null,
443
+ '[',
444
+ l.a.createElement(
445
+ r['Link'],
446
+ { to: 'http://momentjs.com/' },
447
+ 'moment',
448
+ ),
449
+ ', ',
450
+ l.a.createElement(
451
+ r['Link'],
452
+ { to: 'http://momentjs.com/' },
453
+ 'moment',
454
+ ),
455
+ ']',
456
+ ),
457
+ l.a.createElement('td', null, '-'),
458
+ l.a.createElement('td', null),
459
+ ),
460
+ l.a.createElement(
461
+ 'tr',
462
+ null,
463
+ l.a.createElement('td', null, 'value'),
464
+ l.a.createElement('td', null, '\u5c55\u793a\u65e5\u671f'),
465
+ l.a.createElement(
466
+ 'td',
467
+ null,
468
+ l.a.createElement(
469
+ r['Link'],
470
+ { to: 'http://momentjs.com/' },
471
+ 'moment',
472
+ ),
473
+ ),
474
+ l.a.createElement('td', null, '-'),
475
+ l.a.createElement('td', null),
476
+ ),
477
+ l.a.createElement(
478
+ 'tr',
479
+ null,
480
+ l.a.createElement('td', null, 'onChange'),
481
+ l.a.createElement(
482
+ 'td',
483
+ null,
484
+ '\u65e5\u671f\u53d8\u5316\u56de\u8c03',
485
+ ),
486
+ l.a.createElement(
487
+ 'td',
488
+ null,
489
+ 'function(date: moment\uff09',
490
+ ),
491
+ l.a.createElement('td', null, '-'),
492
+ l.a.createElement('td', null),
493
+ ),
494
+ l.a.createElement(
495
+ 'tr',
496
+ null,
497
+ l.a.createElement('td', null, 'onPanelChange'),
498
+ l.a.createElement(
499
+ 'td',
500
+ null,
501
+ '\u65e5\u671f\u9762\u677f\u53d8\u5316\u56de\u8c03',
502
+ ),
503
+ l.a.createElement(
504
+ 'td',
505
+ null,
506
+ 'function(date: moment, mode: string)',
507
+ ),
508
+ l.a.createElement('td', null, '-'),
509
+ l.a.createElement('td', null),
510
+ ),
511
+ l.a.createElement(
512
+ 'tr',
513
+ null,
514
+ l.a.createElement('td', null, 'onSelect'),
515
+ l.a.createElement(
516
+ 'td',
517
+ null,
518
+ '\u70b9\u51fb\u9009\u62e9\u65e5\u671f\u56de\u8c03',
519
+ ),
520
+ l.a.createElement(
521
+ 'td',
522
+ null,
523
+ 'function(date: moment\uff09',
524
+ ),
525
+ l.a.createElement('td', null, '-'),
526
+ l.a.createElement('td', null),
527
+ ),
528
+ ),
529
+ ),
530
+ l.a.createElement(
531
+ 'h2',
532
+ { id: 'faq' },
533
+ l.a.createElement(
534
+ r['AnchorLink'],
535
+ { to: '#faq', 'aria-hidden': 'true', tabIndex: -1 },
536
+ l.a.createElement('span', { className: 'icon icon-link' }),
537
+ ),
538
+ 'FAQ',
539
+ ),
540
+ l.a.createElement(
541
+ 'ul',
542
+ null,
543
+ l.a.createElement(
544
+ 'li',
545
+ null,
546
+ l.a.createElement(
547
+ r['AnchorLink'],
548
+ { to: '/docs/react/replace-moment#Calendar' },
549
+ '\u5982\u4f55\u5728 Calendar \u4e2d\u4f7f\u7528\u81ea\u5b9a\u4e49\u65e5\u671f\u5e93\uff08\u5982 dayjs \uff09',
550
+ ),
551
+ ),
552
+ ),
553
+ l.a.createElement('style', {
554
+ dangerouslySetInnerHTML: {
555
+ __html:
556
+ '\n .site-calendar-demo-card {\n width: 300px;\n border: 1px solid #f0f0f0;\n border-radius: 2px;\n}\n[data-theme="dark"] .site-calendar-demo-card {\n border: 1px solid #303030;\n }\n\n .site-calendar-customize-header-wrapper {\n width: 300px;\n border: 1px solid #f0f0f0;\n border-radius: 2px;\n}\n [data-theme="dark"] .site-calendar-customize-header-wrapper {\n border: 1px solid #303030;\n }\n',
557
+ },
558
+ }),
559
+ ),
560
+ ),
561
+ )
562
+ );
563
+ },
564
+ MZF8: function (e, t, a) {
565
+ 'use strict';
566
+ var n = a('ogwx');
567
+ a.d(t, 'a', function () {
568
+ return n['b'];
569
+ });
570
+ a('VCU9');
571
+ },
572
+ RZMt: function (e, t, a) {},
573
+ Zxc8: function (e, t, a) {
574
+ 'use strict';
575
+ a.r(t);
576
+ var n = a('q1tI'),
577
+ l = a.n(n),
578
+ r = a('k3GJ'),
579
+ c = a('MZF8'),
580
+ o = a('dEAq'),
581
+ d = a('H1Ra');
582
+ a('RZMt');
583
+ function m(e, t) {
584
+ return f(e) || E(e, t) || i(e, t) || u();
585
+ }
586
+ function u() {
587
+ throw new TypeError(
588
+ 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
589
+ );
590
+ }
591
+ function i(e, t) {
592
+ if (e) {
593
+ if ('string' === typeof e) return s(e, t);
594
+ var a = Object.prototype.toString.call(e).slice(8, -1);
595
+ return (
596
+ 'Object' === a && e.constructor && (a = e.constructor.name),
597
+ 'Map' === a || 'Set' === a
598
+ ? Array.from(e)
599
+ : 'Arguments' === a ||
600
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
601
+ ? s(e, t)
602
+ : void 0
603
+ );
604
+ }
605
+ }
606
+ function s(e, t) {
607
+ (null == t || t > e.length) && (t = e.length);
608
+ for (var a = 0, n = new Array(t); a < t; a++) n[a] = e[a];
609
+ return n;
610
+ }
611
+ function E(e, t) {
612
+ var a =
613
+ null == e
614
+ ? null
615
+ : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
616
+ e['@@iterator'];
617
+ if (null != a) {
618
+ var n,
619
+ l,
620
+ r = [],
621
+ c = !0,
622
+ o = !1;
623
+ try {
624
+ for (a = a.call(e); !(c = (n = a.next()).done); c = !0)
625
+ if ((r.push(n.value), t && r.length === t)) break;
626
+ } catch (d) {
627
+ (o = !0), (l = d);
628
+ } finally {
629
+ try {
630
+ c || null == a['return'] || a['return']();
631
+ } finally {
632
+ if (o) throw l;
633
+ }
634
+ }
635
+ return r;
636
+ }
637
+ }
638
+ function f(e) {
639
+ if (Array.isArray(e)) return e;
640
+ }
641
+ function p(e, t) {
642
+ var a,
643
+ n =
644
+ null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
645
+ return n || (n = t.tsx ? 'tsx' : 'jsx'), n;
646
+ }
647
+ var h = function (e) {
648
+ var t,
649
+ a,
650
+ u,
651
+ i = Object(n['useRef'])(),
652
+ s = Object(n['useContext'])(o['context']),
653
+ E = s.locale,
654
+ f = Object(o['useLocaleProps'])(E, e),
655
+ h = Object(o['useDemoUrl'])(f.identifier),
656
+ b = f.demoUrl || h,
657
+ v =
658
+ (null === c['a'] || void 0 === c['a']
659
+ ? void 0
660
+ : c['a'].location.hash) === '#'.concat(f.identifier),
661
+ k = 1 === Object.keys(f.sources).length,
662
+ g = Object(o['useCodeSandbox'])(
663
+ (
664
+ null === (t = f.hideActions) || void 0 === t
665
+ ? void 0
666
+ : t.includes('CSB')
667
+ )
668
+ ? null
669
+ : f,
670
+ ),
671
+ _ = Object(o['useRiddle'])(
672
+ (
673
+ null === (a = f.hideActions) || void 0 === a
674
+ ? void 0
675
+ : a.includes('RIDDLE')
676
+ )
677
+ ? null
678
+ : f,
679
+ ),
680
+ y = Object(o['useMotions'])(f.motions || [], i.current),
681
+ w = m(y, 2),
682
+ C = w[0],
683
+ x = w[1],
684
+ N = Object(o['useCopy'])(),
685
+ j = m(N, 2),
686
+ A = j[0],
687
+ L = j[1],
688
+ R = Object(n['useState'])('_'),
689
+ O = m(R, 2),
690
+ S = O[0],
691
+ I = O[1],
692
+ P = Object(n['useState'])(p(S, f.sources[S])),
693
+ M = m(P, 2),
694
+ T = M[0],
695
+ F = M[1],
696
+ U = Object(n['useState'])(Boolean(f.defaultShowCode)),
697
+ q = m(U, 2),
698
+ z = q[0],
699
+ Z = q[1],
700
+ D = Object(n['useState'])(Math.random()),
701
+ J = m(D, 2),
702
+ H = J[0],
703
+ $ = J[1],
704
+ B = f.sources[S][T] || f.sources[S].content,
705
+ G = Object(o['useTSPlaygroundUrl'])(E, B),
706
+ V = Object(n['useRef'])(),
707
+ X = Object(o['usePrefersColor'])(),
708
+ K = m(X, 1),
709
+ Q = K[0];
710
+ function W(e) {
711
+ I(e), F(p(e, f.sources[e]));
712
+ }
713
+ return (
714
+ Object(n['useEffect'])(
715
+ function () {
716
+ $(Math.random());
717
+ },
718
+ [Q],
719
+ ),
720
+ l.a.createElement(
721
+ 'div',
722
+ {
723
+ style: f.style,
724
+ className: [
725
+ f.className,
726
+ '__dumi-default-previewer',
727
+ v ? '__dumi-default-previewer-target' : '',
728
+ ]
729
+ .filter(Boolean)
730
+ .join(' '),
731
+ id: f.identifier,
732
+ 'data-debug': f.debug || void 0,
733
+ 'data-iframe': f.iframe || void 0,
734
+ },
735
+ f.iframe &&
736
+ l.a.createElement('div', {
737
+ className: '__dumi-default-previewer-browser-nav',
738
+ }),
739
+ l.a.createElement(
740
+ 'div',
741
+ {
742
+ ref: i,
743
+ className: '__dumi-default-previewer-demo',
744
+ style: {
745
+ transform: f.transform ? 'translate(0, 0)' : void 0,
746
+ padding:
747
+ f.compact || (f.iframe && !1 !== f.compact) ? '0' : void 0,
748
+ background: f.background,
749
+ },
750
+ },
751
+ f.iframe
752
+ ? l.a.createElement('iframe', {
753
+ title: 'dumi-previewer',
754
+ style: {
755
+ height: String(f.iframe).replace(/(\d)$/, '$1px'),
756
+ },
757
+ key: H,
758
+ src: b,
759
+ ref: V,
760
+ })
761
+ : f.children,
762
+ ),
763
+ l.a.createElement(
764
+ 'div',
765
+ {
766
+ className: '__dumi-default-previewer-desc',
767
+ 'data-title': f.title,
768
+ },
769
+ f.title &&
770
+ l.a.createElement(
771
+ o['AnchorLink'],
772
+ { to: '#'.concat(f.identifier) },
773
+ f.title,
774
+ ),
775
+ f.description &&
776
+ l.a.createElement('div', {
777
+ dangerouslySetInnerHTML: { __html: f.description },
778
+ }),
779
+ ),
780
+ l.a.createElement(
781
+ 'div',
782
+ { className: '__dumi-default-previewer-actions' },
783
+ g &&
784
+ l.a.createElement('button', {
785
+ title: 'Open demo on CodeSandbox.io',
786
+ className: '__dumi-default-icon',
787
+ role: 'codesandbox',
788
+ onClick: g,
789
+ }),
790
+ _ &&
791
+ l.a.createElement('button', {
792
+ title: 'Open demo on Riddle',
793
+ className: '__dumi-default-icon',
794
+ role: 'riddle',
795
+ onClick: _,
796
+ }),
797
+ f.motions &&
798
+ l.a.createElement('button', {
799
+ title: 'Execute motions',
800
+ className: '__dumi-default-icon',
801
+ role: 'motions',
802
+ disabled: x,
803
+ onClick: function () {
804
+ return C();
805
+ },
806
+ }),
807
+ f.iframe &&
808
+ l.a.createElement('button', {
809
+ title: 'Reload demo iframe page',
810
+ className: '__dumi-default-icon',
811
+ role: 'refresh',
812
+ onClick: function () {
813
+ return $(Math.random());
814
+ },
815
+ }),
816
+ !(null === (u = f.hideActions) || void 0 === u
817
+ ? void 0
818
+ : u.includes('EXTERNAL')) &&
819
+ l.a.createElement(
820
+ o['Link'],
821
+ { target: '_blank', to: b },
822
+ l.a.createElement('button', {
823
+ title: 'Open demo in new tab',
824
+ className: '__dumi-default-icon',
825
+ role: 'open-demo',
826
+ type: 'button',
827
+ }),
828
+ ),
829
+ l.a.createElement('span', null),
830
+ l.a.createElement('button', {
831
+ title: 'Copy source code',
832
+ className: '__dumi-default-icon',
833
+ role: 'copy',
834
+ 'data-status': L,
835
+ onClick: function () {
836
+ return A(B);
837
+ },
838
+ }),
839
+ 'tsx' === T &&
840
+ z &&
841
+ l.a.createElement(
842
+ o['Link'],
843
+ { target: '_blank', to: G },
844
+ l.a.createElement('button', {
845
+ title: 'Get JSX via TypeScript Playground',
846
+ className: '__dumi-default-icon',
847
+ role: 'change-tsx',
848
+ type: 'button',
849
+ }),
850
+ ),
851
+ l.a.createElement('button', {
852
+ title: 'Toggle source code panel',
853
+ className: '__dumi-default-icon'.concat(
854
+ z ? ' __dumi-default-btn-expand' : '',
855
+ ),
856
+ role: 'source',
857
+ type: 'button',
858
+ onClick: function () {
859
+ return Z(!z);
860
+ },
861
+ }),
862
+ ),
863
+ z &&
864
+ l.a.createElement(
865
+ 'div',
866
+ { className: '__dumi-default-previewer-source-wrapper' },
867
+ !k &&
868
+ l.a.createElement(
869
+ r['b'],
870
+ {
871
+ className: '__dumi-default-previewer-source-tab',
872
+ prefixCls: '__dumi-default-tabs',
873
+ moreIcon: '\xb7\xb7\xb7',
874
+ defaultActiveKey: S,
875
+ onChange: W,
876
+ },
877
+ Object.keys(f.sources).map(function (e) {
878
+ return l.a.createElement(r['a'], {
879
+ tab:
880
+ '_' === e ? 'index.'.concat(p(e, f.sources[e])) : e,
881
+ key: e,
882
+ });
883
+ }),
884
+ ),
885
+ l.a.createElement(
886
+ 'div',
887
+ { className: '__dumi-default-previewer-source' },
888
+ l.a.createElement(d['a'], { code: B, lang: T, showCopy: !1 }),
889
+ ),
890
+ ),
891
+ )
892
+ );
893
+ };
894
+ t['default'] = h;
895
+ },
896
+ },
897
+ ]);