摘要: 1.插件和组件的关系 在没有封装组件之前,如果不使用第三方插件,那么很多情况下我们会编写几个常用的组件来提供给页面使用,如Alert/Loading组件,而你可能需要在很多页面中引入并且通过components注册组件,但是像这样使用率很高的组件一般我们希望全局注册后直接就可以在相应页面使用,因此我 阅读全文
posted @ 2019-06-15 16:16 手指乐 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1.使用 安装或更新: npm install vux --save npm install vux-loader --save 如果没有安装less: npm install less less-loader --save-dev 在build/webpack.base.conf.js里配置 把之 阅读全文
posted @ 2019-06-15 10:47 手指乐 阅读(445) 评论(0) 推荐(0) 编辑