- 博客(14)
- 收藏
- 关注
原创 vue组件 元素内自动滚动,鼠标移入暂停,支持自己滑动
vue组件 元素内自动滚动,鼠标移入暂停,支持自己滑动<!-- 组件名称: 转发数排行榜 --><!--用法: 参数说明: 使用示例:--><template> <div class="component"> <div ref="forwardScrollBox" class="list_dv" @mouseenter="mouseenter" @mouseleave="
2021-09-14 14:23:26
4167
1
原创 uni-app在picker在h5正常,在小程序初始下标正确,显示不正确
uni-app的picker在h5正常,在小程序初始下标正确,显示不正确解决方案一:解决方案二:公司一个项目需要用到2022年单年的阴阳历选择及切换功能,但我发现点击切换按钮后应该显示2022年时,在h5中无异常,在小程序中 :value=“selectValue” 初始下标正确,渲染不正确,总是年份停留在2021年,因此改了一下数据发现在小程序中最初始的渲染也是错误的,排查原因发现在小程序中是dom没刷新导致的问题。解决方案一:在data中赋值时直接计算初始数据解决方案二:方案一的解决方式对
2021-05-24 10:59:27
1431
原创 “TypeError: that.$refs.videoItem.getBoundingClientRect is not a function“
获取节点距顶部高度时使用 getBoundingClientRect() 方法报错:vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in nextTick: “TypeError: that.$refs.videoItem.getBoundingClientRect is not a function”搜到的都是在说需要在销毁阶段要取消监听scroll,我这个并不是,仔细看了下导致找不到的原因发现是我给的组件ref导致的。组件 .$refs 拿到的是VueC
2020-09-17 14:36:55
2709
1
原创 entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit
webpack打包提示文件体积过大导致The following asset(s) exceed the recommended size limit (244 KiB).This can impact web performance.entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web pe
2020-08-19 15:38:49
19717
原创 asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
webpack打包提示文件体积过大。asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).This can impact web performance.entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB).
2020-08-19 15:37:03
18174
4
原创 纯css3 animation实现多行时逐行显示隐藏(一行出现一行消失)
需要在不引用UI框架不使用js的情况下,需要用css简单实现一个多行文字时上行渐隐下行淡入的效果。
2020-08-17 13:51:32
2312
原创 vue 移动端项目,返回 keep-alive 页面时,浏览不刷新 增删改刷新
首页进入任务列表页必刷新,任务列表页向前跳转时需要缓存,人员详情页无写入操作、创建任务页不确认创建任务,返回任务列表页不变,否则刷新任务列表页面,并且在ios上页面存在使用keep-alive后返回存在scrollTop不正确的问题
2020-08-14 17:18:02
824
原创 安卓系统,启用微信浮窗 session 丢失
在安卓系统上,启用微信浮窗后打开浮窗页面时会导致sessionStorage丢失,3种解决方法:1跳转到首页/登录页,2使用local,3把参数挂在query中
2020-08-14 16:12:29
709
原创 vue 刷新当前路由内容后,点击手机返回键返回当前路由
详情页面内点击下一人时更新数据,点击手机返回键需要在当前路由显示上一人的数据;点击返回列表页按钮返回go()而不是路由跳转router.push到列表页。
2020-08-13 15:13:18
836
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人