@tarojs/taro-h5 3.5.10 → 3.6.0-alpha.0
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/dist/api/device/clipboard.js +2 -1
- package/dist/api/location/chooseLocation.js +4 -4
- package/dist/api/location/getLocation.js +2 -2
- package/dist/api/media/image/chooseImage.js +2 -2
- package/dist/api/media/image/getImageInfo.js +2 -2
- package/dist/api/media/image/previewImage.js +2 -1
- package/dist/api/media/video/index.js +2 -2
- package/dist/api/network/request/index.js +9 -8
- package/dist/api/network/websocket/index.d.ts +1 -1
- package/dist/api/network/websocket/index.js +3 -3
- package/dist/api/network/websocket/socketTask.js +7 -6
- package/dist/api/taro.js +2 -1
- package/dist/api/ui/interaction/index.js +10 -4
- package/dist/api/ui/interaction/modal.d.ts +1 -0
- package/dist/api/ui/interaction/modal.js +9 -1
- package/dist/api/ui/interaction/toast.d.ts +1 -0
- package/dist/api/ui/interaction/toast.js +9 -1
- package/dist/api/ui/navigation-bar/index.d.ts +1 -1
- package/dist/api/ui/pull-down-refresh.js +4 -4
- package/dist/api/ui/scroll/index.js +3 -3
- package/dist/api/ui/tab-bar.js +16 -16
- package/dist/api/wxml/IntersectionObserver.d.ts +20 -0
- package/dist/api/wxml/IntersectionObserver.js +104 -0
- package/dist/api/wxml/MediaQueryObserver.d.ts +7 -0
- package/dist/api/wxml/MediaQueryObserver.js +50 -0
- package/dist/api/wxml/index.d.ts +2 -1
- package/dist/api/wxml/index.js +8 -2
- package/dist/api/wxml/nodesRef.d.ts +1 -0
- package/dist/api/wxml/selectorQuery.js +3 -2
- package/dist/index.cjs.d.ts +5 -4
- package/dist/index.cjs.js +310 -81
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.d.ts +5 -4
- package/dist/index.esm.js +292 -82
- package/dist/index.esm.js.map +1 -1
- package/dist/taroApis.d.ts +5 -4
- package/dist/taroApis.js +1 -1
- package/dist/utils/handler.d.ts +8 -3
- package/dist/utils/handler.js +19 -10
- package/dist/utils/index.d.ts +6 -1
- package/dist/utils/index.js +34 -6
- package/dist/utils/valid.d.ts +1 -2
- package/dist/utils/valid.js +0 -3
- package/package.json +14 -5
- package/types/global.d.ts +1 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { findDOM } from '../../utils';
|
|
2
|
+
// pollify
|
|
3
|
+
import('intersection-observer');
|
|
4
|
+
export class TaroH5IntersectionObserver {
|
|
5
|
+
constructor(component, options = {}) {
|
|
6
|
+
// 选项
|
|
7
|
+
this._options = {
|
|
8
|
+
thresholds: [0],
|
|
9
|
+
initialRatio: 0,
|
|
10
|
+
observeAll: false
|
|
11
|
+
};
|
|
12
|
+
// 监控中的选择器
|
|
13
|
+
this._listeners = [];
|
|
14
|
+
// 用来扩展(或收缩)参照节点布局区域的边界
|
|
15
|
+
this._rootMargin = {};
|
|
16
|
+
// 是否已初始化
|
|
17
|
+
this._isInited = false;
|
|
18
|
+
this._component = component;
|
|
19
|
+
Object.assign(this._options, options);
|
|
20
|
+
}
|
|
21
|
+
// selector 的容器节点
|
|
22
|
+
get container() {
|
|
23
|
+
const container = (this._component !== null
|
|
24
|
+
? (findDOM(this._component) || document)
|
|
25
|
+
: document);
|
|
26
|
+
return container;
|
|
27
|
+
}
|
|
28
|
+
createInst() {
|
|
29
|
+
// 去除原本的实例
|
|
30
|
+
this.disconnect();
|
|
31
|
+
const { left = 0, top = 0, bottom = 0, right = 0 } = this._rootMargin;
|
|
32
|
+
return new IntersectionObserver(entries => {
|
|
33
|
+
entries.forEach(entry => {
|
|
34
|
+
const _callback = this._getCallbackByElement(entry.target);
|
|
35
|
+
const result = {
|
|
36
|
+
boundingClientRect: entry.boundingClientRect,
|
|
37
|
+
intersectionRatio: entry.intersectionRatio,
|
|
38
|
+
intersectionRect: entry.intersectionRect,
|
|
39
|
+
relativeRect: entry.rootBounds || { left: 0, right: 0, top: 0, bottom: 0 },
|
|
40
|
+
time: entry.time
|
|
41
|
+
};
|
|
42
|
+
// web端会默认首次触发
|
|
43
|
+
if (!this._isInited && this._options.initialRatio <= Math.min.apply(Math, this._options.thresholds)) {
|
|
44
|
+
// 初始的相交比例,如果调用时检测到的相交比例与这个值不相等且达到阈值,则会触发一次监听器的回调函数。
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
_callback && _callback.call(this, result);
|
|
48
|
+
});
|
|
49
|
+
this._isInited = true;
|
|
50
|
+
}, {
|
|
51
|
+
root: this._root,
|
|
52
|
+
rootMargin: [`${top}px`, `${right}px`, `${bottom}px`, `${left}px`].join(' '),
|
|
53
|
+
threshold: this._options.thresholds
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
disconnect() {
|
|
57
|
+
if (this._observerInst) {
|
|
58
|
+
let listener;
|
|
59
|
+
while ((listener = this._listeners.pop())) {
|
|
60
|
+
this._observerInst.unobserve(listener.element);
|
|
61
|
+
}
|
|
62
|
+
this._observerInst.disconnect();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
observe(targetSelector, callback) {
|
|
66
|
+
// 同wx小程序效果一致,每个实例监听一个Selector
|
|
67
|
+
if (this._listeners.length)
|
|
68
|
+
return;
|
|
69
|
+
// 监听前没有设置关联的节点
|
|
70
|
+
if (!this._observerInst) {
|
|
71
|
+
console.warn('Intersection observer will be ignored because no relative nodes are found.');
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const nodeList = this._options.observeAll
|
|
75
|
+
? this.container.querySelectorAll(targetSelector)
|
|
76
|
+
: [this.container.querySelector(targetSelector)];
|
|
77
|
+
nodeList.forEach(element => {
|
|
78
|
+
if (!element)
|
|
79
|
+
return;
|
|
80
|
+
this._observerInst.observe(element);
|
|
81
|
+
this._listeners.push({ element, callback });
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
relativeTo(selector, margins) {
|
|
85
|
+
// 已设置observe监听后,重新关联节点
|
|
86
|
+
if (this._listeners.length) {
|
|
87
|
+
console.error('Relative nodes cannot be added after "observe" call in IntersectionObserver');
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
this._root = this.container.querySelector(selector) || null;
|
|
91
|
+
if (margins) {
|
|
92
|
+
this._rootMargin = margins;
|
|
93
|
+
}
|
|
94
|
+
this._observerInst = this.createInst();
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
relativeToViewport(margins) {
|
|
98
|
+
return this.relativeTo('.taro_page', margins);
|
|
99
|
+
}
|
|
100
|
+
_getCallbackByElement(element) {
|
|
101
|
+
const listener = this._listeners.find(listener => listener.element === element);
|
|
102
|
+
return listener ? listener.callback : null;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Taro from '@tarojs/taro';
|
|
2
|
+
export declare class MediaQueryObserver implements Taro.MediaQueryObserver {
|
|
3
|
+
private _mediaQueryObserver;
|
|
4
|
+
private _listener;
|
|
5
|
+
observe(descriptor: Taro.MediaQueryObserver.descriptor, callback: Taro.MediaQueryObserver.observeCallback): void;
|
|
6
|
+
disconnect(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { isFunction } from '@tarojs/shared';
|
|
2
|
+
import { toKebabCase } from '../../utils';
|
|
3
|
+
function generateMediaQueryStr(descriptor) {
|
|
4
|
+
const mediaQueryArr = [];
|
|
5
|
+
const descriptorMenu = ['width', 'minWidth', 'maxWidth', 'height', 'minHeight', 'maxHeight', 'orientation'];
|
|
6
|
+
for (const item of descriptorMenu) {
|
|
7
|
+
if (item !== 'orientation' &&
|
|
8
|
+
descriptor[item] &&
|
|
9
|
+
Number(descriptor[item]) >= 0) {
|
|
10
|
+
mediaQueryArr.push(`(${(toKebabCase(item))}: ${Number(descriptor[item])}px)`);
|
|
11
|
+
}
|
|
12
|
+
if (item === 'orientation' && descriptor[item]) {
|
|
13
|
+
mediaQueryArr.push(`(${toKebabCase(item)}: ${descriptor[item]})`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return mediaQueryArr.join(' and ');
|
|
17
|
+
}
|
|
18
|
+
export class MediaQueryObserver {
|
|
19
|
+
// 监听页面媒体查询变化情况
|
|
20
|
+
observe(descriptor, callback) {
|
|
21
|
+
if (isFunction(callback)) {
|
|
22
|
+
// 创建媒体查询对象
|
|
23
|
+
this._mediaQueryObserver = window.matchMedia(generateMediaQueryStr(descriptor));
|
|
24
|
+
// 监听器
|
|
25
|
+
this._listener = (ev) => {
|
|
26
|
+
callback({ matches: ev.matches });
|
|
27
|
+
};
|
|
28
|
+
callback({ matches: this._mediaQueryObserver.matches });
|
|
29
|
+
// 兼容旧浏览器中 MediaQueryList 尚未继承于 EventTarget 导致不存在 'addEventListener'
|
|
30
|
+
if ('addEventListener' in this._mediaQueryObserver) {
|
|
31
|
+
this._mediaQueryObserver.addEventListener('change', this._listener);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this._mediaQueryObserver.addListener(this._listener);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
// 停止监听,销毁媒体查询对象
|
|
39
|
+
disconnect() {
|
|
40
|
+
if (this._mediaQueryObserver && this._listener) {
|
|
41
|
+
// 兼容旧浏览器中 MediaQueryList 尚未继承于 EventTarget 导致不存在 'removeEventListener'
|
|
42
|
+
if ('removeEventListener' in this._mediaQueryObserver) {
|
|
43
|
+
this._mediaQueryObserver.removeEventListener('change', this._listener);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
this._mediaQueryObserver.removeListener(this._listener);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
package/dist/api/wxml/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import Taro from '@tarojs/api';
|
|
2
2
|
export declare const createSelectorQuery: typeof Taro.createSelectorQuery;
|
|
3
|
-
export declare const createIntersectionObserver:
|
|
3
|
+
export declare const createIntersectionObserver: typeof Taro.createIntersectionObserver;
|
|
4
|
+
export declare const createMediaQueryObserver: typeof Taro.createMediaQueryObserver;
|
package/dist/api/wxml/index.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TaroH5IntersectionObserver } from './IntersectionObserver';
|
|
2
|
+
import { MediaQueryObserver } from './MediaQueryObserver';
|
|
2
3
|
import { SelectorQuery } from './selectorQuery';
|
|
3
4
|
export const createSelectorQuery = () => {
|
|
4
5
|
return new SelectorQuery();
|
|
5
6
|
};
|
|
6
|
-
export const createIntersectionObserver =
|
|
7
|
+
export const createIntersectionObserver = (component, options) => {
|
|
8
|
+
return new TaroH5IntersectionObserver(component, options);
|
|
9
|
+
};
|
|
10
|
+
export const createMediaQueryObserver = () => {
|
|
11
|
+
return new MediaQueryObserver();
|
|
12
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isFunction } from '@tarojs/shared';
|
|
1
2
|
import { findDOM } from '../../utils';
|
|
2
3
|
import { CanvasContext } from '../canvas/CanvasContext';
|
|
3
4
|
import { NodesRef } from './nodesRef';
|
|
@@ -183,9 +184,9 @@ export class SelectorQuery {
|
|
|
183
184
|
const _queueCb = this._queueCb;
|
|
184
185
|
res.forEach((item, index) => {
|
|
185
186
|
const cb = _queueCb[index];
|
|
186
|
-
|
|
187
|
+
isFunction(cb) && cb.call(this, item);
|
|
187
188
|
});
|
|
188
|
-
|
|
189
|
+
isFunction(cb) && cb.call(this, res);
|
|
189
190
|
});
|
|
190
191
|
return this;
|
|
191
192
|
}
|
package/dist/index.cjs.d.ts
CHANGED
|
@@ -551,7 +551,7 @@ declare function onSocketOpen(): void;
|
|
|
551
551
|
declare function onSocketMessage(): void;
|
|
552
552
|
declare function onSocketError(): void;
|
|
553
553
|
declare function onSocketClose(): void;
|
|
554
|
-
declare function connectSocket(options
|
|
554
|
+
declare function connectSocket(options?: Taro.connectSocket.Option): Promise<unknown>;
|
|
555
555
|
declare function closeSocket(): void;
|
|
556
556
|
// 帐号信息
|
|
557
557
|
declare const getAccountInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
@@ -686,7 +686,7 @@ declare const disableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise
|
|
|
686
686
|
declare const getMenuButtonBoundingClientRect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
687
687
|
// 导航栏
|
|
688
688
|
declare const showNavigationBarLoading: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
689
|
-
declare function setNavigationBarTitle(options
|
|
689
|
+
declare function setNavigationBarTitle(options?: Taro.setNavigationBarTitle.Option): Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
690
690
|
/**
|
|
691
691
|
* 设置页面导航条颜色
|
|
692
692
|
*/
|
|
@@ -755,6 +755,7 @@ declare const offWindowResize: typeof Taro.offWindowResize;
|
|
|
755
755
|
// Worker
|
|
756
756
|
declare const createWorker: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
757
757
|
declare const createSelectorQuery: typeof Taro.createSelectorQuery;
|
|
758
|
-
declare const createIntersectionObserver:
|
|
759
|
-
|
|
758
|
+
declare const createIntersectionObserver: typeof Taro.createIntersectionObserver;
|
|
759
|
+
declare const createMediaQueryObserver: typeof Taro.createMediaQueryObserver;
|
|
760
|
+
export { taro as default, taro, createRewardedVideoAd, createInterstitialAd, stopFaceDetect, initFaceDetect, faceDetect, isVKSupport, createVKSession, getOpenUserInfo, canIUse, arrayBufferToBase64, base64ToArrayBuffer, getUserCryptoManager, setEnableDebug, getRealtimeLogManager, getLogManager, reportPerformance, getPerformance, openSystemBluetoothSetting, openAppAuthorizeSetting, getWindowInfo, getSystemSetting, getDeviceInfo, getAppBaseInfo, getAppAuthorizeSetting, getSystemInfoSync, getSystemInfoAsync, getSystemInfo, updateWeChatApp, getUpdateManager, onUnhandledRejection, onThemeChange, onPageNotFound, onError, onAudioInterruptionEnd, onAudioInterruptionBegin, onAppShow, onAppHide, offUnhandledRejection, offThemeChange, offPageNotFound, offError, offAudioInterruptionEnd, offAudioInterruptionBegin, offAppShow, offAppHide, getLaunchOptionsSync, getEnterOptionsSync, createOffscreenCanvas, createCanvasContext, canvasToTempFilePath, canvasPutImageData, canvasGetImageData, cloud, reportMonitor, reportAnalytics, reportEvent, getExptInfoSync, stopAccelerometer, startAccelerometer, onAccelerometerChange, offAccelerometerChange, checkIsOpenAccessibility, getBatteryInfoSync, getBatteryInfo, stopBluetoothDevicesDiscovery, startBluetoothDevicesDiscovery, openBluetoothAdapter, onBluetoothDeviceFound, onBluetoothAdapterStateChange, offBluetoothDeviceFound, offBluetoothAdapterStateChange, makeBluetoothPair, isBluetoothDevicePaired, getConnectedBluetoothDevices, getBluetoothDevices, getBluetoothAdapterState, closeBluetoothAdapter, writeBLECharacteristicValue, setBLEMTU, readBLECharacteristicValue, onBLEMTUChange, onBLEConnectionStateChange, onBLECharacteristicValueChange, offBLEMTUChange, offBLEConnectionStateChange, offBLECharacteristicValueChange, notifyBLECharacteristicValueChange, getBLEMTU, getBLEDeviceServices, getBLEDeviceRSSI, getBLEDeviceCharacteristics, createBLEConnection, closeBLEConnection, onBLEPeripheralConnectionStateChanged, offBLEPeripheralConnectionStateChanged, createBLEPeripheralServer, addPhoneRepeatCalendar, addPhoneCalendar, setClipboardData, getClipboardData, stopCompass, startCompass, onCompassChange, offCompassChange, chooseContact, addPhoneContact, getRandomValues, stopGyroscope, startGyroscope, onGyroscopeChange, offGyroscopeChange, stopBeaconDiscovery, startBeaconDiscovery, onBeaconUpdate, onBeaconServiceChange, offBeaconUpdate, offBeaconServiceChange, getBeacons, onKeyboardHeightChange, offKeyboardHeightChange, hideKeyboard, getSelectedTextRange, onMemoryWarning, offMemoryWarning, stopDeviceMotionListening, startDeviceMotionListening, onDeviceMotionChange, offDeviceMotionChange, getNetworkType, onNetworkWeakChange, onNetworkStatusChange, offNetworkWeakChange, offNetworkStatusChange, getLocalIPAddress, stopHCE, startHCE, sendHCEMessage, onHCEMessage, offHCEMessage, getNFCAdapter, getHCEState, makePhoneCall, scanCode, setVisualEffectOnCapture, setScreenBrightness, setKeepScreenOn, onUserCaptureScreen, offUserCaptureScreen, getScreenBrightness, vibrateShort, vibrateLong, stopWifi, startWifi, setWifiList, onWifiConnectedWithPartialInfo, onWifiConnected, onGetWifiList, offWifiConnected, offGetWifiList, getWifiList, getConnectedWifi, connectWifi, getExtConfigSync, getExtConfig, saveFileToDisk, saveFile, removeSavedFile, openDocument, getSavedFileList, getSavedFileInfo, getFileSystemManager, getFileInfo, getApp, getCurrentInstance, stopLocationUpdate, startLocationUpdateBackground, startLocationUpdate, openLocation, onLocationChangeError, onLocationChange, offLocationChangeError, offLocationChange, getLocation, choosePoi, getFuzzyLocation, chooseLocation, stopVoice, setInnerAudioOption, playVoice, pauseVoice, getAvailableAudioSources, createWebAudioContext, createMediaAudioPlayer, createInnerAudioContext, createAudioContext, stopBackgroundAudio, seekBackgroundAudio, playBackgroundAudio, pauseBackgroundAudio, onBackgroundAudioStop, onBackgroundAudioPlay, onBackgroundAudioPause, getBackgroundAudioPlayerState, getBackgroundAudioManager, createCameraContext, saveImageToPhotosAlbum, previewMedia, getImageInfo, previewImage, compressImage, chooseMessageFile, chooseImage, createLivePusherContext, createLivePlayerContext, createMapContext, createMediaRecorder, stopRecord, startRecord, getRecorderManager, saveVideoToPhotosAlbum, openVideoEditor, getVideoInfo, createVideoContext, compressVideo, chooseVideo, chooseMedia, createVideoDecoder, createMediaContainer, updateVoIPChatMuteConfig, subscribeVoIPVideoMembers, setEnable1v1Chat, onVoIPVideoMembersChanged, onVoIPChatStateChanged, onVoIPChatSpeakersChanged, onVoIPChatMembersChanged, onVoIPChatInterrupted, offVoIPVideoMembersChanged, offVoIPChatStateChanged, offVoIPChatMembersChanged, offVoIPChatInterrupted, joinVoIPChat, exitVoIPChat, openEmbeddedMiniProgram, navigateToMiniProgram, navigateBackMiniProgram, exitMiniProgram, openBusinessView, downloadFile, stopLocalServiceDiscovery, startLocalServiceDiscovery, onLocalServiceResolveFail, onLocalServiceLost, onLocalServiceFound, onLocalServiceDiscoveryStop, offLocalServiceResolveFail, offLocalServiceLost, offLocalServiceFound, offLocalServiceDiscoveryStop, request, addInterceptor, createTCPSocket, createUDPSocket, uploadFile, sendSocketMessage, onSocketOpen, onSocketMessage, onSocketError, onSocketClose, connectSocket, closeSocket, getAccountInfoSync, chooseAddress, authorizeForMiniProgram, authorize, openCard, addCard, reserveChannelsLive, openChannelsLive, openChannelsEvent, openChannelsActivity, getChannelsLiveNoticeInfo, getChannelsLiveInfo, openCustomerServiceChat, checkIsSupportFacialRecognition, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo, faceVerifyForPay, addVideoToFavorites, addFileToFavorites, getGroupEnterInfo, chooseInvoiceTitle, chooseInvoice, chooseLicensePlate, pluginLogin, login, checkSession, showRedPackage, openSetting, getSetting, startSoterAuthentication, checkIsSupportSoterAuthentication, checkIsSoterEnrolledInDevice, requestSubscribeMessage, getUserProfile, getUserInfo, shareToWeRun, getWeRunData, requestPayment, requestOrderPayment, updateShareMenu, showShareMenu, showShareImageMenu, shareVideoMessage, shareFileMessage, onCopyUrl, offCopyUrl, hideShareMenu, getShareInfo, authPrivateMessage, setStorageSync, setStorage, revokeBufferURL, removeStorageSync, removeStorage, getStorageSync, getStorageInfoSync, getStorageInfo, getStorage, createBufferURL, clearStorageSync, clearStorage, setBackgroundFetchToken, onBackgroundFetchData, getBackgroundFetchToken, getBackgroundFetchData, setPageInfo, ocrIdCard, ocrBankCard, ocrDrivingLicense, ocrVehicleLicense, textReview, textToAudio, imageAudit, advancedGeneralIdentify, objectDetectIdentify, carClassify, dishClassify, logoClassify, animalClassify, plantClassify, getSwanId, requestPolymerPayment, navigateToSmartGameProgram, navigateToSmartProgram, navigateBackSmartProgram, preloadSubPackage, createAnimation, setBackgroundTextStyle, setBackgroundColor, nextTick, loadFontFace, disableAlertBeforeUnload, enableAlertBeforeUnload, hideLoading, hideToast, showActionSheet, showLoading, showModal, showToast, getMenuButtonBoundingClientRect, showNavigationBarLoading, setNavigationBarTitle, setNavigationBarColor, hideNavigationBarLoading, hideHomeButton, startPullDownRefresh, stopPullDownRefresh, pageScrollTo, setTopBarText, initTabBarApis, showTabBarRedDot, showTabBar, setTabBarStyle, setTabBarItem, setTabBarBadge, removeTabBarBadge, hideTabBarRedDot, hideTabBar, setWindowSize, onWindowResize, offWindowResize, createWorker, createSelectorQuery, createIntersectionObserver, createMediaQueryObserver, Behavior, canIUseWebp, Current, ENV_TYPE, eventCenter, Events, getEnv, history, initPxTransform, interceptors, Link, options, preload, pxTransform, requirePlugin };
|
|
760
761
|
export { getCurrentPages, navigateBack, navigateTo, redirectTo, reLaunch, switchTab } from "@tarojs/router";
|