>》>》>》>》
上一页 1 2 3 4 5 6 7 8 ··· 19 下一页
摘要: 理想这样 显示是这样 slot失效了 显示的是prop的值 解决: 需要在其和其之后的一个显示的组件上添加 :key="Math.random()" 完美搞定 原因: 是因为表格是element-ui通过循环产生的 而vue在dom重新渲染时有一个性能优化机制, 就是相同dom会被复用, 通过key 阅读全文
posted @ 2019-12-27 14:46 大、锤 阅读(1592) 评论(0) 推荐(0) 编辑
摘要: <el-tree :data="data" show-checkbox default-expand-all ref="tree" node-key="id" :props="defaultProps" :default-checked-keys="defaultSelect" @node-clic 阅读全文
posted @ 2019-12-25 18:54 大、锤 阅读(17121) 评论(1) 推荐(0) 编辑
摘要: 输入vue.json { "Print to console": { "prefix": "vv", "body": [ "<template>", " <div>$0</div>", "</template>", "", "<script>", "export default {", "", " 阅读全文
posted @ 2019-12-23 17:12 大、锤 阅读(2696) 评论(0) 推荐(0) 编辑
摘要: 1.显示工具栏 点击文件,选择首选项,点击设置按钮 搜索workbench,勾选上Workbench> Activity Bar:Visble 勾选上后,工具栏就显示出来了 2.移动工具栏选中工具栏部分,右键选择Move Side Bar Right,如果工具栏在右边,同样操作选择Move Side 阅读全文
posted @ 2019-12-14 21:58 大、锤 阅读(6979) 评论(1) 推荐(1) 编辑
摘要: 第一种: router.js中添加 mode: 'history', srcollBehavior(to,from,savedPosition){ if(to.hash){ return { selector:to.hash } } } 组件: <template> <div> <ul class= 阅读全文
posted @ 2019-12-13 19:36 大、锤 阅读(1656) 评论(0) 推荐(0) 编辑
摘要: up(index) { if(index 0) { return } //在上一项插入该项 this.list.splice(index - 1, 0, (this.list[index])) //删除后一项 this.list.splice(index + 1, 1) this.save(); } 阅读全文
posted @ 2019-12-13 16:33 大、锤 阅读(4645) 评论(0) 推荐(1) 编辑
摘要: 用 @load="loading" 在Vue里面写了一个界面,有一个iframe标签, iframe加载其他网站, <iframe @load="loading" id="iframe" ref="ifrane"> </iframe> public loading() { this.iframe = 阅读全文
posted @ 2019-12-12 22:07 大、锤 阅读(4448) 评论(0) 推荐(0) 编辑
摘要: 1. Thu Mar 07 2019 12:00:00 GMT+0800 (中国标准时间) 转换为 2019-03-07 12:00:00 const d = new Date(Thu Mar 07 2019 12:00:00 GMT+0800 (中国标准时间)) const resDate = d 阅读全文
posted @ 2019-12-12 16:14 大、锤 阅读(6982) 评论(0) 推荐(0) 编辑
摘要: 矢量图(即放大不失真) 1.font awesome; 优点:相对比较简单,查看官网看例子基本上都会用 (http://www.bootcss.com/p/font-awesome/) 缺点:文件较大,影响加载速度 注意引用的路径和版本; 2.inconfont(阿里巴巴矢量图标库); (个人用的最 阅读全文
posted @ 2019-12-11 16:35 大、锤 阅读(719) 评论(0) 推荐(0) 编辑
摘要: var obj = {}; var arr = [1,2,3,4,5]; for (var x in arr){ obj[x] = x; } 2.ES6的Object.assign: Object.assign({}, ['a','b','c']); // {0:"a", 1:"b", 2:"c"} 阅读全文
posted @ 2019-12-10 21:17 大、锤 阅读(3533) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 19 下一页