摘要: 实现方法如下 使用.native 实现原生事件 <router-link to="" @click.native="dialogWithdraw=true">跳转</router-link> 阅读全文
posted @ 2018-07-25 15:25 菜鸡~大神 阅读(1661) 评论(0) 推荐(0) 编辑
摘要: 两种方式实现element-ui组件的样式 方案1:重置的公共组件样式的写法如下 然后在main.js中引入 import '@/assets/css/element.css' 方案2:每个.vue文件 - 组件的细节调整 <template> // 给根元素绑定一个id <div id="home 阅读全文
posted @ 2018-07-25 15:22 菜鸡~大神 阅读(9865) 评论(0) 推荐(0) 编辑
摘要: 方案1、在main.js中引入方式 import '@/assets/css/reset.css' 方案2、在.vue文件的<style/>标签里面引入 @import "../assets/css/index.css"; 阅读全文
posted @ 2018-07-24 17:37 菜鸡~大神 阅读(8511) 评论(0) 推荐(0) 编辑
摘要: 把图片路径写在data里面,然后渲染模板的两种方式 方案1、在data使用require将图片进入,写法如下 logo: require('../asset/admin/logo.png') 在模板中渲染 <img :src="logo"> 方案2、把图片放在static文件夹中,如下 在data中 阅读全文
posted @ 2018-07-24 17:33 菜鸡~大神 阅读(1849) 评论(0) 推荐(0) 编辑
摘要: 增加样式级别就行啦 .el-table--enable-row-hover .el-table__body tr:hover>td{ background-color: #212e3e !important; } 增加样式级别就行啦 .el-table--enable-row-hover .el-t 阅读全文
posted @ 2018-07-22 22:36 菜鸡~大神 阅读(22564) 评论(0) 推荐(4) 编辑
摘要: <template> <div class="div"> //组建使用 <v-header @click.native="handleClick"></v-header> </div></template> <script> //引入组建 import vHeader from './compone 阅读全文
posted @ 2018-07-19 23:14 菜鸡~大神 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 1.在main.js中注册全局的bus Vue.prototype.bus=new Vue(); 2.在组建中使用 子组建使用:this.bus.$emit('自定义事件名',data) methods:{ handleClicks(){ this.bus.$emit('openMenu',true 阅读全文
posted @ 2018-07-19 23:01 菜鸡~大神 阅读(3036) 评论(0) 推荐(0) 编辑
摘要: 1.对于IE9+、chrome、firefox、Opera、Safari: window.innerHeight浏览器窗口的内部高度; window.innerWidth浏览器窗口的内部宽度; 2.对于IE8.7.6.5: document.documentElement.clientHeight: 阅读全文
posted @ 2018-07-19 22:42 菜鸡~大神 阅读(777) 评论(0) 推荐(0) 编辑
摘要: <style> ul{ width: 320px; //给父元素添加这两个属性 font-size: 0px; text-align: center/left; } li{ width: 100px; height: 100px; margin-right: 10px; margin-bottom: 阅读全文
posted @ 2018-07-17 23:10 菜鸡~大神 阅读(593) 评论(0) 推荐(0) 编辑
摘要: <head> //引入相关的css/js <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <script src="jquery-3.3.1.min.js"></sc 阅读全文
posted @ 2018-07-17 22:56 菜鸡~大神 阅读(908) 评论(0) 推荐(0) 编辑