- scroll-x scroll-y 同时启用时,scrollTo 方法的 left 参数不生效
如果 scroll-view 组件同时启用 scroll-x 和 scroll-y, 调用ScrollViewContext 的 scrollTo 方法,只有 top 会生效,left 参数无效。 <scroll-view class="scroll-view" enhanced scroll-x scroll-y style="width: 100vw; height: 100vh;"> <view style="width:200vw;height:200vh;background:gray;box-shadow: inset 0 0 0 10px red;"></view> </scroll-view> wx.createSelectorQuery() .select('.scroll-view') .node((res) => { res.node.scrollTo({ top: 100, left: 100, // left 不生效,除非把组件的 scroll-x 属性删除 }) }) .exec();
星期二 11:30 - 数据看板的文案出现奇怪的占位符$$##$$1$$##$$?
[图片]
07-29 - vConsole 会出现在左上角,被状态栏挡住,点不到
[图片]
05-28 - 开发者工具的截屏截图不全,缺少导航栏和系统弹窗?
模拟操作-截屏,输出的截图不完整,缺了导航栏和系统弹窗。 [图片]
05-09 - 切换页面方向胶囊按钮位置信息没有更新 getMenuButtonBoundingClientRect
机型:魅族 20 通过 <page-meta page-orientation="landscape"> 切换横屏后,wx.getMenuButtonBoundingClientRect() 返回的还是切换前的位置信息,而且也没有触发 wx.onMenuButtonBoundingClientRectWeightChange 事件
03-24 - wx.onUserCaptureScreen 的监听函数怎么使用?
文档中 return 的 query 参数是用在哪里的,截图又不会带上小程序码,什么叫通过截屏图片打开小程序? wx.onUserCaptureScreen(function (res) { console.log('用户截屏了') return { query: "parameter=test", // 通过截屏图片打开小程序的query参数 promise: new Promise((resolve) => { // 通过promise延时传递小程序的query参数 setTimeout(() => { resolve({ query: "parameter=test2", }) }, 1000) // 在1秒内对query进行解析 }) } } )
2024-01-09 - skyline 渲染模式下,border-x-color 会导致 border-radius 失效
应该渲染为圆形,但单独设置边框颜色后,border-radius 就无效了 .intro { margin: 100px auto; width: 100px; height: 100px; border: 5px solid red; border-top-color: blue; border-radius: 50%; } [图片]
2023-11-24 - 无法安装 WakaTime 扩展?提示不兼容"微信开发者工具”
Error:无法安装扩展名'wakatime.vscode-wakatime'’,因为它不兼容“微信开发者工具” '1.52.0'。 VS 扩展:https://marketplace.visualstudio.com/items?itemName=WakaTime.vscode-wakatime [图片]
2023-10-20 - scroll-view 组件 drag 事件不支持冒号绑定函数
webview 模式下,scroll-view 组件的 dragstart/dragging/dragend 事件无法通过 bind:dragstart 冒号写法绑定,只能使用 binddragstart 这种写法。 <scroll-view enhanced scroll-y style="border:1px solid red; height:200px" bind:dragstart="eventHandler" bind:dragging="eventHandler" bind:dragend="eventHandler" > <view>这种写法不起作用</view> ... <view>这种写法不起作用</view> </scroll-view> <scroll-view enhanced scroll-y style="border:1px solid red; height:200px" binddragstart="eventHandler" binddragging="eventHandler" binddragend="eventHandler" > <view>只能这么写</view> ... <view>只能这么写</view> </scroll-view>
2023-09-25 - iOS横屏模式下wx.getSystemInfoSync的statusBarHeight应该为0
iOS 横屏模式下 wx.getSystemInfoSync 的状态栏高度statusBarHeight应该为0。 但真机实际返回了48
2022-12-16