antd pro of vue学习使用
一、安装 在安装antd之前,请确保已安装node,git,yarn以及开发工具vscode。 下载:git clone --depth=1 https://github.com/sendya/ant-design-pro-vue.git my-project 安装:yarn install 运行:yarn run serve 二、vscode设置 安装中文简体插件和eslint插件,eslint用于规范代码格式。 在vscode中选择文件-》首选项-》设置,搜索eslint,建议添加如下配置到setting.json中,添加之后可以自动格式化代码和进行错误提示。 { "vetur.format.defaultFormatter.js": "prettier-eslint", "vetur.format.defaultFormatter.html": "js-beautify-html", "vetur.format.defaultFormatterOptions": { "wrap_attributes": "force-aligned" }, "editor.detectIndentation": false, // 重新设定tabsize "editor.tabSize": 2, // "editor.formatOnSave": true, // 保存时自动格式化 -