ant-design/b483bc7d-async.f2e9a895.js
2024-11-20 18:30:54 +00:00

1 line
3.6 KiB
JavaScript

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["b483bc7d"],{b483bc7d:function(a,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"texts",{enumerable:!0,get:function(){return d;}}),n("c6d7d46a");let d=[{value:"Vite",paraId:0},{value:" \u662F\u4E1A\u754C\u6700\u4F18\u79C0\u7684 React \u5E94\u7528\u5F00\u53D1\u5DE5\u5177\u4E4B\u4E00\uFF0C\u672C\u6587\u4F1A\u5C1D\u8BD5\u5728 Vite \u521B\u5EFA\u7684\u5DE5\u7A0B\u4E2D\u4F7F\u7528 ",paraId:0},{value:"antd",paraId:0},{value:" \u7EC4\u4EF6\uFF0C\u5E76\u81EA\u5B9A\u4E49 Vite \u7684\u914D\u7F6E\u4EE5\u6EE1\u8DB3\u5404\u7C7B\u5DE5\u7A0B\u5316\u9700\u6C42\u3002",paraId:0},{value:"\u5728\u5F00\u59CB\u4E4B\u524D\uFF0C\u4F60\u53EF\u80FD\u9700\u8981\u5B89\u88C5 ",paraId:1,tocIndex:0},{value:"yarn",paraId:1,tocIndex:0},{value:" \u6216\u8005 ",paraId:1,tocIndex:0},{value:"pnpm",paraId:1,tocIndex:0},{value:" \u6216\u8005 ",paraId:1,tocIndex:0},{value:"bun",paraId:1,tocIndex:0},{value:"\u3002",paraId:1,tocIndex:0},{value:"\u5DE5\u5177\u4F1A\u81EA\u52A8\u521D\u59CB\u5316\u4E00\u4E2A\u811A\u624B\u67B6\u5E76\u5B89\u88C5 React \u9879\u76EE\u7684\u5404\u79CD\u5FC5\u8981\u4F9D\u8D56\uFF0C\u5982\u679C\u5728\u8FC7\u7A0B\u4E2D\u51FA\u73B0\u7F51\u7EDC\u95EE\u9898\uFF0C\u8BF7\u5C1D\u8BD5\u914D\u7F6E\u4EE3\u7406\uFF0C\u6216\u4F7F\u7528\u5176\u4ED6 npm registry\u3002",paraId:2},{value:"\u7136\u540E\u6211\u4EEC\u8FDB\u5165\u9879\u76EE\u5B89\u88C5\u4F9D\u8D56\u5E76\u542F\u52A8\u3002",paraId:3},{value:"$ cd antd-demo\n$ npm install\n$ npm run dev\n",paraId:4},{value:"\u6B64\u65F6\u4F7F\u7528\u6D4F\u89C8\u5668\u8BBF\u95EE ",paraId:5},{value:"http://localhost:5173/",paraId:5},{value:" \uFF0C\u770B\u5230 ",paraId:5},{value:"Vite + React",paraId:5},{value:" \u7684\u754C\u9762\u5C31\u7B97\u6210\u529F\u4E86\u3002",paraId:5},{value:"\u8FD9\u662F vite \u751F\u6210\u7684\u9ED8\u8BA4\u76EE\u5F55\u7ED3\u6784\u3002",paraId:6,tocIndex:1},{value:"\u251C\u2500\u2500 public\n\u2502\xa0\xa0 \u2514\u2500\u2500 vite.svg\n\u251C\u2500\u2500 src\n\u2502\xa0\xa0 \u2514\u2500\u2500 assets\n\u2502 \u2514\u2500\u2500 react.svg\n\u2502\xa0\xa0 \u251C\u2500\u2500 App.css\n\u2502\xa0\xa0 \u251C\u2500\u2500 App.js\n\u2502\xa0\xa0 \u251C\u2500\u2500 index.css\n\u2502\xa0\xa0 \u251C\u2500\u2500 main.js\n\u2502\xa0\xa0 \u2514\u2500\u2500 logo.svg\n\u251C\u2500\u2500 index.html\n\u251C\u2500\u2500 package.json\n\u2514\u2500\u2500 vite.config.js\n",paraId:7,tocIndex:1},{value:"\u73B0\u5728\u4ECE yarn \u6216 npm \u6216 pnpm \u6216 bun \u5B89\u88C5\u5E76\u5F15\u5165 antd\u3002",paraId:8,tocIndex:1},{value:"\u4FEE\u6539 ",paraId:9},{value:"src/App.js",paraId:9},{value:"\uFF0C\u5F15\u5165 antd \u7684\u6309\u94AE\u7EC4\u4EF6\u3002",paraId:9},{value:"import React from 'react';\nimport { Button } from 'antd';\n\nconst App = () => (\n <div className=\"App\">\n <Button type=\"primary\">Button</Button>\n </div>\n);\n\nexport default App;\n",paraId:10},{value:"\u597D\u4E86\uFF0C\u73B0\u5728\u4F60\u5E94\u8BE5\u80FD\u770B\u5230\u9875\u9762\u4E0A\u5DF2\u7ECF\u6709\u4E86 ",paraId:11},{value:"antd",paraId:11},{value:" \u7684\u84DD\u8272\u6309\u94AE\u7EC4\u4EF6\uFF0C\u63A5\u4E0B\u6765\u5C31\u53EF\u4EE5\u7EE7\u7EED\u9009\u7528\u5176\u4ED6\u7EC4\u4EF6\u5F00\u53D1\u5E94\u7528\u4E86\u3002\u5176\u4ED6\u5F00\u53D1\u6D41\u7A0B\u4F60\u53EF\u4EE5\u53C2\u8003 Vite \u7684",paraId:11},{value:"\u5B98\u65B9\u6587\u6863",paraId:11},{value:"\u3002",paraId:11},{value:"\u6211\u4EEC\u73B0\u5728\u5DF2\u7ECF\u628A antd \u7EC4\u4EF6\u6210\u529F\u8FD0\u884C\u8D77\u6765\u4E86\uFF0C\u5F00\u59CB\u5F00\u53D1\u4F60\u7684\u5E94\u7528\u5427\uFF01",paraId:12}];}}]);