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.

2 lines
3.4 KiB

"use strict";(self.webpackChunkantd=self.webpackChunkantd||[]).push([[5882],{604785:function(m,l,e){e.r(l);var r=e(502143),v=e(968521),E=e(720719),h=e(28840),a=e(759907),P=e(828089),Z=e(825673),g=e(902068),D=e(574399),M=e(863942),O=e(316073),p=e(24628),x=e(719260),T=e(956140),c=e(127179),C=e(905388),I=e(40428),L=e(606965),A=e(268696),i=e(587302),t=e(424128),R=e(249706),B=e(795127),W=e(116846),K=e(212039),U=e(73024),f=e(553913),d=e(606641),u=e(667294),_=e(370917);function s(){var o=(0,d.eL)(),n=o.texts;return(0,_.tZ)(d.dY,null,(0,_.tZ)(u.Fragment,null,(0,_.tZ)("div",{className:"markdown"},(0,_.tZ)("p",null,(0,_.tZ)(t.Z,{href:"https://create-react-app.dev/",sourceType:"a"},n[0].value),n[1].value,(0,_.tZ)("code",null,n[2].value),n[3].value,(0,_.tZ)("code",null,n[4].value),n[5].value),(0,_.tZ)("blockquote",null,(0,_.tZ)("p",null,n[6].value,(0,_.tZ)("code",null,n[7].value),n[8].value,(0,_.tZ)("code",null,n[9].value),n[10].value)),(0,_.tZ)("h2",{id:"install-and-initialization"},(0,_.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#install-and-initialization",sourceType:"a"},(0,_.tZ)("span",{className:"icon icon-link"})),"Install and Initialization"),(0,_.tZ)("p",null,n[11].value,(0,_.tZ)(t.Z,{href:"https://github.com/yarnpkg/yarn/",sourceType:"a"},n[12].value),n[13].value,(0,_.tZ)(t.Z,{href:"https://pnpm.io/",sourceType:"a"},n[14].value),n[15].value)),(0,_.tZ)(i.Z,{npm:"$ npx create-react-app antd-demo --template typescript",yarn:"$ yarn create react-app antd-demo --template typescript",pnpm:"$ pnpm create react-app antd-demo --template typescript"}),(0,_.tZ)("div",{className:"markdown"},(0,_.tZ)("p",null,n[16].value),(0,_.tZ)("p",null,n[17].value),(0,_.tZ)(a.Z,{lang:"bash"},n[18].value),(0,_.tZ)("p",null,n[19].value,(0,_.tZ)(t.Z,{href:"http://localhost:3000/",sourceType:"a"},n[20].value),n[21].value,(0,_.tZ)("code",null,n[22].value),n[23].value),(0,_.tZ)("h2",{id:"import-antd"},(0,_.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#import-antd",sourceType:"a"},(0,_.tZ)("span",{className:"icon icon-link"})),"Import antd"),(0,_.tZ)("p",null,n[24].value),(0,_.tZ)(a.Z,null,n[25].value),(0,_.tZ)("p",null,n[26].value,(0,_.tZ)("code",null,n[27].value),n[28].value)),(0,_.tZ)(i.Z,{npm:"$ npm install antd --save",yarn:"$ yarn add antd",pnpm:"$ pnpm install antd --save"}),(0,_.tZ)("div",{className:"markdown"},(0,_.tZ)("p",null,n[29].value,(0,_.tZ)("code",null,n[30].value),n[31].value,(0,_.tZ)("code",null,n[32].value),n[33].value),(0,_.tZ)(a.Z,{lang:"tsx"},n[34].value),(0,_.tZ)("p",null,n[35].value,(0,_.tZ)("code",null,n[36].value),n[37].value,(0,_.tZ)("code",null,n[38].value),n[39].value,(0,_.tZ)(t.Z,{href:"https://create-react-app.dev/docs/getting-started",sourceType:"a"},n[40].value),n[41].value),(0,_.tZ)("h3",{id:"customize-theme"},(0,_.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#customize-theme",sourceType:"a"},(0,_.tZ)("span",{className:"icon icon-link"})),"Customize Theme"),(0,_.tZ)("p",null,n[42].value,(0,_.tZ)(t.Z,{to:"/docs/react/customize-theme",sourceType:"Link"},n[43].value),n[44].value),(0,_.tZ)(a.Z,{lang:"tsx"},n[45].value),(0,_.tZ)("p",null,(0,_.tZ)("code",null,n[46].value),n[47].value),(0,_.tZ)("p",null,(0,_.tZ)("img",{src:"https://gw.alipayobjects.com/zos/antfincdn/26L5vPoLug/8d7da796-175e-40af-8eea-e7031ba09f9f.png",alt:""})),(0,_.tZ)("blockquote",null,(0,_.tZ)("p",null,n[48].value,(0,_.tZ)("code",null,n[49].value),n[50].value)),(0,_.tZ)("p",null,n[51].value))))}l.default=s}}]);