ant-design/6242df5d-async.65d90048.js

1 line
5.5 KiB
JavaScript
Raw Normal View History

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["6242df5d"],{"6242df5d":function(e,a,s){"use strict";s.d(a,"__esModule",{value:!0}),s.d(a,"default",{enumerable:!0,get:function(){return o;}});var n=s("777fffbe"),l=s("f19d2b93"),d=n._(s("b622e337")),r=n._(s("97c488ea")),c=n._(s("676a306f")),i=n._(s("c96b0d01")),u=s("5b220c3d"),t=s("9c86e52a");function h(){let{texts:e}=(0,t.useRouteMeta)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"markdown",children:[(0,l.jsxs)("p",{children:[e[0].value,(0,l.jsx)("strong",{children:e[1].value}),e[2].value]}),(0,l.jsx)("blockquote",{children:(0,l.jsxs)("p",{children:[e[3].value,(0,l.jsx)(r.default,{href:"https://react.dev",sourceType:"a",children:e[4].value}),e[5].value,(0,l.jsx)(r.default,{href:"https://nodejs.org/",sourceType:"a",children:e[6].value}),e[7].value]})}),(0,l.jsx)("hr",{}),(0,l.jsxs)("h2",{id:"\u7B2C\u4E00\u4E2A\u4F8B\u5B50",children:[(0,l.jsx)(r.default,{"aria-hidden":"true",tabIndex:"-1",href:"#\u7B2C\u4E00\u4E2A\u4F8B\u5B50",sourceType:"a",children:(0,l.jsx)("span",{className:"icon icon-link"})}),"\u7B2C\u4E00\u4E2A\u4F8B\u5B50"]}),(0,l.jsx)("p",{children:e[8].value}),(0,l.jsx)(c.default,{autorun:!0,children:"import React from 'react';\nimport { Button, Space, DatePicker, version } from 'antd';\n\nconst App = () => (\n <div style={{ padding: '0 24px' }}>\n <h1>antd version: {version}</h1>\n <Space>\n <DatePicker />\n <Button type=\"primary\">Primary Button</Button>\n </Space>\n </div>\n);\n\nexport default App;"}),(0,l.jsxs)("h3",{id:"1-\u521B\u5EFA\u4E00\u4E2A-codesandbox",children:[(0,l.jsx)(r.default,{"aria-hidden":"true",tabIndex:"-1",href:"#1-\u521B\u5EFA\u4E00\u4E2A-codesandbox",sourceType:"a",children:(0,l.jsx)("span",{className:"icon icon-link"})}),"1. \u521B\u5EFA\u4E00\u4E2A codesandbox"]}),(0,l.jsxs)("p",{children:[e[10].value,(0,l.jsx)(r.default,{href:"https://u.ant.design/codesandbox-repro",sourceType:"a",children:e[11].value}),e[12].value]}),(0,l.jsxs)("h3",{id:"2-\u4F7F\u7528\u7EC4\u4EF6",children:[(0,l.jsx)(r.default,{"aria-hidden":"true",tabIndex:"-1",href:"#2-\u4F7F\u7528\u7EC4\u4EF6",sourceType:"a",children:(0,l.jsx)("span",{className:"icon icon-link"})}),"2. \u4F7F\u7528\u7EC4\u4EF6"]}),(0,l.jsxs)("p",{children:[e[13].value,(0,l.jsx)("code",{children:e[14].value}),e[15].value]}),(0,l.jsx)(d.default,{lang:"jsx",children:e[16].value}),(0,l.jsxs)("h3",{id:"3-\u63A2\u7D22\u66F4\u591A\u7EC4\u4EF6\u7528\u6CD5",children:[(0,l.jsx)(r.default,{"aria-hidden":"true",tabIndex:"-1",href:"#3-\u63A2\u7D22\u66F4\u591A\u7EC4\u4EF6\u7528\u6CD5",sourceType:"a",children:(0,l.jsx)("span",{className:"icon icon-link"})}),"3. \u63A2\u7D22\u66F4\u591A\u7EC4\u4EF6\u7528\u6CD5"]}),(0,l.jsxs)("p",{children:[e[17].value,(0,l.jsx)(r.default,{to:"/components/alert-cn",sourceType:"Link",children:e[18].value}),e[19].value]}),(0,l.jsxs)("p",{children:[e[20].value,(0,l.jsx)("code",{children:e[21].value}),e[22].value,(0,l.jsx)("code",{children:e[23].value}),e[24].value]}),(0,l.jsx)(d.default,{lang:"diff",children:e[25].value}),(0,l.jsxs)("p",{children:[e[26].value,(0,l.jsx)("code",{children:e[27].value}),e[28].value]}),(0,l.jsx)(d.default,{lang:"diff",children:e[29].value}),(0,l.jsx)("p",{children:e[30].value}),(0,l.jsx)("img",{width:"420",src:"https://gw.alipayobjects.com/zos/antfincdn/ZosQjL9pqe/e6179c89-21a9-44c9-aea4-3cc04af7ef25.png",alt:"codesandbox screenshot"}),(0,l.jsx)("p",{children:e[31].value}),(0,l.jsxs)("h3",{id:"4-\u4E0B\u4E00\u6B65",children:[(0,l.jsx)(r.default,{"aria-hidden":"true",tabIndex:"-1",href:"#4-\u4E0B\u4E00\u6B65",sourceType:"a",children:(0,l.jsx)("span",{className:"icon icon-link"})}),"4. \u4E0B\u4E00\u6B65"]}),(0,l.jsx)("p",{children:e[32].value}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:(0,l.jsx)(r.default,{href:"https://pro.ant.design/",sourceType:"a",children:e[33].value})}),(0,l.jsx)("li",{children:(0,l.jsx)(r.default,{href:"https://github.com/ant-design/ant-design-examples/tree/main/examples/with-nextjs-inli