上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
  2022年1月5日
摘要: 安装 npm install awe-dnd --save 应用 在main.js中,通过Vue.use导入插件 import VueDND from 'awe-dnd' Vue.use(VueDND) 使用方法 <template> <div class="color-list"> <div cl 阅读全文
posted @ 2022-01-05 15:16 仔仔爱学习 阅读(413) 评论(0) 推荐(0)
  2021年12月29日
摘要: //对象转可传递的URL参数function toQueryString(obj) { var qstring = "?" for (var k in obj) { if(qstring=="?"){ qstring += k + "=" + obj[k] } else { qstring += " 阅读全文
posted @ 2021-12-29 13:54 仔仔爱学习 阅读(102) 评论(0) 推荐(0)
  2021年12月15日
摘要: <i-switch v-model="+row.status" size="large" :true-value="1" :false-value="0" :before-change="handleBeforeChange.bind(this,row)"></i-switch> handleBef 阅读全文
posted @ 2021-12-15 16:18 仔仔爱学习 阅读(1270) 评论(0) 推荐(0)
  2021年11月29日
摘要: 可以在遮罩层中添加 @touchmove.prevent 就可以实现禁止页面滚动 注意 弹窗里面有滚动条的也是无法滚动的 具体使用 父标签上添加 @touchmove.prevent <div @touchmove.prevent> </div> ps:转载于https://www.cnblogs. 阅读全文
posted @ 2021-11-29 09:43 仔仔爱学习 阅读(1918) 评论(0) 推荐(0)
  2021年11月25日
摘要: 1、一般用webpack来新建项目,方便管理,开发中,线上 npm install -g vue-cli vue init webpack projectName 或者 vue init webpack-simple projectName 2、简单的新建项目 vue create hello-wo 阅读全文
posted @ 2021-11-25 14:59 仔仔爱学习 阅读(129) 评论(0) 推荐(0)
  2021年11月15日
摘要: 修改第一层的数据,是可以让dom生效的 this,$emit(arr,index,val) arr:原数据 index:第几个 val:修改后的值 阅读全文
posted @ 2021-11-15 14:41 仔仔爱学习 阅读(49) 评论(0) 推荐(0)
  2021年11月11日
摘要: props: { demoString: { type: String, default: '' }, demoNumber: { type: Number, default: 0 }, demoBoolean: { type: Boolean, default: true }, demoArray 阅读全文
posted @ 2021-11-11 11:09 仔仔爱学习 阅读(232) 评论(0) 推荐(0)
摘要: 1、时间戳转时间 function formatDateDay(value,type='-') { if(value) { let date = new Date(parseInt(value) * 1000) let Y=date.getFullYear() let M = (date.getMo 阅读全文
posted @ 2021-11-11 10:24 仔仔爱学习 阅读(838) 评论(0) 推荐(0)
摘要: 1、方法一:Vue利用visibilitychange监听页面显示和隐藏 mounted() { document.addEventListener('visibilitychange', _this.handleVisiable) }, destroyed() { document.removeE 阅读全文
posted @ 2021-11-11 10:17 仔仔爱学习 阅读(1475) 评论(0) 推荐(0)
摘要: 1、上下顶边 display: flex; flex-direction:row; flex-wrap:wrap; align-content:space-between; 2、垂直居中 display:flex; align-items:center;/*垂直居中*/ justify-conten 阅读全文
posted @ 2021-11-11 09:59 仔仔爱学习 阅读(410) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页