@tarojs/components 3.4.6 → 3.5.0-alpha.1
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/cjs/index-47a1959e.js +34 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +79 -3
- package/dist/cjs/taro-picker-view-core.cjs.entry.js +71 -2
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +5 -13
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +5 -13
- package/dist/cjs/taro-tabbar.cjs.entry.js +34 -35
- package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-video-control_3.cjs.entry.js +102 -115
- package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
- package/dist/collection/components/button/style/index.css +49 -49
- package/dist/collection/components/canvas/canvas.js +1 -1
- package/dist/collection/components/canvas/style/index.css +6 -6
- package/dist/collection/components/checkbox/style/index.css +21 -22
- package/dist/collection/components/image/style/index.css +4 -4
- package/dist/collection/components/input/index.css +2 -2
- package/dist/collection/components/navigator/navigator.js +2 -2
- package/dist/collection/components/navigator/{navigator.css → style/index.css} +3 -3
- package/dist/collection/components/picker/style/index.css +2 -1
- package/dist/collection/components/picker-view/picker-view-column.js +218 -4
- package/dist/collection/components/picker-view/picker-view.js +217 -3
- package/dist/collection/components/picker-view/style/column.css +12 -0
- package/dist/collection/components/picker-view/style/index.css +28 -0
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +1 -1
- package/dist/collection/components/pull-to-refresh/style/index.css +53 -50
- package/dist/collection/components/scroll-view/scroll-view.js +3 -11
- package/dist/collection/components/swiper/swiper.js +2 -10
- package/dist/collection/components/tabbar/style/index.css +7 -6
- package/dist/collection/components/tabbar/tabbar.js +11 -12
- package/dist/collection/components/text/style/index.css +0 -6
- package/dist/collection/components/textarea/style/index.css +5 -5
- package/dist/collection/components/video/style/index.css +89 -109
- package/dist/collection/components/video/utils.js +95 -109
- package/dist/collection/components/video/video.js +2 -1
- package/dist/collection/components/view/style/index.css +3 -5
- package/dist/collection/components/web-view/style/index.css +1 -1
- package/dist/collection/utils/index.js +23 -83
- package/dist/collection/utils/style.js +10 -0
- package/dist/collection/utils/url.js +67 -0
- package/dist/esm/index-cad8203e.js +31 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-button-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +1 -1
- package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-image-core.entry.js +1 -1
- package/dist/esm/taro-input-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +2 -2
- package/dist/esm/taro-picker-view-column-core.entry.js +80 -4
- package/dist/esm/taro-picker-view-core.entry.js +72 -3
- package/dist/esm/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js +3 -11
- package/dist/esm/taro-swiper-core_2.entry.js +1 -9
- package/dist/esm/taro-tabbar.entry.js +34 -35
- package/dist/esm/taro-text-core.entry.js +1 -1
- package/dist/esm/taro-textarea-core.entry.js +1 -1
- package/dist/esm/taro-video-control_3.entry.js +96 -109
- package/dist/esm/taro-view-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +1 -1
- package/dist/esm-es5/index-cad8203e.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/{p-4dbed323.entry.js → p-07062966.entry.js} +1 -1
- package/dist/taro-components/p-078230a0.system.entry.js +1 -0
- package/dist/taro-components/p-08aba8db.system.entry.js +1 -0
- package/dist/taro-components/p-08ea5931.system.entry.js +1 -0
- package/dist/taro-components/{p-9fc88fc1.system.entry.js → p-0c18bd18.system.entry.js} +1 -1
- package/dist/taro-components/{p-17cf8b5b.entry.js → p-1b48afb1.entry.js} +1 -1
- package/dist/taro-components/p-1c625d7d.entry.js +1 -0
- package/dist/taro-components/p-33ee636a.system.js +1 -1
- package/dist/taro-components/p-34188530.system.entry.js +1 -0
- package/dist/taro-components/{p-71e14298.entry.js → p-4039bcb5.entry.js} +1 -1
- package/dist/taro-components/p-44b60b72.entry.js +1 -0
- package/dist/taro-components/p-4aa4de0f.system.entry.js +1 -0
- package/dist/taro-components/{p-50066d5e.system.entry.js → p-4cd044c4.system.entry.js} +1 -1
- package/dist/taro-components/p-5746d7ce.js +1 -0
- package/dist/taro-components/{p-2b0d5c90.system.entry.js → p-58623cdd.system.entry.js} +1 -1
- package/dist/taro-components/{p-d041b413.entry.js → p-5c6aeb55.entry.js} +1 -1
- package/dist/taro-components/{p-1c1336f5.entry.js → p-5d5baadf.entry.js} +1 -1
- package/dist/taro-components/p-663d1bb9.system.js +1 -0
- package/dist/taro-components/{p-d567b95e.entry.js → p-758fb1ba.entry.js} +1 -1
- package/dist/taro-components/p-786653af.system.entry.js +1 -0
- package/dist/taro-components/p-7fdd59f0.entry.js +1 -0
- package/dist/taro-components/{p-fd8312e5.system.entry.js → p-8e0150eb.system.entry.js} +1 -1
- package/dist/taro-components/p-92a31933.system.entry.js +1 -0
- package/dist/taro-components/p-a05d66d1.system.entry.js +1 -0
- package/dist/taro-components/p-a1863c96.entry.js +1 -0
- package/dist/taro-components/p-aae3e479.entry.js +1 -0
- package/dist/taro-components/p-c5a86c19.system.entry.js +1 -0
- package/dist/taro-components/p-cc36cee7.entry.js +1 -0
- package/dist/taro-components/{p-8bc82aaa.entry.js → p-d0c608a8.entry.js} +1 -1
- package/dist/taro-components/{p-293531af.system.entry.js → p-d91ab597.system.entry.js} +1 -1
- package/dist/taro-components/{p-fe156231.system.entry.js → p-da8edf69.system.entry.js} +1 -1
- package/dist/taro-components/p-e0ad978e.entry.js +1 -0
- package/dist/taro-components/p-e35230e0.entry.js +1 -0
- package/dist/taro-components/p-e61d2113.system.entry.js +1 -0
- package/dist/taro-components/{p-4e54216b.entry.js → p-f5fe8711.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/picker-view/picker-view-column.d.ts +15 -1
- package/dist/types/components/picker-view/picker-view.d.ts +24 -0
- package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
- package/dist/types/components/swiper/swiper.d.ts +2 -2
- package/dist/types/components/tabbar/tabbar.d.ts +3 -2
- package/dist/types/components/video/utils.d.ts +7 -0
- package/dist/types/components.d.ts +22 -0
- package/dist/types/utils/index.d.ts +4 -8
- package/dist/types/utils/style.d.ts +1 -0
- package/dist/types/utils/url.d.ts +6 -0
- package/package.json +3 -3
- package/types/Input.d.ts +5 -4
- package/types/PickerViewColumn.d.ts +2 -2
- package/types/index.vue3.d.ts +159 -0
- package/dist/taro-components/p-32937866.entry.js +0 -1
- package/dist/taro-components/p-431197bc.entry.js +0 -1
- package/dist/taro-components/p-43de2f12.system.entry.js +0 -1
- package/dist/taro-components/p-5ae86835.system.entry.js +0 -1
- package/dist/taro-components/p-5c420456.entry.js +0 -1
- package/dist/taro-components/p-6de12779.entry.js +0 -1
- package/dist/taro-components/p-83dedaa2.entry.js +0 -1
- package/dist/taro-components/p-8486c251.system.entry.js +0 -1
- package/dist/taro-components/p-95529dc0.entry.js +0 -1
- package/dist/taro-components/p-b15d0302.system.entry.js +0 -1
- package/dist/taro-components/p-b32442fc.system.entry.js +0 -1
- package/dist/taro-components/p-cc818a13.entry.js +0 -1
- package/dist/taro-components/p-d394a61f.system.entry.js +0 -1
- package/dist/taro-components/p-d5971476.entry.js +0 -1
- package/dist/taro-components/p-e0af1d0d.system.entry.js +0 -1
- package/dist/taro-components/p-fb2252b7.system.entry.js +0 -1
- package/dist/taro-components/p-fd0d1168.system.entry.js +0 -1
- package/dist/taro-components/p-fde3a009.system.entry.js +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function throttle(fn, threshold = 250, scope) {
|
|
4
|
+
let lastTime = 0;
|
|
5
|
+
let deferTimer;
|
|
6
|
+
return function (...args) {
|
|
7
|
+
const context = scope || this;
|
|
8
|
+
const now = Date.now();
|
|
9
|
+
if (now - lastTime > threshold) {
|
|
10
|
+
fn.apply(this, args);
|
|
11
|
+
lastTime = now;
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
clearTimeout(deferTimer);
|
|
15
|
+
deferTimer = setTimeout(() => {
|
|
16
|
+
lastTime = now;
|
|
17
|
+
fn.apply(context, args);
|
|
18
|
+
}, threshold);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function debounce(fn, ms = 250, scope) {
|
|
23
|
+
let timer;
|
|
24
|
+
return function (...args) {
|
|
25
|
+
const context = scope || this;
|
|
26
|
+
clearTimeout(timer);
|
|
27
|
+
timer = setTimeout(function () {
|
|
28
|
+
fn.apply(context, args);
|
|
29
|
+
}, ms);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.debounce = debounce;
|
|
34
|
+
exports.throttle = throttle;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["taro-checkbox-core_2.cjs",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["taro-radio-core_2.cjs",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1028],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["taro-swiper-core_2.cjs",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["taro-ad-core.cjs",[[0,"taro-ad-core"]]],["taro-ad-custom-core.cjs",[[0,"taro-ad-custom-core"]]],["taro-audio-core.cjs",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["taro-block-core.cjs",[[0,"taro-block-core"]]],["taro-button-core.cjs",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[1,"form-type"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["taro-camera-core.cjs",[[0,"taro-camera-core"]]],["taro-canvas-core.cjs",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["taro-cover-image-core.cjs",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["taro-cover-view-core.cjs",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["taro-custom-wrapper-core.cjs",[[0,"taro-custom-wrapper-core"]]],["taro-editor-core.cjs",[[0,"taro-editor-core"]]],["taro-form-core.cjs",[[4,"taro-form-core",{"slotParent":[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["taro-functional-page-navigator-core.cjs",[[0,"taro-functional-page-navigator-core"]]],["taro-icon-core.cjs",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["taro-image-core.cjs",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["taro-input-core.cjs",[[0,"taro-input-core",{"value":[1],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16]}]]],["taro-keyboard-accessory-core.cjs",[[0,"taro-keyboard-accessory-core"]]],["taro-label-core.cjs",[[4,"taro-label-core",{"for":[1]}]]],["taro-live-player-core.cjs",[[0,"taro-live-player-core"]]],["taro-live-pusher-core.cjs",[[0,"taro-live-pusher-core"]]],["taro-map-core.cjs",[[0,"taro-map-core"]]],["taro-match-media-core.cjs",[[0,"taro-match-media-core"]]],["taro-movable-area-core.cjs",[[0,"taro-movable-area-core"]]],["taro-movable-view-core.cjs",[[0,"taro-movable-view-core"]]],["taro-navigation-bar-core.cjs",[[0,"taro-navigation-bar-core"]]],["taro-navigator-core.cjs",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["taro-official-account-core.cjs",[[0,"taro-official-account-core"]]],["taro-open-data-core.cjs",[[0,"taro-open-data-core"]]],["taro-page-container-core.cjs",[[0,"taro-page-container-core"]]],["taro-page-meta-core.cjs",[[0,"taro-page-meta-core"]]],["taro-picker-view-column-core.cjs",[[0,"taro-picker-view-column-core"]]],["taro-picker-view-core.cjs",[[
|
|
17
|
+
return index.bootstrapLazy([["taro-checkbox-core_2.cjs",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["taro-radio-core_2.cjs",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1028],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["taro-swiper-core_2.cjs",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["taro-ad-core.cjs",[[0,"taro-ad-core"]]],["taro-ad-custom-core.cjs",[[0,"taro-ad-custom-core"]]],["taro-audio-core.cjs",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["taro-block-core.cjs",[[0,"taro-block-core"]]],["taro-button-core.cjs",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[1,"form-type"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["taro-camera-core.cjs",[[0,"taro-camera-core"]]],["taro-canvas-core.cjs",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["taro-cover-image-core.cjs",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["taro-cover-view-core.cjs",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["taro-custom-wrapper-core.cjs",[[0,"taro-custom-wrapper-core"]]],["taro-editor-core.cjs",[[0,"taro-editor-core"]]],["taro-form-core.cjs",[[4,"taro-form-core",{"slotParent":[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["taro-functional-page-navigator-core.cjs",[[0,"taro-functional-page-navigator-core"]]],["taro-icon-core.cjs",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["taro-image-core.cjs",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["taro-input-core.cjs",[[0,"taro-input-core",{"value":[1],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16]}]]],["taro-keyboard-accessory-core.cjs",[[0,"taro-keyboard-accessory-core"]]],["taro-label-core.cjs",[[4,"taro-label-core",{"for":[1]}]]],["taro-live-player-core.cjs",[[0,"taro-live-player-core"]]],["taro-live-pusher-core.cjs",[[0,"taro-live-pusher-core"]]],["taro-map-core.cjs",[[0,"taro-map-core"]]],["taro-match-media-core.cjs",[[0,"taro-match-media-core"]]],["taro-movable-area-core.cjs",[[0,"taro-movable-area-core"]]],["taro-movable-view-core.cjs",[[0,"taro-movable-view-core"]]],["taro-navigation-bar-core.cjs",[[0,"taro-navigation-bar-core"]]],["taro-navigator-core.cjs",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["taro-official-account-core.cjs",[[0,"taro-official-account-core"]]],["taro-open-data-core.cjs",[[0,"taro-open-data-core"]]],["taro-page-container-core.cjs",[[0,"taro-page-container-core"]]],["taro-page-meta-core.cjs",[[0,"taro-page-meta-core"]]],["taro-picker-view-column-core.cjs",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32],"isMove":[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]]]],["taro-picker-view-core.cjs",[[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["taro-progress-core.cjs",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["taro-pull-to-refresh.cjs",[[4,"taro-pull-to-refresh",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["taro-rich-text-core.cjs",[[0,"taro-rich-text-core",{"nodes":[1]}]]],["taro-scroll-view-core.cjs",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[8,"scroll-top"],"mpScrollLeft":[8,"scroll-left"],"mpScrollIntoView":[1,"scroll-into-view"],"scrollWithAnimation":[4,"scroll-with-animation"]}]]],["taro-share-element-core.cjs",[[0,"taro-share-element-core"]]],["taro-slider-core.cjs",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1026],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"val":[32],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["taro-slot-core.cjs",[[0,"taro-slot-core"]]],["taro-switch-core.cjs",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["taro-tabbar.cjs",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["taro-text-core.cjs",[[4,"taro-text-core",{"selectable":[4]}]]],["taro-textarea-core.cjs",[[0,"taro-textarea-core",{"value":[1],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32]}]]],["taro-view-core.cjs",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["taro-voip-room-core.cjs",[[0,"taro-voip-room-core"]]],["taro-web-view-core.cjs",[[0,"taro-web-view-core",{"src":[1]}]]],["taro-picker-core_2.cjs",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[8],"start":[1],"end":[1],"fields":[1],"name":[1],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"onColumnChange":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["taro-video-control_3.cjs",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-dd4b7ba3.js');
|
|
6
6
|
const index$1 = require('./index-b9715722.js');
|
|
7
7
|
|
|
8
|
-
const indexCss = "taro-button-core{position:relative;
|
|
8
|
+
const indexCss = "taro-button-core{display:block;overflow:hidden;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;border-width:0;border-radius:5px;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#f8f8f8;line-height:2.55555556;text-decoration:none;text-align:center;font-size:18px;color:#000;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}taro-button-core:focus{outline:0}taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core::after{position:absolute;left:0;top:0;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid rgba(0, 0, 0, 0.2);border-radius:10px;width:200%;height:200%;content:\" \";-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{background-color:#f8f8f8;color:#000}taro-button-core[type=default]:not([disabled]):visited{color:#000}taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0, 0, 0, 0.6)}taro-button-core[size=mini]{display:inline-block;padding:0 1.32em;width:auto;line-height:2.3;font-size:13px}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{border-width:1px;background-color:transparent}taro-button-core[disabled]{color:rgba(255, 255, 255, 0.6)}taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[disabled][type=primary]{background-color:#9ed99d}taro-button-core[disabled][type=warn]{background-color:#ec8b89}taro-button-core[loading] .weui-loading{margin:-0.2em 0.34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255, 255, 255, 0.6)}taro-button-core[loading][type=primary]{background-color:#179b16}taro-button-core[loading][type=warn]{background-color:#ce3c39}taro-button-core[plain][type=primary]{border:1px solid #1aad19;color:#1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{border-color:rgba(26, 173, 25, 0.6);background-color:transparent;color:rgba(26, 173, 25, 0.6)}taro-button-core[plain][type=primary]::after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{border:1px solid #353535;color:#353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{border-color:rgba(53, 53, 53, 0.6);background-color:transparent;color:rgba(53, 53, 53, 0.6)}taro-button-core[plain]::after,taro-button-core[plain][type=default]::after{border-width:0}taro-button-core[type=primary]{background-color:#1aad19;color:#fff}taro-button-core[type=primary]:not([disabled]):visited{color:#fff}taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:rgba(255, 255, 255, 0.6)}taro-button-core[type=warn]{background-color:#e64340;color:#fff}taro-button-core[type=warn]:not([disabled]):visited{color:#fff}taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:rgba(255, 255, 255, 0.6)}taro-button-core[plain][disabled]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}taro-button-core[plain][disabled][type=primary]{border:1px solid rgba(0, 0, 0, 0.2);background-color:#f7f7f7;color:rgba(0, 0, 0, 0.3)}";
|
|
9
9
|
|
|
10
10
|
let Button = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd4b7ba3.js');
|
|
6
6
|
|
|
7
|
-
const indexCss = "taro-canvas-core{position:relative;
|
|
7
|
+
const indexCss = "taro-canvas-core{display:block;position:relative;width:300px;height:150px}";
|
|
8
8
|
|
|
9
9
|
const LONG_TAP_DELAY = 500;
|
|
10
10
|
let Canvas = class {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd4b7ba3.js');
|
|
6
6
|
|
|
7
|
-
const indexCss = "@charset \"UTF-8\";.taro-checkbox{
|
|
7
|
+
const indexCss = "@charset \"UTF-8\";.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{display:inline-block;position:relative;top:5px;border:1px solid #d1d1d1;border-radius:3px;width:23px;height:23px;min-height:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background-color:#fff;vertical-align:0;font-size:23px;color:#1aad19}.taro-checkbox_checked:checked::before{display:inline-block;position:absolute;left:50%;top:50%;vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-family:weui;font-style:normal;font-weight:normal;font-variant:normal;font-size:inherit;color:inherit;content:\"\";-webkit-transform:translate(-50%, -48%) scale(0.73);transform:translate(-50%, -48%) scale(0.73);speak:none}";
|
|
8
8
|
|
|
9
9
|
let Checkbox = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["taro-checkbox-core_2.cjs",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["taro-radio-core_2.cjs",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1028],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["taro-swiper-core_2.cjs",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["taro-ad-core.cjs",[[0,"taro-ad-core"]]],["taro-ad-custom-core.cjs",[[0,"taro-ad-custom-core"]]],["taro-audio-core.cjs",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["taro-block-core.cjs",[[0,"taro-block-core"]]],["taro-button-core.cjs",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[1,"form-type"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["taro-camera-core.cjs",[[0,"taro-camera-core"]]],["taro-canvas-core.cjs",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["taro-cover-image-core.cjs",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["taro-cover-view-core.cjs",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["taro-custom-wrapper-core.cjs",[[0,"taro-custom-wrapper-core"]]],["taro-editor-core.cjs",[[0,"taro-editor-core"]]],["taro-form-core.cjs",[[4,"taro-form-core",{"slotParent":[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["taro-functional-page-navigator-core.cjs",[[0,"taro-functional-page-navigator-core"]]],["taro-icon-core.cjs",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["taro-image-core.cjs",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["taro-input-core.cjs",[[0,"taro-input-core",{"value":[1],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16]}]]],["taro-keyboard-accessory-core.cjs",[[0,"taro-keyboard-accessory-core"]]],["taro-label-core.cjs",[[4,"taro-label-core",{"for":[1]}]]],["taro-live-player-core.cjs",[[0,"taro-live-player-core"]]],["taro-live-pusher-core.cjs",[[0,"taro-live-pusher-core"]]],["taro-map-core.cjs",[[0,"taro-map-core"]]],["taro-match-media-core.cjs",[[0,"taro-match-media-core"]]],["taro-movable-area-core.cjs",[[0,"taro-movable-area-core"]]],["taro-movable-view-core.cjs",[[0,"taro-movable-view-core"]]],["taro-navigation-bar-core.cjs",[[0,"taro-navigation-bar-core"]]],["taro-navigator-core.cjs",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["taro-official-account-core.cjs",[[0,"taro-official-account-core"]]],["taro-open-data-core.cjs",[[0,"taro-open-data-core"]]],["taro-page-container-core.cjs",[[0,"taro-page-container-core"]]],["taro-page-meta-core.cjs",[[0,"taro-page-meta-core"]]],["taro-picker-view-column-core.cjs",[[0,"taro-picker-view-column-core"]]],["taro-picker-view-core.cjs",[[
|
|
18
|
+
return index.bootstrapLazy([["taro-checkbox-core_2.cjs",[[4,"taro-checkbox-core",{"name":[1],"value":[1],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["taro-radio-core_2.cjs",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1028],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["taro-swiper-core_2.cjs",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32],"observerFirst":[32],"observerLast":[32]}],[0,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["taro-ad-core.cjs",[[0,"taro-ad-core"]]],["taro-ad-custom-core.cjs",[[0,"taro-ad-custom-core"]]],["taro-audio-core.cjs",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["taro-block-core.cjs",[[0,"taro-block-core"]]],["taro-button-core.cjs",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[1,"form-type"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["taro-camera-core.cjs",[[0,"taro-camera-core"]]],["taro-canvas-core.cjs",[[0,"taro-canvas-core",{"canvasId":[1,"canvas-id"],"nativeProps":[16]}]]],["taro-cover-image-core.cjs",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["taro-cover-view-core.cjs",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["taro-custom-wrapper-core.cjs",[[0,"taro-custom-wrapper-core"]]],["taro-editor-core.cjs",[[0,"taro-editor-core"]]],["taro-form-core.cjs",[[4,"taro-form-core",{"slotParent":[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["taro-functional-page-navigator-core.cjs",[[0,"taro-functional-page-navigator-core"]]],["taro-icon-core.cjs",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["taro-image-core.cjs",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32]}]]],["taro-input-core.cjs",[[0,"taro-input-core",{"value":[1],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"confirmType":[1,"confirm-type"],"name":[1],"nativeProps":[16]}]]],["taro-keyboard-accessory-core.cjs",[[0,"taro-keyboard-accessory-core"]]],["taro-label-core.cjs",[[4,"taro-label-core",{"for":[1]}]]],["taro-live-player-core.cjs",[[0,"taro-live-player-core"]]],["taro-live-pusher-core.cjs",[[0,"taro-live-pusher-core"]]],["taro-map-core.cjs",[[0,"taro-map-core"]]],["taro-match-media-core.cjs",[[0,"taro-match-media-core"]]],["taro-movable-area-core.cjs",[[0,"taro-movable-area-core"]]],["taro-movable-view-core.cjs",[[0,"taro-movable-view-core"]]],["taro-navigation-bar-core.cjs",[[0,"taro-navigation-bar-core"]]],["taro-navigator-core.cjs",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["taro-official-account-core.cjs",[[0,"taro-official-account-core"]]],["taro-open-data-core.cjs",[[0,"taro-open-data-core"]]],["taro-page-container-core.cjs",[[0,"taro-page-container-core"]]],["taro-page-meta-core.cjs",[[0,"taro-page-meta-core"]]],["taro-picker-view-column-core.cjs",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32],"isMove":[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]]]],["taro-picker-view-core.cjs",[[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["taro-progress-core.cjs",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["taro-pull-to-refresh.cjs",[[4,"taro-pull-to-refresh",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["taro-rich-text-core.cjs",[[0,"taro-rich-text-core",{"nodes":[1]}]]],["taro-scroll-view-core.cjs",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[8,"scroll-top"],"mpScrollLeft":[8,"scroll-left"],"mpScrollIntoView":[1,"scroll-into-view"],"scrollWithAnimation":[4,"scroll-with-animation"]}]]],["taro-share-element-core.cjs",[[0,"taro-share-element-core"]]],["taro-slider-core.cjs",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1026],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"val":[32],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["taro-slot-core.cjs",[[0,"taro-slot-core"]]],["taro-switch-core.cjs",[[0,"taro-switch-core",{"type":[1],"checked":[4],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isChecked":[32],"isWillLoadCalled":[32]}]]],["taro-tabbar.cjs",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["taro-text-core.cjs",[[4,"taro-text-core",{"selectable":[4]}]]],["taro-textarea-core.cjs",[[0,"taro-textarea-core",{"value":[1],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"auto-focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32]}]]],["taro-view-core.cjs",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["taro-voip-room-core.cjs",[[0,"taro-voip-room-core"]]],["taro-web-view-core.cjs",[[0,"taro-web-view-core",{"src":[1]}]]],["taro-picker-core_2.cjs",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[8],"start":[1],"end":[1],"fields":[1],"name":[1],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"onColumnChange":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["taro-video-control_3.cjs",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]], options);
|
|
19
19
|
});
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-dd4b7ba3.js');
|
|
6
6
|
const index$1 = require('./index-b9715722.js');
|
|
7
7
|
|
|
8
|
-
const indexCss = "img[src=\"\"]{opacity:0}taro-image-core{display:inline-block;overflow:hidden;position:relative;
|
|
8
|
+
const indexCss = "img[src=\"\"]{opacity:0}taro-image-core{display:inline-block;overflow:hidden;position:relative;width:auto;height:auto;font-size:0}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%}.taro-img__mode-aspectfill{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{width:100%}.taro-img__mode-bottom{position:absolute;bottom:0;width:100%}.taro-img__mode-left{height:100%}.taro-img__mode-right{position:absolute;right:0;height:100%}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;right:0;bottom:0}";
|
|
9
9
|
|
|
10
10
|
Promise.resolve().then(function () { return require('./intersection-observer-dc4cfcef.js'); });
|
|
11
11
|
let Image = class {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd4b7ba3.js');
|
|
6
6
|
|
|
7
|
-
const indexCss = "taro-input-core{display:block}input{display:block;height:1.4rem;text-
|
|
7
|
+
const indexCss = "taro-input-core{display:block}input{display:block;overflow:hidden;height:1.4rem;text-overflow:clip;text-align:inherit;white-space:nowrap}";
|
|
8
8
|
|
|
9
9
|
function getTrueType(type, confirmType, password) {
|
|
10
10
|
if (confirmType === 'search')
|
|
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
|
|
11
11
|
const Taro__default = /*#__PURE__*/_interopDefaultLegacy(Taro);
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const indexCss = ".navigator-hover{background:#efefef}";
|
|
14
14
|
|
|
15
15
|
let Navigator = class {
|
|
16
16
|
constructor(hostRef) {
|
|
@@ -72,6 +72,6 @@ let Navigator = class {
|
|
|
72
72
|
}) }));
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
Navigator.style =
|
|
75
|
+
Navigator.style = indexCss;
|
|
76
76
|
|
|
77
77
|
exports.taro_navigator_core = Navigator;
|
|
@@ -3,17 +3,93 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd4b7ba3.js');
|
|
6
|
+
const index$1 = require('./index-47a1959e.js');
|
|
7
|
+
|
|
8
|
+
const columnCss = ".taro-picker-view-column-container{display:-ms-flexbox;display:flex;overflow:scroll;overflow-x:hidden;position:relative;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;text-align:center}.taro-picker-view-column-container::-webkit-scrollbar{display:none}";
|
|
6
9
|
|
|
7
10
|
let PickerViewColumn = class {
|
|
8
11
|
constructor(hostRef) {
|
|
9
12
|
index.registerInstance(this, hostRef);
|
|
13
|
+
this.onChange = index.createEvent(this, "onselect", 7);
|
|
14
|
+
this.onSelectStart = index.createEvent(this, "onselectstart", 7);
|
|
15
|
+
this.onSelectEnd = index.createEvent(this, "onselectend", 7);
|
|
16
|
+
// 初始化的选中位置
|
|
17
|
+
this.initialPosition = '0';
|
|
18
|
+
// 滑动距离上下留白区域-通过父视图和 indicator 计算而来
|
|
19
|
+
this.paddingVertical = 0;
|
|
20
|
+
this.isInit = false;
|
|
21
|
+
this.isMove = false;
|
|
22
|
+
// 滚动结束自动回到合适的位置
|
|
23
|
+
this.handleSelected = index$1.debounce(() => {
|
|
24
|
+
const childList = this.el.childNodes;
|
|
25
|
+
let sum = 0;
|
|
26
|
+
let selectedIndex = '0';
|
|
27
|
+
for (const index in childList) {
|
|
28
|
+
const item = childList[index];
|
|
29
|
+
const itemHeight = item.offsetHeight;
|
|
30
|
+
if (sum + itemHeight / 2.0 > this.el.scrollTop) {
|
|
31
|
+
selectedIndex = index;
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
sum += itemHeight;
|
|
35
|
+
}
|
|
36
|
+
this.el.scrollTo({
|
|
37
|
+
top: sum,
|
|
38
|
+
behavior: 'smooth'
|
|
39
|
+
});
|
|
40
|
+
this.onChange.emit({
|
|
41
|
+
curIndex: this.col,
|
|
42
|
+
selectedIndex: selectedIndex
|
|
43
|
+
});
|
|
44
|
+
this.onSelectEnd.emit();
|
|
45
|
+
}, 500);
|
|
46
|
+
}
|
|
47
|
+
onScroll(_event) {
|
|
48
|
+
if (!this.isMove) {
|
|
49
|
+
this.isMove = true;
|
|
50
|
+
this.onSelectStart.emit();
|
|
51
|
+
}
|
|
52
|
+
this.handleSelected();
|
|
53
|
+
}
|
|
54
|
+
onMouseEnd() {
|
|
55
|
+
if (!this.isMove)
|
|
56
|
+
return;
|
|
57
|
+
this.isMove = false;
|
|
58
|
+
this.handleSelected();
|
|
59
|
+
}
|
|
60
|
+
onTouchEnd() {
|
|
61
|
+
this.isMove = false;
|
|
62
|
+
this.handleSelected();
|
|
10
63
|
}
|
|
11
|
-
|
|
12
|
-
|
|
64
|
+
componentDidUpdate() {
|
|
65
|
+
if (!this.isInit) {
|
|
66
|
+
this.isInit = true;
|
|
67
|
+
const childList = this.el.childNodes;
|
|
68
|
+
let idx = 0;
|
|
69
|
+
let sum = 0;
|
|
70
|
+
for (const index in childList) {
|
|
71
|
+
const item = childList[index];
|
|
72
|
+
if (this.initialPosition === index || !item || typeof item.offsetHeight !== 'number') {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
sum += item.offsetHeight;
|
|
76
|
+
idx++;
|
|
77
|
+
}
|
|
78
|
+
this.el.scrollTo({ top: sum });
|
|
79
|
+
if (idx >= childList.length) {
|
|
80
|
+
this.onChange.emit({
|
|
81
|
+
curIndex: this.col,
|
|
82
|
+
selectedIndex: idx - 1
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
13
86
|
}
|
|
14
87
|
render() {
|
|
15
|
-
|
|
88
|
+
const { paddingVertical = 0 } = this;
|
|
89
|
+
return (index.h(index.Host, { class: "taro-picker-view-column-container", style: { 'padding-top': `${paddingVertical}px`, 'padding-bottom': `${paddingVertical}px` } }));
|
|
16
90
|
}
|
|
91
|
+
get el() { return index.getElement(this); }
|
|
17
92
|
};
|
|
93
|
+
PickerViewColumn.style = columnCss;
|
|
18
94
|
|
|
19
95
|
exports.taro_picker_view_column_core = PickerViewColumn;
|
|
@@ -3,17 +3,86 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd4b7ba3.js');
|
|
6
|
+
const index$1 = require('./index-b9715722.js');
|
|
7
|
+
|
|
8
|
+
function convertStyle(style) {
|
|
9
|
+
if (style) {
|
|
10
|
+
const regex = /([\w-]*)\s*:\s*([^;]*)/g;
|
|
11
|
+
const properties = {};
|
|
12
|
+
let match;
|
|
13
|
+
while ((match = regex.exec(style)))
|
|
14
|
+
properties[`${match[1]}`] = match[2].trim();
|
|
15
|
+
return properties;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const indexCss = ".taro-picker-view-container{display:-ms-flexbox;display:flex;position:relative}.taro-picker-view-mask-container{display:-ms-flexbox;display:flex;position:absolute;left:0;right:0;top:0;bottom:0;-ms-flex-direction:column;flex-direction:column;pointer-events:none}.taro-picker-view-mask-indicator{display:-ms-flexbox;display:flex;border-top:1px solid #ddd;border-bottom:1px solid #ddd;height:50px}.taro-picker-view-mask-top{-ms-flex:1;flex:1;background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.95)), to(rgba(255, 255, 255, 0.6)));background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6))}.taro-picker-view-mask-bottom{-ms-flex:1;flex:1;background:-webkit-gradient(linear, left bottom, left top, from(rgba(255, 255, 255, 0.95)), to(rgba(255, 255, 255, 0.6)));background:linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6))}";
|
|
6
20
|
|
|
7
21
|
let PickerView = class {
|
|
8
22
|
constructor(hostRef) {
|
|
9
23
|
index.registerInstance(this, hostRef);
|
|
24
|
+
this.onChange = index.createEvent(this, "change", 7);
|
|
25
|
+
this.onPickStart = index.createEvent(this, "pickstart", 7);
|
|
26
|
+
this.onPickEnd = index.createEvent(this, "pickend", 7);
|
|
27
|
+
}
|
|
28
|
+
onSelect(e) {
|
|
29
|
+
e.stopPropagation();
|
|
30
|
+
if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
|
|
31
|
+
return;
|
|
32
|
+
let _curIndex = +e.detail.curIndex;
|
|
33
|
+
let _selectedIndex = +e.detail.selectedIndex;
|
|
34
|
+
this.value[_curIndex] = _selectedIndex;
|
|
35
|
+
this.onChange.emit({ value: this.value });
|
|
36
|
+
}
|
|
37
|
+
onSelectStart(e) {
|
|
38
|
+
e.stopPropagation();
|
|
39
|
+
if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
|
|
40
|
+
return;
|
|
41
|
+
this.onPickStart.emit();
|
|
42
|
+
}
|
|
43
|
+
onPickerColEnd(e) {
|
|
44
|
+
e.stopPropagation();
|
|
45
|
+
if (e.target.tagName !== 'TARO-PICKER-VIEW-COLUMN-CORE')
|
|
46
|
+
return;
|
|
47
|
+
this.onPickEnd.emit();
|
|
10
48
|
}
|
|
11
49
|
componentDidLoad() {
|
|
12
|
-
|
|
50
|
+
const childList = this.el.querySelectorAll('taro-picker-view-column-core');
|
|
51
|
+
childList.forEach((element, index) => {
|
|
52
|
+
var _a;
|
|
53
|
+
element.setAttribute('col', `${index}`);
|
|
54
|
+
let selectIndex = '0';
|
|
55
|
+
if (!!this.value && this.value.length > index) {
|
|
56
|
+
selectIndex = `${this.value[index]}`;
|
|
57
|
+
}
|
|
58
|
+
const pickerHeight = this.el.getBoundingClientRect().height;
|
|
59
|
+
const indicatorHeight = ((_a = this.indicator) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
|
|
60
|
+
const paddingVertical = (pickerHeight - indicatorHeight) / 2.0;
|
|
61
|
+
element.setAttribute('initial-position', `${selectIndex}`);
|
|
62
|
+
element.setAttribute('padding-vertical', `${paddingVertical}`);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
// 过滤非 PickerViewColumn 组件
|
|
66
|
+
componentDidRender() {
|
|
67
|
+
this.el.childNodes.forEach(item => {
|
|
68
|
+
const childEle = item;
|
|
69
|
+
if ('TARO-PICKER-VIEW-COLUMN-CORE' !== childEle.tagName &&
|
|
70
|
+
childEle.className !== 'taro-picker-view-mask-container') {
|
|
71
|
+
this.el.removeChild(item);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
13
74
|
}
|
|
14
75
|
render() {
|
|
15
|
-
|
|
76
|
+
const indicatorCls = index$1.classnames('taro-picker-view-mask-indicator', this.indicatorClass);
|
|
77
|
+
const maskTopCls = index$1.classnames('taro-picker-view-mask-top', this.maskClass);
|
|
78
|
+
const maskBtmCls = index$1.classnames('taro-picker-view-mask-bottom', this.maskClass);
|
|
79
|
+
const indicatorStyle = convertStyle(this.indicatorStyle);
|
|
80
|
+
const maskTopStyle = convertStyle(this.maskStyle);
|
|
81
|
+
const maskBottomStyle = convertStyle(this.maskStyle);
|
|
82
|
+
return (index.h(index.Host, { class: "taro-picker-view-container" }, index.h("slot", null), index.h("div", { class: "taro-picker-view-mask-container" }, index.h("div", { class: maskTopCls, style: maskTopStyle }), index.h("div", { class: indicatorCls, style: indicatorStyle, ref: indicator => (this.indicator = indicator) }), index.h("div", { class: maskBtmCls, style: maskBottomStyle }))));
|
|
16
83
|
}
|
|
84
|
+
get el() { return index.getElement(this); }
|
|
17
85
|
};
|
|
86
|
+
PickerView.style = indexCss;
|
|
18
87
|
|
|
19
88
|
exports.taro_picker_view_core = PickerView;
|
|
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
|
|
11
11
|
const Taro__default = /*#__PURE__*/_interopDefaultLegacy(Taro);
|
|
12
12
|
|
|
13
|
-
const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top
|
|
13
|
+
const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{overflow:hidden;min-height:100vh}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{display:inline-block;margin:3px;border-radius:100%;width:6px;height:6px;background-color:grey;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;-webkit-animation-fill-mode:both;animation-fill-mode:both}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
|
|
14
14
|
|
|
15
15
|
function setTransform(nodeStyle, value) {
|
|
16
16
|
nodeStyle.transform = value;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd4b7ba3.js');
|
|
6
|
-
const index$
|
|
6
|
+
const index$2 = require('./index-b9715722.js');
|
|
7
|
+
const index$1 = require('./index-47a1959e.js');
|
|
7
8
|
|
|
8
9
|
const indexCss = "taro-scroll-view-core{display:block;width:100%;-webkit-overflow-scrolling:auto}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}";
|
|
9
10
|
|
|
@@ -29,15 +30,6 @@ function easeOutScroll(from, to, callback) {
|
|
|
29
30
|
}
|
|
30
31
|
step();
|
|
31
32
|
}
|
|
32
|
-
function debounce(fn, delay) {
|
|
33
|
-
let timer;
|
|
34
|
-
return function (...arrs) {
|
|
35
|
-
clearTimeout(timer);
|
|
36
|
-
timer = setTimeout(function () {
|
|
37
|
-
fn(...arrs);
|
|
38
|
-
}, delay);
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
33
|
let ScrollView = class {
|
|
42
34
|
constructor(hostRef) {
|
|
43
35
|
index.registerInstance(this, hostRef);
|
|
@@ -55,7 +47,7 @@ let ScrollView = class {
|
|
|
55
47
|
const { scrollLeft, scrollTop, scrollHeight, scrollWidth } = this.el;
|
|
56
48
|
this._scrollLeft = scrollLeft;
|
|
57
49
|
this._scrollTop = scrollTop;
|
|
58
|
-
this.
|
|
50
|
+
this.upperAndLower();
|
|
59
51
|
this.onScroll.emit({
|
|
60
52
|
scrollLeft,
|
|
61
53
|
scrollTop,
|
|
@@ -63,7 +55,7 @@ let ScrollView = class {
|
|
|
63
55
|
scrollWidth
|
|
64
56
|
});
|
|
65
57
|
};
|
|
66
|
-
this.
|
|
58
|
+
this.upperAndLower = index$1.debounce(() => {
|
|
67
59
|
const { offsetWidth, offsetHeight, scrollLeft, scrollTop, scrollHeight, scrollWidth } = this.el;
|
|
68
60
|
const lowerThreshold = Number(this.lowerThreshold);
|
|
69
61
|
const upperThreshold = Number(this.upperThreshold);
|
|
@@ -146,7 +138,7 @@ let ScrollView = class {
|
|
|
146
138
|
}
|
|
147
139
|
render() {
|
|
148
140
|
const { scrollX, scrollY } = this;
|
|
149
|
-
const cls = index$
|
|
141
|
+
const cls = index$2.classnames({
|
|
150
142
|
'taro-scroll-view__scroll-x': scrollX,
|
|
151
143
|
'taro-scroll-view__scroll-y': scrollY
|
|
152
144
|
});
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index$1 = require('./index-dd4b7ba3.js');
|
|
6
|
-
const index$
|
|
6
|
+
const index$3 = require('./index-b9715722.js');
|
|
7
|
+
const index$2 = require('./index-47a1959e.js');
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* SSR Window 3.0.0
|
|
@@ -9935,7 +9936,7 @@ let Swiper = class {
|
|
|
9935
9936
|
});
|
|
9936
9937
|
}
|
|
9937
9938
|
};
|
|
9938
|
-
this.handleSwiperLoop = debounce(() => {
|
|
9939
|
+
this.handleSwiperLoop = index$2.debounce(() => {
|
|
9939
9940
|
if (this.swiper && this.circular) {
|
|
9940
9941
|
// @ts-ignore
|
|
9941
9942
|
this.swiper.loopDestroy();
|
|
@@ -9943,7 +9944,7 @@ let Swiper = class {
|
|
|
9943
9944
|
this.swiper.loopCreate();
|
|
9944
9945
|
}
|
|
9945
9946
|
}, 500);
|
|
9946
|
-
this.handleSwiperSize = debounce(() => {
|
|
9947
|
+
this.handleSwiperSize = index$2.debounce(() => {
|
|
9947
9948
|
if (this.swiper && !this.circular) {
|
|
9948
9949
|
this.swiper.updateSlides();
|
|
9949
9950
|
}
|
|
@@ -10132,7 +10133,7 @@ let Swiper = class {
|
|
|
10132
10133
|
return (index$1.h(index$1.Host, { class: `taro-swiper-${this._id}`, style: hostStyle }, index$1.h("div", { class: 'swiper-container', style: style }, index$1.h("style", { type: 'text/css' }, `
|
|
10133
10134
|
.taro-swiper-${this._id} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet { background: ${indicatorColor} }
|
|
10134
10135
|
.taro-swiper-${this._id} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet-active { background: ${indicatorActiveColor} }
|
|
10135
|
-
`), index$1.h("div", { class: 'swiper-wrapper' }, index$1.h("slot", null)), index$1.h("div", { class: index$
|
|
10136
|
+
`), index$1.h("div", { class: 'swiper-wrapper' }, index$1.h("slot", null)), index$1.h("div", { class: index$3.classnames('swiper-pagination', {
|
|
10136
10137
|
'swiper-pagination-hidden': !indicatorDots,
|
|
10137
10138
|
'swiper-pagination-bullets': indicatorDots
|
|
10138
10139
|
}) }))));
|
|
@@ -10147,15 +10148,6 @@ let Swiper = class {
|
|
|
10147
10148
|
"circular": ["watchCircular"]
|
|
10148
10149
|
}; }
|
|
10149
10150
|
};
|
|
10150
|
-
function debounce(fn, delay) {
|
|
10151
|
-
let timer;
|
|
10152
|
-
return function (...arrs) {
|
|
10153
|
-
clearTimeout(timer);
|
|
10154
|
-
timer = setTimeout(function () {
|
|
10155
|
-
fn(...arrs);
|
|
10156
|
-
}, delay);
|
|
10157
|
-
};
|
|
10158
|
-
}
|
|
10159
10151
|
Swiper.style = indexCss;
|
|
10160
10152
|
|
|
10161
10153
|
let SwiperItem = class {
|