09 2020 档案

摘要:本案例结合vant组件实现。思路是一样的。 关键词:Vue-2,checkbox的disabled属性和change事件,v-if判断 template: <van-checkbox-group v-model="isChe" @change="checkboxChange()"> <van-che 阅读全文
posted @ 2020-09-19 16:10 伟笑 阅读(1796) 评论(0) 推荐(0) 编辑
摘要:表格数据宽度自适应方案。网上的有点麻烦,简单的就是让超出出现提示。 <el-table class="table" :data="Data" border stripe height="322" width="100%"> <el-table-column prop="jzmc" show-over 阅读全文
posted @ 2020-09-15 11:48 伟笑 阅读(847) 评论(0) 推荐(0) 编辑
摘要:1、grid:调整视图在容器中位置,类似于调整上下左右padding ; grid: { top: '15%', bottom: '20%', right: '5%', left: '5%' }, 2、当X轴文本过长,文本斜着显示,倾斜 xAxis: { type: "category", axis 阅读全文
posted @ 2020-09-14 11:37 伟笑 阅读(126) 评论(0) 推荐(0) 编辑
摘要:对象解构: https://www.jianshu.com/p/fed61b907ab5 数组解构: https://www.jianshu.com/p/a8f74b29d0d1 阅读全文
posted @ 2020-09-06 11:38 伟笑 阅读(122) 评论(0) 推荐(0) 编辑
摘要:map和forEach都用于遍历数组,forEach没有返回值。map返回值是新的数组。 <script> let arr = [ {title:'aaa',read:50}, {title:'bbb',read:50}, {title:'ccc',read:50} ]; let newArr = 阅读全文
posted @ 2020-09-05 11:22 伟笑 阅读(1918) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示