vue -init

# 一、脚手架 npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm install --global vue-cli https://www.cnblogs.com/winter92/p/7117057.html # 二、vscode vue ## create by vue-cli ### 方式1:vue create constrat-demo vue --version 切换源 https://www.cnblogs.com/saysmy/p/10064573.html ``` cmd PS E:\2019-记录\pre-project\Vue-pro> vue create constrat-demo vue create is a Vue CLI 3 only command and you are using Vue CLI 2.9.6. You may want to run the following to upgrade to Vue CLI 3: npm uninstall -g vue-cli npm install -g @vue/cli C:\Users\Administrator>cnpm install -g @vue/cli ``` ### 方式2:vue init webpack constrat-demo ```cmd PS E:\2019-记录\pre-project\Vue-pro> vue init webpack constrat-demo ? Project name constrat-demo ? Project description 合同原型demo ? Author hecore ? Vue build standalone ? Install vue-router? Yes ? Use ESLint to lint your code? Yes ? Pick an ESLint preset Standard ? Set up unit tests Yes ? Pick a test runner jest ? Setup e2e tests with Nightwatch? Yes ? Should we run `npm install` for you after the project has been created? (recommended) npm vue-cli · Generated "constrat-demo". ``` npm ERR! Unexpected end of JSON input while parsing near '...elljs-release":"^0.2.' (1)npm install --registry=https://registry.npm.taobao.org --loglevel=silly 可以不执行 (2) npm cache clean --force (3) npm install 也可以 cnpm install(更快速) https://blog.csdn.net/weixin_40811829/article/details/84641628 https://npm.taobao.org/ ## ele-ui 使用 ### 1.安装npm依赖 ```cmd npm i element-ui -S ``` ### 2.引入element-ui https://element.eleme.cn/#/zh-CN 全局配置引入Element,打开main.js ![image.png](https://cos.easydoc.net/24916735/files/k6al407z.png) https://www.jianshu.com/p/90b97d5ca6c0 https://github.com/BothEyes1993/bes-ui ## nuxt.js https://nuxtjs.org/guide/installation # Refer https://www.jianshu.com/p/90b97d5ca6c0 Excel一个单元格换行用alt+回车 https://www.cnblogs.com/wnxyz8023/p/9989447.html https://www.cnblogs.com/wnxyz8023/p/9989447.html https://msd.misuland.com/pd/2884250171976191490 https://www.cnblogs.com/wenjunwei/p/9684706.html http://www.bslxx.com/a/vue/element_ui/2017/1124/1458.html http://www.360doc.com/content/19/0411/16/13328254_828071878.shtml https://blog.csdn.net/assiduous_me/article/details/89210533