@fle-ui/next 1.0.0-alpha.12 → 1.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/.history/package_20211011190148.json +141 -0
  2. package/.history/package_20211011193053.json +141 -0
  3. package/dist/@fle-ui/next.css +2 -2
  4. package/dist/@fle-ui/next.css.map +1 -1
  5. package/dist/@fle-ui/next.js +1 -1
  6. package/dist/@fle-ui/next.min.css +2 -2
  7. package/dist/@fle-ui/next.min.css.map +1 -1
  8. package/dist/@fle-ui/next.min.js +1 -1
  9. package/docs-dist/components__affix__affix.md.js +701 -1
  10. package/docs-dist/components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~00d1741d.js +22482 -1
  11. package/docs-dist/components__alert__alert.md.js +942 -1
  12. package/docs-dist/components__anchor__anchor.md.js +789 -1
  13. package/docs-dist/components__auto-complete__autoComplete.md.js +1145 -1
  14. package/docs-dist/components__avatar__avatar.md.js +854 -1
  15. package/docs-dist/components__back-top__backTop.md.js +581 -1
  16. package/docs-dist/components__badge__badge.md.js +972 -1
  17. package/docs-dist/components__breadcrumb__breadcrumb.md.js +914 -1
  18. package/docs-dist/components__button__button.md.js +1037 -1
  19. package/docs-dist/components__calendar__calendar.md.js +897 -1
  20. package/docs-dist/components__card__card.md.js +1106 -1
  21. package/docs-dist/components__carousel__carousel.md.js +770 -1
  22. package/docs-dist/components__cascader__cascader.md.js +1378 -1
  23. package/docs-dist/components__checkbox__checkbox.md.js +876 -1
  24. package/docs-dist/components__collapse__collapse.md.js +959 -1
  25. package/docs-dist/components__comment__comment.md.js +586 -1
  26. package/docs-dist/components__config-provider__configProvider.md.js +1055 -1
  27. package/docs-dist/components__date-picker__date-picker.md.js +2622 -1
  28. package/docs-dist/components__descriptions__descriptions.md.js +863 -1
  29. package/docs-dist/components__divider__divider.md.js +681 -1
  30. package/docs-dist/components__drawer__drawer.md.js +997 -1
  31. package/docs-dist/components__dropdown__dropdown.md.js +1170 -1
  32. package/docs-dist/components__empty__empty.md.js +692 -1
  33. package/docs-dist/components__form__form.md.js +4099 -1
  34. package/docs-dist/components__grid__grid.md.js +999 -1
  35. package/docs-dist/components__icon__icon.md.js +739 -1
  36. package/docs-dist/components__image__image.md.js +745 -1
  37. package/docs-dist/components__input-number__inputNumber.md.js +1006 -1
  38. package/docs-dist/components__input__input.md.js +1579 -1
  39. package/docs-dist/components__layout__layout.md.js +1220 -1
  40. package/docs-dist/components__list__list.md.js +1255 -1
  41. package/docs-dist/components__mentions__mentions.md.js +943 -1
  42. package/docs-dist/components__menu__menu.md.js +1370 -1
  43. package/docs-dist/components__message__message.md.js +1223 -1
  44. package/docs-dist/components__modal__modal.md.js +1808 -1
  45. package/docs-dist/components__notification__notification.md.js +1192 -1
  46. package/docs-dist/components__page-header__page-header.md.js +781 -1
  47. package/docs-dist/components__pagination__pagination.md.js +954 -1
  48. package/docs-dist/components__popconfirm__popconfirm.md.js +792 -1
  49. package/docs-dist/components__popover__popover.md.js +665 -1
  50. package/docs-dist/components__progress__progress.md.js +1139 -1
  51. package/docs-dist/components__radio__radio.md.js +999 -1
  52. package/docs-dist/components__rate__rate.md.js +851 -1
  53. package/docs-dist/components__result__result.md.js +681 -1
  54. package/docs-dist/components__select__select.md.js +2081 -1
  55. package/docs-dist/components__slider__slider.md.js +1053 -1
  56. package/docs-dist/components__space__space.md.js +746 -1
  57. package/docs-dist/components__spin__spin.md.js +730 -1
  58. package/docs-dist/components__statistic__statistic.md.js +827 -1
  59. package/docs-dist/components__steps__steps.md.js +1097 -1
  60. package/docs-dist/components__switch__switch.md.js +763 -1
  61. package/docs-dist/components__table__table.md.js +3692 -1
  62. package/docs-dist/components__tabs__tabs.md.js +1213 -1
  63. package/docs-dist/components__tag__tag.md.js +779 -1
  64. package/docs-dist/components__time-picker__time-picker.md.js +1232 -1
  65. package/docs-dist/components__timeline__timeline.md.js +799 -1
  66. package/docs-dist/components__tooltip__tooltip.md.js +888 -1
  67. package/docs-dist/components__transfer__transfer.md.js +1226 -1
  68. package/docs-dist/components__tree-select__tree-select.md.js +1042 -1
  69. package/docs-dist/components__typography__typography.md.js +1793 -1
  70. package/docs-dist/components__upload__upload.md.js +1798 -1
  71. package/docs-dist/demos_bmurcdaerb.js +603 -1
  72. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.chunk.css +1 -1
  73. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.js +21570 -1
  74. package/docs-dist/demos_citsitats.js +549 -1
  75. package/docs-dist/demos_daolpu.chunk.css +1 -1
  76. package/docs-dist/demos_daolpu.js +22680 -1
  77. package/docs-dist/demos_dirg.js +47 -1
  78. package/docs-dist/demos_drac.js +748 -1
  79. package/docs-dist/demos_ecaps.js +529 -1
  80. package/docs-dist/demos_egami.js +153 -1
  81. package/docs-dist/demos_egassem.js +187 -1
  82. package/docs-dist/demos_egdab.js +872 -1
  83. package/docs-dist/demos_elbat.chunk.css +1 -1
  84. package/docs-dist/demos_elbat.js +27626 -1
  85. package/docs-dist/demos_enilemit.js +627 -1
  86. package/docs-dist/demos_espalloc.js +705 -1
  87. package/docs-dist/demos_etar.js +547 -1
  88. package/docs-dist/demos_etelpmoc-otua.js +613 -1
  89. package/docs-dist/demos_gat.js +487 -1
  90. package/docs-dist/demos_hctiws.js +439 -1
  91. package/docs-dist/demos_ladom.js +791 -1
  92. package/docs-dist/demos_lesuorac.js +193 -1
  93. package/docs-dist/demos_mrifnocpop.js +671 -1
  94. package/docs-dist/demos_mrof.js +3082 -1
  95. package/docs-dist/demos_nips.js +461 -1
  96. package/docs-dist/demos_noitacifiton.js +765 -1
  97. package/docs-dist/demos_noitanigap.js +233 -1
  98. package/docs-dist/demos_nottub.js +847 -1
  99. package/docs-dist/demos_nwodpord.js +965 -1
  100. package/docs-dist/demos_oidar.js +340 -1
  101. package/docs-dist/demos_pitloot.js +204 -1
  102. package/docs-dist/demos_pot-kcab.js +62 -1
  103. package/docs-dist/demos_radnelac.js +285 -1
  104. package/docs-dist/demos_ratava.js +647 -1
  105. package/docs-dist/demos_rebmun-tupni.js +209 -1
  106. package/docs-dist/demos_redacsac.js +576 -1
  107. package/docs-dist/demos_redaeh-egap.js +761 -1
  108. package/docs-dist/demos_redils.js +659 -1
  109. package/docs-dist/demos_redivid.js +167 -1
  110. package/docs-dist/demos_redivorp-gifnoc.js +2154 -1
  111. package/docs-dist/demos_refsnart.js +774 -1
  112. package/docs-dist/demos_rekcip-emit.js +183 -1
  113. package/docs-dist/demos_rekcip-etad.js +469 -1
  114. package/docs-dist/demos_revopop.js +335 -1
  115. package/docs-dist/demos_reward.js +484 -1
  116. package/docs-dist/demos_rohcna.js +194 -1
  117. package/docs-dist/demos_sbat.chunk.css +1 -1
  118. package/docs-dist/demos_sbat.js +22358 -1
  119. package/docs-dist/demos_snoitnem.js +202 -1
  120. package/docs-dist/demos_snoitpircsed.js +351 -1
  121. package/docs-dist/demos_spets.js +910 -1
  122. package/docs-dist/demos_ssergorp.js +698 -1
  123. package/docs-dist/demos_tceles.js +1416 -1
  124. package/docs-dist/demos_tluser.js +530 -1
  125. package/docs-dist/demos_tnemmoc.js +560 -1
  126. package/docs-dist/demos_trela.js +341 -1
  127. package/docs-dist/demos_tsil.js +603 -1
  128. package/docs-dist/demos_tuoyal.js +872 -1
  129. package/docs-dist/demos_tupni.js +1245 -1
  130. package/docs-dist/demos_unem.js +1012 -1
  131. package/docs-dist/demos_xiffa.js +93 -1
  132. package/docs-dist/demos_xobkcehc.js +186 -1
  133. package/docs-dist/demos_yhpargopyt.js +798 -1
  134. package/docs-dist/demos_ytpme.js +433 -1
  135. package/docs-dist/docs__document__getting-started.md.js +193 -1
  136. package/docs-dist/docs__document__introduce.md.js +441 -1
  137. package/docs-dist/docs__document__practical-projects.md.js +117 -1
  138. package/docs-dist/docs__index.md.js +27 -1
  139. package/docs-dist/docs__story__index.md.js +89 -1
  140. package/docs-dist/dumi_demos.js +456 -1
  141. package/docs-dist/umi.js +28727 -1
  142. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~3ba4f4a1.js +2590 -1
  143. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~ac3aca9a.js +8970 -1
  144. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~e29e5a37.js +2619 -1
  145. package/docs-dist/vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_egami~~4cc402e9.js +57323 -1
  146. package/docs-dist/vendors~demos_daolpu~demos_elbat.js +1649 -1
  147. package/docs-dist/vendors~demos_daolpu~demos_elbat~demos_sbat.js +4169 -1
  148. package/docs-dist/vendors~demos_gat.js +4673 -1
  149. package/docs-dist/vendors~demos_ladom.js +1855 -1
  150. package/docs-dist/vendors~demos_redivorp-gifnoc.js +9666 -1
  151. package/docs-dist/vendors~demos_sbat.js +1601 -1
  152. package/docs-dist/vendors~demos_trela.js +1722 -1
  153. package/docs-dist/vendors~demos_tsil.js +4970 -1
  154. package/docs-dist/vendors~demos_tuoyal.js +748 -1
  155. package/docs-dist/vendors~wrappers.js +1360 -1
  156. package/docs-dist/wrappers.js +21 -1
  157. package/es/drawer/style/drawer.less +8 -4
  158. package/es/drawer/style/index.css +1 -1
  159. package/es/style/themes/default.less +57 -29
  160. package/lib/drawer/style/drawer.less +8 -4
  161. package/lib/drawer/style/index.css +1 -1
  162. package/lib/style/themes/default.less +57 -29
  163. package/package.json +1 -1
  164. package/report.html +1 -1
@@ -1 +1,739 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[33],{hNwD:function(e,t,n){"use strict";n.r(t);var l=n("q1tI"),a=n.n(l),c=n("dEAq"),r=n("H1Ra");n("JjdP");t["default"]=e=>(a.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&c["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"markdown"},a.a.createElement("h1",{id:"icon-\u56fe\u6807"},a.a.createElement(c["AnchorLink"],{to:"#icon-\u56fe\u6807","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"Icon \u56fe\u6807"),a.a.createElement("p",null,"\u8bed\u4e49\u5316\u7684\u77e2\u91cf\u56fe\u5f62\u3002\u4f7f\u7528\u56fe\u6807\u7ec4\u4ef6\uff0c\u4f60\u9700\u8981\u5b89\u88c5 ",a.a.createElement("code",null,"@ant-design/icons")," \u56fe\u6807\u7ec4\u4ef6\u5305\uff1a"),a.a.createElement(r["a"],{code:"npm install --save @ant-design/icons",lang:"bash"}),a.a.createElement("h2",{id:"\u8bbe\u8ba1\u5e08\u4e13\u5c5e"},a.a.createElement(c["AnchorLink"],{to:"#\u8bbe\u8ba1\u5e08\u4e13\u5c5e","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u8bbe\u8ba1\u5e08\u4e13\u5c5e"),a.a.createElement("p",null,"\u5b89\u88c5 ",a.a.createElement(c["Link"],{to:"https://kitchen.alipay.com/"},"Kitchen Sketch \u63d2\u4ef6 \ud83d\udc8e"),"\uff0c\u5c31\u53ef\u4ee5\u4e00\u952e\u62d6\u62fd\u4f7f\u7528 Ant Design \u548c Iconfont \u7684\u6d77\u91cf\u56fe\u6807\uff0c\u8fd8\u53ef\u4ee5\u5173\u8054\u81ea\u6709\u9879\u76ee\u3002"),a.a.createElement("h2",{id:"\u56fe\u6807\u5217\u8868"},a.a.createElement(c["AnchorLink"],{to:"#\u56fe\u6807\u5217\u8868","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u56fe\u6807\u5217\u8868"),a.a.createElement("h3",{id:"\u7b80\u5355\u5217\u8868"},a.a.createElement(c["AnchorLink"],{to:"#\u7b80\u5355\u5217\u8868","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u7b80\u5355\u5217\u8868"),a.a.createElement("h2",{id:"api"},a.a.createElement(c["AnchorLink"],{to:"#api","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"API"),a.a.createElement("p",null,"\u4ece 4.0 \u5f00\u59cb\uff0cantd \u4e0d\u518d\u5185\u7f6e Icon \u7ec4\u4ef6\uff0c\u8bf7\u4f7f\u7528\u72ec\u7acb\u7684\u5305 ",a.a.createElement("code",null,"@ant-design/icons"),"\u3002"),a.a.createElement("h3",{id:"\u901a\u7528\u56fe\u6807"},a.a.createElement(c["AnchorLink"],{to:"#\u901a\u7528\u56fe\u6807","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u901a\u7528\u56fe\u6807"),a.a.createElement("table",null,a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",null,"\u53c2\u6570"),a.a.createElement("th",null,"\u8bf4\u660e"),a.a.createElement("th",null,"\u7c7b\u578b"),a.a.createElement("th",null,"\u9ed8\u8ba4\u503c"),a.a.createElement("th",null,"\u7248\u672c"))),a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",null,"className"),a.a.createElement("td",null,"\u8bbe\u7f6e\u56fe\u6807\u7684\u6837\u5f0f\u540d"),a.a.createElement("td",null,"string"),a.a.createElement("td",null,"-"),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"rotate"),a.a.createElement("td",null,"\u56fe\u6807\u65cb\u8f6c\u89d2\u5ea6\uff08IE9 \u65e0\u6548\uff09"),a.a.createElement("td",null,"number"),a.a.createElement("td",null,"-"),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"spin"),a.a.createElement("td",null,"\u662f\u5426\u6709\u65cb\u8f6c\u52a8\u753b"),a.a.createElement("td",null,"boolean"),a.a.createElement("td",null,"false"),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"style"),a.a.createElement("td",null,"\u8bbe\u7f6e\u56fe\u6807\u7684\u6837\u5f0f\uff0c\u4f8b\u5982 ",a.a.createElement("code",null,"fontSize")," \u548c ",a.a.createElement("code",null,"color")),a.a.createElement("td",null,"CSSProperties"),a.a.createElement("td",null,"-"),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"twoToneColor"),a.a.createElement("td",null,"\u4ec5\u9002\u7528\u53cc\u8272\u56fe\u6807\u3002\u8bbe\u7f6e\u53cc\u8272\u56fe\u6807\u7684\u4e3b\u8981\u989c\u8272"),a.a.createElement("td",null,"string (\u5341\u516d\u8fdb\u5236\u989c\u8272)"),a.a.createElement("td",null,"-"),a.a.createElement("td",null)))),a.a.createElement("p",null,"\u5176\u4e2d\u6211\u4eec\u63d0\u4f9b\u4e86\u4e09\u79cd\u4e3b\u9898\u7684\u56fe\u6807\uff0c\u4e0d\u540c\u4e3b\u9898\u7684 Icon \u7ec4\u4ef6\u540d\u4e3a\u56fe\u6807\u540d\u52a0\u4e3b\u9898\u505a\u4e3a\u540e\u7f00\u3002"),a.a.createElement(r["a"],{code:"import { StarOutlined, StarFilled, StarTwoTone } from '@ant-design/icons';\n\n<StarOutlined />\n<StarFilled />\n<StarTwoTone twoToneColor=\"#eb2f96\" />",lang:"bash"}),a.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49-icon"},a.a.createElement(c["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49-icon","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49 Icon"),a.a.createElement("table",null,a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",null,"\u53c2\u6570"),a.a.createElement("th",null,"\u8bf4\u660e"),a.a.createElement("th",null,"\u7c7b\u578b"),a.a.createElement("th",null,"\u9ed8\u8ba4\u503c"),a.a.createElement("th",null,"\u7248\u672c"))),a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",null,"component"),a.a.createElement("td",null,"\u63a7\u5236\u5982\u4f55\u6e32\u67d3\u56fe\u6807\uff0c\u901a\u5e38\u662f\u4e00\u4e2a\u6e32\u67d3\u6839\u6807\u7b7e\u4e3a ",a.a.createElement("code",null,"<svg>")," \u7684 React \u7ec4\u4ef6"),a.a.createElement("td",null,"ComponentType<CustomIconComponentProps>"),a.a.createElement("td",null,"-"),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"rotate"),a.a.createElement("td",null,"\u56fe\u6807\u65cb\u8f6c\u89d2\u5ea6\uff08IE9 \u65e0\u6548\uff09"),a.a.createElement("td",null,"number"),a.a.createElement("td",null,"-"),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"spin"),a.a.createElement("td",null,"\u662f\u5426\u6709\u65cb\u8f6c\u52a8\u753b"),a.a.createElement("td",null,"boolean"),a.a.createElement("td",null,"false"),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"style"),a.a.createElement("td",null,"\u8bbe\u7f6e\u56fe\u6807\u7684\u6837\u5f0f\uff0c\u4f8b\u5982 ",a.a.createElement("code",null,"fontSize")," \u548c ",a.a.createElement("code",null,"color")),a.a.createElement("td",null,"CSSProperties"),a.a.createElement("td",null,"-"),a.a.createElement("td",null)))),a.a.createElement("h3",{id:"\u5173\u4e8e-svg-\u56fe\u6807"},a.a.createElement(c["AnchorLink"],{to:"#\u5173\u4e8e-svg-\u56fe\u6807","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u5173\u4e8e SVG \u56fe\u6807"),a.a.createElement("p",null,"\u5728 ",a.a.createElement("code",null,"3.9.0")," \u4e4b\u540e\uff0c\u6211\u4eec\u4f7f\u7528\u4e86 SVG \u56fe\u6807\u66ff\u6362\u4e86\u539f\u5148\u7684 font \u56fe\u6807\uff0c\u4ece\u800c\u5e26\u6765\u4e86\u4ee5\u4e0b\u4f18\u52bf\uff1a"),a.a.createElement("ul",null,a.a.createElement("li",null,"\u5b8c\u5168\u79bb\u7ebf\u5316\u4f7f\u7528\uff0c\u4e0d\u9700\u8981\u4ece CDN \u4e0b\u8f7d\u5b57\u4f53\u6587\u4ef6\uff0c\u56fe\u6807\u4e0d\u4f1a\u56e0\u4e3a\u7f51\u7edc\u95ee\u9898\u5448\u73b0\u65b9\u5757\uff0c\u4e5f\u65e0\u9700\u5b57\u4f53\u6587\u4ef6\u672c\u5730\u90e8\u7f72\u3002"),a.a.createElement("li",null,"\u5728\u4f4e\u7aef\u8bbe\u5907\u4e0a SVG \u6709\u66f4\u597d\u7684\u6e05\u6670\u5ea6\u3002"),a.a.createElement("li",null,"\u652f\u6301\u591a\u8272\u56fe\u6807\u3002"),a.a.createElement("li",null,"\u5bf9\u4e8e\u5185\u5efa\u56fe\u6807\u7684\u66f4\u6362\u53ef\u4ee5\u63d0\u4f9b\u66f4\u591a API\uff0c\u800c\u4e0d\u9700\u8981\u8fdb\u884c\u6837\u5f0f\u8986\u76d6\u3002")),a.a.createElement("p",null,"\u66f4\u591a\u8ba8\u8bba\u53ef\u53c2\u8003\uff1a",a.a.createElement(c["Link"],{to:"https://github.com/ant-design/ant-design/issues/10353"},"#10353"),"\u3002"),a.a.createElement("p",null,"\u6240\u6709\u7684\u56fe\u6807\u90fd\u4f1a\u4ee5 ",a.a.createElement("code",null,"<svg>")," \u6807\u7b7e\u6e32\u67d3\uff0c\u53ef\u4ee5\u4f7f\u7528 ",a.a.createElement("code",null,"style")," \u548c ",a.a.createElement("code",null,"className")," \u8bbe\u7f6e\u56fe\u6807\u7684\u5927\u5c0f\u548c\u5355\u8272\u56fe\u6807\u7684\u989c\u8272\u3002\u4f8b\u5982\uff1a"),a.a.createElement(r["a"],{code:"import { MessageOutlined } from '@ant-design/icons';\n\n<MessageOutlined style={{ fontSize: '16px', color: '#08c' }} />;",lang:"bash"}),a.a.createElement("h3",{id:"\u53cc\u8272\u56fe\u6807\u4e3b\u8272"},a.a.createElement(c["AnchorLink"],{to:"#\u53cc\u8272\u56fe\u6807\u4e3b\u8272","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u53cc\u8272\u56fe\u6807\u4e3b\u8272"),a.a.createElement("p",null,"\u5bf9\u4e8e\u53cc\u8272\u56fe\u6807\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528 ",a.a.createElement("code",null,"getTwoToneColor()")," \u548c ",a.a.createElement("code",null,"setTwoToneColor(colorString)")," \u6765\u5168\u5c40\u8bbe\u7f6e\u56fe\u6807\u4e3b\u8272\u3002"),a.a.createElement(r["a"],{code:"import { getTwoToneColor, setTwoToneColor } from '@ant-design/icons';\n\nsetTwoToneColor('#eb2f96');\ngetTwoToneColor(); // #eb2f96",lang:"bash"}),a.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49-font-\u56fe\u6807"},a.a.createElement(c["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49-font-\u56fe\u6807","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49 font \u56fe\u6807"),a.a.createElement("p",null,"\u5728 ",a.a.createElement("code",null,"3.9.0")," \u4e4b\u540e\uff0c\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a ",a.a.createElement("code",null,"createFromIconfontCN")," \u65b9\u6cd5\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u8c03\u7528\u5728 ",a.a.createElement(c["Link"],{to:"http://iconfont.cn/"},"iconfont.cn")," \u4e0a\u81ea\u884c\u7ba1\u7406\u7684\u56fe\u6807\u3002"),a.a.createElement(r["a"],{code:"import { createFromIconfontCN } from '@ant-design/icons';\n\nconst MyIcon = createFromIconfontCN({\n scriptUrl: '//at.alicdn.com/t/font_8d5l8fzk5b87iudi.js', // \u5728 iconfont.cn \u4e0a\u751f\u6210\n});\n\nReactDOM.render(<MyIcon type=\"icon-example\" />, mountedNode);",lang:"bash"}),a.a.createElement("p",null,"\u5176\u672c\u8d28\u4e0a\u662f\u521b\u5efa\u4e86\u4e00\u4e2a\u4f7f\u7528 ",a.a.createElement("code",null,"<use>")," \u6807\u7b7e\u6765\u6e32\u67d3\u56fe\u6807\u7684\u7ec4\u4ef6\u3002"),a.a.createElement("p",null,"options \u7684\u914d\u7f6e\u9879\u5982\u4e0b\uff1a"),a.a.createElement("table",null,a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",null,"\u53c2\u6570"),a.a.createElement("th",null,"\u8bf4\u660e"),a.a.createElement("th",null,"\u7c7b\u578b"),a.a.createElement("th",null,"\u9ed8\u8ba4\u503c"),a.a.createElement("th",null,"\u7248\u672c"))),a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",null,"extraCommonProps"),a.a.createElement("td",null,"\u7ed9\u6240\u6709\u7684 ",a.a.createElement("code",null,"svg")," \u56fe\u6807 ",a.a.createElement("code",null,"<Icon />")," \u7ec4\u4ef6\u8bbe\u7f6e\u989d\u5916\u7684\u5c5e\u6027"),a.a.createElement("td",null,"{"," [key: string]: any ","}"),a.a.createElement("td",null,"{","}"),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"scriptUrl"),a.a.createElement("td",null,a.a.createElement(c["Link"],{to:"http://iconfont.cn/"},"iconfont.cn")," \u9879\u76ee\u5728\u7ebf\u751f\u6210\u7684 js \u5730\u5740\uff0c",a.a.createElement("code",null,"@ant-design/icons@4.1.0")," \u4e4b\u540e\u652f\u6301 ",a.a.createElement("code",null,"string[]")," \u7c7b\u578b"),a.a.createElement("td",null,"string | string[]"),a.a.createElement("td",null,"-"),a.a.createElement("td",null)))),a.a.createElement("p",null,"\u5728 ",a.a.createElement("code",null,"scriptUrl")," \u90fd\u8bbe\u7f6e\u6709\u6548\u7684\u60c5\u51b5\u4e0b\uff0c\u7ec4\u4ef6\u5728\u6e32\u67d3\u524d\u4f1a\u81ea\u52a8\u5f15\u5165 ",a.a.createElement(c["Link"],{to:"http://iconfont.cn/"},"iconfont.cn")," \u9879\u76ee\u4e2d\u7684\u56fe\u6807\u7b26\u53f7\u96c6\uff0c\u65e0\u9700\u624b\u52a8\u5f15\u5165\u3002"),a.a.createElement("p",null,"\u89c1 ",a.a.createElement(c["Link"],{to:"http://iconfont.cn/help/detail?spm=a313x.7781069.1998910419.15&helptype=code"},"iconfont.cn \u4f7f\u7528\u5e2e\u52a9")," \u67e5\u770b\u5982\u4f55\u751f\u6210 js \u5730\u5740\u3002"),a.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49-svg-\u56fe\u6807"},a.a.createElement(c["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49-svg-\u56fe\u6807","aria-hidden":"true",tabIndex:-1},a.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49 SVG \u56fe\u6807"),a.a.createElement("p",null,"\u5982\u679c\u4f7f\u7528 ",a.a.createElement("code",null,"webpack"),"\uff0c\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e ",a.a.createElement(c["Link"],{to:"https://www.npmjs.com/package/@svgr/webpack"},"@svgr/webpack")," \u6765\u5c06 ",a.a.createElement("code",null,"svg")," \u56fe\u6807\u4f5c\u4e3a ",a.a.createElement("code",null,"React")," \u7ec4\u4ef6\u5bfc\u5165\u3002",a.a.createElement("code",null,"@svgr/webpack")," \u7684 ",a.a.createElement("code",null,"options")," \u9009\u9879\u8bf7\u53c2\u9605 ",a.a.createElement(c["Link"],{to:"https://github.com/smooth-code/svgr#options"},"svgr \u6587\u6863"),"\u3002"),a.a.createElement(r["a"],{code:"// webpack.config.js\n{\n test: /\\.svg(\\?v=\\d+\\.\\d+\\.\\d+)?$/,\n use: [\n {\n loader: 'babel-loader',\n },\n {\n loader: '@svgr/webpack',\n options: {\n babel: false,\n icon: true,\n },\n },\n ],\n}",lang:"bash"}),a.a.createElement(r["a"],{code:"import Icon from '@ant-design/icons';\nimport MessageSvg from 'path/to/message.svg'; // path to your '*.svg' file.\n// in create-react-app:\n// import { ReactComponent as MessageSvg } from 'path/to/message.svg';\n\nReactDOM.render(<Icon component={MessageSvg} />, mountNode);",lang:"bash"}),a.a.createElement("p",null,a.a.createElement("code",null,"Icon")," \u4e2d\u7684 ",a.a.createElement("code",null,"component")," \u7ec4\u4ef6\u7684\u63a5\u53d7\u7684\u5c5e\u6027\u5982\u4e0b\uff1a"),a.a.createElement("table",null,a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",null,"\u5b57\u6bb5"),a.a.createElement("th",null,"\u8bf4\u660e"),a.a.createElement("th",null,"\u7c7b\u578b"),a.a.createElement("th",null,"\u53ea\u8bfb\u503c"),a.a.createElement("th",null,"\u7248\u672c"))),a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",null,"className"),a.a.createElement("td",null,"\u8ba1\u7b97\u540e\u7684 ",a.a.createElement("code",null,"svg")," \u7c7b\u540d"),a.a.createElement("td",null,"string"),a.a.createElement("td",null,"-"),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"fill"),a.a.createElement("td",null,a.a.createElement("code",null,"svg")," \u5143\u7d20\u586b\u5145\u7684\u989c\u8272"),a.a.createElement("td",null,"string"),a.a.createElement("td",null,a.a.createElement("code",null,"currentColor")),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"height"),a.a.createElement("td",null,a.a.createElement("code",null,"svg")," \u5143\u7d20\u9ad8\u5ea6"),a.a.createElement("td",null,"string | number"),a.a.createElement("td",null,a.a.createElement("code",null,"1em")),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"style"),a.a.createElement("td",null,"\u8ba1\u7b97\u540e\u7684 ",a.a.createElement("code",null,"svg")," \u5143\u7d20\u6837\u5f0f"),a.a.createElement("td",null,"CSSProperties"),a.a.createElement("td",null,"-"),a.a.createElement("td",null)),a.a.createElement("tr",null,a.a.createElement("td",null,"width"),a.a.createElement("td",null,a.a.createElement("code",null,"svg")," \u5143\u7d20\u5bbd\u5ea6"),a.a.createElement("td",null,"string | number"),a.a.createElement("td",null,a.a.createElement("code",null,"1em")),a.a.createElement("td",null)))))))}}]);
1
+ (window['webpackJsonp'] = window['webpackJsonp'] || []).push([
2
+ [33],
3
+ {
4
+ hNwD: function (e, t, n) {
5
+ 'use strict';
6
+ n.r(t);
7
+ var l = n('q1tI'),
8
+ a = n.n(l),
9
+ c = n('dEAq'),
10
+ r = n('H1Ra');
11
+ n('JjdP');
12
+ t['default'] = (e) => (
13
+ a.a.useEffect(() => {
14
+ var t;
15
+ null !== e &&
16
+ void 0 !== e &&
17
+ null !== (t = e.location) &&
18
+ void 0 !== t &&
19
+ t.hash &&
20
+ c['AnchorLink'].scrollToAnchor(
21
+ decodeURIComponent(e.location.hash.slice(1)),
22
+ );
23
+ }, []),
24
+ a.a.createElement(
25
+ a.a.Fragment,
26
+ null,
27
+ a.a.createElement(
28
+ 'div',
29
+ { className: 'markdown' },
30
+ a.a.createElement(
31
+ 'h1',
32
+ { id: 'icon-\u56fe\u6807' },
33
+ a.a.createElement(
34
+ c['AnchorLink'],
35
+ {
36
+ to: '#icon-\u56fe\u6807',
37
+ 'aria-hidden': 'true',
38
+ tabIndex: -1,
39
+ },
40
+ a.a.createElement('span', { className: 'icon icon-link' }),
41
+ ),
42
+ 'Icon \u56fe\u6807',
43
+ ),
44
+ a.a.createElement(
45
+ 'p',
46
+ null,
47
+ '\u8bed\u4e49\u5316\u7684\u77e2\u91cf\u56fe\u5f62\u3002\u4f7f\u7528\u56fe\u6807\u7ec4\u4ef6\uff0c\u4f60\u9700\u8981\u5b89\u88c5 ',
48
+ a.a.createElement('code', null, '@ant-design/icons'),
49
+ ' \u56fe\u6807\u7ec4\u4ef6\u5305\uff1a',
50
+ ),
51
+ a.a.createElement(r['a'], {
52
+ code: 'npm install --save @ant-design/icons',
53
+ lang: 'bash',
54
+ }),
55
+ a.a.createElement(
56
+ 'h2',
57
+ { id: '\u8bbe\u8ba1\u5e08\u4e13\u5c5e' },
58
+ a.a.createElement(
59
+ c['AnchorLink'],
60
+ {
61
+ to: '#\u8bbe\u8ba1\u5e08\u4e13\u5c5e',
62
+ 'aria-hidden': 'true',
63
+ tabIndex: -1,
64
+ },
65
+ a.a.createElement('span', { className: 'icon icon-link' }),
66
+ ),
67
+ '\u8bbe\u8ba1\u5e08\u4e13\u5c5e',
68
+ ),
69
+ a.a.createElement(
70
+ 'p',
71
+ null,
72
+ '\u5b89\u88c5 ',
73
+ a.a.createElement(
74
+ c['Link'],
75
+ { to: 'https://kitchen.alipay.com/' },
76
+ 'Kitchen Sketch \u63d2\u4ef6 \ud83d\udc8e',
77
+ ),
78
+ '\uff0c\u5c31\u53ef\u4ee5\u4e00\u952e\u62d6\u62fd\u4f7f\u7528 Ant Design \u548c Iconfont \u7684\u6d77\u91cf\u56fe\u6807\uff0c\u8fd8\u53ef\u4ee5\u5173\u8054\u81ea\u6709\u9879\u76ee\u3002',
79
+ ),
80
+ a.a.createElement(
81
+ 'h2',
82
+ { id: '\u56fe\u6807\u5217\u8868' },
83
+ a.a.createElement(
84
+ c['AnchorLink'],
85
+ {
86
+ to: '#\u56fe\u6807\u5217\u8868',
87
+ 'aria-hidden': 'true',
88
+ tabIndex: -1,
89
+ },
90
+ a.a.createElement('span', { className: 'icon icon-link' }),
91
+ ),
92
+ '\u56fe\u6807\u5217\u8868',
93
+ ),
94
+ a.a.createElement(
95
+ 'h3',
96
+ { id: '\u7b80\u5355\u5217\u8868' },
97
+ a.a.createElement(
98
+ c['AnchorLink'],
99
+ {
100
+ to: '#\u7b80\u5355\u5217\u8868',
101
+ 'aria-hidden': 'true',
102
+ tabIndex: -1,
103
+ },
104
+ a.a.createElement('span', { className: 'icon icon-link' }),
105
+ ),
106
+ '\u7b80\u5355\u5217\u8868',
107
+ ),
108
+ a.a.createElement(
109
+ 'h2',
110
+ { id: 'api' },
111
+ a.a.createElement(
112
+ c['AnchorLink'],
113
+ { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
114
+ a.a.createElement('span', { className: 'icon icon-link' }),
115
+ ),
116
+ 'API',
117
+ ),
118
+ a.a.createElement(
119
+ 'p',
120
+ null,
121
+ '\u4ece 4.0 \u5f00\u59cb\uff0cantd \u4e0d\u518d\u5185\u7f6e Icon \u7ec4\u4ef6\uff0c\u8bf7\u4f7f\u7528\u72ec\u7acb\u7684\u5305 ',
122
+ a.a.createElement('code', null, '@ant-design/icons'),
123
+ '\u3002',
124
+ ),
125
+ a.a.createElement(
126
+ 'h3',
127
+ { id: '\u901a\u7528\u56fe\u6807' },
128
+ a.a.createElement(
129
+ c['AnchorLink'],
130
+ {
131
+ to: '#\u901a\u7528\u56fe\u6807',
132
+ 'aria-hidden': 'true',
133
+ tabIndex: -1,
134
+ },
135
+ a.a.createElement('span', { className: 'icon icon-link' }),
136
+ ),
137
+ '\u901a\u7528\u56fe\u6807',
138
+ ),
139
+ a.a.createElement(
140
+ 'table',
141
+ null,
142
+ a.a.createElement(
143
+ 'thead',
144
+ null,
145
+ a.a.createElement(
146
+ 'tr',
147
+ null,
148
+ a.a.createElement('th', null, '\u53c2\u6570'),
149
+ a.a.createElement('th', null, '\u8bf4\u660e'),
150
+ a.a.createElement('th', null, '\u7c7b\u578b'),
151
+ a.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
152
+ a.a.createElement('th', null, '\u7248\u672c'),
153
+ ),
154
+ ),
155
+ a.a.createElement(
156
+ 'tbody',
157
+ null,
158
+ a.a.createElement(
159
+ 'tr',
160
+ null,
161
+ a.a.createElement('td', null, 'className'),
162
+ a.a.createElement(
163
+ 'td',
164
+ null,
165
+ '\u8bbe\u7f6e\u56fe\u6807\u7684\u6837\u5f0f\u540d',
166
+ ),
167
+ a.a.createElement('td', null, 'string'),
168
+ a.a.createElement('td', null, '-'),
169
+ a.a.createElement('td', null),
170
+ ),
171
+ a.a.createElement(
172
+ 'tr',
173
+ null,
174
+ a.a.createElement('td', null, 'rotate'),
175
+ a.a.createElement(
176
+ 'td',
177
+ null,
178
+ '\u56fe\u6807\u65cb\u8f6c\u89d2\u5ea6\uff08IE9 \u65e0\u6548\uff09',
179
+ ),
180
+ a.a.createElement('td', null, 'number'),
181
+ a.a.createElement('td', null, '-'),
182
+ a.a.createElement('td', null),
183
+ ),
184
+ a.a.createElement(
185
+ 'tr',
186
+ null,
187
+ a.a.createElement('td', null, 'spin'),
188
+ a.a.createElement(
189
+ 'td',
190
+ null,
191
+ '\u662f\u5426\u6709\u65cb\u8f6c\u52a8\u753b',
192
+ ),
193
+ a.a.createElement('td', null, 'boolean'),
194
+ a.a.createElement('td', null, 'false'),
195
+ a.a.createElement('td', null),
196
+ ),
197
+ a.a.createElement(
198
+ 'tr',
199
+ null,
200
+ a.a.createElement('td', null, 'style'),
201
+ a.a.createElement(
202
+ 'td',
203
+ null,
204
+ '\u8bbe\u7f6e\u56fe\u6807\u7684\u6837\u5f0f\uff0c\u4f8b\u5982 ',
205
+ a.a.createElement('code', null, 'fontSize'),
206
+ ' \u548c ',
207
+ a.a.createElement('code', null, 'color'),
208
+ ),
209
+ a.a.createElement('td', null, 'CSSProperties'),
210
+ a.a.createElement('td', null, '-'),
211
+ a.a.createElement('td', null),
212
+ ),
213
+ a.a.createElement(
214
+ 'tr',
215
+ null,
216
+ a.a.createElement('td', null, 'twoToneColor'),
217
+ a.a.createElement(
218
+ 'td',
219
+ null,
220
+ '\u4ec5\u9002\u7528\u53cc\u8272\u56fe\u6807\u3002\u8bbe\u7f6e\u53cc\u8272\u56fe\u6807\u7684\u4e3b\u8981\u989c\u8272',
221
+ ),
222
+ a.a.createElement(
223
+ 'td',
224
+ null,
225
+ 'string (\u5341\u516d\u8fdb\u5236\u989c\u8272)',
226
+ ),
227
+ a.a.createElement('td', null, '-'),
228
+ a.a.createElement('td', null),
229
+ ),
230
+ ),
231
+ ),
232
+ a.a.createElement(
233
+ 'p',
234
+ null,
235
+ '\u5176\u4e2d\u6211\u4eec\u63d0\u4f9b\u4e86\u4e09\u79cd\u4e3b\u9898\u7684\u56fe\u6807\uff0c\u4e0d\u540c\u4e3b\u9898\u7684 Icon \u7ec4\u4ef6\u540d\u4e3a\u56fe\u6807\u540d\u52a0\u4e3b\u9898\u505a\u4e3a\u540e\u7f00\u3002',
236
+ ),
237
+ a.a.createElement(r['a'], {
238
+ code: 'import { StarOutlined, StarFilled, StarTwoTone } from \'@ant-design/icons\';\n\n<StarOutlined />\n<StarFilled />\n<StarTwoTone twoToneColor="#eb2f96" />',
239
+ lang: 'bash',
240
+ }),
241
+ a.a.createElement(
242
+ 'h3',
243
+ { id: '\u81ea\u5b9a\u4e49-icon' },
244
+ a.a.createElement(
245
+ c['AnchorLink'],
246
+ {
247
+ to: '#\u81ea\u5b9a\u4e49-icon',
248
+ 'aria-hidden': 'true',
249
+ tabIndex: -1,
250
+ },
251
+ a.a.createElement('span', { className: 'icon icon-link' }),
252
+ ),
253
+ '\u81ea\u5b9a\u4e49 Icon',
254
+ ),
255
+ a.a.createElement(
256
+ 'table',
257
+ null,
258
+ a.a.createElement(
259
+ 'thead',
260
+ null,
261
+ a.a.createElement(
262
+ 'tr',
263
+ null,
264
+ a.a.createElement('th', null, '\u53c2\u6570'),
265
+ a.a.createElement('th', null, '\u8bf4\u660e'),
266
+ a.a.createElement('th', null, '\u7c7b\u578b'),
267
+ a.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
268
+ a.a.createElement('th', null, '\u7248\u672c'),
269
+ ),
270
+ ),
271
+ a.a.createElement(
272
+ 'tbody',
273
+ null,
274
+ a.a.createElement(
275
+ 'tr',
276
+ null,
277
+ a.a.createElement('td', null, 'component'),
278
+ a.a.createElement(
279
+ 'td',
280
+ null,
281
+ '\u63a7\u5236\u5982\u4f55\u6e32\u67d3\u56fe\u6807\uff0c\u901a\u5e38\u662f\u4e00\u4e2a\u6e32\u67d3\u6839\u6807\u7b7e\u4e3a ',
282
+ a.a.createElement('code', null, '<svg>'),
283
+ ' \u7684 React \u7ec4\u4ef6',
284
+ ),
285
+ a.a.createElement(
286
+ 'td',
287
+ null,
288
+ 'ComponentType<CustomIconComponentProps>',
289
+ ),
290
+ a.a.createElement('td', null, '-'),
291
+ a.a.createElement('td', null),
292
+ ),
293
+ a.a.createElement(
294
+ 'tr',
295
+ null,
296
+ a.a.createElement('td', null, 'rotate'),
297
+ a.a.createElement(
298
+ 'td',
299
+ null,
300
+ '\u56fe\u6807\u65cb\u8f6c\u89d2\u5ea6\uff08IE9 \u65e0\u6548\uff09',
301
+ ),
302
+ a.a.createElement('td', null, 'number'),
303
+ a.a.createElement('td', null, '-'),
304
+ a.a.createElement('td', null),
305
+ ),
306
+ a.a.createElement(
307
+ 'tr',
308
+ null,
309
+ a.a.createElement('td', null, 'spin'),
310
+ a.a.createElement(
311
+ 'td',
312
+ null,
313
+ '\u662f\u5426\u6709\u65cb\u8f6c\u52a8\u753b',
314
+ ),
315
+ a.a.createElement('td', null, 'boolean'),
316
+ a.a.createElement('td', null, 'false'),
317
+ a.a.createElement('td', null),
318
+ ),
319
+ a.a.createElement(
320
+ 'tr',
321
+ null,
322
+ a.a.createElement('td', null, 'style'),
323
+ a.a.createElement(
324
+ 'td',
325
+ null,
326
+ '\u8bbe\u7f6e\u56fe\u6807\u7684\u6837\u5f0f\uff0c\u4f8b\u5982 ',
327
+ a.a.createElement('code', null, 'fontSize'),
328
+ ' \u548c ',
329
+ a.a.createElement('code', null, 'color'),
330
+ ),
331
+ a.a.createElement('td', null, 'CSSProperties'),
332
+ a.a.createElement('td', null, '-'),
333
+ a.a.createElement('td', null),
334
+ ),
335
+ ),
336
+ ),
337
+ a.a.createElement(
338
+ 'h3',
339
+ { id: '\u5173\u4e8e-svg-\u56fe\u6807' },
340
+ a.a.createElement(
341
+ c['AnchorLink'],
342
+ {
343
+ to: '#\u5173\u4e8e-svg-\u56fe\u6807',
344
+ 'aria-hidden': 'true',
345
+ tabIndex: -1,
346
+ },
347
+ a.a.createElement('span', { className: 'icon icon-link' }),
348
+ ),
349
+ '\u5173\u4e8e SVG \u56fe\u6807',
350
+ ),
351
+ a.a.createElement(
352
+ 'p',
353
+ null,
354
+ '\u5728 ',
355
+ a.a.createElement('code', null, '3.9.0'),
356
+ ' \u4e4b\u540e\uff0c\u6211\u4eec\u4f7f\u7528\u4e86 SVG \u56fe\u6807\u66ff\u6362\u4e86\u539f\u5148\u7684 font \u56fe\u6807\uff0c\u4ece\u800c\u5e26\u6765\u4e86\u4ee5\u4e0b\u4f18\u52bf\uff1a',
357
+ ),
358
+ a.a.createElement(
359
+ 'ul',
360
+ null,
361
+ a.a.createElement(
362
+ 'li',
363
+ null,
364
+ '\u5b8c\u5168\u79bb\u7ebf\u5316\u4f7f\u7528\uff0c\u4e0d\u9700\u8981\u4ece CDN \u4e0b\u8f7d\u5b57\u4f53\u6587\u4ef6\uff0c\u56fe\u6807\u4e0d\u4f1a\u56e0\u4e3a\u7f51\u7edc\u95ee\u9898\u5448\u73b0\u65b9\u5757\uff0c\u4e5f\u65e0\u9700\u5b57\u4f53\u6587\u4ef6\u672c\u5730\u90e8\u7f72\u3002',
365
+ ),
366
+ a.a.createElement(
367
+ 'li',
368
+ null,
369
+ '\u5728\u4f4e\u7aef\u8bbe\u5907\u4e0a SVG \u6709\u66f4\u597d\u7684\u6e05\u6670\u5ea6\u3002',
370
+ ),
371
+ a.a.createElement(
372
+ 'li',
373
+ null,
374
+ '\u652f\u6301\u591a\u8272\u56fe\u6807\u3002',
375
+ ),
376
+ a.a.createElement(
377
+ 'li',
378
+ null,
379
+ '\u5bf9\u4e8e\u5185\u5efa\u56fe\u6807\u7684\u66f4\u6362\u53ef\u4ee5\u63d0\u4f9b\u66f4\u591a API\uff0c\u800c\u4e0d\u9700\u8981\u8fdb\u884c\u6837\u5f0f\u8986\u76d6\u3002',
380
+ ),
381
+ ),
382
+ a.a.createElement(
383
+ 'p',
384
+ null,
385
+ '\u66f4\u591a\u8ba8\u8bba\u53ef\u53c2\u8003\uff1a',
386
+ a.a.createElement(
387
+ c['Link'],
388
+ { to: 'https://github.com/ant-design/ant-design/issues/10353' },
389
+ '#10353',
390
+ ),
391
+ '\u3002',
392
+ ),
393
+ a.a.createElement(
394
+ 'p',
395
+ null,
396
+ '\u6240\u6709\u7684\u56fe\u6807\u90fd\u4f1a\u4ee5 ',
397
+ a.a.createElement('code', null, '<svg>'),
398
+ ' \u6807\u7b7e\u6e32\u67d3\uff0c\u53ef\u4ee5\u4f7f\u7528 ',
399
+ a.a.createElement('code', null, 'style'),
400
+ ' \u548c ',
401
+ a.a.createElement('code', null, 'className'),
402
+ ' \u8bbe\u7f6e\u56fe\u6807\u7684\u5927\u5c0f\u548c\u5355\u8272\u56fe\u6807\u7684\u989c\u8272\u3002\u4f8b\u5982\uff1a',
403
+ ),
404
+ a.a.createElement(r['a'], {
405
+ code: "import { MessageOutlined } from '@ant-design/icons';\n\n<MessageOutlined style={{ fontSize: '16px', color: '#08c' }} />;",
406
+ lang: 'bash',
407
+ }),
408
+ a.a.createElement(
409
+ 'h3',
410
+ { id: '\u53cc\u8272\u56fe\u6807\u4e3b\u8272' },
411
+ a.a.createElement(
412
+ c['AnchorLink'],
413
+ {
414
+ to: '#\u53cc\u8272\u56fe\u6807\u4e3b\u8272',
415
+ 'aria-hidden': 'true',
416
+ tabIndex: -1,
417
+ },
418
+ a.a.createElement('span', { className: 'icon icon-link' }),
419
+ ),
420
+ '\u53cc\u8272\u56fe\u6807\u4e3b\u8272',
421
+ ),
422
+ a.a.createElement(
423
+ 'p',
424
+ null,
425
+ '\u5bf9\u4e8e\u53cc\u8272\u56fe\u6807\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528 ',
426
+ a.a.createElement('code', null, 'getTwoToneColor()'),
427
+ ' \u548c ',
428
+ a.a.createElement('code', null, 'setTwoToneColor(colorString)'),
429
+ ' \u6765\u5168\u5c40\u8bbe\u7f6e\u56fe\u6807\u4e3b\u8272\u3002',
430
+ ),
431
+ a.a.createElement(r['a'], {
432
+ code: "import { getTwoToneColor, setTwoToneColor } from '@ant-design/icons';\n\nsetTwoToneColor('#eb2f96');\ngetTwoToneColor(); // #eb2f96",
433
+ lang: 'bash',
434
+ }),
435
+ a.a.createElement(
436
+ 'h3',
437
+ { id: '\u81ea\u5b9a\u4e49-font-\u56fe\u6807' },
438
+ a.a.createElement(
439
+ c['AnchorLink'],
440
+ {
441
+ to: '#\u81ea\u5b9a\u4e49-font-\u56fe\u6807',
442
+ 'aria-hidden': 'true',
443
+ tabIndex: -1,
444
+ },
445
+ a.a.createElement('span', { className: 'icon icon-link' }),
446
+ ),
447
+ '\u81ea\u5b9a\u4e49 font \u56fe\u6807',
448
+ ),
449
+ a.a.createElement(
450
+ 'p',
451
+ null,
452
+ '\u5728 ',
453
+ a.a.createElement('code', null, '3.9.0'),
454
+ ' \u4e4b\u540e\uff0c\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a ',
455
+ a.a.createElement('code', null, 'createFromIconfontCN'),
456
+ ' \u65b9\u6cd5\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u8c03\u7528\u5728 ',
457
+ a.a.createElement(
458
+ c['Link'],
459
+ { to: 'http://iconfont.cn/' },
460
+ 'iconfont.cn',
461
+ ),
462
+ ' \u4e0a\u81ea\u884c\u7ba1\u7406\u7684\u56fe\u6807\u3002',
463
+ ),
464
+ a.a.createElement(r['a'], {
465
+ code: "import { createFromIconfontCN } from '@ant-design/icons';\n\nconst MyIcon = createFromIconfontCN({\n scriptUrl: '//at.alicdn.com/t/font_8d5l8fzk5b87iudi.js', // \u5728 iconfont.cn \u4e0a\u751f\u6210\n});\n\nReactDOM.render(<MyIcon type=\"icon-example\" />, mountedNode);",
466
+ lang: 'bash',
467
+ }),
468
+ a.a.createElement(
469
+ 'p',
470
+ null,
471
+ '\u5176\u672c\u8d28\u4e0a\u662f\u521b\u5efa\u4e86\u4e00\u4e2a\u4f7f\u7528 ',
472
+ a.a.createElement('code', null, '<use>'),
473
+ ' \u6807\u7b7e\u6765\u6e32\u67d3\u56fe\u6807\u7684\u7ec4\u4ef6\u3002',
474
+ ),
475
+ a.a.createElement(
476
+ 'p',
477
+ null,
478
+ 'options \u7684\u914d\u7f6e\u9879\u5982\u4e0b\uff1a',
479
+ ),
480
+ a.a.createElement(
481
+ 'table',
482
+ null,
483
+ a.a.createElement(
484
+ 'thead',
485
+ null,
486
+ a.a.createElement(
487
+ 'tr',
488
+ null,
489
+ a.a.createElement('th', null, '\u53c2\u6570'),
490
+ a.a.createElement('th', null, '\u8bf4\u660e'),
491
+ a.a.createElement('th', null, '\u7c7b\u578b'),
492
+ a.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
493
+ a.a.createElement('th', null, '\u7248\u672c'),
494
+ ),
495
+ ),
496
+ a.a.createElement(
497
+ 'tbody',
498
+ null,
499
+ a.a.createElement(
500
+ 'tr',
501
+ null,
502
+ a.a.createElement('td', null, 'extraCommonProps'),
503
+ a.a.createElement(
504
+ 'td',
505
+ null,
506
+ '\u7ed9\u6240\u6709\u7684 ',
507
+ a.a.createElement('code', null, 'svg'),
508
+ ' \u56fe\u6807 ',
509
+ a.a.createElement('code', null, '<Icon />'),
510
+ ' \u7ec4\u4ef6\u8bbe\u7f6e\u989d\u5916\u7684\u5c5e\u6027',
511
+ ),
512
+ a.a.createElement(
513
+ 'td',
514
+ null,
515
+ '{',
516
+ ' [key: string]: any ',
517
+ '}',
518
+ ),
519
+ a.a.createElement('td', null, '{', '}'),
520
+ a.a.createElement('td', null),
521
+ ),
522
+ a.a.createElement(
523
+ 'tr',
524
+ null,
525
+ a.a.createElement('td', null, 'scriptUrl'),
526
+ a.a.createElement(
527
+ 'td',
528
+ null,
529
+ a.a.createElement(
530
+ c['Link'],
531
+ { to: 'http://iconfont.cn/' },
532
+ 'iconfont.cn',
533
+ ),
534
+ ' \u9879\u76ee\u5728\u7ebf\u751f\u6210\u7684 js \u5730\u5740\uff0c',
535
+ a.a.createElement('code', null, '@ant-design/icons@4.1.0'),
536
+ ' \u4e4b\u540e\u652f\u6301 ',
537
+ a.a.createElement('code', null, 'string[]'),
538
+ ' \u7c7b\u578b',
539
+ ),
540
+ a.a.createElement('td', null, 'string | string[]'),
541
+ a.a.createElement('td', null, '-'),
542
+ a.a.createElement('td', null),
543
+ ),
544
+ ),
545
+ ),
546
+ a.a.createElement(
547
+ 'p',
548
+ null,
549
+ '\u5728 ',
550
+ a.a.createElement('code', null, 'scriptUrl'),
551
+ ' \u90fd\u8bbe\u7f6e\u6709\u6548\u7684\u60c5\u51b5\u4e0b\uff0c\u7ec4\u4ef6\u5728\u6e32\u67d3\u524d\u4f1a\u81ea\u52a8\u5f15\u5165 ',
552
+ a.a.createElement(
553
+ c['Link'],
554
+ { to: 'http://iconfont.cn/' },
555
+ 'iconfont.cn',
556
+ ),
557
+ ' \u9879\u76ee\u4e2d\u7684\u56fe\u6807\u7b26\u53f7\u96c6\uff0c\u65e0\u9700\u624b\u52a8\u5f15\u5165\u3002',
558
+ ),
559
+ a.a.createElement(
560
+ 'p',
561
+ null,
562
+ '\u89c1 ',
563
+ a.a.createElement(
564
+ c['Link'],
565
+ {
566
+ to: 'http://iconfont.cn/help/detail?spm=a313x.7781069.1998910419.15&helptype=code',
567
+ },
568
+ 'iconfont.cn \u4f7f\u7528\u5e2e\u52a9',
569
+ ),
570
+ ' \u67e5\u770b\u5982\u4f55\u751f\u6210 js \u5730\u5740\u3002',
571
+ ),
572
+ a.a.createElement(
573
+ 'h3',
574
+ { id: '\u81ea\u5b9a\u4e49-svg-\u56fe\u6807' },
575
+ a.a.createElement(
576
+ c['AnchorLink'],
577
+ {
578
+ to: '#\u81ea\u5b9a\u4e49-svg-\u56fe\u6807',
579
+ 'aria-hidden': 'true',
580
+ tabIndex: -1,
581
+ },
582
+ a.a.createElement('span', { className: 'icon icon-link' }),
583
+ ),
584
+ '\u81ea\u5b9a\u4e49 SVG \u56fe\u6807',
585
+ ),
586
+ a.a.createElement(
587
+ 'p',
588
+ null,
589
+ '\u5982\u679c\u4f7f\u7528 ',
590
+ a.a.createElement('code', null, 'webpack'),
591
+ '\uff0c\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e ',
592
+ a.a.createElement(
593
+ c['Link'],
594
+ { to: 'https://www.npmjs.com/package/@svgr/webpack' },
595
+ '@svgr/webpack',
596
+ ),
597
+ ' \u6765\u5c06 ',
598
+ a.a.createElement('code', null, 'svg'),
599
+ ' \u56fe\u6807\u4f5c\u4e3a ',
600
+ a.a.createElement('code', null, 'React'),
601
+ ' \u7ec4\u4ef6\u5bfc\u5165\u3002',
602
+ a.a.createElement('code', null, '@svgr/webpack'),
603
+ ' \u7684 ',
604
+ a.a.createElement('code', null, 'options'),
605
+ ' \u9009\u9879\u8bf7\u53c2\u9605 ',
606
+ a.a.createElement(
607
+ c['Link'],
608
+ { to: 'https://github.com/smooth-code/svgr#options' },
609
+ 'svgr \u6587\u6863',
610
+ ),
611
+ '\u3002',
612
+ ),
613
+ a.a.createElement(r['a'], {
614
+ code: "// webpack.config.js\n{\n test: /\\.svg(\\?v=\\d+\\.\\d+\\.\\d+)?$/,\n use: [\n {\n loader: 'babel-loader',\n },\n {\n loader: '@svgr/webpack',\n options: {\n babel: false,\n icon: true,\n },\n },\n ],\n}",
615
+ lang: 'bash',
616
+ }),
617
+ a.a.createElement(r['a'], {
618
+ code: "import Icon from '@ant-design/icons';\nimport MessageSvg from 'path/to/message.svg'; // path to your '*.svg' file.\n// in create-react-app:\n// import { ReactComponent as MessageSvg } from 'path/to/message.svg';\n\nReactDOM.render(<Icon component={MessageSvg} />, mountNode);",
619
+ lang: 'bash',
620
+ }),
621
+ a.a.createElement(
622
+ 'p',
623
+ null,
624
+ a.a.createElement('code', null, 'Icon'),
625
+ ' \u4e2d\u7684 ',
626
+ a.a.createElement('code', null, 'component'),
627
+ ' \u7ec4\u4ef6\u7684\u63a5\u53d7\u7684\u5c5e\u6027\u5982\u4e0b\uff1a',
628
+ ),
629
+ a.a.createElement(
630
+ 'table',
631
+ null,
632
+ a.a.createElement(
633
+ 'thead',
634
+ null,
635
+ a.a.createElement(
636
+ 'tr',
637
+ null,
638
+ a.a.createElement('th', null, '\u5b57\u6bb5'),
639
+ a.a.createElement('th', null, '\u8bf4\u660e'),
640
+ a.a.createElement('th', null, '\u7c7b\u578b'),
641
+ a.a.createElement('th', null, '\u53ea\u8bfb\u503c'),
642
+ a.a.createElement('th', null, '\u7248\u672c'),
643
+ ),
644
+ ),
645
+ a.a.createElement(
646
+ 'tbody',
647
+ null,
648
+ a.a.createElement(
649
+ 'tr',
650
+ null,
651
+ a.a.createElement('td', null, 'className'),
652
+ a.a.createElement(
653
+ 'td',
654
+ null,
655
+ '\u8ba1\u7b97\u540e\u7684 ',
656
+ a.a.createElement('code', null, 'svg'),
657
+ ' \u7c7b\u540d',
658
+ ),
659
+ a.a.createElement('td', null, 'string'),
660
+ a.a.createElement('td', null, '-'),
661
+ a.a.createElement('td', null),
662
+ ),
663
+ a.a.createElement(
664
+ 'tr',
665
+ null,
666
+ a.a.createElement('td', null, 'fill'),
667
+ a.a.createElement(
668
+ 'td',
669
+ null,
670
+ a.a.createElement('code', null, 'svg'),
671
+ ' \u5143\u7d20\u586b\u5145\u7684\u989c\u8272',
672
+ ),
673
+ a.a.createElement('td', null, 'string'),
674
+ a.a.createElement(
675
+ 'td',
676
+ null,
677
+ a.a.createElement('code', null, 'currentColor'),
678
+ ),
679
+ a.a.createElement('td', null),
680
+ ),
681
+ a.a.createElement(
682
+ 'tr',
683
+ null,
684
+ a.a.createElement('td', null, 'height'),
685
+ a.a.createElement(
686
+ 'td',
687
+ null,
688
+ a.a.createElement('code', null, 'svg'),
689
+ ' \u5143\u7d20\u9ad8\u5ea6',
690
+ ),
691
+ a.a.createElement('td', null, 'string | number'),
692
+ a.a.createElement(
693
+ 'td',
694
+ null,
695
+ a.a.createElement('code', null, '1em'),
696
+ ),
697
+ a.a.createElement('td', null),
698
+ ),
699
+ a.a.createElement(
700
+ 'tr',
701
+ null,
702
+ a.a.createElement('td', null, 'style'),
703
+ a.a.createElement(
704
+ 'td',
705
+ null,
706
+ '\u8ba1\u7b97\u540e\u7684 ',
707
+ a.a.createElement('code', null, 'svg'),
708
+ ' \u5143\u7d20\u6837\u5f0f',
709
+ ),
710
+ a.a.createElement('td', null, 'CSSProperties'),
711
+ a.a.createElement('td', null, '-'),
712
+ a.a.createElement('td', null),
713
+ ),
714
+ a.a.createElement(
715
+ 'tr',
716
+ null,
717
+ a.a.createElement('td', null, 'width'),
718
+ a.a.createElement(
719
+ 'td',
720
+ null,
721
+ a.a.createElement('code', null, 'svg'),
722
+ ' \u5143\u7d20\u5bbd\u5ea6',
723
+ ),
724
+ a.a.createElement('td', null, 'string | number'),
725
+ a.a.createElement(
726
+ 'td',
727
+ null,
728
+ a.a.createElement('code', null, '1em'),
729
+ ),
730
+ a.a.createElement('td', null),
731
+ ),
732
+ ),
733
+ ),
734
+ ),
735
+ )
736
+ );
737
+ },
738
+ },
739
+ ]);