@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,1053 @@
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[53],{BWVT:function(e,t,a){"use strict";a.r(t);var l=a("q1tI"),n=a.n(l),r=a("dEAq"),c=a("Zxc8"),m=a("JjdP"),o=n.a.memo(m["default"]["slider-basic"].component),u=n.a.memo(m["default"]["slider-inputbox"].component),d=n.a.memo(m["default"]["slider-icon"].component),i=n.a.memo(m["default"]["slider-custom"].component),E=n.a.memo(m["default"]["slider-events"].component),s=n.a.memo(m["default"]["slider-marks"].component),p=n.a.memo(m["default"]["slider-vertical"].component),f=n.a.memo(m["default"]["slider-controlshow"].component),b=n.a.memo(m["default"]["slider-reverse"].component),h=n.a.memo(m["default"]["slider-range"].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:"slider-\u6ed1\u52a8\u8f93\u5165\u6761"},n.a.createElement(r["AnchorLink"],{to:"#slider-\u6ed1\u52a8\u8f93\u5165\u6761","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Slider \u6ed1\u52a8\u8f93\u5165\u6761"),n.a.createElement("p",null,"\u6ed1\u52a8\u578b\u8f93\u5165\u5668\uff0c\u5c55\u793a\u5f53\u524d\u503c\u548c\u53ef\u9009\u8303\u56f4\u3002"),n.a.createElement("h2",{id:"\u4f55\u65f6\u4f7f\u7528"},n.a.createElement(r["AnchorLink"],{to:"#\u4f55\u65f6\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4f55\u65f6\u4f7f\u7528"),n.a.createElement("p",null,"\u5f53\u7528\u6237\u9700\u8981\u5728\u6570\u503c\u533a\u95f4/\u81ea\u5b9a\u4e49\u533a\u95f4\u5185\u8fdb\u884c\u9009\u62e9\u65f6\uff0c\u53ef\u4e3a\u8fde\u7eed\u6216\u79bb\u6563\u503c\u3002"),n.a.createElement("h2",{id:"\u4ee3\u7801\u6f14\u793a"},n.a.createElement(r["AnchorLink"],{to:"#\u4ee3\u7801\u6f14\u793a","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4ee3\u7801\u6f14\u793a"),n.a.createElement("h3",{id:"\u57fa\u672c"},n.a.createElement(r["AnchorLink"],{to:"#\u57fa\u672c","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u57fa\u672c")),n.a.createElement(c["default"],m["default"]["slider-basic"].previewerProps,n.a.createElement(o,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u5e26\u8f93\u5165\u6846\u7684\u6ed1\u5757"},n.a.createElement(r["AnchorLink"],{to:"#\u5e26\u8f93\u5165\u6846\u7684\u6ed1\u5757","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5e26\u8f93\u5165\u6846\u7684\u6ed1\u5757")),n.a.createElement(c["default"],m["default"]["slider-inputbox"].previewerProps,n.a.createElement(u,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u5e26icon\u7684\u6ed1\u5757"},n.a.createElement(r["AnchorLink"],{to:"#\u5e26icon\u7684\u6ed1\u5757","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5e26icon\u7684\u6ed1\u5757")),n.a.createElement(c["default"],m["default"]["slider-icon"].previewerProps,n.a.createElement(d,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49\u63d0\u793a"},n.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49\u63d0\u793a","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49\u63d0\u793a")),n.a.createElement(c["default"],m["default"]["slider-custom"].previewerProps,n.a.createElement(i,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u4e8b\u4ef6"},n.a.createElement(r["AnchorLink"],{to:"#\u4e8b\u4ef6","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4e8b\u4ef6")),n.a.createElement(c["default"],m["default"]["slider-events"].previewerProps,n.a.createElement(E,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u5e26\u6807\u7b7e\u7684\u6ed1\u5757"},n.a.createElement(r["AnchorLink"],{to:"#\u5e26\u6807\u7b7e\u7684\u6ed1\u5757","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5e26\u6807\u7b7e\u7684\u6ed1\u5757")),n.a.createElement(c["default"],m["default"]["slider-marks"].previewerProps,n.a.createElement(s,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u5782\u76f4"},n.a.createElement(r["AnchorLink"],{to:"#\u5782\u76f4","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5782\u76f4")),n.a.createElement(c["default"],m["default"]["slider-vertical"].previewerProps,n.a.createElement(p,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u63a7\u5236tooltip\u7684\u663e\u793a"},n.a.createElement(r["AnchorLink"],{to:"#\u63a7\u5236tooltip\u7684\u663e\u793a","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u63a7\u5236ToolTip\u7684\u663e\u793a")),n.a.createElement(c["default"],m["default"]["slider-controlshow"].previewerProps,n.a.createElement(f,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u53cd\u5411"},n.a.createElement(r["AnchorLink"],{to:"#\u53cd\u5411","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u53cd\u5411")),n.a.createElement(c["default"],m["default"]["slider-reverse"].previewerProps,n.a.createElement(b,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u8303\u56f4\u53ef\u62d6\u62fd"},n.a.createElement(r["AnchorLink"],{to:"#\u8303\u56f4\u53ef\u62d6\u62fd","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u8303\u56f4\u53ef\u62d6\u62fd")),n.a.createElement(c["default"],m["default"]["slider-range"].previewerProps,n.a.createElement(h,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, \u5355\u9009\u6a21\u5f0f\u6709\u6548"),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,"defaultValue"),n.a.createElement("td",null,"\u8bbe\u7f6e\u521d\u59cb\u53d6\u503c\u3002\u5f53 ",n.a.createElement("code",null,"range")," \u4e3a false \u65f6\uff0c\u4f7f\u7528 number\uff0c\u5426\u5219\u7528 [number, number]"),n.a.createElement("td",null,"number | [number, number]"),n.a.createElement("td",null,"0 | [0, 0]"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"disabled"),n.a.createElement("td",null,"\u503c\u4e3a true \u65f6\uff0c\u6ed1\u5757\u4e3a\u7981\u7528\u72b6\u6001"),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,"dots"),n.a.createElement("td",null,"\u662f\u5426\u53ea\u80fd\u62d6\u62fd\u5230\u523b\u5ea6\u4e0a"),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,"getTooltipPopupContainer"),n.a.createElement("td",null,"Tooltip \u6e32\u67d3\u7236\u8282\u70b9\uff0c\u9ed8\u8ba4\u6e32\u67d3\u5230 body \u4e0a"),n.a.createElement("td",null,"(triggerNode) => HTMLElement"),n.a.createElement("td",null,"() => document.body"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"included"),n.a.createElement("td",null,n.a.createElement("code",null,"marks")," \u4e0d\u4e3a\u7a7a\u5bf9\u8c61\u65f6\u6709\u6548\uff0c\u503c\u4e3a true \u65f6\u8868\u793a\u503c\u4e3a\u5305\u542b\u5173\u7cfb\uff0cfalse \u8868\u793a\u5e76\u5217"),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,"marks"),n.a.createElement("td",null,"\u523b\u5ea6\u6807\u8bb0\uff0ckey \u7684\u7c7b\u578b\u5fc5\u987b\u4e3a ",n.a.createElement("code",null,"number")," \u4e14\u53d6\u503c\u5728\u95ed\u533a\u95f4 [min, max] \u5185\uff0c\u6bcf\u4e2a\u6807\u7b7e\u53ef\u4ee5\u5355\u72ec\u8bbe\u7f6e\u6837\u5f0f"),n.a.createElement("td",null,"object"),n.a.createElement("td",null,"{"," number: ReactNode ","}"," or ","{"," number: ","{"," style: CSSProperties, label: ReactNode ","}"," ","}"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"max"),n.a.createElement("td",null,"\u6700\u5927\u503c"),n.a.createElement("td",null,"number"),n.a.createElement("td",null,"100"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"min"),n.a.createElement("td",null,"\u6700\u5c0f\u503c"),n.a.createElement("td",null,"number"),n.a.createElement("td",null,"0"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"range"),n.a.createElement("td",null,"\u53cc\u6ed1\u5757\u6a21\u5f0f"),n.a.createElement("td",null,"boolean | ",n.a.createElement(r["AnchorLink"],{to:"#range"},"range")),n.a.createElement("td",null,"false"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"reverse"),n.a.createElement("td",null,"\u53cd\u5411\u5750\u6807\u8f74"),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,"step"),n.a.createElement("td",null,"\u6b65\u957f\uff0c\u53d6\u503c\u5fc5\u987b\u5927\u4e8e 0\uff0c\u5e76\u4e14\u53ef\u88ab (max - min) \u6574\u9664\u3002\u5f53 ",n.a.createElement("code",null,"marks")," \u4e0d\u4e3a\u7a7a\u5bf9\u8c61\u65f6\uff0c\u53ef\u4ee5\u8bbe\u7f6e ",n.a.createElement("code",null,"step")," \u4e3a null\uff0c\u6b64\u65f6 Slider \u7684\u53ef\u9009\u503c\u4ec5\u6709 marks \u6807\u51fa\u6765\u7684\u90e8\u5206"),n.a.createElement("td",null,"number | null"),n.a.createElement("td",null,"1"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"tipFormatter"),n.a.createElement("td",null,"Slider \u4f1a\u628a\u5f53\u524d\u503c\u4f20\u7ed9 ",n.a.createElement("code",null,"tipFormatter"),"\uff0c\u5e76\u5728 Tooltip \u4e2d\u663e\u793a ",n.a.createElement("code",null,"tipFormatter")," \u7684\u8fd4\u56de\u503c\uff0c\u82e5\u4e3a null\uff0c\u5219\u9690\u85cf Tooltip"),n.a.createElement("td",null,"value => ReactNode | null"),n.a.createElement("td",null,"IDENTITY"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"tooltipPlacement"),n.a.createElement("td",null,"\u8bbe\u7f6e Tooltip \u5c55\u793a\u4f4d\u7f6e\u3002\u53c2\u8003 ",n.a.createElement(r["Link"],{to:"/components/tooltip/"},"Tooltip")),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,"tooltipVisible"),n.a.createElement("td",null,"\u503c\u4e3a true \u65f6\uff0cTooltip \u5c06\u4f1a\u59cb\u7ec8\u663e\u793a\uff1b\u5426\u5219\u59cb\u7ec8\u4e0d\u663e\u793a\uff0c\u54ea\u6015\u5728\u62d6\u62fd\u53ca\u79fb\u5165\u65f6"),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,"value"),n.a.createElement("td",null,"\u8bbe\u7f6e\u5f53\u524d\u53d6\u503c\u3002\u5f53 ",n.a.createElement("code",null,"range")," \u4e3a false \u65f6\uff0c\u4f7f\u7528 number\uff0c\u5426\u5219\u7528 [number, number]"),n.a.createElement("td",null,"number | [number, number]"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"vertical"),n.a.createElement("td",null,"\u503c\u4e3a true \u65f6\uff0cSlider \u4e3a\u5782\u76f4\u65b9\u5411"),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,"onAfterChange"),n.a.createElement("td",null,"\u4e0e ",n.a.createElement("code",null,"onmouseup")," \u89e6\u53d1\u65f6\u673a\u4e00\u81f4\uff0c\u628a\u5f53\u524d\u503c\u4f5c\u4e3a\u53c2\u6570\u4f20\u5165"),n.a.createElement("td",null,"(value) => void"),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,"\u5f53 Slider \u7684\u503c\u53d1\u751f\u6539\u53d8\u65f6\uff0c\u4f1a\u89e6\u53d1 onChange \u4e8b\u4ef6\uff0c\u5e76\u628a\u6539\u53d8\u540e\u7684\u503c\u4f5c\u4e3a\u53c2\u6570\u4f20\u5165"),n.a.createElement("td",null,"(value) => void"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)))),n.a.createElement("h3",{id:"range"},n.a.createElement(r["AnchorLink"],{to:"#range","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"range"),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,"draggableTrack"),n.a.createElement("td",null,"\u8303\u56f4\u523b\u5ea6\u662f\u5426\u53ef\u88ab\u62d6\u62fd"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"false"),n.a.createElement("td",null,"4.10.0")))),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))))))))},MZF8:function(e,t,a){"use strict";var l=a("ogwx");a.d(t,"a",(function(){return l["b"]}));a("VCU9")},RZMt:function(e,t,a){},Zxc8:function(e,t,a){"use strict";a.r(t);var l=a("q1tI"),n=a.n(l),r=a("k3GJ"),c=a("MZF8"),m=a("dEAq"),o=a("H1Ra");a("RZMt");function u(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,m=!1;try{for(a=a.call(e);!(c=(l=a.next()).done);c=!0)if(r.push(l.value),t&&r.length===t)break}catch(o){m=!0,n=o}finally{try{c||null==a["return"]||a["return"]()}finally{if(m)throw n}}return r}}function p(e){if(Array.isArray(e))return e}function 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 b=function(e){var t,a,d,i=Object(l["useRef"])(),E=Object(l["useContext"])(m["context"]),s=E.locale,p=Object(m["useLocaleProps"])(s,e),b=Object(m["useDemoUrl"])(p.identifier),h=p.demoUrl||b,v=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(p.identifier),k=1===Object.keys(p.sources).length,w=Object(m["useCodeSandbox"])((null===(t=p.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:p),N=Object(m["useRiddle"])((null===(a=p.hideActions)||void 0===a?void 0:a.includes("RIDDLE"))?null:p),g=Object(m["useMotions"])(p.motions||[],i.current),y=u(g,2),_=y[0],x=y[1],A=Object(m["useCopy"])(),I=u(A,2),L=I[0],C=I[1],j=Object(l["useState"])("_"),S=u(j,2),O=S[0],T=S[1],P=Object(l["useState"])(f(O,p.sources[O])),R=u(P,2),M=R[0],F=R[1],U=Object(l["useState"])(Boolean(p.defaultShowCode)),Z=u(U,2),J=Z[0],q=Z[1],B=Object(l["useState"])(Math.random()),D=u(B,2),V=D[0],$=D[1],H=p.sources[O][M]||p.sources[O].content,G=Object(m["useTSPlaygroundUrl"])(s,H),X=Object(l["useRef"])(),K=Object(m["usePrefersColor"])(),W=u(K,1),Y=W[0];function z(e){T(e),F(f(e,p.sources[e]))}return Object(l["useEffect"])((function(){$(Math.random())}),[Y]),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:V,src:h,ref:X}):p.children),n.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":p.title},p.title&&n.a.createElement(m["AnchorLink"],{to:"#".concat(p.identifier)},p.title),p.description&&n.a.createElement("div",{dangerouslySetInnerHTML:{__html:p.description}})),n.a.createElement("div",{className:"__dumi-default-previewer-actions"},w&&n.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:w}),N&&n.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:N}),p.motions&&n.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:x,onClick:function(){return _()}}),p.iframe&&n.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return $(Math.random())}}),!(null===(d=p.hideActions)||void 0===d?void 0:d.includes("EXTERNAL"))&&n.a.createElement(m["Link"],{target:"_blank",to:h},n.a.createElement("button",{title:"Open demo in new tab",className:"__dumi-default-icon",role:"open-demo",type:"button"})),n.a.createElement("span",null),n.a.createElement("button",{title:"Copy source code",className:"__dumi-default-icon",role:"copy","data-status":C,onClick:function(){return L(H)}}),"tsx"===M&&J&&n.a.createElement(m["Link"],{target:"_blank",to:G},n.a.createElement("button",{title:"Get JSX via TypeScript Playground",className:"__dumi-default-icon",role:"change-tsx",type:"button"})),n.a.createElement("button",{title:"Toggle source code panel",className:"__dumi-default-icon".concat(J?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:function(){return q(!J)}})),J&&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:O,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:H,lang:M,showCopy:!1}))))};t["default"]=b}}]);
|
1
|
+
(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
|
2
|
+
[53],
|
3
|
+
{
|
4
|
+
BWVT: function (e, t, a) {
|
5
|
+
'use strict';
|
6
|
+
a.r(t);
|
7
|
+
var l = a('q1tI'),
|
8
|
+
n = a.n(l),
|
9
|
+
r = a('dEAq'),
|
10
|
+
c = a('Zxc8'),
|
11
|
+
m = a('JjdP'),
|
12
|
+
o = n.a.memo(m['default']['slider-basic'].component),
|
13
|
+
u = n.a.memo(m['default']['slider-inputbox'].component),
|
14
|
+
d = n.a.memo(m['default']['slider-icon'].component),
|
15
|
+
i = n.a.memo(m['default']['slider-custom'].component),
|
16
|
+
E = n.a.memo(m['default']['slider-events'].component),
|
17
|
+
s = n.a.memo(m['default']['slider-marks'].component),
|
18
|
+
p = n.a.memo(m['default']['slider-vertical'].component),
|
19
|
+
f = n.a.memo(m['default']['slider-controlshow'].component),
|
20
|
+
b = n.a.memo(m['default']['slider-reverse'].component),
|
21
|
+
h = n.a.memo(m['default']['slider-range'].component);
|
22
|
+
t['default'] = (e) => (
|
23
|
+
n.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
|
+
n.a.createElement(
|
35
|
+
n.a.Fragment,
|
36
|
+
null,
|
37
|
+
n.a.createElement(
|
38
|
+
n.a.Fragment,
|
39
|
+
null,
|
40
|
+
n.a.createElement(
|
41
|
+
'div',
|
42
|
+
{ className: 'markdown' },
|
43
|
+
n.a.createElement(
|
44
|
+
'h1',
|
45
|
+
{ id: 'slider-\u6ed1\u52a8\u8f93\u5165\u6761' },
|
46
|
+
n.a.createElement(
|
47
|
+
r['AnchorLink'],
|
48
|
+
{
|
49
|
+
to: '#slider-\u6ed1\u52a8\u8f93\u5165\u6761',
|
50
|
+
'aria-hidden': 'true',
|
51
|
+
tabIndex: -1,
|
52
|
+
},
|
53
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
54
|
+
),
|
55
|
+
'Slider \u6ed1\u52a8\u8f93\u5165\u6761',
|
56
|
+
),
|
57
|
+
n.a.createElement(
|
58
|
+
'p',
|
59
|
+
null,
|
60
|
+
'\u6ed1\u52a8\u578b\u8f93\u5165\u5668\uff0c\u5c55\u793a\u5f53\u524d\u503c\u548c\u53ef\u9009\u8303\u56f4\u3002',
|
61
|
+
),
|
62
|
+
n.a.createElement(
|
63
|
+
'h2',
|
64
|
+
{ id: '\u4f55\u65f6\u4f7f\u7528' },
|
65
|
+
n.a.createElement(
|
66
|
+
r['AnchorLink'],
|
67
|
+
{
|
68
|
+
to: '#\u4f55\u65f6\u4f7f\u7528',
|
69
|
+
'aria-hidden': 'true',
|
70
|
+
tabIndex: -1,
|
71
|
+
},
|
72
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
73
|
+
),
|
74
|
+
'\u4f55\u65f6\u4f7f\u7528',
|
75
|
+
),
|
76
|
+
n.a.createElement(
|
77
|
+
'p',
|
78
|
+
null,
|
79
|
+
'\u5f53\u7528\u6237\u9700\u8981\u5728\u6570\u503c\u533a\u95f4/\u81ea\u5b9a\u4e49\u533a\u95f4\u5185\u8fdb\u884c\u9009\u62e9\u65f6\uff0c\u53ef\u4e3a\u8fde\u7eed\u6216\u79bb\u6563\u503c\u3002',
|
80
|
+
),
|
81
|
+
n.a.createElement(
|
82
|
+
'h2',
|
83
|
+
{ id: '\u4ee3\u7801\u6f14\u793a' },
|
84
|
+
n.a.createElement(
|
85
|
+
r['AnchorLink'],
|
86
|
+
{
|
87
|
+
to: '#\u4ee3\u7801\u6f14\u793a',
|
88
|
+
'aria-hidden': 'true',
|
89
|
+
tabIndex: -1,
|
90
|
+
},
|
91
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
92
|
+
),
|
93
|
+
'\u4ee3\u7801\u6f14\u793a',
|
94
|
+
),
|
95
|
+
n.a.createElement(
|
96
|
+
'h3',
|
97
|
+
{ id: '\u57fa\u672c' },
|
98
|
+
n.a.createElement(
|
99
|
+
r['AnchorLink'],
|
100
|
+
{ to: '#\u57fa\u672c', 'aria-hidden': 'true', tabIndex: -1 },
|
101
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
102
|
+
),
|
103
|
+
'\u57fa\u672c',
|
104
|
+
),
|
105
|
+
),
|
106
|
+
n.a.createElement(
|
107
|
+
c['default'],
|
108
|
+
m['default']['slider-basic'].previewerProps,
|
109
|
+
n.a.createElement(o, null),
|
110
|
+
),
|
111
|
+
n.a.createElement(
|
112
|
+
'div',
|
113
|
+
{ className: 'markdown' },
|
114
|
+
n.a.createElement(
|
115
|
+
'h3',
|
116
|
+
{ id: '\u5e26\u8f93\u5165\u6846\u7684\u6ed1\u5757' },
|
117
|
+
n.a.createElement(
|
118
|
+
r['AnchorLink'],
|
119
|
+
{
|
120
|
+
to: '#\u5e26\u8f93\u5165\u6846\u7684\u6ed1\u5757',
|
121
|
+
'aria-hidden': 'true',
|
122
|
+
tabIndex: -1,
|
123
|
+
},
|
124
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
125
|
+
),
|
126
|
+
'\u5e26\u8f93\u5165\u6846\u7684\u6ed1\u5757',
|
127
|
+
),
|
128
|
+
),
|
129
|
+
n.a.createElement(
|
130
|
+
c['default'],
|
131
|
+
m['default']['slider-inputbox'].previewerProps,
|
132
|
+
n.a.createElement(u, null),
|
133
|
+
),
|
134
|
+
n.a.createElement(
|
135
|
+
'div',
|
136
|
+
{ className: 'markdown' },
|
137
|
+
n.a.createElement(
|
138
|
+
'h3',
|
139
|
+
{ id: '\u5e26icon\u7684\u6ed1\u5757' },
|
140
|
+
n.a.createElement(
|
141
|
+
r['AnchorLink'],
|
142
|
+
{
|
143
|
+
to: '#\u5e26icon\u7684\u6ed1\u5757',
|
144
|
+
'aria-hidden': 'true',
|
145
|
+
tabIndex: -1,
|
146
|
+
},
|
147
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
148
|
+
),
|
149
|
+
'\u5e26icon\u7684\u6ed1\u5757',
|
150
|
+
),
|
151
|
+
),
|
152
|
+
n.a.createElement(
|
153
|
+
c['default'],
|
154
|
+
m['default']['slider-icon'].previewerProps,
|
155
|
+
n.a.createElement(d, null),
|
156
|
+
),
|
157
|
+
n.a.createElement(
|
158
|
+
'div',
|
159
|
+
{ className: 'markdown' },
|
160
|
+
n.a.createElement(
|
161
|
+
'h3',
|
162
|
+
{ id: '\u81ea\u5b9a\u4e49\u63d0\u793a' },
|
163
|
+
n.a.createElement(
|
164
|
+
r['AnchorLink'],
|
165
|
+
{
|
166
|
+
to: '#\u81ea\u5b9a\u4e49\u63d0\u793a',
|
167
|
+
'aria-hidden': 'true',
|
168
|
+
tabIndex: -1,
|
169
|
+
},
|
170
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
171
|
+
),
|
172
|
+
'\u81ea\u5b9a\u4e49\u63d0\u793a',
|
173
|
+
),
|
174
|
+
),
|
175
|
+
n.a.createElement(
|
176
|
+
c['default'],
|
177
|
+
m['default']['slider-custom'].previewerProps,
|
178
|
+
n.a.createElement(i, null),
|
179
|
+
),
|
180
|
+
n.a.createElement(
|
181
|
+
'div',
|
182
|
+
{ className: 'markdown' },
|
183
|
+
n.a.createElement(
|
184
|
+
'h3',
|
185
|
+
{ id: '\u4e8b\u4ef6' },
|
186
|
+
n.a.createElement(
|
187
|
+
r['AnchorLink'],
|
188
|
+
{ to: '#\u4e8b\u4ef6', 'aria-hidden': 'true', tabIndex: -1 },
|
189
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
190
|
+
),
|
191
|
+
'\u4e8b\u4ef6',
|
192
|
+
),
|
193
|
+
),
|
194
|
+
n.a.createElement(
|
195
|
+
c['default'],
|
196
|
+
m['default']['slider-events'].previewerProps,
|
197
|
+
n.a.createElement(E, null),
|
198
|
+
),
|
199
|
+
n.a.createElement(
|
200
|
+
'div',
|
201
|
+
{ className: 'markdown' },
|
202
|
+
n.a.createElement(
|
203
|
+
'h3',
|
204
|
+
{ id: '\u5e26\u6807\u7b7e\u7684\u6ed1\u5757' },
|
205
|
+
n.a.createElement(
|
206
|
+
r['AnchorLink'],
|
207
|
+
{
|
208
|
+
to: '#\u5e26\u6807\u7b7e\u7684\u6ed1\u5757',
|
209
|
+
'aria-hidden': 'true',
|
210
|
+
tabIndex: -1,
|
211
|
+
},
|
212
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
213
|
+
),
|
214
|
+
'\u5e26\u6807\u7b7e\u7684\u6ed1\u5757',
|
215
|
+
),
|
216
|
+
),
|
217
|
+
n.a.createElement(
|
218
|
+
c['default'],
|
219
|
+
m['default']['slider-marks'].previewerProps,
|
220
|
+
n.a.createElement(s, null),
|
221
|
+
),
|
222
|
+
n.a.createElement(
|
223
|
+
'div',
|
224
|
+
{ className: 'markdown' },
|
225
|
+
n.a.createElement(
|
226
|
+
'h3',
|
227
|
+
{ id: '\u5782\u76f4' },
|
228
|
+
n.a.createElement(
|
229
|
+
r['AnchorLink'],
|
230
|
+
{ to: '#\u5782\u76f4', 'aria-hidden': 'true', tabIndex: -1 },
|
231
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
232
|
+
),
|
233
|
+
'\u5782\u76f4',
|
234
|
+
),
|
235
|
+
),
|
236
|
+
n.a.createElement(
|
237
|
+
c['default'],
|
238
|
+
m['default']['slider-vertical'].previewerProps,
|
239
|
+
n.a.createElement(p, null),
|
240
|
+
),
|
241
|
+
n.a.createElement(
|
242
|
+
'div',
|
243
|
+
{ className: 'markdown' },
|
244
|
+
n.a.createElement(
|
245
|
+
'h3',
|
246
|
+
{ id: '\u63a7\u5236tooltip\u7684\u663e\u793a' },
|
247
|
+
n.a.createElement(
|
248
|
+
r['AnchorLink'],
|
249
|
+
{
|
250
|
+
to: '#\u63a7\u5236tooltip\u7684\u663e\u793a',
|
251
|
+
'aria-hidden': 'true',
|
252
|
+
tabIndex: -1,
|
253
|
+
},
|
254
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
255
|
+
),
|
256
|
+
'\u63a7\u5236ToolTip\u7684\u663e\u793a',
|
257
|
+
),
|
258
|
+
),
|
259
|
+
n.a.createElement(
|
260
|
+
c['default'],
|
261
|
+
m['default']['slider-controlshow'].previewerProps,
|
262
|
+
n.a.createElement(f, null),
|
263
|
+
),
|
264
|
+
n.a.createElement(
|
265
|
+
'div',
|
266
|
+
{ className: 'markdown' },
|
267
|
+
n.a.createElement(
|
268
|
+
'h3',
|
269
|
+
{ id: '\u53cd\u5411' },
|
270
|
+
n.a.createElement(
|
271
|
+
r['AnchorLink'],
|
272
|
+
{ to: '#\u53cd\u5411', 'aria-hidden': 'true', tabIndex: -1 },
|
273
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
274
|
+
),
|
275
|
+
'\u53cd\u5411',
|
276
|
+
),
|
277
|
+
),
|
278
|
+
n.a.createElement(
|
279
|
+
c['default'],
|
280
|
+
m['default']['slider-reverse'].previewerProps,
|
281
|
+
n.a.createElement(b, null),
|
282
|
+
),
|
283
|
+
n.a.createElement(
|
284
|
+
'div',
|
285
|
+
{ className: 'markdown' },
|
286
|
+
n.a.createElement(
|
287
|
+
'h3',
|
288
|
+
{ id: '\u8303\u56f4\u53ef\u62d6\u62fd' },
|
289
|
+
n.a.createElement(
|
290
|
+
r['AnchorLink'],
|
291
|
+
{
|
292
|
+
to: '#\u8303\u56f4\u53ef\u62d6\u62fd',
|
293
|
+
'aria-hidden': 'true',
|
294
|
+
tabIndex: -1,
|
295
|
+
},
|
296
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
297
|
+
),
|
298
|
+
'\u8303\u56f4\u53ef\u62d6\u62fd',
|
299
|
+
),
|
300
|
+
),
|
301
|
+
n.a.createElement(
|
302
|
+
c['default'],
|
303
|
+
m['default']['slider-range'].previewerProps,
|
304
|
+
n.a.createElement(h, null),
|
305
|
+
),
|
306
|
+
n.a.createElement(
|
307
|
+
'div',
|
308
|
+
{ className: 'markdown' },
|
309
|
+
n.a.createElement(
|
310
|
+
'h2',
|
311
|
+
{ id: 'api' },
|
312
|
+
n.a.createElement(
|
313
|
+
r['AnchorLink'],
|
314
|
+
{ to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
|
315
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
316
|
+
),
|
317
|
+
'API',
|
318
|
+
),
|
319
|
+
n.a.createElement(
|
320
|
+
'table',
|
321
|
+
null,
|
322
|
+
n.a.createElement(
|
323
|
+
'thead',
|
324
|
+
null,
|
325
|
+
n.a.createElement(
|
326
|
+
'tr',
|
327
|
+
null,
|
328
|
+
n.a.createElement('th', null, '\u53c2\u6570'),
|
329
|
+
n.a.createElement('th', null, '\u8bf4\u660e'),
|
330
|
+
n.a.createElement('th', null, '\u7c7b\u578b'),
|
331
|
+
n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
|
332
|
+
n.a.createElement('th', null, '\u7248\u672c'),
|
333
|
+
),
|
334
|
+
),
|
335
|
+
n.a.createElement(
|
336
|
+
'tbody',
|
337
|
+
null,
|
338
|
+
n.a.createElement(
|
339
|
+
'tr',
|
340
|
+
null,
|
341
|
+
n.a.createElement('td', null, 'allowClear'),
|
342
|
+
n.a.createElement(
|
343
|
+
'td',
|
344
|
+
null,
|
345
|
+
'\u652f\u6301\u6e05\u9664, \u5355\u9009\u6a21\u5f0f\u6709\u6548',
|
346
|
+
),
|
347
|
+
n.a.createElement('td', null, 'boolean'),
|
348
|
+
n.a.createElement('td', null, 'false'),
|
349
|
+
n.a.createElement('td', null),
|
350
|
+
),
|
351
|
+
n.a.createElement(
|
352
|
+
'tr',
|
353
|
+
null,
|
354
|
+
n.a.createElement('td', null, 'defaultValue'),
|
355
|
+
n.a.createElement(
|
356
|
+
'td',
|
357
|
+
null,
|
358
|
+
'\u8bbe\u7f6e\u521d\u59cb\u53d6\u503c\u3002\u5f53 ',
|
359
|
+
n.a.createElement('code', null, 'range'),
|
360
|
+
' \u4e3a false \u65f6\uff0c\u4f7f\u7528 number\uff0c\u5426\u5219\u7528 [number, number]',
|
361
|
+
),
|
362
|
+
n.a.createElement('td', null, 'number | [number, number]'),
|
363
|
+
n.a.createElement('td', null, '0 | [0, 0]'),
|
364
|
+
n.a.createElement('td', null),
|
365
|
+
),
|
366
|
+
n.a.createElement(
|
367
|
+
'tr',
|
368
|
+
null,
|
369
|
+
n.a.createElement('td', null, 'disabled'),
|
370
|
+
n.a.createElement(
|
371
|
+
'td',
|
372
|
+
null,
|
373
|
+
'\u503c\u4e3a true \u65f6\uff0c\u6ed1\u5757\u4e3a\u7981\u7528\u72b6\u6001',
|
374
|
+
),
|
375
|
+
n.a.createElement('td', null, 'boolean'),
|
376
|
+
n.a.createElement('td', null, 'false'),
|
377
|
+
n.a.createElement('td', null),
|
378
|
+
),
|
379
|
+
n.a.createElement(
|
380
|
+
'tr',
|
381
|
+
null,
|
382
|
+
n.a.createElement('td', null, 'dots'),
|
383
|
+
n.a.createElement(
|
384
|
+
'td',
|
385
|
+
null,
|
386
|
+
'\u662f\u5426\u53ea\u80fd\u62d6\u62fd\u5230\u523b\u5ea6\u4e0a',
|
387
|
+
),
|
388
|
+
n.a.createElement('td', null, 'boolean'),
|
389
|
+
n.a.createElement('td', null, 'false'),
|
390
|
+
n.a.createElement('td', null),
|
391
|
+
),
|
392
|
+
n.a.createElement(
|
393
|
+
'tr',
|
394
|
+
null,
|
395
|
+
n.a.createElement('td', null, 'getTooltipPopupContainer'),
|
396
|
+
n.a.createElement(
|
397
|
+
'td',
|
398
|
+
null,
|
399
|
+
'Tooltip \u6e32\u67d3\u7236\u8282\u70b9\uff0c\u9ed8\u8ba4\u6e32\u67d3\u5230 body \u4e0a',
|
400
|
+
),
|
401
|
+
n.a.createElement(
|
402
|
+
'td',
|
403
|
+
null,
|
404
|
+
'(triggerNode) => HTMLElement',
|
405
|
+
),
|
406
|
+
n.a.createElement('td', null, '() => document.body'),
|
407
|
+
n.a.createElement('td', null),
|
408
|
+
),
|
409
|
+
n.a.createElement(
|
410
|
+
'tr',
|
411
|
+
null,
|
412
|
+
n.a.createElement('td', null, 'included'),
|
413
|
+
n.a.createElement(
|
414
|
+
'td',
|
415
|
+
null,
|
416
|
+
n.a.createElement('code', null, 'marks'),
|
417
|
+
' \u4e0d\u4e3a\u7a7a\u5bf9\u8c61\u65f6\u6709\u6548\uff0c\u503c\u4e3a true \u65f6\u8868\u793a\u503c\u4e3a\u5305\u542b\u5173\u7cfb\uff0cfalse \u8868\u793a\u5e76\u5217',
|
418
|
+
),
|
419
|
+
n.a.createElement('td', null, 'boolean'),
|
420
|
+
n.a.createElement('td', null, 'true'),
|
421
|
+
n.a.createElement('td', null),
|
422
|
+
),
|
423
|
+
n.a.createElement(
|
424
|
+
'tr',
|
425
|
+
null,
|
426
|
+
n.a.createElement('td', null, 'marks'),
|
427
|
+
n.a.createElement(
|
428
|
+
'td',
|
429
|
+
null,
|
430
|
+
'\u523b\u5ea6\u6807\u8bb0\uff0ckey \u7684\u7c7b\u578b\u5fc5\u987b\u4e3a ',
|
431
|
+
n.a.createElement('code', null, 'number'),
|
432
|
+
' \u4e14\u53d6\u503c\u5728\u95ed\u533a\u95f4 [min, max] \u5185\uff0c\u6bcf\u4e2a\u6807\u7b7e\u53ef\u4ee5\u5355\u72ec\u8bbe\u7f6e\u6837\u5f0f',
|
433
|
+
),
|
434
|
+
n.a.createElement('td', null, 'object'),
|
435
|
+
n.a.createElement(
|
436
|
+
'td',
|
437
|
+
null,
|
438
|
+
'{',
|
439
|
+
' number: ReactNode ',
|
440
|
+
'}',
|
441
|
+
' or ',
|
442
|
+
'{',
|
443
|
+
' number: ',
|
444
|
+
'{',
|
445
|
+
' style: CSSProperties, label: ReactNode ',
|
446
|
+
'}',
|
447
|
+
' ',
|
448
|
+
'}',
|
449
|
+
),
|
450
|
+
n.a.createElement('td', null),
|
451
|
+
),
|
452
|
+
n.a.createElement(
|
453
|
+
'tr',
|
454
|
+
null,
|
455
|
+
n.a.createElement('td', null, 'max'),
|
456
|
+
n.a.createElement('td', null, '\u6700\u5927\u503c'),
|
457
|
+
n.a.createElement('td', null, 'number'),
|
458
|
+
n.a.createElement('td', null, '100'),
|
459
|
+
n.a.createElement('td', null),
|
460
|
+
),
|
461
|
+
n.a.createElement(
|
462
|
+
'tr',
|
463
|
+
null,
|
464
|
+
n.a.createElement('td', null, 'min'),
|
465
|
+
n.a.createElement('td', null, '\u6700\u5c0f\u503c'),
|
466
|
+
n.a.createElement('td', null, 'number'),
|
467
|
+
n.a.createElement('td', null, '0'),
|
468
|
+
n.a.createElement('td', null),
|
469
|
+
),
|
470
|
+
n.a.createElement(
|
471
|
+
'tr',
|
472
|
+
null,
|
473
|
+
n.a.createElement('td', null, 'range'),
|
474
|
+
n.a.createElement(
|
475
|
+
'td',
|
476
|
+
null,
|
477
|
+
'\u53cc\u6ed1\u5757\u6a21\u5f0f',
|
478
|
+
),
|
479
|
+
n.a.createElement(
|
480
|
+
'td',
|
481
|
+
null,
|
482
|
+
'boolean | ',
|
483
|
+
n.a.createElement(
|
484
|
+
r['AnchorLink'],
|
485
|
+
{ to: '#range' },
|
486
|
+
'range',
|
487
|
+
),
|
488
|
+
),
|
489
|
+
n.a.createElement('td', null, 'false'),
|
490
|
+
n.a.createElement('td', null),
|
491
|
+
),
|
492
|
+
n.a.createElement(
|
493
|
+
'tr',
|
494
|
+
null,
|
495
|
+
n.a.createElement('td', null, 'reverse'),
|
496
|
+
n.a.createElement(
|
497
|
+
'td',
|
498
|
+
null,
|
499
|
+
'\u53cd\u5411\u5750\u6807\u8f74',
|
500
|
+
),
|
501
|
+
n.a.createElement('td', null, 'boolean'),
|
502
|
+
n.a.createElement('td', null, 'false'),
|
503
|
+
n.a.createElement('td', null),
|
504
|
+
),
|
505
|
+
n.a.createElement(
|
506
|
+
'tr',
|
507
|
+
null,
|
508
|
+
n.a.createElement('td', null, 'step'),
|
509
|
+
n.a.createElement(
|
510
|
+
'td',
|
511
|
+
null,
|
512
|
+
'\u6b65\u957f\uff0c\u53d6\u503c\u5fc5\u987b\u5927\u4e8e 0\uff0c\u5e76\u4e14\u53ef\u88ab (max - min) \u6574\u9664\u3002\u5f53 ',
|
513
|
+
n.a.createElement('code', null, 'marks'),
|
514
|
+
' \u4e0d\u4e3a\u7a7a\u5bf9\u8c61\u65f6\uff0c\u53ef\u4ee5\u8bbe\u7f6e ',
|
515
|
+
n.a.createElement('code', null, 'step'),
|
516
|
+
' \u4e3a null\uff0c\u6b64\u65f6 Slider \u7684\u53ef\u9009\u503c\u4ec5\u6709 marks \u6807\u51fa\u6765\u7684\u90e8\u5206',
|
517
|
+
),
|
518
|
+
n.a.createElement('td', null, 'number | null'),
|
519
|
+
n.a.createElement('td', null, '1'),
|
520
|
+
n.a.createElement('td', null),
|
521
|
+
),
|
522
|
+
n.a.createElement(
|
523
|
+
'tr',
|
524
|
+
null,
|
525
|
+
n.a.createElement('td', null, 'tipFormatter'),
|
526
|
+
n.a.createElement(
|
527
|
+
'td',
|
528
|
+
null,
|
529
|
+
'Slider \u4f1a\u628a\u5f53\u524d\u503c\u4f20\u7ed9 ',
|
530
|
+
n.a.createElement('code', null, 'tipFormatter'),
|
531
|
+
'\uff0c\u5e76\u5728 Tooltip \u4e2d\u663e\u793a ',
|
532
|
+
n.a.createElement('code', null, 'tipFormatter'),
|
533
|
+
' \u7684\u8fd4\u56de\u503c\uff0c\u82e5\u4e3a null\uff0c\u5219\u9690\u85cf Tooltip',
|
534
|
+
),
|
535
|
+
n.a.createElement('td', null, 'value => ReactNode | null'),
|
536
|
+
n.a.createElement('td', null, 'IDENTITY'),
|
537
|
+
n.a.createElement('td', null),
|
538
|
+
),
|
539
|
+
n.a.createElement(
|
540
|
+
'tr',
|
541
|
+
null,
|
542
|
+
n.a.createElement('td', null, 'tooltipPlacement'),
|
543
|
+
n.a.createElement(
|
544
|
+
'td',
|
545
|
+
null,
|
546
|
+
'\u8bbe\u7f6e Tooltip \u5c55\u793a\u4f4d\u7f6e\u3002\u53c2\u8003 ',
|
547
|
+
n.a.createElement(
|
548
|
+
r['Link'],
|
549
|
+
{ to: '/components/tooltip/' },
|
550
|
+
'Tooltip',
|
551
|
+
),
|
552
|
+
),
|
553
|
+
n.a.createElement('td', null, 'string'),
|
554
|
+
n.a.createElement('td', null, '-'),
|
555
|
+
n.a.createElement('td', null),
|
556
|
+
),
|
557
|
+
n.a.createElement(
|
558
|
+
'tr',
|
559
|
+
null,
|
560
|
+
n.a.createElement('td', null, 'tooltipVisible'),
|
561
|
+
n.a.createElement(
|
562
|
+
'td',
|
563
|
+
null,
|
564
|
+
'\u503c\u4e3a true \u65f6\uff0cTooltip \u5c06\u4f1a\u59cb\u7ec8\u663e\u793a\uff1b\u5426\u5219\u59cb\u7ec8\u4e0d\u663e\u793a\uff0c\u54ea\u6015\u5728\u62d6\u62fd\u53ca\u79fb\u5165\u65f6',
|
565
|
+
),
|
566
|
+
n.a.createElement('td', null, 'boolean'),
|
567
|
+
n.a.createElement('td', null, '-'),
|
568
|
+
n.a.createElement('td', null),
|
569
|
+
),
|
570
|
+
n.a.createElement(
|
571
|
+
'tr',
|
572
|
+
null,
|
573
|
+
n.a.createElement('td', null, 'value'),
|
574
|
+
n.a.createElement(
|
575
|
+
'td',
|
576
|
+
null,
|
577
|
+
'\u8bbe\u7f6e\u5f53\u524d\u53d6\u503c\u3002\u5f53 ',
|
578
|
+
n.a.createElement('code', null, 'range'),
|
579
|
+
' \u4e3a false \u65f6\uff0c\u4f7f\u7528 number\uff0c\u5426\u5219\u7528 [number, number]',
|
580
|
+
),
|
581
|
+
n.a.createElement('td', null, 'number | [number, number]'),
|
582
|
+
n.a.createElement('td', null, '-'),
|
583
|
+
n.a.createElement('td', null),
|
584
|
+
),
|
585
|
+
n.a.createElement(
|
586
|
+
'tr',
|
587
|
+
null,
|
588
|
+
n.a.createElement('td', null, 'vertical'),
|
589
|
+
n.a.createElement(
|
590
|
+
'td',
|
591
|
+
null,
|
592
|
+
'\u503c\u4e3a true \u65f6\uff0cSlider \u4e3a\u5782\u76f4\u65b9\u5411',
|
593
|
+
),
|
594
|
+
n.a.createElement('td', null, 'boolean'),
|
595
|
+
n.a.createElement('td', null, 'false'),
|
596
|
+
n.a.createElement('td', null),
|
597
|
+
),
|
598
|
+
n.a.createElement(
|
599
|
+
'tr',
|
600
|
+
null,
|
601
|
+
n.a.createElement('td', null, 'onAfterChange'),
|
602
|
+
n.a.createElement(
|
603
|
+
'td',
|
604
|
+
null,
|
605
|
+
'\u4e0e ',
|
606
|
+
n.a.createElement('code', null, 'onmouseup'),
|
607
|
+
' \u89e6\u53d1\u65f6\u673a\u4e00\u81f4\uff0c\u628a\u5f53\u524d\u503c\u4f5c\u4e3a\u53c2\u6570\u4f20\u5165',
|
608
|
+
),
|
609
|
+
n.a.createElement('td', null, '(value) => void'),
|
610
|
+
n.a.createElement('td', null, '-'),
|
611
|
+
n.a.createElement('td', null),
|
612
|
+
),
|
613
|
+
n.a.createElement(
|
614
|
+
'tr',
|
615
|
+
null,
|
616
|
+
n.a.createElement('td', null, 'onChange'),
|
617
|
+
n.a.createElement(
|
618
|
+
'td',
|
619
|
+
null,
|
620
|
+
'\u5f53 Slider \u7684\u503c\u53d1\u751f\u6539\u53d8\u65f6\uff0c\u4f1a\u89e6\u53d1 onChange \u4e8b\u4ef6\uff0c\u5e76\u628a\u6539\u53d8\u540e\u7684\u503c\u4f5c\u4e3a\u53c2\u6570\u4f20\u5165',
|
621
|
+
),
|
622
|
+
n.a.createElement('td', null, '(value) => void'),
|
623
|
+
n.a.createElement('td', null, '-'),
|
624
|
+
n.a.createElement('td', null),
|
625
|
+
),
|
626
|
+
),
|
627
|
+
),
|
628
|
+
n.a.createElement(
|
629
|
+
'h3',
|
630
|
+
{ id: 'range' },
|
631
|
+
n.a.createElement(
|
632
|
+
r['AnchorLink'],
|
633
|
+
{ to: '#range', 'aria-hidden': 'true', tabIndex: -1 },
|
634
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
635
|
+
),
|
636
|
+
'range',
|
637
|
+
),
|
638
|
+
n.a.createElement(
|
639
|
+
'table',
|
640
|
+
null,
|
641
|
+
n.a.createElement(
|
642
|
+
'thead',
|
643
|
+
null,
|
644
|
+
n.a.createElement(
|
645
|
+
'tr',
|
646
|
+
null,
|
647
|
+
n.a.createElement('th', null, '\u53c2\u6570'),
|
648
|
+
n.a.createElement('th', null, '\u8bf4\u660e'),
|
649
|
+
n.a.createElement('th', null, '\u7c7b\u578b'),
|
650
|
+
n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
|
651
|
+
n.a.createElement('th', null, '\u7248\u672c'),
|
652
|
+
),
|
653
|
+
),
|
654
|
+
n.a.createElement(
|
655
|
+
'tbody',
|
656
|
+
null,
|
657
|
+
n.a.createElement(
|
658
|
+
'tr',
|
659
|
+
null,
|
660
|
+
n.a.createElement('td', null, 'draggableTrack'),
|
661
|
+
n.a.createElement(
|
662
|
+
'td',
|
663
|
+
null,
|
664
|
+
'\u8303\u56f4\u523b\u5ea6\u662f\u5426\u53ef\u88ab\u62d6\u62fd',
|
665
|
+
),
|
666
|
+
n.a.createElement('td', null, 'boolean'),
|
667
|
+
n.a.createElement('td', null, 'false'),
|
668
|
+
n.a.createElement('td', null, '4.10.0'),
|
669
|
+
),
|
670
|
+
),
|
671
|
+
),
|
672
|
+
n.a.createElement(
|
673
|
+
'h2',
|
674
|
+
{ id: '\u65b9\u6cd5' },
|
675
|
+
n.a.createElement(
|
676
|
+
r['AnchorLink'],
|
677
|
+
{ to: '#\u65b9\u6cd5', 'aria-hidden': 'true', tabIndex: -1 },
|
678
|
+
n.a.createElement('span', { className: 'icon icon-link' }),
|
679
|
+
),
|
680
|
+
'\u65b9\u6cd5',
|
681
|
+
),
|
682
|
+
n.a.createElement(
|
683
|
+
'table',
|
684
|
+
null,
|
685
|
+
n.a.createElement(
|
686
|
+
'thead',
|
687
|
+
null,
|
688
|
+
n.a.createElement(
|
689
|
+
'tr',
|
690
|
+
null,
|
691
|
+
n.a.createElement('th', null, '\u540d\u79f0'),
|
692
|
+
n.a.createElement('th', null, '\u63cf\u8ff0'),
|
693
|
+
n.a.createElement('th', null, '\u7248\u672c'),
|
694
|
+
),
|
695
|
+
),
|
696
|
+
n.a.createElement(
|
697
|
+
'tbody',
|
698
|
+
null,
|
699
|
+
n.a.createElement(
|
700
|
+
'tr',
|
701
|
+
null,
|
702
|
+
n.a.createElement('td', null, 'blur()'),
|
703
|
+
n.a.createElement('td', null, '\u79fb\u9664\u7126\u70b9'),
|
704
|
+
n.a.createElement('td', null),
|
705
|
+
),
|
706
|
+
n.a.createElement(
|
707
|
+
'tr',
|
708
|
+
null,
|
709
|
+
n.a.createElement('td', null, 'focus()'),
|
710
|
+
n.a.createElement('td', null, '\u83b7\u53d6\u7126\u70b9'),
|
711
|
+
n.a.createElement('td', null),
|
712
|
+
),
|
713
|
+
),
|
714
|
+
),
|
715
|
+
),
|
716
|
+
),
|
717
|
+
)
|
718
|
+
);
|
719
|
+
},
|
720
|
+
MZF8: function (e, t, a) {
|
721
|
+
'use strict';
|
722
|
+
var l = a('ogwx');
|
723
|
+
a.d(t, 'a', function () {
|
724
|
+
return l['b'];
|
725
|
+
});
|
726
|
+
a('VCU9');
|
727
|
+
},
|
728
|
+
RZMt: function (e, t, a) {},
|
729
|
+
Zxc8: function (e, t, a) {
|
730
|
+
'use strict';
|
731
|
+
a.r(t);
|
732
|
+
var l = a('q1tI'),
|
733
|
+
n = a.n(l),
|
734
|
+
r = a('k3GJ'),
|
735
|
+
c = a('MZF8'),
|
736
|
+
m = a('dEAq'),
|
737
|
+
o = a('H1Ra');
|
738
|
+
a('RZMt');
|
739
|
+
function u(e, t) {
|
740
|
+
return p(e) || s(e, t) || i(e, t) || d();
|
741
|
+
}
|
742
|
+
function d() {
|
743
|
+
throw new TypeError(
|
744
|
+
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
|
745
|
+
);
|
746
|
+
}
|
747
|
+
function i(e, t) {
|
748
|
+
if (e) {
|
749
|
+
if ('string' === typeof e) return E(e, t);
|
750
|
+
var a = Object.prototype.toString.call(e).slice(8, -1);
|
751
|
+
return (
|
752
|
+
'Object' === a && e.constructor && (a = e.constructor.name),
|
753
|
+
'Map' === a || 'Set' === a
|
754
|
+
? Array.from(e)
|
755
|
+
: 'Arguments' === a ||
|
756
|
+
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
|
757
|
+
? E(e, t)
|
758
|
+
: void 0
|
759
|
+
);
|
760
|
+
}
|
761
|
+
}
|
762
|
+
function E(e, t) {
|
763
|
+
(null == t || t > e.length) && (t = e.length);
|
764
|
+
for (var a = 0, l = new Array(t); a < t; a++) l[a] = e[a];
|
765
|
+
return l;
|
766
|
+
}
|
767
|
+
function s(e, t) {
|
768
|
+
var a =
|
769
|
+
null == e
|
770
|
+
? null
|
771
|
+
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
|
772
|
+
e['@@iterator'];
|
773
|
+
if (null != a) {
|
774
|
+
var l,
|
775
|
+
n,
|
776
|
+
r = [],
|
777
|
+
c = !0,
|
778
|
+
m = !1;
|
779
|
+
try {
|
780
|
+
for (a = a.call(e); !(c = (l = a.next()).done); c = !0)
|
781
|
+
if ((r.push(l.value), t && r.length === t)) break;
|
782
|
+
} catch (o) {
|
783
|
+
(m = !0), (n = o);
|
784
|
+
} finally {
|
785
|
+
try {
|
786
|
+
c || null == a['return'] || a['return']();
|
787
|
+
} finally {
|
788
|
+
if (m) throw n;
|
789
|
+
}
|
790
|
+
}
|
791
|
+
return r;
|
792
|
+
}
|
793
|
+
}
|
794
|
+
function p(e) {
|
795
|
+
if (Array.isArray(e)) return e;
|
796
|
+
}
|
797
|
+
function f(e, t) {
|
798
|
+
var a,
|
799
|
+
l =
|
800
|
+
null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
|
801
|
+
return l || (l = t.tsx ? 'tsx' : 'jsx'), l;
|
802
|
+
}
|
803
|
+
var b = function (e) {
|
804
|
+
var t,
|
805
|
+
a,
|
806
|
+
d,
|
807
|
+
i = Object(l['useRef'])(),
|
808
|
+
E = Object(l['useContext'])(m['context']),
|
809
|
+
s = E.locale,
|
810
|
+
p = Object(m['useLocaleProps'])(s, e),
|
811
|
+
b = Object(m['useDemoUrl'])(p.identifier),
|
812
|
+
h = p.demoUrl || b,
|
813
|
+
v =
|
814
|
+
(null === c['a'] || void 0 === c['a']
|
815
|
+
? void 0
|
816
|
+
: c['a'].location.hash) === '#'.concat(p.identifier),
|
817
|
+
k = 1 === Object.keys(p.sources).length,
|
818
|
+
w = Object(m['useCodeSandbox'])(
|
819
|
+
(
|
820
|
+
null === (t = p.hideActions) || void 0 === t
|
821
|
+
? void 0
|
822
|
+
: t.includes('CSB')
|
823
|
+
)
|
824
|
+
? null
|
825
|
+
: p,
|
826
|
+
),
|
827
|
+
N = Object(m['useRiddle'])(
|
828
|
+
(
|
829
|
+
null === (a = p.hideActions) || void 0 === a
|
830
|
+
? void 0
|
831
|
+
: a.includes('RIDDLE')
|
832
|
+
)
|
833
|
+
? null
|
834
|
+
: p,
|
835
|
+
),
|
836
|
+
g = Object(m['useMotions'])(p.motions || [], i.current),
|
837
|
+
y = u(g, 2),
|
838
|
+
_ = y[0],
|
839
|
+
x = y[1],
|
840
|
+
A = Object(m['useCopy'])(),
|
841
|
+
I = u(A, 2),
|
842
|
+
L = I[0],
|
843
|
+
C = I[1],
|
844
|
+
j = Object(l['useState'])('_'),
|
845
|
+
S = u(j, 2),
|
846
|
+
O = S[0],
|
847
|
+
T = S[1],
|
848
|
+
P = Object(l['useState'])(f(O, p.sources[O])),
|
849
|
+
R = u(P, 2),
|
850
|
+
M = R[0],
|
851
|
+
F = R[1],
|
852
|
+
U = Object(l['useState'])(Boolean(p.defaultShowCode)),
|
853
|
+
Z = u(U, 2),
|
854
|
+
J = Z[0],
|
855
|
+
q = Z[1],
|
856
|
+
B = Object(l['useState'])(Math.random()),
|
857
|
+
D = u(B, 2),
|
858
|
+
V = D[0],
|
859
|
+
$ = D[1],
|
860
|
+
H = p.sources[O][M] || p.sources[O].content,
|
861
|
+
G = Object(m['useTSPlaygroundUrl'])(s, H),
|
862
|
+
X = Object(l['useRef'])(),
|
863
|
+
K = Object(m['usePrefersColor'])(),
|
864
|
+
W = u(K, 1),
|
865
|
+
Y = W[0];
|
866
|
+
function z(e) {
|
867
|
+
T(e), F(f(e, p.sources[e]));
|
868
|
+
}
|
869
|
+
return (
|
870
|
+
Object(l['useEffect'])(
|
871
|
+
function () {
|
872
|
+
$(Math.random());
|
873
|
+
},
|
874
|
+
[Y],
|
875
|
+
),
|
876
|
+
n.a.createElement(
|
877
|
+
'div',
|
878
|
+
{
|
879
|
+
style: p.style,
|
880
|
+
className: [
|
881
|
+
p.className,
|
882
|
+
'__dumi-default-previewer',
|
883
|
+
v ? '__dumi-default-previewer-target' : '',
|
884
|
+
]
|
885
|
+
.filter(Boolean)
|
886
|
+
.join(' '),
|
887
|
+
id: p.identifier,
|
888
|
+
'data-debug': p.debug || void 0,
|
889
|
+
'data-iframe': p.iframe || void 0,
|
890
|
+
},
|
891
|
+
p.iframe &&
|
892
|
+
n.a.createElement('div', {
|
893
|
+
className: '__dumi-default-previewer-browser-nav',
|
894
|
+
}),
|
895
|
+
n.a.createElement(
|
896
|
+
'div',
|
897
|
+
{
|
898
|
+
ref: i,
|
899
|
+
className: '__dumi-default-previewer-demo',
|
900
|
+
style: {
|
901
|
+
transform: p.transform ? 'translate(0, 0)' : void 0,
|
902
|
+
padding:
|
903
|
+
p.compact || (p.iframe && !1 !== p.compact) ? '0' : void 0,
|
904
|
+
background: p.background,
|
905
|
+
},
|
906
|
+
},
|
907
|
+
p.iframe
|
908
|
+
? n.a.createElement('iframe', {
|
909
|
+
title: 'dumi-previewer',
|
910
|
+
style: {
|
911
|
+
height: String(p.iframe).replace(/(\d)$/, '$1px'),
|
912
|
+
},
|
913
|
+
key: V,
|
914
|
+
src: h,
|
915
|
+
ref: X,
|
916
|
+
})
|
917
|
+
: p.children,
|
918
|
+
),
|
919
|
+
n.a.createElement(
|
920
|
+
'div',
|
921
|
+
{
|
922
|
+
className: '__dumi-default-previewer-desc',
|
923
|
+
'data-title': p.title,
|
924
|
+
},
|
925
|
+
p.title &&
|
926
|
+
n.a.createElement(
|
927
|
+
m['AnchorLink'],
|
928
|
+
{ to: '#'.concat(p.identifier) },
|
929
|
+
p.title,
|
930
|
+
),
|
931
|
+
p.description &&
|
932
|
+
n.a.createElement('div', {
|
933
|
+
dangerouslySetInnerHTML: { __html: p.description },
|
934
|
+
}),
|
935
|
+
),
|
936
|
+
n.a.createElement(
|
937
|
+
'div',
|
938
|
+
{ className: '__dumi-default-previewer-actions' },
|
939
|
+
w &&
|
940
|
+
n.a.createElement('button', {
|
941
|
+
title: 'Open demo on CodeSandbox.io',
|
942
|
+
className: '__dumi-default-icon',
|
943
|
+
role: 'codesandbox',
|
944
|
+
onClick: w,
|
945
|
+
}),
|
946
|
+
N &&
|
947
|
+
n.a.createElement('button', {
|
948
|
+
title: 'Open demo on Riddle',
|
949
|
+
className: '__dumi-default-icon',
|
950
|
+
role: 'riddle',
|
951
|
+
onClick: N,
|
952
|
+
}),
|
953
|
+
p.motions &&
|
954
|
+
n.a.createElement('button', {
|
955
|
+
title: 'Execute motions',
|
956
|
+
className: '__dumi-default-icon',
|
957
|
+
role: 'motions',
|
958
|
+
disabled: x,
|
959
|
+
onClick: function () {
|
960
|
+
return _();
|
961
|
+
},
|
962
|
+
}),
|
963
|
+
p.iframe &&
|
964
|
+
n.a.createElement('button', {
|
965
|
+
title: 'Reload demo iframe page',
|
966
|
+
className: '__dumi-default-icon',
|
967
|
+
role: 'refresh',
|
968
|
+
onClick: function () {
|
969
|
+
return $(Math.random());
|
970
|
+
},
|
971
|
+
}),
|
972
|
+
!(null === (d = p.hideActions) || void 0 === d
|
973
|
+
? void 0
|
974
|
+
: d.includes('EXTERNAL')) &&
|
975
|
+
n.a.createElement(
|
976
|
+
m['Link'],
|
977
|
+
{ target: '_blank', to: h },
|
978
|
+
n.a.createElement('button', {
|
979
|
+
title: 'Open demo in new tab',
|
980
|
+
className: '__dumi-default-icon',
|
981
|
+
role: 'open-demo',
|
982
|
+
type: 'button',
|
983
|
+
}),
|
984
|
+
),
|
985
|
+
n.a.createElement('span', null),
|
986
|
+
n.a.createElement('button', {
|
987
|
+
title: 'Copy source code',
|
988
|
+
className: '__dumi-default-icon',
|
989
|
+
role: 'copy',
|
990
|
+
'data-status': C,
|
991
|
+
onClick: function () {
|
992
|
+
return L(H);
|
993
|
+
},
|
994
|
+
}),
|
995
|
+
'tsx' === M &&
|
996
|
+
J &&
|
997
|
+
n.a.createElement(
|
998
|
+
m['Link'],
|
999
|
+
{ target: '_blank', to: G },
|
1000
|
+
n.a.createElement('button', {
|
1001
|
+
title: 'Get JSX via TypeScript Playground',
|
1002
|
+
className: '__dumi-default-icon',
|
1003
|
+
role: 'change-tsx',
|
1004
|
+
type: 'button',
|
1005
|
+
}),
|
1006
|
+
),
|
1007
|
+
n.a.createElement('button', {
|
1008
|
+
title: 'Toggle source code panel',
|
1009
|
+
className: '__dumi-default-icon'.concat(
|
1010
|
+
J ? ' __dumi-default-btn-expand' : '',
|
1011
|
+
),
|
1012
|
+
role: 'source',
|
1013
|
+
type: 'button',
|
1014
|
+
onClick: function () {
|
1015
|
+
return q(!J);
|
1016
|
+
},
|
1017
|
+
}),
|
1018
|
+
),
|
1019
|
+
J &&
|
1020
|
+
n.a.createElement(
|
1021
|
+
'div',
|
1022
|
+
{ className: '__dumi-default-previewer-source-wrapper' },
|
1023
|
+
!k &&
|
1024
|
+
n.a.createElement(
|
1025
|
+
r['b'],
|
1026
|
+
{
|
1027
|
+
className: '__dumi-default-previewer-source-tab',
|
1028
|
+
prefixCls: '__dumi-default-tabs',
|
1029
|
+
moreIcon: '\xb7\xb7\xb7',
|
1030
|
+
defaultActiveKey: O,
|
1031
|
+
onChange: z,
|
1032
|
+
},
|
1033
|
+
Object.keys(p.sources).map(function (e) {
|
1034
|
+
return n.a.createElement(r['a'], {
|
1035
|
+
tab:
|
1036
|
+
'_' === e ? 'index.'.concat(f(e, p.sources[e])) : e,
|
1037
|
+
key: e,
|
1038
|
+
});
|
1039
|
+
}),
|
1040
|
+
),
|
1041
|
+
n.a.createElement(
|
1042
|
+
'div',
|
1043
|
+
{ className: '__dumi-default-previewer-source' },
|
1044
|
+
n.a.createElement(o['a'], { code: H, lang: M, showCopy: !1 }),
|
1045
|
+
),
|
1046
|
+
),
|
1047
|
+
)
|
1048
|
+
);
|
1049
|
+
};
|
1050
|
+
t['default'] = b;
|
1051
|
+
},
|
1052
|
+
},
|
1053
|
+
]);
|