摘要: "author": "y", "private": true, "scripts": { "dev": "cross-evn NODE_ENV=dev webpack-dev-server --inline --progress --config build/webpack.dev.conf.js" 阅读全文
posted @ 2020-01-09 18:00 不服憋着 阅读(122) 评论(0) 推荐(0)
摘要: 父组件 provide () { const vm = this return { getinternalApi (api) { vm.audioapi = api } } } 子组件 inject: [''getinternalApi] computed: { if(typeof this.get 阅读全文
posted @ 2019-12-04 09:30 不服憋着 阅读(125) 评论(0) 推荐(0)
摘要: 1.安装: cnpm install --save nprogress 2.在main.js中引入: 1 import NProgress from 'nprogress' 2 import 'nprogress/nprogress.css' 3.在main.js中进行配置: 1 NProgress 阅读全文
posted @ 2019-11-29 10:44 不服憋着 阅读(264) 评论(0) 推荐(0)
摘要: <el-popover ref="popover" placement="right" title="标题" width="200" trigger="focus" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"> </el-popover> <el-button v- 阅读全文
posted @ 2019-11-28 15:32 不服憋着 阅读(2413) 评论(0) 推荐(0)
摘要: onplay(res){ const target = res.target const audios = document.getelementbyTagName('audio') [...audios].foreach( (item) => { if(item !== target){ item 阅读全文
posted @ 2019-11-28 09:13 不服憋着 阅读(472) 评论(0) 推荐(0)
摘要: <el-table-column prop="Name" label="姓名" :render-header="renderHeader" ></el-table-column> //组件的method方法renderHeader(h,para) { //该列的绑定数据 console.log(pa 阅读全文
posted @ 2019-11-07 11:17 不服憋着 阅读(4108) 评论(0) 推荐(0)
摘要: this.$alert('确认删除吗', '提示', { confirmButtonText: '确定', callback: action => { this.function() } }); this.$alert('确认删除吗', '提示', { }); 阅读全文
posted @ 2019-10-30 17:50 不服憋着 阅读(12264) 评论(0) 推荐(0)
摘要: filter:lodash.debounce(function(newVal){ 代码块 },1000) 阅读全文
posted @ 2019-10-17 15:40 不服憋着 阅读(2247) 评论(0) 推荐(0)
摘要: word-wrap: break-word; word-break: break-all; overflow: hidden; word-wrap: break-word; word-break: break-all; overflow: hidden; 阅读全文
posted @ 2019-05-16 17:01 不服憋着 阅读(110) 评论(0) 推荐(0)
摘要: initDependLink(arr) { let links = {}; for (let item of arr) { if (!links[item.target]) { links[item.target] = []; } links[item.target].push(item.sourc 阅读全文
posted @ 2019-04-20 17:15 不服憋着 阅读(501) 评论(0) 推荐(0)