@tarojs/components 3.6.22-nightly.7 → 3.6.22-nightly.8
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/LICENSE +7 -0
- package/dist/cjs/index-f6805218.js +73 -0
- package/dist/cjs/taro-button-core.cjs.entry.js +2 -6
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -6
- package/dist/cjs/taro-icon-core.cjs.entry.js +2 -6
- package/dist/cjs/taro-image-core.cjs.entry.js +3 -7
- package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -3
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +3 -7
- package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +4 -8
- package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +3 -4
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +2 -6
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -3
- package/dist/cjs/taro-tabbar.cjs.entry.js +23 -24
- package/dist/cjs/taro-video-control_3.cjs.entry.js +5 -9
- package/dist/cjs/taro-view-core.cjs.entry.js +2 -6
- package/dist/components/index2.js +68 -31
- package/dist/components/index3.js +34 -0
- package/dist/components/taro-button-core.js +2 -2
- package/dist/components/taro-cover-view-core.js +2 -2
- package/dist/components/taro-icon-core.js +2 -2
- package/dist/components/taro-image-core.js +3 -3
- package/dist/components/taro-navigator-core.js +2 -2
- package/dist/components/taro-picker-core.js +3 -3
- package/dist/components/taro-picker-view-column-core.js +1 -1
- package/dist/components/taro-picker-view-core.js +4 -4
- package/dist/components/taro-pull-to-refresh-core.js +3 -3
- package/dist/components/taro-scroll-view-core.js +3 -3
- package/dist/components/taro-swiper-core.js +3 -3
- package/dist/components/taro-tabbar.js +5 -5
- package/dist/components/taro-video-core.js +6 -6
- package/dist/components/taro-view-core.js +2 -2
- package/dist/esm/index-c3e4004b.js +71 -0
- package/dist/esm/taro-button-core.entry.js +2 -2
- package/dist/esm/taro-cover-view-core.entry.js +2 -2
- package/dist/esm/taro-icon-core.entry.js +2 -2
- package/dist/esm/taro-image-core.entry.js +3 -3
- package/dist/esm/taro-navigator-core.entry.js +2 -2
- package/dist/esm/taro-picker-core_2.entry.js +3 -3
- package/dist/esm/taro-picker-view-column-core_2.entry.js +4 -4
- package/dist/esm/taro-pull-to-refresh-core.entry.js +3 -3
- package/dist/esm/taro-scroll-view-core.entry.js +2 -2
- package/dist/esm/taro-swiper-core_2.entry.js +2 -2
- package/dist/esm/taro-tabbar.entry.js +4 -4
- package/dist/esm/taro-video-control_3.entry.js +5 -5
- package/dist/esm/taro-view-core.entry.js +2 -2
- package/dist/esm-es5/index-c3e4004b.js +7 -0
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh-core.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-video-control_3.entry.js +1 -1
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/taro-components/p-06cf6b18.system.entry.js +1 -0
- package/dist/taro-components/p-16954dd6.entry.js +1 -0
- package/dist/taro-components/p-170ce205.system.entry.js +1 -0
- package/dist/taro-components/p-2bbdbe9c.system.entry.js +1 -0
- package/dist/taro-components/p-2dea35fd.entry.js +1 -0
- package/dist/taro-components/p-2ec68968.system.js +7 -0
- package/dist/taro-components/p-4408d796.entry.js +1 -0
- package/dist/taro-components/p-445810cb.entry.js +1 -0
- package/dist/taro-components/p-4e4ac1fe.system.entry.js +1 -0
- package/dist/taro-components/p-600d9210.entry.js +1 -0
- package/dist/taro-components/p-95058ee1.entry.js +1 -0
- package/dist/taro-components/p-9623f19c.system.entry.js +1 -0
- package/dist/taro-components/p-a197cbae.system.entry.js +1 -0
- package/dist/taro-components/p-a2a70581.system.entry.js +1 -0
- package/dist/taro-components/p-a972aa1d.system.js +1 -1
- package/dist/taro-components/p-b259b4ba.system.entry.js +1 -0
- package/dist/taro-components/p-b3b57aab.entry.js +1 -0
- package/dist/taro-components/p-b6694eb3.system.entry.js +1 -0
- package/dist/taro-components/p-b9f19e77.entry.js +1 -0
- package/dist/taro-components/p-bb87373d.entry.js +1 -0
- package/dist/taro-components/p-bdd7b5a9.entry.js +1 -0
- package/dist/taro-components/p-bf0d2c21.system.entry.js +1 -0
- package/dist/taro-components/p-c11fcb25.system.entry.js +1 -0
- package/dist/taro-components/p-d36f8c4f.entry.js +1 -0
- package/dist/taro-components/p-d60b66c2.entry.js +1 -0
- package/dist/taro-components/p-dc6db06e.system.entry.js +1 -0
- package/dist/taro-components/p-dca5e9ee.entry.js +1 -0
- package/dist/taro-components/p-de951a46.js +7 -0
- package/dist/taro-components/p-e09e8b51.system.entry.js +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/package.json +3 -4
- package/dist/taro-components/p-0589fade.system.entry.js +0 -1
- package/dist/taro-components/p-0d538950.system.entry.js +0 -1
- package/dist/taro-components/p-232d907e.entry.js +0 -1
- package/dist/taro-components/p-4a3acea0.system.entry.js +0 -1
- package/dist/taro-components/p-4d435e0e.entry.js +0 -1
- package/dist/taro-components/p-4dd5f401.system.entry.js +0 -1
- package/dist/taro-components/p-5920356c.system.entry.js +0 -1
- package/dist/taro-components/p-74e7dda9.entry.js +0 -1
- package/dist/taro-components/p-77ba4f09.system.entry.js +0 -1
- package/dist/taro-components/p-7b463b27.entry.js +0 -1
- package/dist/taro-components/p-7f2096b0.entry.js +0 -1
- package/dist/taro-components/p-8fa55dc6.entry.js +0 -1
- package/dist/taro-components/p-9477bad9.entry.js +0 -1
- package/dist/taro-components/p-9fb50df3.entry.js +0 -1
- package/dist/taro-components/p-b85cc3e9.entry.js +0 -1
- package/dist/taro-components/p-b8c7e5cd.system.entry.js +0 -1
- package/dist/taro-components/p-b96f3432.system.entry.js +0 -1
- package/dist/taro-components/p-bf3a666f.entry.js +0 -1
- package/dist/taro-components/p-c86f1bc0.entry.js +0 -1
- package/dist/taro-components/p-d8b1db26.system.entry.js +0 -1
- package/dist/taro-components/p-df6e6333.system.entry.js +0 -1
- package/dist/taro-components/p-e254406f.system.entry.js +0 -1
- package/dist/taro-components/p-e56e52a1.entry.js +0 -1
- package/dist/taro-components/p-e849f74a.system.entry.js +0 -1
- package/dist/taro-components/p-eb7709ea.system.entry.js +0 -1
- package/dist/taro-components/p-ec82a895.entry.js +0 -1
package/LICENSE
CHANGED
|
@@ -165,3 +165,10 @@ MIT (weui):
|
|
|
165
165
|
The following files embed [stencil-vue2-output-target](https://github.com/Tencent/weui) MIT:
|
|
166
166
|
`/packages/taro-components/src/components/*.scss`
|
|
167
167
|
See `/LICENSE.txt` for details of the license.
|
|
168
|
+
|
|
169
|
+
==================
|
|
170
|
+
|
|
171
|
+
Apache-2.0 (intersection-observer):
|
|
172
|
+
The following files embed [intersection-observer](https://github.com/GoogleChromeLabs/intersection-observer) Apache-2.0:
|
|
173
|
+
`/packages/taro-api/src/polyfill/intersection-observer.ts`
|
|
174
|
+
See `/LICENSE.txt` for details of the license.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
4
|
+
return module = {
|
|
5
|
+
path: basedir,
|
|
6
|
+
exports: {},
|
|
7
|
+
require: function (path, base) {
|
|
8
|
+
return commonjsRequire();
|
|
9
|
+
}
|
|
10
|
+
}, fn(module, module.exports), module.exports;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function commonjsRequire () {
|
|
14
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
var classnames = createCommonjsModule(function (module) {
|
|
18
|
+
/*!
|
|
19
|
+
Copyright (c) 2018 Jed Watson.
|
|
20
|
+
Licensed under the MIT License (MIT), see
|
|
21
|
+
http://jedwatson.github.io/classnames
|
|
22
|
+
*/
|
|
23
|
+
/* global define */
|
|
24
|
+
|
|
25
|
+
(function () {
|
|
26
|
+
|
|
27
|
+
var hasOwn = {}.hasOwnProperty;
|
|
28
|
+
|
|
29
|
+
function classNames() {
|
|
30
|
+
var classes = [];
|
|
31
|
+
|
|
32
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
33
|
+
var arg = arguments[i];
|
|
34
|
+
if (!arg) continue;
|
|
35
|
+
|
|
36
|
+
var argType = typeof arg;
|
|
37
|
+
|
|
38
|
+
if (argType === 'string' || argType === 'number') {
|
|
39
|
+
classes.push(arg);
|
|
40
|
+
} else if (Array.isArray(arg)) {
|
|
41
|
+
if (arg.length) {
|
|
42
|
+
var inner = classNames.apply(null, arg);
|
|
43
|
+
if (inner) {
|
|
44
|
+
classes.push(inner);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
} else if (argType === 'object') {
|
|
48
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
49
|
+
classes.push(arg.toString());
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
for (var key in arg) {
|
|
54
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
55
|
+
classes.push(key);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return classes.join(' ');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (module.exports) {
|
|
65
|
+
classNames.default = classNames;
|
|
66
|
+
module.exports = classNames;
|
|
67
|
+
} else {
|
|
68
|
+
window.classNames = classNames;
|
|
69
|
+
}
|
|
70
|
+
}());
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
exports.classnames = classnames;
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
6
|
+
const index$1 = require('./index-f6805218.js');
|
|
11
7
|
|
|
12
8
|
const indexCss = ".weui-loading{vertical-align:middle;background:url(\"data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E\") 0 0/100% no-repeat;width:20px;height:20px;-webkit-animation:1s steps(12,end) infinite weuiLoading;animation:1s steps(12,end) infinite weuiLoading;display:inline-block}@-webkit-keyframes weuiLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes weuiLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.weui-btn_loading .weui-loading{margin:-.2em .34em 0 0}.weui-btn_loading.weui-btn_primary,.weui-btn_loading.weui-btn_warn{color:rgba(255,255,255,.6)}.weui-btn_loading.weui-btn_primary{background-color:#179b16}.weui-btn_loading.weui-btn_warn{background-color:#ce3c39}taro-button-core{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:center;color:#000;-webkit-tap-highlight-color:transparent;background-color:#f8f8f8;border-width:0;border-radius:5px;outline:0;width:100%;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;font-size:18px;line-height:2.55556;text-decoration:none;display:block;position:relative;overflow:hidden}taro-button-core:focus{outline:0}taro-button-core:not([disabled]):active{color:rgba(0,0,0,.6);background-color:#dedede}taro-button-core:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";-webkit-transform-origin:0 0;transform-origin:0 0;border:1px solid rgba(0,0,0,.2);border-radius:10px;width:200%;height:200%;position:absolute;top:0;left:0;-webkit-transform:scale(.5);transform:scale(.5)}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{color:#000;background-color:#f8f8f8}taro-button-core[type=default]:not([disabled]):visited{color:#000}taro-button-core[type=default]:not([disabled]):active{color:rgba(0,0,0,.6);background-color:#dedede}taro-button-core[size=mini]{width:auto;padding:0 1.32em;font-size:13px;line-height:2.3;display:inline-block}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{background-color:transparent;border-width:1px}taro-button-core[disabled]{color:rgba(255,255,255,.6)}taro-button-core[disabled][type=default]{color:rgba(0,0,0,.3);background-color:#f7f7f7}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:-.2em .34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255,255,255,.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]{color:#1aad19;border:1px solid #1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{color:rgba(26,173,25,.6);background-color:transparent;border-color:rgba(26,173,25,.6)}taro-button-core[plain][type=primary]:after{border-width:0}taro-button-core[plain][type=warn]{color:#e64340;border:1px solid #e64340}taro-button-core[plain][type=warn]:not([disabled]):active{color:rgba(230,67,64,.6);background-color:transparent;border-color:rgba(230,67,64,.6)}taro-button-core[plain][type=warn]:after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{color:#353535;border:1px solid #353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{color:rgba(53,53,53,.6);background-color:transparent;border-color:rgba(53,53,53,.6)}taro-button-core[plain]:after,taro-button-core[plain][type=default]:after{border-width:0}taro-button-core[type=primary]{color:#fff;background-color:#1aad19}taro-button-core[type=primary]:not([disabled]):visited{color:#fff}taro-button-core[type=primary]:not([disabled]):active{color:rgba(255,255,255,.6);background-color:#179b16}taro-button-core[type=warn]{color:#fff;background-color:#e64340}taro-button-core[type=warn]:not([disabled]):visited{color:#fff}taro-button-core[type=warn]:not([disabled]):active{color:rgba(255,255,255,.6);background-color:#ce3c39}taro-button-core[plain][disabled],taro-button-core[plain][disabled][type=primary]{color:rgba(0,0,0,.3);background-color:#f7f7f7;border:1px solid rgba(0,0,0,.2)}";
|
|
13
9
|
|
|
@@ -67,7 +63,7 @@ const Button = class {
|
|
|
67
63
|
}
|
|
68
64
|
render() {
|
|
69
65
|
const { disabled, hoverClass, type, size, plain, loading, hover } = this;
|
|
70
|
-
const cls =
|
|
66
|
+
const cls = index$1.classnames({
|
|
71
67
|
[`${hoverClass}`]: hover && !disabled
|
|
72
68
|
});
|
|
73
69
|
return (index.h(index.Host, { class: cls, type: type, plain: plain, loading: loading, size: size, disabled: disabled }, loading && index.h("i", { class: 'weui-loading' }), index.h("slot", null)));
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
6
|
+
const index$1 = require('./index-f6805218.js');
|
|
11
7
|
|
|
12
8
|
const coverViewCss = "taro-cover-view-core{display:block}";
|
|
13
9
|
|
|
@@ -55,7 +51,7 @@ const CoverView = class {
|
|
|
55
51
|
}
|
|
56
52
|
}
|
|
57
53
|
render() {
|
|
58
|
-
const cls =
|
|
54
|
+
const cls = index$1.classnames({
|
|
59
55
|
[`${this.hoverClass}`]: this.hover
|
|
60
56
|
});
|
|
61
57
|
let attr = {};
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
6
|
+
const index$1 = require('./index-f6805218.js');
|
|
11
7
|
|
|
12
8
|
const indexCss = ".weui-icon-circle:before{content:\"\"}.weui-icon-download:before{content:\"\"}.weui-icon-info:before{content:\"\"}.weui-icon-safe-success:before{content:\"\"}.weui-icon-safe-warn:before{content:\"\"}.weui-icon-success:before{content:\"\"}.weui-icon-success-circle:before{content:\"\"}.weui-icon-success-no-circle:before{content:\"\"}.weui-icon-waiting:before{content:\"\"}.weui-icon-waiting-circle:before{content:\"\"}.weui-icon-warn:before{content:\"\"}.weui-icon-info-circle:before{content:\"\"}.weui-icon-cancel:before{content:\"\"}.weui-icon-search:before{content:\"\"}.weui-icon-clear:before{content:\"\"}.weui-icon-back:before{content:\"\"}.weui-icon-delete:before{content:\"\"}.weui-icon-success{color:#09bb07;font-size:23px}.weui-icon-waiting{color:#10aeff;font-size:23px}.weui-icon-warn{color:#f43530;font-size:23px}.weui-icon-info{color:#10aeff;font-size:23px}.weui-icon-success-circle,.weui-icon-success-no-circle{color:#09bb07;font-size:23px}.weui-icon-waiting-circle{color:#10aeff;font-size:23px}.weui-icon-circle{color:#c9c9c9;font-size:23px}.weui-icon-download,.weui-icon-info-circle{color:#09bb07;font-size:23px}.weui-icon-safe-success{color:#09bb07}.weui-icon-safe-warn{color:#ffbe00}.weui-icon-cancel{color:#f43530;font-size:22px}.weui-icon-search,.weui-icon-clear{color:#b2b2b2;font-size:14px}.weui-icon-delete.weui-icon_gallery-delete{color:#fff;font-size:22px}.weui-icon_msg{font-size:93px}.weui-icon_msg.weui-icon-warn{color:#f76260}.weui-icon_msg-primary{font-size:93px}.weui-icon_msg-primary.weui-icon-warn{color:#ffbe00}";
|
|
13
9
|
|
|
@@ -21,7 +17,7 @@ const Icon = class {
|
|
|
21
17
|
render() {
|
|
22
18
|
const { type, size, color } = this;
|
|
23
19
|
const iconType = type === null || type === void 0 ? void 0 : type.replace(/_/g, '-');
|
|
24
|
-
const cls =
|
|
20
|
+
const cls = index$1.classnames({
|
|
25
21
|
[`weui-icon-${iconType}`]: true
|
|
26
22
|
});
|
|
27
23
|
const style = {
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
6
|
+
const index$1 = require('./index-f6805218.js');
|
|
11
7
|
|
|
12
8
|
const indexCss = "img[src=\"\"]{opacity:0}taro-image-core{width:auto;height:auto;font-size:0;display:inline-block;position:relative;overflow:hidden}.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;top:50%;left: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{width:100%;position:absolute;bottom:0}.taro-img__mode-left{height:100%}.taro-img__mode-right{height:100%;position:absolute;right:0}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}";
|
|
13
9
|
|
|
@@ -52,10 +48,10 @@ const Image = class {
|
|
|
52
48
|
const { src, lazyLoad = false, aspectFillMode = 'width', imageOnLoad, imageOnError, nativeProps, didLoad } = this;
|
|
53
49
|
// mode="" 按默认值处理
|
|
54
50
|
const mode = this.mode || 'scaleToFill';
|
|
55
|
-
const cls =
|
|
51
|
+
const cls = index$1.classnames({
|
|
56
52
|
'taro-img__widthfix': mode === 'widthFix'
|
|
57
53
|
});
|
|
58
|
-
const imgCls =
|
|
54
|
+
const imgCls = index$1.classnames(`taro-img__mode-${mode.toLowerCase().replace(/\s/g, '')}`, {
|
|
59
55
|
[`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'
|
|
60
56
|
});
|
|
61
57
|
return (index.h(index.Host, { class: cls }, src ? (index.h("img", Object.assign({ ref: (img) => (this.imgRef = img), class: imgCls, src: lazyLoad && !didLoad ? undefined : src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))) : ''));
|
|
@@ -4,12 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
6
|
const Taro = require('@tarojs/taro');
|
|
7
|
-
const
|
|
7
|
+
const index$1 = require('./index-f6805218.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
11
11
|
const Taro__default = /*#__PURE__*/_interopDefaultLegacy(Taro);
|
|
12
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
13
12
|
|
|
14
13
|
const indexCss = ".navigator-hover{background:#efefef}";
|
|
15
14
|
|
|
@@ -70,7 +69,7 @@ const Navigator = class {
|
|
|
70
69
|
}
|
|
71
70
|
render() {
|
|
72
71
|
const { isHover, hoverClass } = this;
|
|
73
|
-
return (index.h(index.Host, { class:
|
|
72
|
+
return (index.h(index.Host, { class: index$1.classnames({
|
|
74
73
|
[hoverClass]: isHover
|
|
75
74
|
}) }));
|
|
76
75
|
}
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
6
|
+
const index$1 = require('./index-f6805218.js');
|
|
11
7
|
|
|
12
8
|
function getTimeRange(begin, end) {
|
|
13
9
|
const range = [];
|
|
@@ -490,10 +486,10 @@ const Picker = class {
|
|
|
490
486
|
pickerGroup = this.getSelector();
|
|
491
487
|
}
|
|
492
488
|
// 动画类名控制逻辑
|
|
493
|
-
const clsMask =
|
|
489
|
+
const clsMask = index$1.classnames('weui-mask', 'weui-animate-fade-in', {
|
|
494
490
|
'weui-animate-fade-out': fadeOut
|
|
495
491
|
});
|
|
496
|
-
const clsSlider =
|
|
492
|
+
const clsSlider = index$1.classnames('weui-picker', 'weui-animate-slide-up', {
|
|
497
493
|
'weui-animate-slide-down': fadeOut
|
|
498
494
|
});
|
|
499
495
|
const shouldDivHidden = hidden ? { display: 'none' } : {};
|
|
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
6
|
const index$1 = require('./index-dfd8638f.js');
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
-
|
|
11
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
7
|
+
const index$2 = require('./index-f6805218.js');
|
|
12
8
|
|
|
13
9
|
function convertStyle(style) {
|
|
14
10
|
if (style) {
|
|
@@ -166,9 +162,9 @@ const PickerView = class {
|
|
|
166
162
|
});
|
|
167
163
|
}
|
|
168
164
|
render() {
|
|
169
|
-
const indicatorCls =
|
|
170
|
-
const maskTopCls =
|
|
171
|
-
const maskBtmCls =
|
|
165
|
+
const indicatorCls = index$2.classnames('taro-picker-view-mask-indicator', this.indicatorClass);
|
|
166
|
+
const maskTopCls = index$2.classnames('taro-picker-view-mask-top', this.maskClass);
|
|
167
|
+
const maskBtmCls = index$2.classnames('taro-picker-view-mask-bottom', this.maskClass);
|
|
172
168
|
const indicatorStyle = convertStyle(this.indicatorStyle);
|
|
173
169
|
const maskTopStyle = convertStyle(this.maskStyle);
|
|
174
170
|
const maskBottomStyle = convertStyle(this.maskStyle);
|
|
@@ -4,12 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
6
|
const Taro = require('@tarojs/taro');
|
|
7
|
-
const
|
|
7
|
+
const index$1 = require('./index-f6805218.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
11
11
|
const Taro__default = /*#__PURE__*/_interopDefaultLegacy(Taro);
|
|
12
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
13
12
|
|
|
14
13
|
const indexCss = ".rmc-pull-to-refresh-content{-webkit-transform-origin:0 0;transform-origin:0 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}.rmc-pull-to-refresh-indicator{text-align:center;height:30px;line-height:10px}.rmc-pull-to-refresh-indicator>div{background-color:gray;border-radius:100%;width:6px;height:6px;margin:3px;-webkit-animation:.5s linear infinite both rmc-pull-to-refresh-indicator;animation:.5s linear infinite both rmc-pull-to-refresh-indicator;display:inline-block}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-.1s!important;animation-delay:-.1s!important}.rmc-pull-to-refresh-indicator>div:first-child{-webkit-animation-delay:-.2s!important;animation-delay:-.2s!important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-.3s!important;animation-delay:-.3s!important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";
|
|
15
14
|
|
|
@@ -248,7 +247,7 @@ const PullToRefresh = class {
|
|
|
248
247
|
render() {
|
|
249
248
|
const renderRefresh = (cls) => {
|
|
250
249
|
const { currSt, dragOnEdge, prefixCls } = this;
|
|
251
|
-
const cla =
|
|
250
|
+
const cla = index$1.classnames(cls, !dragOnEdge && `${prefixCls}-transition`);
|
|
252
251
|
const showIndicator = currSt === 'activate' || currSt === 'release';
|
|
253
252
|
return (index.h("div", { class: `${prefixCls}-content-wrapper` }, index.h("div", { class: cla, ref: el => {
|
|
254
253
|
this.contentRef = el;
|
|
@@ -257,7 +256,7 @@ const PullToRefresh = class {
|
|
|
257
256
|
if (this.scrollContainer) {
|
|
258
257
|
return renderRefresh(`${this.prefixCls}-content ${this.prefixCls}-down`);
|
|
259
258
|
}
|
|
260
|
-
return (index.h(index.Host, { class:
|
|
259
|
+
return (index.h(index.Host, { class: index$1.classnames(this.prefixCls, `${this.prefixCls}-down`) }, renderRefresh(`${this.prefixCls}-content`)));
|
|
261
260
|
}
|
|
262
261
|
get el() { return index.getElement(this); }
|
|
263
262
|
static get watchers() { return {
|
|
@@ -3,15 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
|
-
const
|
|
6
|
+
const index$2 = require('./index-f6805218.js');
|
|
7
7
|
const index$1 = require('./index-dfd8638f.js');
|
|
8
8
|
const helper = require('./helper-ad6306f6.js');
|
|
9
9
|
require('@tarojs/taro');
|
|
10
10
|
|
|
11
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
-
|
|
13
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
14
|
-
|
|
15
11
|
const indexCss = "taro-scroll-view-core{-webkit-overflow-scrolling:auto;width:100%;display:block}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow:scroll hidden}.taro-scroll-view__scroll-y{overflow:hidden scroll}";
|
|
16
12
|
|
|
17
13
|
function easeOutScroll(from, to, duration = 500, callback) {
|
|
@@ -155,7 +151,7 @@ const ScrollView = class {
|
|
|
155
151
|
}
|
|
156
152
|
render() {
|
|
157
153
|
const { scrollX, scrollY } = this;
|
|
158
|
-
const cls =
|
|
154
|
+
const cls = index$2.classnames({
|
|
159
155
|
'taro-scroll-view__scroll-x': scrollX,
|
|
160
156
|
'taro-scroll-view__scroll-y': scrollY
|
|
161
157
|
});
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
|
-
const
|
|
6
|
+
const index$2 = require('./index-f6805218.js');
|
|
7
7
|
const SwiperJS = require('swiper/swiper-bundle.esm.js');
|
|
8
8
|
const index$1 = require('./index-dfd8638f.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
13
12
|
const SwiperJS__default = /*#__PURE__*/_interopDefaultLegacy(SwiperJS);
|
|
14
13
|
|
|
15
14
|
const indexCss = "@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, 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') format('woff');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px,0,0);transform:translate3d(0px,0,0)}.swiper-container-multirow>.swiper-wrapper{-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-container-multirow-column>.swiper-wrapper{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:column;flex-direction:column}.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-container-pointer-events{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-container-pointer-events.swiper-container-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height,-webkit-transform;transition-property:height,-webkit-transform;transition-property:transform,height;transition-property:transform,height,-webkit-transform}.swiper-container-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,right top, left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,left top, right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left bottom, left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left top, left bottom,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-container-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-container-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-container-horizontal.swiper-container-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-container-vertical.swiper-container-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, 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') format('woff');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px,0,0);transform:translate3d(0px,0,0)}.swiper-container-multirow>.swiper-wrapper{-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-container-multirow-column>.swiper-wrapper{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:column;flex-direction:column}.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-container-pointer-events{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-container-pointer-events.swiper-container-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height,-webkit-transform;transition-property:height,-webkit-transform;transition-property:transform,height;transition-property:transform,height,-webkit-transform}.swiper-container-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,right top, left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,left top, right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left bottom, left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left top, left bottom,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-container-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-container-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-container-horizontal.swiper-container-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-container-vertical.swiper-container-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;text-transform:none;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-container-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{right:10px;left:auto}.swiper-button-next:after,.swiper-container-rtl .swiper-button-prev:after{content:'next'}.swiper-button-next.swiper-button-white,.swiper-button-prev.swiper-button-white{--swiper-navigation-color:#ffffff}.swiper-button-next.swiper-button-black,.swiper-button-prev.swiper-button-black{--swiper-navigation-color:#000000}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:.3s opacity;transition:.3s opacity;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(.33);transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:50%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{opacity:1;background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;-webkit-transform:translate3d(0px,-50%,0);transform:translate3d(0px,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:.2s transform,.2s top;transition:.2s transform,.2s top}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s transform,.2s left;transition:.2s transform,.2s left}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s transform,.2s right;transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-container-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-white{--swiper-pagination-color:#ffffff}.swiper-pagination-black{--swiper-pagination-color:#000000}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-container-fade.swiper-container-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube{overflow:visible}.swiper-container-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;-webkit-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube.swiper-container-rtl .swiper-slide{-webkit-transform-origin:100% 0;transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-container-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;-webkit-filter:blur(50px);filter:blur(50px)}.swiper-container-flip{overflow:visible}.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}taro-swiper-core{height:150px;display:block}taro-swiper-core .swiper-container{height:100%}taro-swiper-core .swiper-pagination{font-size:0}taro-swiper-core .swiper-pagination.swiper-pagination-bullet{opacity:1}taro-swiper-core .swiper-pagination.swiper-pagination-hidden{display:none}";
|
|
@@ -316,7 +315,7 @@ const Swiper = class {
|
|
|
316
315
|
return (index.h(index.Host, { class: `taro-swiper-${__classPrivateFieldGet(this, _Swiper_id, "f")}`, style: hostStyle }, index.h("div", { class: 'swiper-container', style: style }, index.h("style", { type: 'text/css' }, `
|
|
317
316
|
.taro-swiper-${__classPrivateFieldGet(this, _Swiper_id, "f")} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet { background: ${indicatorColor} }
|
|
318
317
|
.taro-swiper-${__classPrivateFieldGet(this, _Swiper_id, "f")} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet-active { background: ${indicatorActiveColor} }
|
|
319
|
-
`), index.h("div", { class: 'swiper-wrapper' }, index.h("slot", null)), index.h("div", { class:
|
|
318
|
+
`), index.h("div", { class: 'swiper-wrapper' }, index.h("slot", null)), index.h("div", { class: index$2.classnames('swiper-pagination', {
|
|
320
319
|
'swiper-pagination-hidden': !indicatorDots,
|
|
321
320
|
'swiper-pagination-bullets': indicatorDots
|
|
322
321
|
}) }))));
|
|
@@ -2,17 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-dbbe9dde.js');
|
|
5
|
+
const index$1 = require('./index-dbbe9dde.js');
|
|
6
6
|
const runtime = require('@tarojs/runtime');
|
|
7
7
|
const Taro = require('@tarojs/taro');
|
|
8
|
-
const
|
|
8
|
+
const index = require('./index-f6805218.js');
|
|
9
9
|
const resolvePathname = require('resolve-pathname');
|
|
10
|
-
const index$
|
|
10
|
+
const index$2 = require('./index-dfd8638f.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
14
14
|
const Taro__default = /*#__PURE__*/_interopDefaultLegacy(Taro);
|
|
15
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
16
15
|
const resolvePathname__default = /*#__PURE__*/_interopDefaultLegacy(resolvePathname);
|
|
17
16
|
|
|
18
17
|
const splitUrl = _url => {
|
|
@@ -37,8 +36,8 @@ const splitUrl = _url => {
|
|
|
37
36
|
return res;
|
|
38
37
|
};
|
|
39
38
|
|
|
40
|
-
const TabbarItem = ({ index: index$
|
|
41
|
-
const className =
|
|
39
|
+
const TabbarItem = ({ index: index$3, isSelected = false, textColor, iconPath, badgeText, showRedDot = false, pagePath, text, onSelect }) => {
|
|
40
|
+
const className = index.classnames('weui-tabbar__item', {
|
|
42
41
|
'weui-bar__item_on': isSelected
|
|
43
42
|
});
|
|
44
43
|
const badgeStyle = {
|
|
@@ -53,17 +52,17 @@ const TabbarItem = ({ index: index$2, isSelected = false, textColor, iconPath, b
|
|
|
53
52
|
};
|
|
54
53
|
function onClick() {
|
|
55
54
|
const page = Taro__default['default'].getCurrentPages().shift();
|
|
56
|
-
if (typeof (page === null || page === void 0 ? void 0 : page.onTabItemTap) === 'function' && index$
|
|
57
|
-
page.onTabItemTap({ index: index$
|
|
55
|
+
if (typeof (page === null || page === void 0 ? void 0 : page.onTabItemTap) === 'function' && index$2.isVisible(this)) {
|
|
56
|
+
page.onTabItemTap({ index: index$3, pagePath, text });
|
|
58
57
|
}
|
|
59
|
-
onSelect(index$
|
|
58
|
+
onSelect(index$3);
|
|
60
59
|
}
|
|
61
|
-
return (index.h("a", { key: index$
|
|
62
|
-
index.h("span", { style: { display: 'inline-block', position: 'relative' } },
|
|
63
|
-
index.h("img", { src: iconPath, alt: '', class: 'weui-tabbar__icon' }),
|
|
64
|
-
!!badgeText && (index.h("span", { class: 'weui-badge taro-tabbar-badge', style: badgeStyle }, badgeText)),
|
|
65
|
-
showRedDot && (index.h("span", { class: 'weui-badge weui-badge_dot', style: dotStyle }))),
|
|
66
|
-
index.h("p", { class: 'weui-tabbar__label', style: { color: textColor } }, text)));
|
|
60
|
+
return (index$1.h("a", { key: index$3, href: 'javascript:;', class: className, onClick: onClick },
|
|
61
|
+
index$1.h("span", { style: { display: 'inline-block', position: 'relative' } },
|
|
62
|
+
index$1.h("img", { src: iconPath, alt: '', class: 'weui-tabbar__icon' }),
|
|
63
|
+
!!badgeText && (index$1.h("span", { class: 'weui-badge taro-tabbar-badge', style: badgeStyle }, badgeText)),
|
|
64
|
+
showRedDot && (index$1.h("span", { class: 'weui-badge weui-badge_dot', style: dotStyle }))),
|
|
65
|
+
index$1.h("p", { class: 'weui-tabbar__label', style: { color: textColor } }, text)));
|
|
67
66
|
};
|
|
68
67
|
|
|
69
68
|
const indexCss = ".weui-tabbar{z-index:500;background-color:#f7f7fa;width:100%;display:-ms-flexbox;display:flex;position:absolute;bottom:0}.weui-tabbar:before{content:\" \";color:#c0bfc4;-webkit-transform-origin:0 0;transform-origin:0 0;border-top:1px solid #c0bfc4;height:1px;position:absolute;top:0;left:0;right:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-tabbar__item{padding:5px 0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);color:#999;text-align:center;-webkit-tap-highlight-color:transparent;-ms-flex:1;flex:1;font-size:0;display:block}.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon>i,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__label{color:#09bb07}.weui-tabbar__icon{width:27px;height:27px;display:inline-block}.weui-tabbar__icon img{width:100%;height:100%}i.weui-tabbar__icon,.weui-tabbar__icon>i{color:#999;font-size:24px}.weui-tabbar__label{text-align:center;color:#999;font-size:10px;line-height:1.8}.weui-badge{color:#fff;text-align:center;vertical-align:middle;background-color:#f43530;border-radius:18px;min-width:8px;padding:.15em .4em;font-size:12px;line-height:1.2;display:inline-block}.weui-badge_dot{min-width:0;padding:.4em}html,body{height:100%}:root{--taro-tabbar-height:$weuiTabBarHeight}#app{height:100%}.taro-tabbar__border-white:before{border-top-color:#fff!important}.taro-tabbar__container{-ms-flex-direction:column;flex-direction:column;height:100%;display:-ms-flexbox;display:flex;overflow:hidden}.taro-tabbar__panel{-webkit-overflow-scrolling:auto;-ms-flex:1;flex:1;position:relative;overflow:auto}.taro-tabbar__tabbar{height:var(--taro-tabbar-height);width:100%;-webkit-transition:bottom .2s,top .2s;transition:bottom .2s,top .2s;position:relative}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom);bottom:0}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{-ms-flex:0 0;flex:0 0;top:-52px}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";
|
|
@@ -76,8 +75,8 @@ const hideTabBarClassName = 'taro-tabbar__tabbar-hide';
|
|
|
76
75
|
const hideTabBarWithAnimationClassName = 'taro-tabbar__tabbar-slideout';
|
|
77
76
|
const Tabbar = class {
|
|
78
77
|
constructor(hostRef) {
|
|
79
|
-
index.registerInstance(this, hostRef);
|
|
80
|
-
this.onLongPress = index.createEvent(this, "longpress", 7);
|
|
78
|
+
index$1.registerInstance(this, hostRef);
|
|
79
|
+
this.onLongPress = index$1.createEvent(this, "longpress", 7);
|
|
81
80
|
this.homePage = '';
|
|
82
81
|
this.customRoutes = [];
|
|
83
82
|
this.tabbarPos = 'bottom';
|
|
@@ -322,19 +321,19 @@ const Tabbar = class {
|
|
|
322
321
|
render() {
|
|
323
322
|
const { tabbarPos = 'bottom' } = this;
|
|
324
323
|
const status = this.status;
|
|
325
|
-
const containerCls =
|
|
324
|
+
const containerCls = index.classnames('weui-tabbar', {
|
|
326
325
|
[`taro-tabbar__border-${this.borderStyle || 'black'}`]: true
|
|
327
326
|
});
|
|
328
327
|
const shouldHideTabBar = this.selectedIndex === -1 || status === STATUS_HIDE;
|
|
329
328
|
const shouldSlideout = status === STATUS_SLIDEOUT;
|
|
330
|
-
return (index.h(index.Host, { class:
|
|
329
|
+
return (index$1.h(index$1.Host, { class: index.classnames(basicTabBarClassName, `${basicTabBarClassName}-${tabbarPos}`, {
|
|
331
330
|
[hideTabBarClassName]: shouldHideTabBar,
|
|
332
331
|
[hideTabBarWithAnimationClassName]: shouldSlideout
|
|
333
|
-
}) }, index.h("div", { class: containerCls, style: {
|
|
332
|
+
}) }, index$1.h("div", { class: containerCls, style: {
|
|
334
333
|
backgroundColor: this.backgroundColor || '',
|
|
335
334
|
height: 'inherit'
|
|
336
|
-
} }, this.list.map((item, index
|
|
337
|
-
const isSelected = this.selectedIndex === index
|
|
335
|
+
} }, this.list.map((item, index) => {
|
|
336
|
+
const isSelected = this.selectedIndex === index;
|
|
338
337
|
let textColor;
|
|
339
338
|
let iconPath;
|
|
340
339
|
if (isSelected) {
|
|
@@ -345,10 +344,10 @@ const Tabbar = class {
|
|
|
345
344
|
textColor = this.color || '';
|
|
346
345
|
iconPath = item.iconPath;
|
|
347
346
|
}
|
|
348
|
-
return (index.h(TabbarItem, { index: index
|
|
347
|
+
return (index$1.h(TabbarItem, { index: index, onSelect: this.switchTab.bind(this), isSelected: isSelected, textColor: textColor, iconPath: iconPath, pagePath: item.pagePath, text: item.text, badgeText: item.badgeText, showRedDot: item.showRedDot }));
|
|
349
348
|
}))));
|
|
350
349
|
}
|
|
351
|
-
get tabbar() { return index.getElement(this); }
|
|
350
|
+
get tabbar() { return index$1.getElement(this); }
|
|
352
351
|
};
|
|
353
352
|
Tabbar.style = indexCss;
|
|
354
353
|
|
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
|
-
const
|
|
6
|
+
const index$2 = require('./index-f6805218.js');
|
|
7
7
|
const index$1 = require('./index-dfd8638f.js');
|
|
8
8
|
|
|
9
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
-
|
|
11
9
|
function _interopNamespace(e) {
|
|
12
10
|
if (e && e.__esModule) return e;
|
|
13
11
|
var n = Object.create(null);
|
|
@@ -28,8 +26,6 @@ function _interopNamespace(e) {
|
|
|
28
26
|
return Object.freeze(n);
|
|
29
27
|
}
|
|
30
28
|
|
|
31
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
32
|
-
|
|
33
29
|
const formatTime = (time) => {
|
|
34
30
|
if (!time)
|
|
35
31
|
return '';
|
|
@@ -605,7 +601,7 @@ const Video = class {
|
|
|
605
601
|
const { controls, autoplay, loop, muted, poster, objectFit, isFirst, isMute, isFullScreen, showCenterPlayBtn, isPlaying, _enableDanmu, showMuteBtn, danmuBtn, showFullscreenBtn, nativeProps } = this;
|
|
606
602
|
const duration = this.duration || this._duration;
|
|
607
603
|
const durationTime = formatTime(duration);
|
|
608
|
-
return (index.h(index.Host, { class:
|
|
604
|
+
return (index.h(index.Host, { class: index$2.classnames('taro-video-container', {
|
|
609
605
|
'taro-video-type-fullscreen': isFullScreen
|
|
610
606
|
}), onTouchStart: this.onTouchStartContainer, onClick: this.onClickContainer }, index.h("video", Object.assign({ class: 'taro-video-video', style: {
|
|
611
607
|
'object-fit': objectFit
|
|
@@ -621,11 +617,11 @@ const Video = class {
|
|
|
621
617
|
if (dom) {
|
|
622
618
|
this.controlsRef = dom;
|
|
623
619
|
}
|
|
624
|
-
}, controls: controls, currentTime: this.currentTime, duration: duration, isPlaying: this.isPlaying, pauseFunc: this._pause, playFunc: this._play, seekFunc: this._seek, showPlayBtn: this.showPlayBtn, showProgress: this.showProgress }, showMuteBtn && (index.h("div", { class:
|
|
620
|
+
}, controls: controls, currentTime: this.currentTime, duration: duration, isPlaying: this.isPlaying, pauseFunc: this._pause, playFunc: this._play, seekFunc: this._seek, showPlayBtn: this.showPlayBtn, showProgress: this.showProgress }, showMuteBtn && (index.h("div", { class: index$2.classnames('taro-video-mute', {
|
|
625
621
|
'taro-video-type-mute': isMute
|
|
626
|
-
}), onClick: this.toggleMute })), danmuBtn && (index.h("div", { class:
|
|
622
|
+
}), onClick: this.toggleMute })), danmuBtn && (index.h("div", { class: index$2.classnames('taro-video-danmu-button', {
|
|
627
623
|
'taro-video-danmu-button-active': _enableDanmu
|
|
628
|
-
}), onClick: this.toggleDanmu }, "\u5F39\u5E55")), showFullscreenBtn && (index.h("div", { class:
|
|
624
|
+
}), onClick: this.toggleDanmu }, "\u5F39\u5E55")), showFullscreenBtn && (index.h("div", { class: index$2.classnames('taro-video-fullscreen', {
|
|
629
625
|
'taro-video-type-fullscreen': isFullScreen
|
|
630
626
|
}), onClick: this.onClickFullScreenBtn }))), index.h("div", { class: 'taro-video-toast taro-video-toast-volume', ref: dom => {
|
|
631
627
|
if (dom) {
|
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dbbe9dde.js');
|
|
6
|
-
const
|
|
6
|
+
const index$1 = require('./index-f6805218.js');
|
|
7
7
|
const helper = require('./helper-ad6306f6.js');
|
|
8
8
|
require('@tarojs/taro');
|
|
9
9
|
|
|
10
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
-
|
|
12
|
-
const classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
13
|
-
|
|
14
10
|
const indexCss = "body,html{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}taro-view-core{display:block}";
|
|
15
11
|
|
|
16
12
|
const View = class {
|
|
@@ -60,7 +56,7 @@ const View = class {
|
|
|
60
56
|
helper.handleStencilNodes(this.el);
|
|
61
57
|
}
|
|
62
58
|
render() {
|
|
63
|
-
const cls =
|
|
59
|
+
const cls = index$1.classnames({
|
|
64
60
|
[`${this.hoverClass}`]: this.hover
|
|
65
61
|
});
|
|
66
62
|
let attr = {};
|