摘要: computed中函数传参(利用闭包) 这样会报错 <p :class="today(index)?'active':''">{{date[defaultWeekIndex].date[index]}}</p> computed: { today(index) { const { defaultWeekIndex, date } = th 阅读全文
posted @ 2022-03-28 14:40 吴小明- 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 利用绝对定位实现日程渲染 效果: 1、数据结构:Calendar/data.js export const data = [ { id: 0, hour: '00:00' }, { id: 1, hour: '01:00' }, { id: 2, hour: '02:00' }, { id: 3, hour: '03:00' 阅读全文
posted @ 2022-03-28 09:26 吴小明- 阅读(30) 评论(0) 推荐(0) 编辑