{"id":371810,"date":"2023-01-08T06:35:04","date_gmt":"2023-01-07T22:35:04","guid":{"rendered":"https:\/\/www.idc.net\/help\/371810\/"},"modified":"2023-01-08T06:35:04","modified_gmt":"2023-01-07T22:35:04","slug":"vue-ui%ef%bc%9avue-%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e4%b8%8d%e5%8f%af%e5%b0%91%e7%9a%84%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/371810\/","title":{"rendered":"Vue UI\uff1aVue \u5f00\u53d1\u8005\u5fc5\u4e0d\u53ef\u5c11\u7684\u5de5\u5177"},"content":{"rendered":"<p style=\"text-align: center\"><span>[[261863]]<\/span><\/p>\n<p>\u8bd1\u8005\u6309\uff1a&nbsp;Vue.js\u76f8\u5173\u7684\u5f00\u53d1\u5de5\u5177\u8d8a\u6765\u4e0e\u597d\u7528\uff01<\/p>\n<p>\u968f\u7740***\u7684\u7a33\u5b9a\u7248\u672cVue CLI 3\u5373\u5c06\u53d1\u5e03\uff0c\u662f\u65f6\u5019\u6765\u770b\u770b\u6709\u4ec0\u4e48\u65b0\u9c9c\u6709\u8da3\u7684\u7279\u6027\u4e86\u3002\u57fa\u4e8e\u6574\u4e2aVue.js\u5f00\u53d1\u8005\u793e\u533a\u7684\u53cd\u9988\u800c\u5927\u5e45\u5ea6\u6539\u826f\uff0c\u8be5\u7248\u672c\u63d0\u4f9b\u4e86\u5f88\u591a\u4ee5\u5de5\u4f5c\u6d41\u4e3a\u4e2d\u5fc3\u7684\u5de5\u5177\u3002<\/p>\n<p>\u6211\u60f3\u4f1a\u63d0\u5347\u6bcf\u4e00\u4f4dVue.js\u7684\u5f00\u53d1\u8005\u5de5\u4f5c\u7684\u7279\u6027\u5c31\u662fVue UI\u3002\u4e00\u4e2a\u53ef\u89c6\u5316\u56fe\u5f62\u754c\u9762\u65b9\u4fbf\u4f60\u53bb\u521b\u5efa\u3001\u66f4\u65b0\u548c\u7ba1\u7406\u9879\u76ee\u7684\u65b9\u65b9\u9762\u9762\u3002<\/p>\n<p>\u4eca\u5929\uff0c\u6211\u4f1a\u8ddf\u4f60\u4e00\u4e00\u4ecb\u7ecdVue UI\u7684beta\u7248\u672c\u4e2d\u53ef\u7528\u7684\u529f\u80fd\u3002<\/p>\n<h3>\u5f00\u59cb<\/h3>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u786e\u4fdd\u5b89\u88c5\u4e86***\u7684Vue CLI\u3002\u6253\u5f00Terminal\uff0c\u8f93\u5165\uff1a<\/p>\n<pre>\n \n \n \n <ol>\n  \n  \n  \n  <li><span><span>npm&nbsp;install&nbsp;-g&nbsp;<\/span><span>@vue<\/span><span>\/cli&nbsp;#&nbsp;OR&nbsp;yarn&nbsp;global&nbsp;add&nbsp;<\/span><span>@vue<\/span><span>\/cli&nbsp;&nbsp;<\/span><\/span><\/li>\n \n \n \n <\/ol><\/pre>\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528&nbsp;<code>-V<\/code>&nbsp;\u6765\u67e5\u770b\u4e00\u4e9b\u521a\u521a\u5b89\u88c5\u7684\u7248\u672c\uff1a<\/p>\n<pre>\n \n \n \n <ol>\n  \n  \n  \n  <li><span><span>vue&nbsp;-V&nbsp;#&nbsp;\u5e94\u8be5\u4f1a\u8f93\u51fa\u4e0b\u9762\u7684\u7ed3\u679c&nbsp;<\/span><span>3.0<\/span><span>.<\/span><span>0<\/span><span>-rc.<\/span><span>3<\/span><span>&nbsp;&nbsp;<\/span><\/span><\/li>\n \n \n \n <\/ol><\/pre>\n<p>\u4e3a\u4e86\u521d\u59cb\u5316\u4f60\u7684Vue UI\uff0c\u5728\u4e00\u4e2a\u5e72\u51c0\u7684\u76ee\u5f55\u4e0b\u8f93\u5165\uff1a<\/p>\n<pre>\n \n \n \n <ol>\n  \n  \n  \n  <li><span><span>vue&nbsp;ui&nbsp;&nbsp;<\/span><\/span><\/li>\n \n \n \n <\/ol><\/pre>\n<p>\u8be5\u547d\u4ee4\u4f1a\u81ea\u52a8\u6253\u5f00\u4f60\u7684\u6d4f\u89c8\u5668\uff0c\u4f60\u8981\u786e\u4fdd\u5f53\u524d\u76ee\u5f55\u4e0b\u6ca1\u6709\u5176\u4ed6\u9879\u76ee\uff0c\u6d4f\u89c8\u5668\u5c55\u793a\u7684\u9875\u9762\u5982\u4e0b\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>Vue UI\u9ed8\u8ba4\u4f1a\u663e\u793a***\u4e2aTab\uff0c\u4e5f\u5c31\u662f\u9879\u76ee\u7ba1\u7406\uff0c\u4f60\u53ef\u4ee5\u5f88\u8f7b\u677e\u67e5\u770b\u5f53\u524d\u521b\u5efa\u7684\u9879\u76ee\u3002<\/p>\n<h3>\u521b\u5efa***\u4e2a\u9879\u76ee<\/h3>\n<p>\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u9879\u76ee\uff0c\u70b9\u51fb\u4e2d\u95f4\u7684&nbsp;<code>\"Create\"<\/code>&nbsp;\u6309\u94ae\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u9879\u76ee\u521b\u5efa\u5de5\u5177\u4f1a\u8ba9\u4f60\u9009\u62e9\u5728\u54ea\u4e2a\u76ee\u5f55\u4e0b\u521b\u5efa(\u4ee5\u9632\u4e07\u4e00\uff0c\u4f60\u60f3\u5728\u4e0d\u540c\u7684\u76ee\u5f55\u4e0b\u521b\u5efa)\uff1b\u5f53\u6587\u4ef6\u5939\u88ab\u9009\u4e2d\u540e\uff0c\u70b9\u51fb&nbsp;<code>\"Create a new project here\"<\/code>&nbsp;\u6309\u94ae\uff0c\u7136\u540e\u4f1a\u8fdb\u5165\u4e00\u4e2a\u6b65\u6b65\u6307\u5bfc\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u4e3a\u9879\u76ee\u9009\u62e9\u4e00\u4e2a\u76ee\u5f55\uff0c\u9009\u62e9\u4f60\u559c\u6b22\u7684\u9879\u76ee\/\u5305\u7ba1\u7406\u5668(npm\u6216\u5219yarn)\uff0c\u7136\u540e\u70b9\u51fb&nbsp;<code>\"Next\"<\/code>&nbsp;\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u63a5\u4e0b\u6765\uff0c\u4f60\u4f1a\u88ab\u8981\u6c42\u914d\u7f6e\u9884\u88c5\u9009\u9879\uff1b\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u9ed8\u8ba4\u7684\u914d\u7f6e\u8db3\u591f\u4f7f\u7528\u3002\u672c\u6587\u4f5c\u4e3a\u4e00\u7bc7\u6307\u5bfc\u6587\u7ae0\uff0c\u6211\u4eec\u9009\u62e9\u624b\u52a8\u914d\u7f6e\u3002\u9009\u62e9&nbsp;<code>\"Maual\"<\/code>&nbsp;\uff0c\u7136\u540e\u70b9\u51fb&nbsp;<code>\"Next\"<\/code>&nbsp;\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u6709\u975e\u5e38\u591a\u7684\u9009\u9879\u53ef\u4ee5\u914d\u7f6e\uff1b\u4f7f\u7528Babel\u3001TypeScript\uff1b\u542f\u7528Vue\u7ec4\u4ef6Vuex\u3001Vue Router\uff1b***\u57fa\u4e8e\u4f60\u7684\u9009\u62e9\uff0c\u4f1a\u6709\u4e00\u4e2a\u76f8\u5e94\u7684\u9644\u52a0\u5e93\u914d\u7f6e\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u6211\u9009\u62e9\u4f7f\u7528\u4e86\u4e00\u4e2aESLint\u548c\u5f00\u542f\u5355\u5143\u6d4b\u8bd5\uff0c\u6211\u9009\u62e9\u52a0Prettier\u548cJest\u653e\u5230\u6211\u7684\u6280\u672f\u6808\u4e2d\uff0c\u5e76\u4e14\u5f53\u6211\u4fdd\u5b58\/\u63d0\u4ea4\u4ee3\u7801\u7684\u65f6\u5019\u81ea\u52a8\u505aLint\u3002<\/p>\n<p>***\uff0c\u70b9\u51fb&nbsp;<code>\"Create Project\"<\/code>&nbsp;\uff0c\u4f1a\u63d0\u9192\u4f60\u4fdd\u5b58\u5f53\u524d\u7684\u914d\u7f6e\uff0c\u7136\u540e\u521b\u5efa\u9879\u76ee\u3002<\/p>\n<p style=\"text-align: center\">\n<p>\u5f53\u9879\u76ee\u521b\u5efa\u6210\u529f\u4ee5\u540e\uff0cVue UI\u4f1a\u5c55\u793a\u8be5\u9879\u76ee\u914d\u7f6e\u7684\u6240\u6709\u63d2\u4ef6\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u5728\u8fd9\u91cc\uff0c\u4f60\u53ef\u4ee5\u66f4\u65b0\u63d2\u4ef6\uff0c\u5b89\u88c5\u65b0\u63d2\u4ef6\uff0c\u6253\u5f00Vue DevTools\u7b49\u7b49\u3002<\/p>\n<h3>\u6dfb\u52a0\u63d2\u4ef6<\/h3>\n<p>\u5f53\u4f60\u7684\u9879\u76ee\u521b\u5efa\u597d\u540e\uff0c\u5b89\u88c5\u65b0\u7684\u63d2\u4ef6\u975e\u5e38\u7b80\u5355\u3002\u70b9\u51fb&nbsp;<code>\"Add Plugin\"<\/code>&nbsp;\uff0c\u7136\u540e\u641c\u7d22\u4f60\u9700\u8981\u7684\u63d2\u4ef6\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u4f60\u4f1a\u53d1\u73b0\u6709\u4e9b\u63d2\u4ef6\u6807\u8bb0\u7740&nbsp;<code>\"Official\"<\/code>&nbsp;\uff0c\u90a3\u4e48\u8fd9\u4e9b\u7531Vue.js\u5b98\u65b9\u5f00\u53d1\u3002<\/p>\n<p>\u9009\u62e9\u4f60\u8981\u5f97\u63d2\u4ef6\uff0c\u7136\u540e\u70b9\u51fb&nbsp;<code>\"install\"<\/code>&nbsp;\u6309\u94ae\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u6ce8\u610f\u5728\u5f53\u524d\u7684\u7248\u672c\u4e0b\uff0c\u4f60\u4e00\u6b21\u53ea\u80fd\u5b89\u88c5\u4e00\u4e2a\u63d2\u4ef6\u3002\u57fa\u4e8e\u4f60\u5b89\u88c5\u7684\u63d2\u4ef6\uff0c\u4f60\u53ef\u80fd\u4f1a\u88ab\u8981\u6c42\u4f5c\u51fa\u4e00\u4e9b\u5bf9\u8be5\u63d2\u4ef6\u76f8\u5173\u7684\u989d\u5916\u914d\u7f6e\u3002\u5f53\u5b89\u88c5\u5b8c\u6bd5\uff0c\u4f60\u53ef\u4ee5\u5207\u6362\u5230&nbsp;<code>\"Files changed\"<\/code>&nbsp;\u9875\u9762\uff0c\u9009\u62e9\u5c06\u8fd9\u4e9b\u4ee3\u7801\u53d8\u52a8\u63d0\u4ea4\u3002<\/p>\n<p>***\uff0c\u6211\u4eec\u65b0\u5b89\u88c5\u7684\u63d2\u4ef6\u5df2\u7ecf\u5728\u5df2\u5b89\u88c5\u63d2\u4ef6\u5217\u8868\u4e2d\u4e86\uff1a<\/p>\n<p style=\"text-align: center\">\n<h3>\u914d\u7f6e\u4f60\u7684\u9879\u76ee<\/h3>\n<p>Vue UI\u5141\u8bb8\u4f60\u5728\u9879\u76ee\u521b\u5efa\u540e\u4f9d\u7136\u53ef\u4ee5\u4fee\u6539\u914d\u7f6e\u3002\u70b9\u51fb\u5de6\u4fa7\u7b2c\u4e8c\u4e2a\u914d\u7f6e\u56fe\u6807\uff0c\u7136\u540e\u4f60\u5c31\u53ef\u4ee5\u770b\u5230\u5f53\u524d\u7684\u914d\u7f6e\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u4fee\u6539\u6240\u6709\u53ef\u9009\u9879\u3002\u6211\u5efa\u8bae\u4f60\u9605\u8bfb\u6587\u6863\u4e86\u89e3\u54ea\u4e9b\u53ef\u4ee5\u4fee\u6539\u3002<\/p>\n<h3>\u6267\u884c\u9879\u76ee\u4efb\u52a1<\/h3>\n<p>\u53e6\u4e00\u4e2a\u5f88\u6709\u7528\u7684\u529f\u80fd\u662fVue UI\u53ef\u4ee5\u8ba9\u4f60\u76f4\u63a5\u6267\u884c\u4f60\u9879\u76ee\u4e2d\u5b9a\u4e49\u7684\u4efb\u52a1(npm scripts)\u3002\u6bd4\u5982\uff0c\u6211\u4eec\u8981\u8fd0\u884c\u5f00\u53d1\u7248\u672c\u7684\u670d\u52a1\u5668\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u8be5\u754c\u9762\u63d0\u4f9b\u4e86\u5f88\u591a\u6709\u8da3\u7684\u6280\u672f\u7ec6\u8282\uff0c\u6bd4\u5982\u5305\u5927\u5c0f\u3001\u52a0\u8f7d\u65f6\u95f4\u63d0\u793a\u3001\u8be6\u7ec6\u7684\u6bcf\u4e00\u4e2a\u8d44\u6e90\u521b\u5efa\u8017\u8d39\u7684\u65f6\u95f4\u3002\u5982\u679c\u4f60\u60f3\u77e5\u9053\u66f4\u8be6\u7ec6\u7684\u4fe1\u606f\uff0c\u70b9\u51fb&nbsp;<code>\"Analyzer\"<\/code>&nbsp;\u9009\u9879\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u5982\u679c\u4f60\u60f3\u8981\u5bf9\u5e94\u7528\u7684\u5927\u5c0f\u505a\u4f18\u5316\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u7528\u8fd9\u4e2a\u5de5\u5177\u6765\u5206\u6790\u54ea\u4e9b\u9759\u6001\u8d44\u6e90\u592a\u5927\uff0c\u53ef\u4ee5\u9002\u5f53\u51cf\u5c0f\u3002<\/p>\n<h3>\u672c\u5730\u5316<\/h3>\n<p>\u5728\u65e9\u4e9b\u65f6\u5019\uff0c\u6211\u4eec\u5b89\u88c5\u4e86Vuei18n\u63d2\u4ef6\u3002\u5f53\u6211\u4eec\u5b89\u88c5\u5b8c\u8fd9\u4e2a\u63d2\u4ef6\uff0c\u4e00\u4e2a\u989d\u5916\u7684\u5b50\u83dc\u5355\uff0c\u63d0\u4f9b\u4e86\u6211\u4eec\u914d\u7f6e\u672c\u5730\u5316\u7684\u9009\u9879\u3002<\/p>\n<p style=\"text-align: center\">\n<p>\u5f53\u6211\u4eec\u8bbf\u95ee\u672c\u5730\u5316\u914d\u7f6e\u7684\u9875\u9762\u7684\u65f6\u5019\uff0c\u6211\u4eec\u4f1a\u53d1\u73b0\u201cEnglish\u201d\u5df2\u7ecf\u662f\u9ed8\u8ba4\u914d\u8d44\uff0c\u5e76\u4e14\u6709\u4e00\u4e2a\u9ed8\u8ba4\u7684\u4f8b\u5b50\u201dhello i18n!\u201d\u3002\u6211\u4eec\u672c\u5730\u5316\u6240\u6709\u7684\u6587\u672c\uff0c\u6211\u4eec\u9700\u8981\u9009\u62e9\u6dfb\u52a0\u6211\u4eec\u8981\u652f\u6301\u7684\u8bed\u8a00\u3002\u9996\u5148\uff0c\u70b9\u51fb<code>\"Add locale\"<\/code>&nbsp;\u6309\u94ae\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u5728\u672c\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9009\u62e9\u6dfb\u52a0\u6cd5\u8bed\u201dfr\u201d\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u53ef\u4ee5\u5c06\u6240\u6709\u7684\u82f1\u8bed\u90fd\u7ffb\u8bd1\u5230\u5bf9\u4e8e\u7684\u6cd5\u8bed\u3002<\/p>\n<p style=\"text-align: center\">\n<p>\u5982\u679c\u6211\u4eec\u53bb\u67e5\u770b\u4ee3\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u5bf9\u5e94\u7684\u4ee3\u7801\u6587\u4ef6\uff1a<\/p>\n<p style=\"text-align: center\">\n<p>\u4f60\u53ef\u4ee5\u770b\u5230\uff0c\u867d\u7136\u8fd8\u662fBeta\u7248\u672c\uff0cVue UI\u5c06\u4f1a\u662f\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684\u5de5\u5177\u3002<\/p>\n<p>\u539f\u6587:&nbsp;Vue UI: A First Look&nbsp; &nbsp; &nbsp;\u672c\u6587\u91c7\u7528\u610f\u8bd1\uff0c\u7248\u6743\u5f52\u539f\u4f5c\u8005\u6240\u6709\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[[261863]] \u8bd1\u8005\u6309\uff1a&nbsp;Vue.js\u76f8\u5173\u7684\u5f00\u53d1\u5de5\u5177\u8d8a\u6765\u4e0e\u597d\u7528\uff01 \u968f\u7740***\u7684\u7a33\u5b9a\u7248\u672cVue  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":371811,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-371810","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/371810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=371810"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/371810\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media\/371811"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=371810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=371810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=371810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}