@tuya-miniapp/api-types
Advanced tools
Comparing version
{ | ||
"name": "@tuya-miniapp/api-types", | ||
"version": "1.1.17", | ||
"version": "1.1.18", | ||
"description": "小程序框架运行时 API types 定义", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -903,2 +903,6 @@ declare namespace SmartMiniprogram { | ||
interface SetWidgetHeightOptions { | ||
height: number; | ||
} | ||
interface TY { | ||
@@ -1238,2 +1242,11 @@ /** | ||
canIUse(schema: string): boolean; | ||
/** | ||
* 动态设置当前 Widget 高度, 仅在 Widget 下支持 | ||
* @param options 设置参数 | ||
* @param options.height 设置的高度, 单位: px | ||
* @example | ||
* ty.setWidgetHeight({ height: 100 }) | ||
*/ | ||
setWidgetHeight(options: SetWidgetHeightOptions): void; | ||
} | ||
@@ -1240,0 +1253,0 @@ |
84248
0.42%2348
0.47%