From 53bfa1faef72f6c0cf2df6fde34dd8b7c2704917 Mon Sep 17 00:00:00 2001 From: Xiawei Date: Sun, 18 Jun 2023 14:42:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#1=20[api]=20wx.onWindowResize=20?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=8F=82=E6=95=B0=E7=BC=BA=E5=B0=91=20screen?= =?UTF-8?q?Width=E3=80=81screenHeight=EF=BC=8C=E5=AE=9E=E9=99=85=E6=9C=89?= =?UTF-8?q?=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/wx/lib.wx.api.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/wx/lib.wx.api.d.ts b/types/wx/lib.wx.api.d.ts index deb34de..3a8af2d 100644 --- a/types/wx/lib.wx.api.d.ts +++ b/types/wx/lib.wx.api.d.ts @@ -7480,6 +7480,10 @@ wx.createSelectorQuery() windowHeight: number /** 变化后的窗口宽度,单位 px */ windowWidth: number + /** 屏幕高度,单位px */ + screenHeight: number + /** 屏幕宽度,单位px */ + screenWidth: number } /** 当前运行环境对于 [Skyline 渲染引擎](https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/introduction.html) 的支持情况 */ interface SkylineInfo {