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