07 2020 档案
摘要:一、mixin混入 mixin即合并公共方法: 可以设置通用的方法或者变量 外部mixin 如下: 全局mixin:Vue.mixin = ({}) export const m1 = { data(){ return { nickname: '张三' // data的变量会被单页里定义的给覆盖 }
阅读全文
摘要:<template> <div class="app-container"> <el-table :data="tableData3" style="width: 100%"> <el-table-column width="120" prop="date"></el-table-column> <
阅读全文
摘要:html: <div class="myTree" id="myTree"> <el-form-item :label="labelTitle" :label-width="labelWidth" :prop="prop"> <el-input v-model="orgName" :placehol
阅读全文
摘要:js 获取当前月份 第一天和最后一天 var now = new Date(); //当前日期 var nowMonth = now.getMonth(); //当前月 var nowYear = now.getFullYear(); //当前年 //本月的开始时间 var monthStartDa
阅读全文
摘要:参考: https://www.cnblogs.com/liujn0829/p/8622960.htmlhttps://blog.csdn.net/z8735058/article/details/76824548 一、单个过滤器 参考 https://cn.vuejs.org/v2/guide/f
阅读全文
摘要:tree的数据结构: tree = [ { check: false, children: [ check: false, children: [ { { check: false, children: [ { check: false, children: [], code: "SD2016082
阅读全文
摘要:直接贴代码了: <div @click="goPage('http://www.chao99.top')">点我</div> goPage (url) { window.location.href = url }
阅读全文
摘要:在学习vue自定义事件的.sync修饰符实现改变数值时发现一个问题如下由于props的大小写命名:fatherNum,对应不同的$emit()会有不同的效果,具体如下: 使用.sync修饰符,即 // this.$emit('update:father-num',100); //无效 this.$e
阅读全文