You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1 lines
13 KiB

"use strict";(self.webpackChunkantd=self.webpackChunkantd||[]).push([[9953],{427277:function(Z,a,l){l.r(a);var h=l(502143),p=l(968521),c=l(720719),m=l(28840),s=l(759907),i=l(828089),v=l(825673),g=l(902068),T=l(574399),b=l(863942),E=l(316073),f=l(24628),w=l(719260),y=l(956140),x=l(127179),P=l(905388),D=l(40428),O=l(606965),M=l(268696),o=l(587302),n=l(424128),k=l(249706),C=l(795127),I=l(116846),L=l(212039),A=l(73024),B=l(553913),u=l(606641),r=l(667294),e=l(370917);function _(){var d=(0,u.eL)(),t=d.texts;return(0,e.tZ)(u.dY,null,(0,e.tZ)(r.Fragment,null,(0,e.tZ)("div",{className:"markdown"},(0,e.tZ)("p",null,t[0].value,(0,e.tZ)("code",null,t[1].value),t[2].value),(0,e.tZ)("div",{className:"pic-plus"},t[3].value,(0,e.tZ)("img",{width:"150",src:"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"}),t[4].value,(0,e.tZ)("span",null,t[5].value),t[6].value,(0,e.tZ)("img",{width:"160",src:"https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg"})),(0,e.tZ)("hr",null),(0,e.tZ)("h2",{id:"-features"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#-features",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"\u2728 Features"),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,t[7].value),(0,e.tZ)("li",null,t[8].value),(0,e.tZ)("li",null,t[9].value),(0,e.tZ)("li",null,t[10].value),(0,e.tZ)("li",null,t[11].value),(0,e.tZ)("li",null,t[12].value)),(0,e.tZ)("h2",{id:"environment-support"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#environment-support",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Environment Support"),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,t[13].value),(0,e.tZ)("li",null,t[14].value),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://www.electronjs.org/",sourceType:"a"},t[15].value))),(0,e.tZ)(i.Z,null,(0,e.tZ)("thead",null,(0,e.tZ)("tr",null,(0,e.tZ)("th",null,(0,e.tZ)(n.Z,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a"},(0,e.tZ)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png",alt:"Edge",width:"24px",height:"24px"})),(0,e.tZ)("br",null),t[16].value),(0,e.tZ)("th",null,(0,e.tZ)(n.Z,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a"},(0,e.tZ)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png",alt:"Firefox",width:"24px",height:"24px"})),(0,e.tZ)("br",null),t[17].value),(0,e.tZ)("th",null,(0,e.tZ)(n.Z,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a"},(0,e.tZ)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png",alt:"Chrome",width:"24px",height:"24px"})),(0,e.tZ)("br",null),t[18].value),(0,e.tZ)("th",null,(0,e.tZ)(n.Z,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a"},(0,e.tZ)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png",alt:"Safari",width:"24px",height:"24px"})),(0,e.tZ)("br",null),t[19].value),(0,e.tZ)("th",null,(0,e.tZ)(n.Z,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a"},(0,e.tZ)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png",alt:"Opera",width:"24px",height:"24px"})),(0,e.tZ)("br",null),t[20].value),(0,e.tZ)("th",null,(0,e.tZ)(n.Z,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a"},(0,e.tZ)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png",alt:"Electron",width:"24px",height:"24px"})),(0,e.tZ)("br",null),t[21].value))),(0,e.tZ)("tbody",null,(0,e.tZ)("tr",null,(0,e.tZ)("td",null,t[22].value),(0,e.tZ)("td",null,t[23].value),(0,e.tZ)("td",null,t[24].value),(0,e.tZ)("td",null,t[25].value),(0,e.tZ)("td",null,t[26].value),(0,e.tZ)("td",null,t[27].value)))),(0,e.tZ)("p",null,t[28].value,(0,e.tZ)(n.Z,{href:"https://babeljs.io/docs/en/babel-preset-env",sourceType:"a"},t[29].value),t[30].value,(0,e.tZ)("code",null,t[31].value),t[32].value,(0,e.tZ)(n.Z,{href:"http://umijs.org/",sourceType:"a"},t[33].value),t[34].value),(0,e.tZ)("blockquote",null,(0,e.tZ)("p",null,t[35].value,(0,e.tZ)("code",null,t[36].value),t[37].value,(0,e.tZ)("code",null,t[38].value),t[39].value,(0,e.tZ)("code",null,t[40].value),t[41].value)),(0,e.tZ)("h2",{id:"version"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#version",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Version"),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,t[42].value,(0,e.tZ)(n.Z,{href:"https://www.npmjs.org/package/antd",sourceType:"a"},(0,e.tZ)("img",{src:"https://img.shields.io/npm/v/antd.svg?style=flat-square",alt:"npm package"})))),(0,e.tZ)("p",null,t[43].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/releases.atom",sourceType:"a"},t[44].value)),(0,e.tZ)("h2",{id:"installation"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#installation",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Installation"),(0,e.tZ)("h3",{id:"using-npm-or-yarn-or-pnpm"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#using-npm-or-yarn-or-pnpm",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Using npm or yarn or pnpm"),(0,e.tZ)("p",null,(0,e.tZ)("strong",null,t[45].value,(0,e.tZ)(n.Z,{href:"https://www.npmjs.com/",sourceType:"a"},t[46].value),t[47].value,(0,e.tZ)(n.Z,{href:"https://github.com/yarnpkg/yarn/",sourceType:"a"},t[48].value),t[49].value,(0,e.tZ)(n.Z,{href:"https://pnpm.io/",sourceType:"a"},t[50].value),t[51].value),t[52].value)),(0,e.tZ)(o.Z,{npm:"$ npm install antd --save",yarn:"$ yarn add antd",pnpm:"$ pnpm install antd --save"}),(0,e.tZ)("div",{className:"markdown"},(0,e.tZ)("p",null,t[53].value,(0,e.tZ)(n.Z,{href:"https://github.com/cnpm/cnpm",sourceType:"a"},t[54].value),t[55].value),(0,e.tZ)("h3",{id:"import-in-browser"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#import-in-browser",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Import in Browser"),(0,e.tZ)("p",null,t[56].value,(0,e.tZ)("code",null,t[57].value),t[58].value,(0,e.tZ)("code",null,t[59].value),t[60].value,(0,e.tZ)("code",null,t[61].value),t[62].value),(0,e.tZ)("p",null,t[63].value,(0,e.tZ)("code",null,t[64].value),t[65].value,(0,e.tZ)("code",null,t[66].value),t[67].value,(0,e.tZ)("code",null,t[68].value),t[69].value,(0,e.tZ)(n.Z,{href:"https://unpkg.com/browse/antd@5.0.0/dist/",sourceType:"a"},t[70].value),t[71].value,(0,e.tZ)(n.Z,{href:"https://cdnjs.com/libraries/antd",sourceType:"a"},(0,e.tZ)("img",{src:"https://img.shields.io/cdnjs/v/antd.svg?style=flat-square",alt:"CDNJS"})),t[72].value,(0,e.tZ)(n.Z,{href:"https://www.jsdelivr.com/package/npm/antd",sourceType:"a"},(0,e.tZ)("img",{src:"https://data.jsdelivr.com/v1/package/npm/antd/badge",alt:""})),t[73].value,(0,e.tZ)(n.Z,{href:"https://unpkg.com/antd/dist",sourceType:"a"},t[74].value),t[75].value),(0,e.tZ)("blockquote",null,(0,e.tZ)("p",null,(0,e.tZ)("strong",null,t[76].value),t[77].value,(0,e.tZ)(n.Z,{href:"https://webpack.github.io/",sourceType:"a"},t[78].value),t[79].value)),(0,e.tZ)("blockquote",null,(0,e.tZ)("p",null,t[80].value,(0,e.tZ)("code",null,t[81].value),t[82].value,(0,e.tZ)("code",null,t[83].value),t[84].value,(0,e.tZ)("code",null,t[85].value),t[86].value,(0,e.tZ)("code",null,t[87].value),t[88].value)),(0,e.tZ)("h2",{id:"usage"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#usage",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Usage"),(0,e.tZ)(s.Z,{lang:"jsx"},t[89].value),(0,e.tZ)("h3",{id:"use-modularized-antd"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#use-modularized-antd",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Use modularized antd"),(0,e.tZ)("p",null,(0,e.tZ)("code",null,t[90].value),t[91].value),(0,e.tZ)("h3",{id:"typescript"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#typescript",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"TypeScript"),(0,e.tZ)("p",null,(0,e.tZ)("code",null,t[92].value),t[93].value,(0,e.tZ)("code",null,t[94].value),t[95].value),(0,e.tZ)("h2",{id:"links"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#links",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Links"),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{to:"/",sourceType:"Link"},t[96].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/issues/25661",sourceType:"a"},t[97].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{to:"/components/overview",sourceType:"Link"},t[98].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://pro.ant.design/",sourceType:"a"},t[99].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://procomponents.ant.design/",sourceType:"a"},t[100].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://charts.ant.design",sourceType:"a"},t[101].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{to:"/changelog",sourceType:"Link"},t[102].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://react-component.github.io/",sourceType:"a"},t[103].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://mobile.ant.design",sourceType:"a"},t[104].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://mini.ant.design",sourceType:"a"},t[105].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design-icons",sourceType:"a"},t[106].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design-colors",sourceType:"a"},t[107].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://landing.ant.design",sourceType:"a"},t[108].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://motion.ant.design",sourceType:"a"},t[109].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://scaffold.ant.design",sourceType:"a"},t[110].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/wiki/Development",sourceType:"a"},t[111].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/wiki/%E8%BD%AE%E5%80%BC%E8%A7%84%E5%88%99%E5%92%8C%E7%89%88%E6%9C%AC%E5%8F%91%E5%B8%83%E6%B5%81%E7%A8%8B",sourceType:"a"},t[112].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{to:"/docs/react/faq",sourceType:"Link"},t[113].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://u.ant.design/codesandbox-repro",sourceType:"a"},t[114].value),t[115].value),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://github.com/websemantics/awesome-ant-design",sourceType:"a"},t[116].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{to:"/docs/react/customize-theme",sourceType:"Link"},t[117].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/wiki/Collaborators#how-to-apply-for-being-a-collaborator",sourceType:"a"},t[118].value))),(0,e.tZ)("h2",{id:"companies-using-antd"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#companies-using-antd",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Companies using antd"),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://www.antgroup.com/index.htm?locale=en_US",sourceType:"a"},t[119].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://www.alibaba.com/",sourceType:"a"},t[120].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://www.tencent.com",sourceType:"a"},t[121].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://www.baidu.com",sourceType:"a"},t[122].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://www.koubei.com/",sourceType:"a"},t[123].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://www.meituan.com",sourceType:"a"},t[124].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://www.xiaojukeji.com/",sourceType:"a"},t[125].value)),(0,e.tZ)("li",null,(0,e.tZ)(n.Z,{href:"https://www.ele.me/",sourceType:"a"},t[126].value))),(0,e.tZ)("blockquote",null,(0,e.tZ)("p",null,t[127].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/issues/477",sourceType:"a"},t[128].value),t[129].value)),(0,e.tZ)("h2",{id:"contributing"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#contributing",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Contributing"),(0,e.tZ)("p",null,t[130].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/blob/master/.github/CONTRIBUTING.md",sourceType:"a"},t[131].value),t[132].value),(0,e.tZ)("p",null,t[133].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/pulls",sourceType:"a"},t[134].value),t[135].value,(0,e.tZ)(n.Z,{href:"http://new-issue.ant.design/",sourceType:"a"},t[136].value),t[137].value),(0,e.tZ)("blockquote",null,(0,e.tZ)("p",null,t[138].value,(0,e.tZ)(n.Z,{href:"http://www.catb.org/~esr/faqs/smart-questions.html",sourceType:"a"},(0,e.tZ)("em",null,t[139].value)),t[140].value,(0,e.tZ)(n.Z,{href:"https://github.com/seajs/seajs/issues/545",sourceType:"a"},t[141].value),t[142].value,(0,e.tZ)(n.Z,{href:"http://www.chiark.greenend.org.uk/~sgtatham/bugs.html",sourceType:"a"},t[143].value),t[144].value)),(0,e.tZ)("h2",{id:"need-help"},(0,e.tZ)(n.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#need-help",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Need Help?"),(0,e.tZ)("p",null,t[145].value,(0,e.tZ)(n.Z,{href:"https://github.com/ant-design/ant-design/discussions",sourceType:"a"},t[146].value),t[147].value,(0,e.tZ)("code",null,t[148].value),t[149].value,(0,e.tZ)(n.Z,{href:"http://stackoverflow.com/questions/tagged/antd",sourceType:"a"},(0,e.tZ)("img",{alt:"Stack Overflow",src:"https://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-logo.svg?v=2bb144720a66",width:"140"})),t[150].value,(0,e.tZ)("code",null,t[151].value),t[152].value),(0,e.tZ)("p",null,t[153].value,(0,e.tZ)("code",null,t[154].value),t[155].value))))}a.default=_}}]);