@tarojs/taro-h5 3.5.0-alpha.2 → 3.5.0-alpha.5
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/ad/index.js +1 -1
- package/dist/api/ai/facial.js +1 -1
- package/dist/api/ai/visual.js +1 -1
- package/dist/api/alipay/index.js +1 -1
- package/dist/api/base/crypto.js +1 -1
- package/dist/api/base/debug.js +1 -1
- package/dist/api/base/index.js +1 -1
- package/dist/api/base/performance.js +1 -1
- package/dist/api/base/system.js +2 -2
- package/dist/api/base/update.js +1 -1
- package/dist/api/base/weapp/app-event.js +1 -1
- package/dist/api/base/weapp/life-cycle.js +1 -1
- package/dist/api/canvas/canvasGetImageData.js +2 -2
- package/dist/api/canvas/canvasPutImageData.js +2 -2
- package/dist/api/canvas/canvasToTempFilePath.js +2 -2
- package/dist/api/canvas/createCanvasContext.js +1 -1
- package/dist/api/canvas/index.js +1 -1
- package/dist/api/cloud/index.js +1 -1
- package/dist/api/data-analysis/index.js +1 -1
- package/dist/api/device/accelerometer.js +2 -2
- package/dist/api/device/accessibility.js +1 -1
- package/dist/api/device/battery.js +2 -2
- package/dist/api/device/bluetooth-ble.js +1 -1
- package/dist/api/device/bluetooth-peripheral.js +1 -1
- package/dist/api/device/bluetooth.js +1 -1
- package/dist/api/device/calendar.js +1 -1
- package/dist/api/device/clipboard.js +1 -1
- package/dist/api/device/compass.js +2 -2
- package/dist/api/device/contact.js +1 -1
- package/dist/api/device/crypto.js +1 -1
- package/dist/api/device/gyroscope.js +1 -1
- package/dist/api/device/iBeacon.js +1 -1
- package/dist/api/device/keyboard.js +1 -1
- package/dist/api/device/memory.js +1 -1
- package/dist/api/device/motion.js +2 -2
- package/dist/api/device/network.js +2 -2
- package/dist/api/device/nfc.js +1 -1
- package/dist/api/device/phone.js +2 -2
- package/dist/api/device/scan.js +1 -1
- package/dist/api/device/screen.js +1 -1
- package/dist/api/device/vibrate.js +1 -1
- package/dist/api/device/wifi.js +1 -1
- package/dist/api/ext/index.js +1 -1
- package/dist/api/files/index.js +1 -1
- package/dist/api/location/chooseLocation.js +1 -1
- package/dist/api/location/getLocation.js +2 -2
- package/dist/api/location/index.js +1 -1
- package/dist/api/media/EditorContext.js +1 -1
- package/dist/api/media/audio/InnerAudioContext.js +2 -2
- package/dist/api/media/audio/index.js +1 -1
- package/dist/api/media/background-audio/BackgroundAudioManager.js +2 -2
- package/dist/api/media/background-audio/index.js +1 -1
- package/dist/api/media/camera.js +1 -1
- package/dist/api/media/image/chooseImage.js +2 -2
- package/dist/api/media/image/getImageInfo.js +2 -2
- package/dist/api/media/image/index.js +1 -1
- package/dist/api/media/image/previewImage.js +2 -2
- package/dist/api/media/live.js +1 -1
- package/dist/api/media/map.js +1 -1
- package/dist/api/media/media-recorder.js +1 -1
- package/dist/api/media/recorder.js +1 -1
- package/dist/api/media/video/index.js +2 -2
- package/dist/api/media/video-decoder.js +1 -1
- package/dist/api/media/video-processing.js +1 -1
- package/dist/api/media/voip.js +1 -1
- package/dist/api/navigate/index.js +1 -1
- package/dist/api/network/download.js +1 -1
- package/dist/api/network/mdns.js +1 -1
- package/dist/api/network/request/index.js +1 -1
- package/dist/api/network/tcp.js +1 -1
- package/dist/api/network/udp.js +1 -1
- package/dist/api/network/upload.js +1 -1
- package/dist/api/network/websocket/index.js +2 -2
- package/dist/api/open-api/account.js +1 -1
- package/dist/api/open-api/address.js +1 -1
- package/dist/api/open-api/authorize.js +1 -1
- package/dist/api/open-api/card.js +1 -1
- package/dist/api/open-api/channels-live.js +1 -1
- package/dist/api/open-api/customer-service.js +1 -1
- package/dist/api/open-api/facial.js +1 -1
- package/dist/api/open-api/favorites.js +1 -1
- package/dist/api/open-api/group.js +1 -1
- package/dist/api/open-api/invoice.js +1 -1
- package/dist/api/open-api/license-plate.js +1 -1
- package/dist/api/open-api/login.js +1 -1
- package/dist/api/open-api/red-package.js +1 -1
- package/dist/api/open-api/settings.js +1 -1
- package/dist/api/open-api/soter.js +1 -1
- package/dist/api/open-api/subscribe-message.js +1 -1
- package/dist/api/open-api/user-info.js +1 -1
- package/dist/api/open-api/werun.js +1 -1
- package/dist/api/payment/index.js +1 -1
- package/dist/api/share/index.js +1 -1
- package/dist/api/storage/background-fetch.js +1 -1
- package/dist/api/storage/index.js +2 -2
- package/dist/api/swan/index.js +1 -1
- package/dist/api/taro.js +1 -1
- package/dist/api/ui/background.js +1 -1
- package/dist/api/ui/fonts.js +1 -1
- package/dist/api/ui/interaction/actionSheet.js +1 -1
- package/dist/api/ui/interaction/index.js +2 -2
- package/dist/api/ui/interaction/modal.js +1 -1
- package/dist/api/ui/interaction/toast.js +1 -1
- package/dist/api/ui/menu.js +1 -1
- package/dist/api/ui/navigation-bar/index.js +2 -2
- package/dist/api/ui/pull-down-refresh.js +1 -1
- package/dist/api/ui/scroll/index.js +2 -2
- package/dist/api/ui/sticky.js +1 -1
- package/dist/api/ui/tab-bar.js +2 -2
- package/dist/api/ui/window.js +2 -2
- package/dist/api/worker/index.js +1 -1
- package/dist/api/wxml/index.js +1 -1
- package/dist/api/wxml/selectorQuery.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5170 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/{api/utils → utils}/animation.js +0 -0
- package/dist/{api/utils → utils}/handler.js +0 -0
- package/dist/{api/utils → utils}/index.js +0 -0
- package/dist/{api/utils → utils}/lodash.js +0 -0
- package/dist/{api/utils → utils}/valid.js +0 -0
- package/package.json +12 -11
- package/src/api/ad/index.ts +1 -1
- package/src/api/ai/facial.ts +1 -1
- package/src/api/ai/visual.ts +1 -1
- package/src/api/alipay/index.ts +1 -1
- package/src/api/base/crypto.ts +1 -1
- package/src/api/base/debug.ts +1 -1
- package/src/api/base/index.ts +1 -1
- package/src/api/base/performance.ts +1 -1
- package/src/api/base/system.ts +2 -2
- package/src/api/base/update.ts +1 -1
- package/src/api/base/weapp/app-event.ts +1 -1
- package/src/api/base/weapp/life-cycle.ts +1 -1
- package/src/api/canvas/canvasGetImageData.ts +2 -2
- package/src/api/canvas/canvasPutImageData.ts +2 -2
- package/src/api/canvas/canvasToTempFilePath.ts +2 -2
- package/src/api/canvas/createCanvasContext.ts +1 -1
- package/src/api/canvas/index.ts +1 -1
- package/src/api/cloud/index.ts +1 -1
- package/src/api/data-analysis/index.ts +1 -1
- package/src/api/device/accelerometer.ts +2 -2
- package/src/api/device/accessibility.ts +1 -1
- package/src/api/device/battery.ts +2 -2
- package/src/api/device/bluetooth-ble.ts +1 -1
- package/src/api/device/bluetooth-peripheral.ts +1 -1
- package/src/api/device/bluetooth.ts +1 -1
- package/src/api/device/calendar.ts +1 -1
- package/src/api/device/clipboard.ts +1 -1
- package/src/api/device/compass.ts +2 -2
- package/src/api/device/contact.ts +1 -1
- package/src/api/device/crypto.ts +1 -1
- package/src/api/device/gyroscope.ts +1 -1
- package/src/api/device/iBeacon.ts +1 -1
- package/src/api/device/keyboard.ts +1 -1
- package/src/api/device/memory.ts +1 -1
- package/src/api/device/motion.ts +2 -2
- package/src/api/device/network.ts +2 -2
- package/src/api/device/nfc.ts +1 -1
- package/src/api/device/phone.ts +2 -2
- package/src/api/device/scan.ts +1 -1
- package/src/api/device/screen.ts +1 -1
- package/src/api/device/vibrate.ts +1 -1
- package/src/api/device/wifi.ts +1 -1
- package/src/api/ext/index.ts +1 -1
- package/src/api/files/index.ts +1 -1
- package/src/api/location/chooseLocation.ts +1 -1
- package/src/api/location/getLocation.ts +2 -2
- package/src/api/location/index.ts +1 -1
- package/src/api/media/EditorContext.ts +1 -1
- package/src/api/media/audio/InnerAudioContext.ts +2 -2
- package/src/api/media/audio/index.ts +1 -1
- package/src/api/media/background-audio/BackgroundAudioManager.ts +2 -2
- package/src/api/media/background-audio/index.ts +1 -1
- package/src/api/media/camera.ts +1 -1
- package/src/api/media/image/chooseImage.ts +2 -2
- package/src/api/media/image/getImageInfo.ts +2 -2
- package/src/api/media/image/index.ts +1 -1
- package/src/api/media/image/previewImage.ts +2 -2
- package/src/api/media/live.ts +1 -1
- package/src/api/media/map.ts +1 -1
- package/src/api/media/media-recorder.ts +1 -1
- package/src/api/media/recorder.ts +1 -1
- package/src/api/media/video/index.ts +2 -2
- package/src/api/media/video-decoder.ts +1 -1
- package/src/api/media/video-processing.ts +1 -1
- package/src/api/media/voip.ts +1 -1
- package/src/api/navigate/index.ts +1 -1
- package/src/api/network/download.ts +2 -2
- package/src/api/network/mdns.ts +1 -1
- package/src/api/network/request/index.ts +1 -1
- package/src/api/network/tcp.ts +1 -1
- package/src/api/network/udp.ts +1 -1
- package/src/api/network/upload.ts +2 -2
- package/src/api/network/websocket/index.ts +2 -2
- package/src/api/open-api/account.ts +1 -1
- package/src/api/open-api/address.ts +1 -1
- package/src/api/open-api/authorize.ts +1 -1
- package/src/api/open-api/card.ts +1 -1
- package/src/api/open-api/channels-live.ts +1 -1
- package/src/api/open-api/customer-service.ts +1 -1
- package/src/api/open-api/facial.ts +1 -1
- package/src/api/open-api/favorites.ts +1 -1
- package/src/api/open-api/group.ts +1 -1
- package/src/api/open-api/invoice.ts +1 -1
- package/src/api/open-api/license-plate.ts +1 -1
- package/src/api/open-api/login.ts +1 -1
- package/src/api/open-api/red-package.ts +1 -1
- package/src/api/open-api/settings.ts +1 -1
- package/src/api/open-api/soter.ts +1 -1
- package/src/api/open-api/subscribe-message.ts +1 -1
- package/src/api/open-api/user-info.ts +1 -1
- package/src/api/open-api/werun.ts +1 -1
- package/src/api/payment/index.ts +1 -1
- package/src/api/share/index.ts +1 -1
- package/src/api/storage/background-fetch.ts +1 -1
- package/src/api/storage/index.ts +2 -2
- package/src/api/swan/index.ts +1 -1
- package/src/api/taro.ts +2 -2
- package/src/api/ui/background.ts +1 -1
- package/src/api/ui/fonts.ts +1 -1
- package/src/api/ui/interaction/actionSheet.ts +3 -3
- package/src/api/ui/interaction/index.ts +2 -2
- package/src/api/ui/interaction/modal.ts +3 -3
- package/src/api/ui/interaction/toast.ts +3 -3
- package/src/api/ui/menu.ts +1 -1
- package/src/api/ui/navigation-bar/index.ts +2 -2
- package/src/api/ui/pull-down-refresh.ts +1 -1
- package/src/api/ui/scroll/index.ts +3 -3
- package/src/api/ui/sticky.ts +1 -1
- package/src/api/ui/tab-bar.ts +2 -2
- package/src/api/ui/window.ts +2 -2
- package/src/api/worker/index.ts +1 -1
- package/src/api/wxml/index.ts +1 -1
- package/src/api/wxml/selectorQuery.ts +1 -1
- package/src/{api/utils → utils}/animation.ts +0 -0
- package/src/{api/utils → utils}/handler.ts +0 -0
- package/src/{api/utils → utils}/index.ts +0 -0
- package/src/{api/utils → utils}/lodash.ts +2 -2
- package/src/{api/utils → utils}/valid.ts +0 -0
- package/dist/dist/api/ad/index.d.ts +0 -6
- package/dist/dist/api/ai/facial.d.ts +0 -9
- package/dist/dist/api/ai/index.d.ts +0 -2
- package/dist/dist/api/ai/visual.d.ts +0 -6
- package/dist/dist/api/alipay/index.d.ts +0 -3
- package/dist/dist/api/base/crypto.d.ts +0 -3
- package/dist/dist/api/base/debug.d.ts +0 -9
- package/dist/dist/api/base/index.d.ts +0 -12
- package/dist/dist/api/base/performance.d.ts +0 -6
- package/dist/dist/api/base/system.d.ts +0 -25
- package/dist/dist/api/base/update.d.ts +0 -6
- package/dist/dist/api/base/weapp/app-event.d.ts +0 -48
- package/dist/dist/api/base/weapp/life-cycle.d.ts +0 -6
- package/dist/dist/api/canvas/CanvasContext.d.ts +0 -104
- package/dist/dist/api/canvas/canvasGetImageData.d.ts +0 -5
- package/dist/dist/api/canvas/canvasPutImageData.d.ts +0 -6
- package/dist/dist/api/canvas/canvasToTempFilePath.d.ts +0 -6
- package/dist/dist/api/canvas/createCanvasContext.d.ts +0 -5
- package/dist/dist/api/canvas/index.d.ts +0 -12
- package/dist/dist/api/cloud/index.d.ts +0 -31
- package/dist/dist/api/data-analysis/index.d.ts +0 -12
- package/dist/dist/api/device/accelerometer.d.ts +0 -17
- package/dist/dist/api/device/accessibility.d.ts +0 -3
- package/dist/dist/api/device/battery.d.ts +0 -5
- package/dist/dist/api/device/bluetooth-ble.d.ts +0 -48
- package/dist/dist/api/device/bluetooth-peripheral.d.ts +0 -9
- package/dist/dist/api/device/bluetooth.d.ts +0 -39
- package/dist/dist/api/device/calendar.d.ts +0 -6
- package/dist/dist/api/device/clipboard.d.ts +0 -15
- package/dist/dist/api/device/compass.d.ts +0 -17
- package/dist/dist/api/device/contact.d.ts +0 -6
- package/dist/dist/api/device/crypto.d.ts +0 -3
- package/dist/dist/api/device/gyroscope.d.ts +0 -12
- package/dist/dist/api/device/iBeacon.d.ts +0 -21
- package/dist/dist/api/device/index.d.ts +0 -23
- package/dist/dist/api/device/keyboard.d.ts +0 -12
- package/dist/dist/api/device/memory.d.ts +0 -6
- package/dist/dist/api/device/motion.d.ts +0 -17
- package/dist/dist/api/device/network.d.ts +0 -20
- package/dist/dist/api/device/nfc.d.ts +0 -21
- package/dist/dist/api/device/phone.d.ts +0 -2
- package/dist/dist/api/device/scan.d.ts +0 -3
- package/dist/dist/api/device/screen.d.ts +0 -18
- package/dist/dist/api/device/vibrate.d.ts +0 -9
- package/dist/dist/api/device/wifi.d.ts +0 -33
- package/dist/dist/api/ext/index.d.ts +0 -6
- package/dist/dist/api/files/index.d.ts +0 -24
- package/dist/dist/api/framework/index.d.ts +0 -4
- package/dist/dist/api/index.d.ts +0 -24
- package/dist/dist/api/location/chooseLocation.d.ts +0 -6
- package/dist/dist/api/location/getLocation.d.ts +0 -2
- package/dist/dist/api/location/index.d.ts +0 -29
- package/dist/dist/api/media/EditorContext.d.ts +0 -42
- package/dist/dist/api/media/audio/InnerAudioContext.d.ts +0 -58
- package/dist/dist/api/media/audio/index.d.ts +0 -29
- package/dist/dist/api/media/background-audio/BackgroundAudioManager.d.ts +0 -71
- package/dist/dist/api/media/background-audio/index.d.ts +0 -29
- package/dist/dist/api/media/camera.d.ts +0 -3
- package/dist/dist/api/media/image/chooseImage.d.ts +0 -5
- package/dist/dist/api/media/image/getImageInfo.d.ts +0 -5
- package/dist/dist/api/media/image/index.d.ts +0 -15
- package/dist/dist/api/media/image/previewImage.d.ts +0 -8
- package/dist/dist/api/media/index.d.ts +0 -12
- package/dist/dist/api/media/live.d.ts +0 -6
- package/dist/dist/api/media/map.d.ts +0 -3
- package/dist/dist/api/media/media-recorder.d.ts +0 -3
- package/dist/dist/api/media/recorder.d.ts +0 -9
- package/dist/dist/api/media/video/index.d.ts +0 -24
- package/dist/dist/api/media/video-decoder.d.ts +0 -3
- package/dist/dist/api/media/video-processing.d.ts +0 -3
- package/dist/dist/api/media/voip.d.ts +0 -42
- package/dist/dist/api/navigate/index.d.ts +0 -12
- package/dist/dist/api/network/download.d.ts +0 -6
- package/dist/dist/api/network/index.d.ts +0 -7
- package/dist/dist/api/network/mdns.d.ts +0 -30
- package/dist/dist/api/network/request/index.d.ts +0 -4
- package/dist/dist/api/network/tcp.d.ts +0 -3
- package/dist/dist/api/network/udp.d.ts +0 -3
- package/dist/dist/api/network/upload.d.ts +0 -5
- package/dist/dist/api/network/utils.d.ts +0 -44
- package/dist/dist/api/network/websocket/index.d.ts +0 -7
- package/dist/dist/api/network/websocket/socketTask.d.ts +0 -25
- package/dist/dist/api/open-api/account.d.ts +0 -3
- package/dist/dist/api/open-api/address.d.ts +0 -3
- package/dist/dist/api/open-api/authorize.d.ts +0 -6
- package/dist/dist/api/open-api/card.d.ts +0 -6
- package/dist/dist/api/open-api/channels-live.d.ts +0 -18
- package/dist/dist/api/open-api/customer-service.d.ts +0 -3
- package/dist/dist/api/open-api/facial.d.ts +0 -12
- package/dist/dist/api/open-api/favorites.d.ts +0 -6
- package/dist/dist/api/open-api/group.d.ts +0 -3
- package/dist/dist/api/open-api/index.d.ts +0 -18
- package/dist/dist/api/open-api/invoice.d.ts +0 -6
- package/dist/dist/api/open-api/license-plate.d.ts +0 -3
- package/dist/dist/api/open-api/login.d.ts +0 -9
- package/dist/dist/api/open-api/red-package.d.ts +0 -3
- package/dist/dist/api/open-api/settings.d.ts +0 -6
- package/dist/dist/api/open-api/soter.d.ts +0 -9
- package/dist/dist/api/open-api/subscribe-message.d.ts +0 -3
- package/dist/dist/api/open-api/user-info.d.ts +0 -6
- package/dist/dist/api/open-api/werun.d.ts +0 -6
- package/dist/dist/api/payment/index.d.ts +0 -6
- package/dist/dist/api/route/index.d.ts +0 -1
- package/dist/dist/api/share/index.d.ts +0 -30
- package/dist/dist/api/storage/background-fetch.d.ts +0 -12
- package/dist/dist/api/storage/index.d.ts +0 -18
- package/dist/dist/api/swan/index.d.ts +0 -63
- package/dist/dist/api/taro.d.ts +0 -12
- package/dist/dist/api/ui/animation/index.d.ts +0 -2
- package/dist/dist/api/ui/background.d.ts +0 -6
- package/dist/dist/api/ui/custom-component.d.ts +0 -1
- package/dist/dist/api/ui/fonts.d.ts +0 -2
- package/dist/dist/api/ui/index.d.ts +0 -12
- package/dist/dist/api/ui/interaction/actionSheet.d.ts +0 -61
- package/dist/dist/api/ui/interaction/index.d.ts +0 -14
- package/dist/dist/api/ui/interaction/modal.d.ts +0 -69
- package/dist/dist/api/ui/interaction/toast.d.ts +0 -85
- package/dist/dist/api/ui/menu.d.ts +0 -3
- package/dist/dist/api/ui/navigation-bar/index.d.ts +0 -15
- package/dist/dist/api/ui/pull-down-refresh.d.ts +0 -9
- package/dist/dist/api/ui/scroll/index.d.ts +0 -5
- package/dist/dist/api/ui/sticky.d.ts +0 -3
- package/dist/dist/api/ui/tab-bar.d.ts +0 -34
- package/dist/dist/api/ui/window.d.ts +0 -15
- package/dist/dist/api/utils/animation.d.ts +0 -6
- package/dist/dist/api/utils/handler.d.ts +0 -48
- package/dist/dist/api/utils/index.d.ts +0 -39
- package/dist/dist/api/utils/lodash.d.ts +0 -2
- package/dist/dist/api/utils/valid.d.ts +0 -2
- package/dist/dist/api/worker/index.d.ts +0 -3
- package/dist/dist/api/wxml/index.d.ts +0 -5
- package/dist/dist/api/wxml/nodesRef.d.ts +0 -13
- package/dist/dist/api/wxml/selectorQuery.d.ts +0 -24
- package/dist/dist/index.d.ts +0 -4
- package/dist/dist/types/type.d.ts +0 -29
- package/dist/types/type.js +0 -2
- package/src/types/api.d.ts +0 -4
- package/src/types/define.d.ts +0 -2
- package/src/types/index.d.ts +0 -3
- package/src/types/type.ts +0 -32
package/src/api/open-api/card.ts
CHANGED
package/src/api/payment/index.ts
CHANGED
package/src/api/share/index.ts
CHANGED
package/src/api/storage/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Taro from '@tarojs/api'
|
|
2
|
-
import { shouldBeObject, getParameterError, temporarilyNotSupport } from '
|
|
3
|
-
import { MethodHandler } from '
|
|
2
|
+
import { shouldBeObject, getParameterError, temporarilyNotSupport } from '../../utils'
|
|
3
|
+
import { MethodHandler } from '../../utils/handler'
|
|
4
4
|
|
|
5
5
|
function getItem (key) {
|
|
6
6
|
let item
|
package/src/api/swan/index.ts
CHANGED
package/src/api/taro.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Taro from '@tarojs/api'
|
|
2
|
-
|
|
3
2
|
import { history } from '@tarojs/router'
|
|
3
|
+
|
|
4
4
|
import { getApp, getCurrentInstance, getCurrentPages, nextTick, navigateBack, navigateTo, reLaunch, redirectTo, switchTab } from '../api'
|
|
5
|
-
import { permanentlyNotSupport } from '../
|
|
5
|
+
import { permanentlyNotSupport } from '../utils'
|
|
6
6
|
|
|
7
7
|
const {
|
|
8
8
|
Behavior,
|
package/src/api/ui/background.ts
CHANGED
package/src/api/ui/fonts.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inlineStyle, setTransform } from '
|
|
1
|
+
import { inlineStyle, setTransform } from '../../../utils'
|
|
2
2
|
|
|
3
3
|
const noop = function () {}
|
|
4
4
|
|
|
@@ -59,8 +59,8 @@ export default class ActionSheet {
|
|
|
59
59
|
menu: HTMLDivElement
|
|
60
60
|
cells: HTMLDivElement[]
|
|
61
61
|
cancel: HTMLDivElement
|
|
62
|
-
hideOpacityTimer:
|
|
63
|
-
hideDisplayTimer:
|
|
62
|
+
hideOpacityTimer: ReturnType<typeof setTimeout>
|
|
63
|
+
hideDisplayTimer: ReturnType<typeof setTimeout>
|
|
64
64
|
|
|
65
65
|
create (options = {}) {
|
|
66
66
|
return new Promise<string | number>((resolve) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Taro from '@tarojs/api'
|
|
2
|
-
import { getParameterError, temporarilyNotSupport } from '
|
|
3
|
-
import { MethodHandler } from '
|
|
2
|
+
import { getParameterError, temporarilyNotSupport } from '../../../utils'
|
|
3
|
+
import { MethodHandler } from '../../../utils/handler'
|
|
4
4
|
import Toast from './toast'
|
|
5
5
|
import Modal from './modal'
|
|
6
6
|
import ActionSheet from './actionSheet'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inlineStyle } from '
|
|
1
|
+
import { inlineStyle } from '../../../utils'
|
|
2
2
|
|
|
3
3
|
export default class Modal {
|
|
4
4
|
options = {
|
|
@@ -65,8 +65,8 @@ export default class Modal {
|
|
|
65
65
|
text: HTMLDivElement
|
|
66
66
|
cancel: HTMLDivElement
|
|
67
67
|
confirm: HTMLDivElement
|
|
68
|
-
hideOpacityTimer:
|
|
69
|
-
hideDisplayTimer:
|
|
68
|
+
hideOpacityTimer: ReturnType<typeof setTimeout>
|
|
69
|
+
hideDisplayTimer: ReturnType<typeof setTimeout>
|
|
70
70
|
|
|
71
71
|
create (options = {}) {
|
|
72
72
|
return new Promise<string>((resolve) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inlineStyle } from '
|
|
1
|
+
import { inlineStyle } from '../../../utils'
|
|
2
2
|
|
|
3
3
|
export default class Toast {
|
|
4
4
|
options = {
|
|
@@ -81,8 +81,8 @@ export default class Toast {
|
|
|
81
81
|
toast: HTMLDivElement
|
|
82
82
|
title: HTMLParagraphElement
|
|
83
83
|
type: any
|
|
84
|
-
hideOpacityTimer:
|
|
85
|
-
hideDisplayTimer:
|
|
84
|
+
hideOpacityTimer: ReturnType<typeof setTimeout>
|
|
85
|
+
hideDisplayTimer: ReturnType<typeof setTimeout>
|
|
86
86
|
|
|
87
87
|
create (options = {}, _type: 'loading' | 'toast' = 'toast') {
|
|
88
88
|
// style
|
package/src/api/ui/menu.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Taro from '@tarojs/api'
|
|
2
2
|
|
|
3
|
-
import { MethodHandler } from '
|
|
4
|
-
import { getParameterError, shouldBeObject, temporarilyNotSupport } from '
|
|
3
|
+
import { MethodHandler } from '../../../utils/handler'
|
|
4
|
+
import { getParameterError, shouldBeObject, temporarilyNotSupport } from '../../../utils'
|
|
5
5
|
|
|
6
6
|
// 导航栏
|
|
7
7
|
export const showNavigationBarLoading = temporarilyNotSupport('showNavigationBarLoading')
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Taro from '@tarojs/api'
|
|
2
2
|
import { Current } from '@tarojs/runtime'
|
|
3
3
|
|
|
4
|
-
import { MethodHandler } from '
|
|
5
|
-
import { getTimingFunc, easeInOut } from '
|
|
4
|
+
import { MethodHandler } from '../../../utils/handler'
|
|
5
|
+
import { getTimingFunc, easeInOut } from '../../../utils'
|
|
6
6
|
|
|
7
|
-
let timer:
|
|
7
|
+
let timer: ReturnType<typeof setTimeout>
|
|
8
8
|
const FRAME_DURATION = 17
|
|
9
9
|
|
|
10
10
|
/**
|
package/src/api/ui/sticky.ts
CHANGED
package/src/api/ui/tab-bar.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Taro, { AppConfig } from '@tarojs/api'
|
|
2
|
-
import { shouldBeObject, getParameterError, isValidColor } from '
|
|
3
|
-
import { MethodHandler } from '
|
|
2
|
+
import { shouldBeObject, getParameterError, isValidColor } from '../../utils'
|
|
3
|
+
import { MethodHandler } from '../../utils/handler'
|
|
4
4
|
|
|
5
5
|
let tabConf
|
|
6
6
|
|
package/src/api/ui/window.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Taro from '@tarojs/api'
|
|
2
|
-
import { temporarilyNotSupport } from '
|
|
3
|
-
import { CallbackManager } from '
|
|
2
|
+
import { temporarilyNotSupport } from '../../utils'
|
|
3
|
+
import { CallbackManager } from '../../utils/handler'
|
|
4
4
|
|
|
5
5
|
const callbackManager = new CallbackManager()
|
|
6
6
|
|
package/src/api/worker/index.ts
CHANGED
package/src/api/wxml/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function throttle (fn, threshold = 250, scope?) {
|
|
2
2
|
let lastTime = 0
|
|
3
|
-
let deferTimer:
|
|
3
|
+
let deferTimer: ReturnType<typeof setTimeout>
|
|
4
4
|
return function (...args) {
|
|
5
5
|
const context = scope || this
|
|
6
6
|
const now = Date.now()
|
|
@@ -18,7 +18,7 @@ export function throttle (fn, threshold = 250, scope?) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export function debounce (fn, ms = 250, scope?) {
|
|
21
|
-
let timer:
|
|
21
|
+
let timer: ReturnType<typeof setTimeout>
|
|
22
22
|
|
|
23
23
|
return function (...args) {
|
|
24
24
|
const context = scope || this
|
|
File without changes
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const canIUse: () => Promise<{
|
|
2
|
-
errMsg: string;
|
|
3
|
-
}>;
|
|
4
|
-
export declare function arrayBufferToBase64(arrayBuffer: any): string;
|
|
5
|
-
export declare function base64ToArrayBuffer(base64: any): Uint8Array;
|
|
6
|
-
export * from './system';
|
|
7
|
-
export * from './update';
|
|
8
|
-
export * from './weapp/life-cycle';
|
|
9
|
-
export * from './weapp/app-event';
|
|
10
|
-
export * from './debug';
|
|
11
|
-
export * from './performance';
|
|
12
|
-
export * from './crypto';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import Taro from '@tarojs/api';
|
|
2
|
-
/** 跳转系统蓝牙设置页 */
|
|
3
|
-
export declare const openSystemBluetoothSetting: () => Promise<{
|
|
4
|
-
errMsg: string;
|
|
5
|
-
}>;
|
|
6
|
-
/** 跳转系统微信授权管理页 */
|
|
7
|
-
export declare const openAppAuthorizeSetting: () => Promise<{
|
|
8
|
-
errMsg: string;
|
|
9
|
-
}>;
|
|
10
|
-
/** 获取窗口信息 */
|
|
11
|
-
export declare const getWindowInfo: typeof Taro.getWindowInfo;
|
|
12
|
-
/** 获取设备设置 */
|
|
13
|
-
export declare const getSystemSetting: typeof Taro.getSystemSetting;
|
|
14
|
-
/** 获取设备设置 */
|
|
15
|
-
export declare const getDeviceInfo: typeof Taro.getDeviceInfo;
|
|
16
|
-
/** 获取微信APP基础信息 */
|
|
17
|
-
export declare const getAppBaseInfo: typeof Taro.getAppBaseInfo;
|
|
18
|
-
/** 获取微信APP授权设置 */
|
|
19
|
-
export declare const getAppAuthorizeSetting: typeof Taro.getAppAuthorizeSetting;
|
|
20
|
-
/** 获取设备设置 */
|
|
21
|
-
export declare const getSystemInfoSync: typeof Taro.getSystemInfoSync;
|
|
22
|
-
/** 获取系统信息 */
|
|
23
|
-
export declare const getSystemInfoAsync: typeof Taro.getSystemInfoAsync;
|
|
24
|
-
/** 获取系统信息 */
|
|
25
|
-
export declare const getSystemInfo: typeof Taro.getSystemInfo;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export declare const onUnhandledRejection: () => Promise<{
|
|
2
|
-
errMsg: string;
|
|
3
|
-
}>;
|
|
4
|
-
export declare const onThemeChange: () => Promise<{
|
|
5
|
-
errMsg: string;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const onPageNotFound: () => Promise<{
|
|
8
|
-
errMsg: string;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const onError: () => Promise<{
|
|
11
|
-
errMsg: string;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const onAudioInterruptionEnd: () => Promise<{
|
|
14
|
-
errMsg: string;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const onAudioInterruptionBegin: () => Promise<{
|
|
17
|
-
errMsg: string;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const onAppShow: () => Promise<{
|
|
20
|
-
errMsg: string;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const onAppHide: () => Promise<{
|
|
23
|
-
errMsg: string;
|
|
24
|
-
}>;
|
|
25
|
-
export declare const offUnhandledRejection: () => Promise<{
|
|
26
|
-
errMsg: string;
|
|
27
|
-
}>;
|
|
28
|
-
export declare const offThemeChange: () => Promise<{
|
|
29
|
-
errMsg: string;
|
|
30
|
-
}>;
|
|
31
|
-
export declare const offPageNotFound: () => Promise<{
|
|
32
|
-
errMsg: string;
|
|
33
|
-
}>;
|
|
34
|
-
export declare const offError: () => Promise<{
|
|
35
|
-
errMsg: string;
|
|
36
|
-
}>;
|
|
37
|
-
export declare const offAudioInterruptionEnd: () => Promise<{
|
|
38
|
-
errMsg: string;
|
|
39
|
-
}>;
|
|
40
|
-
export declare const offAudioInterruptionBegin: () => Promise<{
|
|
41
|
-
errMsg: string;
|
|
42
|
-
}>;
|
|
43
|
-
export declare const offAppShow: () => Promise<{
|
|
44
|
-
errMsg: string;
|
|
45
|
-
}>;
|
|
46
|
-
export declare const offAppHide: () => Promise<{
|
|
47
|
-
errMsg: string;
|
|
48
|
-
}>;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { CanvasGradient } from '@tarojs/api';
|
|
2
|
-
interface IAction {
|
|
3
|
-
func: (...arr: any[]) => void;
|
|
4
|
-
args: any[];
|
|
5
|
-
}
|
|
6
|
-
export declare class CanvasContext implements Taro.CanvasContext {
|
|
7
|
-
__raw__: CanvasRenderingContext2D;
|
|
8
|
-
actions: IAction[];
|
|
9
|
-
constructor(canvas: any, ctx: any);
|
|
10
|
-
set ctx(e: CanvasRenderingContext2D);
|
|
11
|
-
get ctx(): CanvasRenderingContext2D;
|
|
12
|
-
canvas: HTMLCanvasElement;
|
|
13
|
-
protected emptyActions(): void;
|
|
14
|
-
protected enqueueActions(func: IAction['func'], ...args: any[]): void;
|
|
15
|
-
set fillStyle(e: string);
|
|
16
|
-
get fillStyle(): string;
|
|
17
|
-
set font(e: string);
|
|
18
|
-
get font(): string;
|
|
19
|
-
set globalAlpha(e: number);
|
|
20
|
-
get globalAlpha(): number;
|
|
21
|
-
set globalCompositeOperation(e: string);
|
|
22
|
-
get globalCompositeOperation(): string;
|
|
23
|
-
set lineCap(e: CanvasLineCap);
|
|
24
|
-
get lineCap(): CanvasLineCap;
|
|
25
|
-
set lineDashOffset(e: number);
|
|
26
|
-
get lineDashOffset(): number;
|
|
27
|
-
set lineJoin(e: CanvasLineJoin);
|
|
28
|
-
get lineJoin(): CanvasLineJoin;
|
|
29
|
-
set lineWidth(e: number);
|
|
30
|
-
get lineWidth(): number;
|
|
31
|
-
set miterLimit(e: number);
|
|
32
|
-
get miterLimit(): number;
|
|
33
|
-
set shadowBlur(e: number);
|
|
34
|
-
get shadowBlur(): number;
|
|
35
|
-
set shadowColor(e: string);
|
|
36
|
-
get shadowColor(): string;
|
|
37
|
-
set shadowOffsetX(e: number);
|
|
38
|
-
get shadowOffsetX(): number;
|
|
39
|
-
set shadowOffsetY(e: number);
|
|
40
|
-
get shadowOffsetY(): number;
|
|
41
|
-
set strokeStyle(e: string);
|
|
42
|
-
get strokeStyle(): string;
|
|
43
|
-
/** 小程序文档中不包括 ↓↓↓ */
|
|
44
|
-
set textAlign(e: CanvasTextAlign);
|
|
45
|
-
get textAlign(): CanvasTextAlign;
|
|
46
|
-
set textBaseline(e: CanvasTextBaseline);
|
|
47
|
-
get textBaseline(): CanvasTextBaseline;
|
|
48
|
-
set direction(e: CanvasDirection);
|
|
49
|
-
get direction(): CanvasDirection;
|
|
50
|
-
set imageSmoothingEnabled(e: boolean);
|
|
51
|
-
get imageSmoothingEnabled(): boolean;
|
|
52
|
-
set imageSmoothingQuality(e: ImageSmoothingQuality);
|
|
53
|
-
get imageSmoothingQuality(): ImageSmoothingQuality;
|
|
54
|
-
set filter(e: string);
|
|
55
|
-
get filter(): string;
|
|
56
|
-
/** 小程序文档中不包括 ↑↑↑ */
|
|
57
|
-
arc(...args: any[]): void;
|
|
58
|
-
arcTo(...args: any[]): void;
|
|
59
|
-
beginPath(...args: any[]): void;
|
|
60
|
-
bezierCurveTo(...args: any[]): void;
|
|
61
|
-
clearRect(...args: any[]): void;
|
|
62
|
-
clip(...args: any[]): void;
|
|
63
|
-
closePath(...args: any[]): void;
|
|
64
|
-
createPattern(image: string, repetition: keyof Taro.CanvasContext.Repetition): void;
|
|
65
|
-
/**
|
|
66
|
-
* 将之前在绘图上下文中的描述(路径、变形、样式)画到 canvas 中。
|
|
67
|
-
* @todo 每次 draw 都会读取 width 和 height
|
|
68
|
-
*/
|
|
69
|
-
draw(reserve?: boolean, callback?: (...args: any[]) => any): Promise<void>;
|
|
70
|
-
drawImage(imageResource: string, ...extra: any[]): void;
|
|
71
|
-
fill(...args: any[]): void;
|
|
72
|
-
fillRect(...args: any[]): void;
|
|
73
|
-
fillText(...args: any[]): void;
|
|
74
|
-
lineTo(...args: any[]): void;
|
|
75
|
-
moveTo(...args: any[]): void;
|
|
76
|
-
quadraticCurveTo(...args: any[]): void;
|
|
77
|
-
rect(...args: any[]): void;
|
|
78
|
-
restore(...args: any[]): void;
|
|
79
|
-
rotate(...args: any[]): void;
|
|
80
|
-
save(...args: any[]): void;
|
|
81
|
-
scale(...args: any[]): void;
|
|
82
|
-
setFillStyle(color: string | CanvasGradient): void;
|
|
83
|
-
setFontSize(fontSize: number): void;
|
|
84
|
-
setGlobalAlpha(alpha: number): void;
|
|
85
|
-
setLineCap(lineCap: keyof Taro.CanvasContext.LineCap): void;
|
|
86
|
-
setLineDash(pattern: number[], offset: number): void;
|
|
87
|
-
setLineJoin(lineJoin: keyof Taro.CanvasContext.LineJoin): void;
|
|
88
|
-
setLineWidth(lineWidth: number): void;
|
|
89
|
-
setMiterLimit(miterLimit: number): void;
|
|
90
|
-
setShadow(offsetX: number, offsetY: number, blur: number, color: string): void;
|
|
91
|
-
setStrokeStyle(color: string | CanvasGradient): void;
|
|
92
|
-
setTextAlign(align: keyof Taro.CanvasContext.Align): void;
|
|
93
|
-
setTextBaseline(textBaseline: keyof Taro.CanvasContext.TextBaseline): void;
|
|
94
|
-
setTransform(...args: any[]): void;
|
|
95
|
-
stroke(...args: any[]): void;
|
|
96
|
-
strokeRect(...args: any[]): void;
|
|
97
|
-
strokeText(...args: any[]): void;
|
|
98
|
-
transform(...args: any[]): void;
|
|
99
|
-
translate(...args: any[]): void;
|
|
100
|
-
measureText(text: string): TextMetrics;
|
|
101
|
-
createCircularGradient(x: number, y: number, r: number): CanvasGradient;
|
|
102
|
-
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
|
|
103
|
-
}
|
|
104
|
-
export {};
|