@tarojs/taro 3.5.0-beta.0 → 3.5.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -4
- package/package.json +4 -4
- package/types/api/base/debug.d.ts +1 -1
- package/types/api/base/index.d.ts +3 -3
- package/types/api/base/performance.d.ts +5 -5
- package/types/api/base/system.d.ts +2 -2
- package/types/api/base/update.d.ts +6 -6
- package/types/api/base/weapp/app-event.d.ts +56 -17
- package/types/api/base/weapp/life-cycle.d.ts +7 -7
- package/types/api/data-analysis/index.d.ts +1 -1
- package/types/api/device/accelerometer.d.ts +3 -3
- package/types/api/device/calendar.d.ts +1 -1
- package/types/api/device/clipboard.d.ts +2 -2
- package/types/api/device/compass.d.ts +3 -3
- package/types/api/device/gyroscope.d.ts +4 -4
- package/types/api/device/keyboard.d.ts +1 -1
- package/types/api/device/memory.d.ts +1 -1
- package/types/api/device/network.d.ts +2 -2
- package/types/api/device/phone.d.ts +1 -1
- package/types/api/device/scan.d.ts +1 -1
- package/types/api/device/screen.d.ts +5 -5
- package/types/api/device/vibrate.d.ts +2 -2
- package/types/api/device/wifi.d.ts +3 -3
- package/types/api/ext/index.d.ts +2 -2
- package/types/api/files/index.d.ts +32 -32
- package/types/api/framework/index.d.ts +1 -1
- package/types/api/location/index.d.ts +9 -9
- package/types/api/media/audio.d.ts +1 -1
- package/types/api/media/background-audio.d.ts +1 -1
- package/types/api/media/camera.d.ts +8 -8
- package/types/api/media/image.d.ts +5 -5
- package/types/api/media/map.d.ts +15 -15
- package/types/api/media/recorder.d.ts +9 -9
- package/types/api/media/video.d.ts +2 -2
- package/types/api/navigate/index.d.ts +2 -2
- package/types/api/network/download.d.ts +5 -5
- package/types/api/network/request.d.ts +3 -3
- package/types/api/network/upload.d.ts +5 -5
- package/types/api/network/websocket.d.ts +6 -6
- package/types/api/open-api/address.d.ts +1 -1
- package/types/api/open-api/authorize.d.ts +1 -1
- package/types/api/open-api/settings.d.ts +2 -2
- package/types/api/open-api/subscribe-message.d.ts +2 -2
- package/types/api/open-api/user-info.d.ts +2 -2
- package/types/api/route/index.d.ts +5 -5
- package/types/api/share/index.d.ts +2 -2
- package/types/api/storage/index.d.ts +10 -10
- package/types/api/ui/animation.d.ts +32 -32
- package/types/api/ui/interaction.d.ts +6 -6
- package/types/api/ui/menu.d.ts +1 -1
- package/types/api/ui/navigation-bar.d.ts +5 -5
- package/types/api/ui/pull-down-refresh.d.ts +2 -2
- package/types/api/ui/scroll.d.ts +4 -2
- package/types/api/ui/tab-bar.d.ts +8 -8
- package/types/api/wxml/index.d.ts +16 -16
- package/types/compile.d.ts +8 -0
- package/types/global.d.ts +1 -1
- package/types/taro.component.d.ts +1 -0
- package/types/taro.config.d.ts +16 -0
- package/types/taro.hooks.d.ts +34 -0
package/types/taro.config.d.ts
CHANGED
|
@@ -359,6 +359,22 @@ declare module './index' {
|
|
|
359
359
|
/** 视频号直播打开的第一个页面的全屏状态使用自定义顶部,支持 */
|
|
360
360
|
firstPageNavigationStyle?: 'default' | 'custom'
|
|
361
361
|
}
|
|
362
|
+
/** 小程序调试相关配置项 */
|
|
363
|
+
debugOptions?: {
|
|
364
|
+
/** 是否开启 FPS 面板,默认false */
|
|
365
|
+
enableFPSPanel?: boolean
|
|
366
|
+
}
|
|
367
|
+
/** touch 事件监听是否为 passive,默认false */
|
|
368
|
+
enablePassiveEvent?: boolean | {
|
|
369
|
+
/** 是否设置 touchstart 事件为 passive,默认false */
|
|
370
|
+
touchstart?: boolean
|
|
371
|
+
/** 是否设置 touchmove 事件为 passive,默认false */
|
|
372
|
+
touchmove?: boolean
|
|
373
|
+
/** 是否设置 wheel 事件为 passive,默认false */
|
|
374
|
+
wheel?: boolean
|
|
375
|
+
}
|
|
376
|
+
/** 自定义模块映射规则 */
|
|
377
|
+
resolveAlias?: Record<string, string>
|
|
362
378
|
/** 接受一个数组,每一项都是字符串,来指定编译为原生小程序组件的组件入口 */
|
|
363
379
|
components?: string[]
|
|
364
380
|
/** 渲染页面的容器 id
|
package/types/taro.hooks.d.ts
CHANGED
|
@@ -52,6 +52,40 @@ declare module './index' {
|
|
|
52
52
|
*/
|
|
53
53
|
useShareTimeline(callback: () => ShareTimelineReturnObject): void
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* 页面销毁前保留状态回调
|
|
57
|
+
* **仅微信小程序支持。**
|
|
58
|
+
*/
|
|
59
|
+
useSaveExitState(callback: () => {
|
|
60
|
+
data: Record<any, any>
|
|
61
|
+
expireTimeStamp?: number
|
|
62
|
+
}): void
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* 小程序初始化完成时的回调。
|
|
66
|
+
*/
|
|
67
|
+
useLaunch(callback: (options: getLaunchOptionsSync.LaunchOptions) => void): void
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* 小程序发生脚本错误或 API 调用报错时触发的回调。
|
|
71
|
+
*/
|
|
72
|
+
useError(callback: (error: string) => void): void
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 小程序要打开的页面不存在时触发的回调。
|
|
76
|
+
*/
|
|
77
|
+
usePageNotFound(callback: (res: { path: string, query: Record<any, any>, isEntryPage: boolean, [key: string]: any }) => void): void
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* 页面加载完成时的回调。
|
|
81
|
+
*/
|
|
82
|
+
useLoad(callback: () => void): void
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* 页面卸载时的回调。
|
|
86
|
+
*/
|
|
87
|
+
useUnload(callback: () => void): void
|
|
88
|
+
|
|
55
89
|
/**
|
|
56
90
|
* 页面初次渲染完成的回调。
|
|
57
91
|
* 此时页面已经准备妥当,可以和视图层进行交互。
|