摘要: <template> <div :style="conheight"> </template> <script> export default{ data(){ conheight:{ height:'' } }, methods:{ getHeight(){ this.conheight.heig 阅读全文
posted @ 2020-08-08 10:44 webapp1 阅读(1064) 评论(0) 推荐(0) 编辑
摘要: 1:cnpm i vue-resource -S 开发依赖 2:import vueResource from 'vue-resource' 引入 3:Vue.use(vueResource) 安装 安装完就可以在所有组件中使用this.$http发送请求 阅读全文
posted @ 2020-08-07 08:57 webapp1 阅读(157) 评论(0) 推荐(0) 编辑
摘要: MUI 不同于 Mint-UI,MUI只是开发出来的一套好用的代码片段,里面提供了配套的样式、配套的HTML代码段,类似于 Bootstrap; 而 Mint-UI,是真正的组件库,是使用 Vue 技术封装出来的 成套的组件,可以无缝的和 VUE项目进行集成开发; 因此,从体验上来说, Mint-U 阅读全文
posted @ 2020-08-06 10:08 webapp1 阅读(241) 评论(0) 推荐(0) 编辑
摘要: webpack中按需引入mint-UI报Error: .plugins[0][1] must be an object, false, or undefined Mint-UI官方文档:https://mint-ui.github.io/docs/#/en2/quickstart 按需引入mint- 阅读全文
posted @ 2020-08-06 09:26 webapp1 阅读(1128) 评论(0) 推荐(0) 编辑
摘要: 使用方式 在项目中安装 vue npm i vue -S 在 webpack 中推荐我们使用 .vue 组件模板文件定义组件,webpack 不能打包解析这种类型的文件,所以我们要去安装能够解析这种文件的 loader npm i vue-loader vue-template-compiler - 阅读全文
posted @ 2020-08-05 21:12 webapp1 阅读(121) 评论(0) 推荐(0) 编辑