ant-design/1d811a4f-async.7dd8274e.js
2024-11-20 18:30:54 +00:00

1 line
16 KiB
JavaScript

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["1d811a4f"],{"1d811a4f":function(e,s,a){"use strict";a.d(s,"__esModule",{value:!0}),a.d(s,"default",{enumerable:!0,get:function(){return x;}});var l=a("777fffbe"),r=a("f19d2b93"),n=l._(a("b622e337")),i=l._(a("67074e5d")),d=l._(a("302b08e3")),t=l._(a("5437c7d5")),c=l._(a("97c488ea")),u=l._(a("c96b0d01")),h=a("5b220c3d"),o=a("9c86e52a");function p(){let{texts:e}=(0,o.useRouteMeta)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"markdown",children:[(0,r.jsxs)("audio",{id:"antd-audio",children:[e[0].value,(0,r.jsx)("source",{src:"https://mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*ChCdRJ0w8SUAAAAAAAAAAAAADgCCAQ",type:"audio/mpeg"})]}),(0,r.jsxs)("p",{children:[e[1].value,(0,r.jsx)("code",{children:e[2].value}),e[3].value,(0,r.jsx)(d.default,{id:"antd-audio",children:e[4].value}),e[5].value]}),(0,r.jsxs)("div",{className:"pic-plus",children:[e[6].value,(0,r.jsx)("img",{width:"150",draggable:"false",src:"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"}),e[7].value,(0,r.jsx)("span",{children:e[8].value}),e[9].value,(0,r.jsx)("img",{width:"160",draggable:"false",src:"https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg"})]}),(0,r.jsx)("hr",{}),(0,r.jsxs)("h2",{id:"-features",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#-features",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"\u2728 Features"]}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:e[10].value}),(0,r.jsx)("li",{children:e[11].value}),(0,r.jsx)("li",{children:e[12].value}),(0,r.jsx)("li",{children:e[13].value}),(0,r.jsx)("li",{children:e[14].value}),(0,r.jsx)("li",{children:e[15].value})]}),(0,r.jsxs)("h2",{id:"environment-support",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#environment-support",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Environment Support"]}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:e[16].value}),(0,r.jsx)("li",{children:e[17].value}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://www.electronjs.org/",sourceType:"a",children:e[18].value})})]}),(0,r.jsxs)(i.default,{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsxs)("th",{children:[(0,r.jsx)(c.default,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a",children:(0,r.jsx)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png",alt:"Edge",width:"24px",height:"24px"})}),(0,r.jsx)("br",{}),e[19].value]}),(0,r.jsxs)("th",{children:[(0,r.jsx)(c.default,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a",children:(0,r.jsx)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png",alt:"Firefox",width:"24px",height:"24px"})}),(0,r.jsx)("br",{}),e[20].value]}),(0,r.jsxs)("th",{children:[(0,r.jsx)(c.default,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a",children:(0,r.jsx)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png",alt:"Chrome",width:"24px",height:"24px"})}),(0,r.jsx)("br",{}),e[21].value]}),(0,r.jsxs)("th",{children:[(0,r.jsx)(c.default,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a",children:(0,r.jsx)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png",alt:"Safari",width:"24px",height:"24px"})}),(0,r.jsx)("br",{}),e[22].value]}),(0,r.jsxs)("th",{children:[(0,r.jsx)(c.default,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a",children:(0,r.jsx)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png",alt:"Opera",width:"24px",height:"24px"})}),(0,r.jsx)("br",{}),e[23].value]}),(0,r.jsxs)("th",{children:[(0,r.jsx)(c.default,{href:"http://godban.github.io/browsers-support-badges/",sourceType:"a",children:(0,r.jsx)("img",{src:"https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png",alt:"Electron",width:"24px",height:"24px"})}),(0,r.jsx)("br",{}),e[24].value]})]})}),(0,r.jsx)("tbody",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:e[25].value}),(0,r.jsx)("td",{children:e[26].value}),(0,r.jsx)("td",{children:e[27].value}),(0,r.jsx)("td",{children:e[28].value}),(0,r.jsx)("td",{children:e[29].value}),(0,r.jsx)("td",{children:e[30].value})]})})]}),(0,r.jsxs)("p",{children:[e[31].value,(0,r.jsx)(c.default,{href:"https://babeljs.io/docs/en/babel-preset-env",sourceType:"a",children:e[32].value}),e[33].value,(0,r.jsx)("code",{children:e[34].value}),e[35].value,(0,r.jsx)(c.default,{href:"http://umijs.org/",sourceType:"a",children:e[36].value}),e[37].value]}),(0,r.jsx)("blockquote",{children:(0,r.jsxs)("p",{children:[e[38].value,(0,r.jsx)("code",{children:e[39].value}),e[40].value,(0,r.jsx)("code",{children:e[41].value}),e[42].value,(0,r.jsx)("code",{children:e[43].value}),e[44].value]})}),(0,r.jsxs)("h2",{id:"version",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#version",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Version"]}),(0,r.jsx)("ul",{children:(0,r.jsxs)("li",{children:[e[45].value,(0,r.jsx)(c.default,{href:"https://www.npmjs.org/package/antd",sourceType:"a",children:(0,r.jsx)("img",{src:"https://img.shields.io/npm/v/antd.svg?style=flat-square",alt:"npm package"})})]})}),(0,r.jsxs)("p",{children:[e[46].value,(0,r.jsx)(c.default,{href:"https://github.com/ant-design/ant-design/releases.atom",sourceType:"a",children:e[47].value})]}),(0,r.jsxs)("h2",{id:"installation",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#installation",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Installation"]}),(0,r.jsxs)("h3",{id:"using-npm-or-yarn-or-pnpm-or-bun",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#using-npm-or-yarn-or-pnpm-or-bun",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Using npm or yarn or pnpm or bun"]}),(0,r.jsxs)("p",{children:[(0,r.jsxs)("strong",{children:[e[48].value,(0,r.jsx)(c.default,{href:"https://www.npmjs.com/",sourceType:"a",children:e[49].value}),e[50].value,(0,r.jsx)(c.default,{href:"https://github.com/yarnpkg/yarn/",sourceType:"a",children:e[51].value}),e[52].value,(0,r.jsx)(c.default,{href:"https://pnpm.io/",sourceType:"a",children:e[53].value}),e[54].value,(0,r.jsx)(c.default,{href:"https://bun.sh/",sourceType:"a",children:e[55].value}),e[56].value]}),e[57].value]})]}),(0,r.jsx)(t.default,{npm:"$ npm install antd --save",yarn:"$ yarn add antd",pnpm:"$ pnpm install antd --save",bun:"$ bun add antd"}),(0,r.jsxs)("div",{className:"markdown",children:[(0,r.jsxs)("p",{children:[e[58].value,(0,r.jsx)(c.default,{href:"https://github.com/cnpm/cnpm",sourceType:"a",children:e[59].value}),e[60].value]}),(0,r.jsxs)("h3",{id:"import-in-browser",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#import-in-browser",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Import in Browser"]}),(0,r.jsxs)("p",{children:[e[61].value,(0,r.jsx)("code",{children:e[62].value}),e[63].value,(0,r.jsx)("code",{children:e[64].value}),e[65].value,(0,r.jsx)("code",{children:e[66].value}),e[67].value]}),(0,r.jsxs)("p",{children:[e[68].value,(0,r.jsx)("code",{children:e[69].value}),e[70].value,(0,r.jsx)("code",{children:e[71].value}),e[72].value,(0,r.jsx)("code",{children:e[73].value}),e[74].value,(0,r.jsx)(c.default,{href:"https://unpkg.com/browse/antd@5.0.0/dist/",sourceType:"a",children:e[75].value}),e[76].value,(0,r.jsx)(c.default,{href:"https://cdnjs.com/libraries/antd",sourceType:"a",children:(0,r.jsx)("img",{src:"https://img.shields.io/cdnjs/v/antd.svg?style=flat-square",alt:"CDNJS"})}),e[77].value,(0,r.jsx)(c.default,{href:"https://www.jsdelivr.com/package/npm/antd",sourceType:"a",children:(0,r.jsx)("img",{src:"https://data.jsdelivr.com/v1/package/npm/antd/badge",alt:""})}),e[78].value,(0,r.jsx)(c.default,{href:"https://unpkg.com/antd/dist",sourceType:"a",children:e[79].value}),e[80].value]}),(0,r.jsx)("blockquote",{children:(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:e[81].value}),e[82].value,(0,r.jsx)(c.default,{href:"https://webpack.github.io/",sourceType:"a",children:e[83].value}),e[84].value]})}),(0,r.jsx)("blockquote",{children:(0,r.jsxs)("p",{children:[e[85].value,(0,r.jsx)("code",{children:e[86].value}),e[87].value,(0,r.jsx)("code",{children:e[88].value}),e[89].value,(0,r.jsx)("code",{children:e[90].value}),e[91].value,(0,r.jsx)("code",{children:e[92].value}),e[93].value]})}),(0,r.jsxs)("h2",{id:"usage",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#usage",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Usage"]}),(0,r.jsx)(n.default,{lang:"jsx",children:e[94].value}),(0,r.jsxs)("h3",{id:"use-modularized-antd",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#use-modularized-antd",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Use modularized antd"]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:e[95].value}),e[96].value]}),(0,r.jsxs)("h3",{id:"typescript",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#typescript",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"TypeScript"]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:e[97].value}),e[98].value,(0,r.jsx)("code",{children:e[99].value}),e[100].value]}),(0,r.jsxs)("h2",{id:"links",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#links",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Links"]}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{to:"/",sourceType:"Link",children:e[101].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://github.com/ant-design/ant-design/issues/25661",sourceType:"a",children:e[102].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{to:"/components/overview",sourceType:"Link",children:e[103].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://pro.ant.design/",sourceType:"a",children:e[104].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://procomponents.ant.design/",sourceType:"a",children:e[105].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://charts.ant.design",sourceType:"a",children:e[106].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{to:"/changelog",sourceType:"Link",children:e[107].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://react-component.github.io/",sourceType:"a",children:e[108].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://mobile.ant.design",sourceType:"a",children:e[109].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://mini.ant.design",sourceType:"a",children:e[110].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://github.com/ant-design/ant-design-icons",sourceType:"a",children:e[111].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://github.com/ant-design/ant-design-colors",sourceType:"a",children:e[112].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://landing.ant.design",sourceType:"a",children:e[113].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://motion.ant.design",sourceType:"a",children:e[114].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://scaffold.ant.design",sourceType:"a",children:e[115].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://github.com/ant-design/ant-design/wiki/Development",sourceType:"a",children:e[116].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{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",children:e[117].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{to:"/docs/react/faq",sourceType:"Link",children:e[118].value})}),(0,r.jsxs)("li",{children:[(0,r.jsx)(c.default,{href:"https://u.ant.design/codesandbox-repro",sourceType:"a",children:e[119].value}),e[120].value]}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://github.com/websemantics/awesome-ant-design",sourceType:"a",children:e[121].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{to:"/docs/react/customize-theme",sourceType:"Link",children:e[122].value})}),(0,r.jsx)("li",{children:(0,r.jsx)(c.default,{href:"https://github.com/ant-design/ant-design/wiki/Collaborators#how-to-apply-for-being-a-collaborator",sourceType:"a",children:e[123].value})})]}),(0,r.jsxs)("h2",{id:"non-react-implementations",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#non-react-implementations",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Non-React Implementations"]}),(0,r.jsxs)("p",{children:[e[124].value,(0,r.jsx)(c.default,{to:"/docs/spec/introduce#front-end-implementation",sourceType:"Link",children:e[125].value}),e[126].value]}),(0,r.jsxs)("h2",{id:"companies-using-antd",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#companies-using-antd",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Companies using antd"]}),(0,r.jsxs)("p",{children:[e[127].value,(0,r.jsx)(c.default,{href:"https://github.com/ant-design/ant-design/issues/477",sourceType:"a",children:e[128].value}),e[129].value]}),(0,r.jsxs)("h2",{id:"contributing",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#contributing",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Contributing"]}),(0,r.jsxs)("p",{children:[e[130].value,(0,r.jsx)(c.default,{href:"https://github.com/ant-design/ant-design/blob/master/.github/CONTRIBUTING.md",sourceType:"a",children:e[131].value}),e[132].value]}),(0,r.jsxs)("p",{children:[e[133].value,(0,r.jsx)(c.default,{href:"https://github.com/ant-design/ant-design/pulls",sourceType:"a",children:e[134].value}),e[135].value,(0,r.jsx)(c.default,{href:"http://new-issue.ant.design/",sourceType:"a",children:e[136].value}),e[137].value]}),(0,r.jsx)("blockquote",{children:(0,r.jsxs)("p",{children:[e[138].value,(0,r.jsx)(c.default,{href:"http://www.catb.org/~esr/faqs/smart-questions.html",sourceType:"a",children:(0,r.jsx)("em",{children:e[139].value})}),e[140].value,(0,r.jsx)(c.default,{href:"https://github.com/seajs/seajs/issues/545",sourceType:"a",children:e[141].value}),e[142].value,(0,r.jsx)(c.default,{href:"http://www.chiark.greenend.org.uk/~sgtatham/bugs.html",sourceType:"a",children:e[143].value}),e[144].value]})}),(0,r.jsxs)("h2",{id:"need-help",children:[(0,r.jsx)(c.default,{"aria-hidden":"true",tabIndex:"-1",href:"#need-help",sourceType:"a",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"Need Help?"]}),(0,r.jsxs)("p",{children:[e[145].value,(0,r.jsx)(c.default,{href:"https://github.com/ant-design/ant-design/discussions",sourceType:"a",children:e[146].value}),e[147].value,(0,r.jsx)("code",{children:e[148].value}),e[149].value,(0,r.jsx)(c.default,{href:"http://stackoverflow.com/questions/tagged/antd",sourceType:"a",children:(0,r.jsx)("img",{alt:"Stack Overflow",src:"https://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-logo.svg?v=2bb144720a66",width:"140"})}),e[150].value,(0,r.jsx)("code",{children:e[151].value}),e[152].value]}),(0,r.jsxs)("p",{children:[e[153].value,(0,r.jsx)("code",{children:e[154].value}),e[155].value]})]})]});}var x=function(){return(0,r.jsx)(o.DumiPage,{children:(0,r.jsx)(h.Suspense,{fallback:(0,r.jsx)(u.default,{}),children:(0,r.jsx)(p,{})})});};}}]);