@tarojs/components-react 4.1.7-beta.1 → 4.1.7-beta.2
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/original/components/button/index.js +87 -0
- package/dist/original/components/button/index.js.map +1 -0
- package/dist/original/components/button/style/index.css +3 -0
- package/dist/original/components/button/style/index.css.map +1 -0
- package/dist/original/components/icon/index.js +36 -0
- package/dist/original/components/icon/index.js.map +1 -0
- package/dist/original/components/icon/style/index.css +3 -0
- package/dist/original/components/icon/style/index.css.map +1 -0
- package/dist/original/components/image/index.js +146 -0
- package/dist/original/components/image/index.js.map +1 -0
- package/dist/original/components/image/style/index.css +3 -0
- package/dist/original/components/image/style/index.css.map +1 -0
- package/dist/original/components/input/index.js +233 -0
- package/dist/original/components/input/index.js.map +1 -0
- package/dist/original/components/input/style/index.css +3 -0
- package/dist/original/components/input/style/index.css.map +1 -0
- package/dist/original/components/picker/index.js +788 -0
- package/dist/original/components/picker/index.js.map +1 -0
- package/dist/original/components/picker/picker-group.js +491 -0
- package/dist/original/components/picker/picker-group.js.map +1 -0
- package/dist/{components/picker/react-style/style.css → original/components/picker/style/index.css} +2 -1
- package/dist/original/components/picker/style/index.css.map +1 -0
- package/dist/original/components/pull-down-refresh/index.js +320 -0
- package/dist/original/components/pull-down-refresh/index.js.map +1 -0
- package/dist/original/components/pull-down-refresh/style/index.css +3 -0
- package/dist/original/components/pull-down-refresh/style/index.css.map +1 -0
- package/dist/original/components/refresher/index.js +7 -0
- package/dist/original/components/refresher/index.js.map +1 -0
- package/dist/original/components/scroll-view/index.js +189 -0
- package/dist/original/components/scroll-view/index.js.map +1 -0
- package/dist/original/components/scroll-view/style/index.css +3 -0
- package/dist/original/components/scroll-view/style/index.css.map +1 -0
- package/dist/original/components/swiper/index.js +461 -0
- package/dist/original/components/swiper/index.js.map +1 -0
- package/dist/original/components/swiper/style/index.css +3 -0
- package/dist/original/components/swiper/style/index.css.map +1 -0
- package/dist/original/components/text/index.js +28 -0
- package/dist/original/components/text/index.js.map +1 -0
- package/dist/original/components/text/style/index.css +3 -0
- package/dist/original/components/text/style/index.css.map +1 -0
- package/dist/original/components/view/index.js +80 -0
- package/dist/original/components/view/index.js.map +1 -0
- package/dist/original/index.css +2 -0
- package/dist/original/index.css.map +1 -0
- package/dist/original/index.js +15 -0
- package/dist/original/index.js.map +1 -0
- package/dist/original/utils/hooks.react.js +15 -0
- package/dist/original/utils/hooks.react.js.map +1 -0
- package/dist/original/utils/index.js +162 -0
- package/dist/original/utils/index.js.map +1 -0
- package/package.json +8 -6
- package/dist/components/picker/react-style/style.css.map +0 -1
- package/dist/components/picker/react-style/style.js +0 -4
- package/dist/components/picker/react-style/style.js.map +0 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { __rest } from 'tslib';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { useState, useEffect } from '../../utils/hooks.react.js';
|
|
4
|
+
import { createForwardRefComponent } from '../../utils/index.js';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function View(_a) {
|
|
8
|
+
var {
|
|
9
|
+
className,
|
|
10
|
+
hoverClass,
|
|
11
|
+
forwardedRef,
|
|
12
|
+
onTouchStart,
|
|
13
|
+
onTouchEnd,
|
|
14
|
+
onTouchMove,
|
|
15
|
+
hoverStartTime = 50,
|
|
16
|
+
hoverStayTime = 400
|
|
17
|
+
} = _a,
|
|
18
|
+
other = __rest(_a, ["className", "hoverClass", "forwardedRef", "onTouchStart", "onTouchEnd", "onTouchMove", "hoverStartTime", "hoverStayTime"]);
|
|
19
|
+
let timeoutEvent;
|
|
20
|
+
let startTime = 0;
|
|
21
|
+
const [hover, setHover] = useState(false);
|
|
22
|
+
const [touch, setTouch] = useState(false);
|
|
23
|
+
const [cls, setCls] = useState(classNames('', {
|
|
24
|
+
[`${hoverClass}`]: "react" === 'solid' ? hover() : hover
|
|
25
|
+
}, className));
|
|
26
|
+
const _onTouchStart = e => {
|
|
27
|
+
if (hoverClass) {
|
|
28
|
+
setTouch(true);
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
if ("react" === 'solid' ? touch() : touch) {
|
|
31
|
+
setHover(true);
|
|
32
|
+
}
|
|
33
|
+
}, hoverStartTime);
|
|
34
|
+
}
|
|
35
|
+
onTouchStart && onTouchStart(e);
|
|
36
|
+
if (other.onLongPress) {
|
|
37
|
+
timeoutEvent = setTimeout(() => {
|
|
38
|
+
other.onLongPress();
|
|
39
|
+
}, 350);
|
|
40
|
+
startTime = new Date().getTime();
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const _onTouchMove = e => {
|
|
44
|
+
clearTimeout(timeoutEvent);
|
|
45
|
+
onTouchMove && onTouchMove(e);
|
|
46
|
+
};
|
|
47
|
+
const _onTouchEnd = e => {
|
|
48
|
+
const spanTime = new Date().getTime() - startTime;
|
|
49
|
+
if (spanTime < 350) {
|
|
50
|
+
clearTimeout(timeoutEvent);
|
|
51
|
+
}
|
|
52
|
+
if (hoverClass) {
|
|
53
|
+
setTouch(false);
|
|
54
|
+
setTimeout(() => {
|
|
55
|
+
if ("react" === 'solid' ? touch() : touch) {
|
|
56
|
+
setHover(false);
|
|
57
|
+
}
|
|
58
|
+
}, hoverStayTime);
|
|
59
|
+
}
|
|
60
|
+
onTouchEnd && onTouchEnd(e);
|
|
61
|
+
};
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
setCls(classNames('', {
|
|
64
|
+
[`${hoverClass}`]: "react" === 'solid' ? hover() : hover
|
|
65
|
+
}, className));
|
|
66
|
+
}, [hover, className]);
|
|
67
|
+
return /*#__PURE__*/jsx("div", {
|
|
68
|
+
ref: forwardedRef,
|
|
69
|
+
className: "react" === 'solid' ? cls() : cls,
|
|
70
|
+
onTouchStart: _onTouchStart,
|
|
71
|
+
onTouchEnd: _onTouchEnd,
|
|
72
|
+
onTouchMove: _onTouchMove,
|
|
73
|
+
...other,
|
|
74
|
+
children: other.children
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
var index = createForwardRefComponent(View);
|
|
78
|
+
|
|
79
|
+
export { index as default };
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/view/index.tsx"],"sourcesContent":["import classNames from 'classnames'\n\nimport { useEffect, useState } from '../../utils/hooks'\nimport { createForwardRefComponent } from '../../utils/index'\n\nimport type { TFunc } from '@tarojs/runtime/dist/runtime.esm'\nimport type React from 'react'\n\ninterface IProps extends React.HTMLAttributes<HTMLDivElement> {\n hoverClass?: string\n hoverStartTime?: number\n hoverStayTime?: number\n onTouchStart?(e: React.TouchEvent<HTMLDivElement>): void\n onTouchEnd?(e: React.TouchEvent<HTMLDivElement>): void\n onTouchMove?(e: React.TouchEvent<HTMLDivElement>): void\n onLongPress?(): void\n forwardedRef?: React.MutableRefObject<HTMLDivElement>\n}\n\nfunction View ({\n className,\n hoverClass,\n forwardedRef,\n onTouchStart,\n onTouchEnd,\n onTouchMove,\n hoverStartTime = 50,\n hoverStayTime = 400,\n ...other\n}: IProps) {\n let timeoutEvent: ReturnType<typeof setTimeout>\n let startTime = 0\n const [hover, setHover] = useState<boolean>(false)\n const [touch, setTouch] = useState<boolean>(false)\n\n const [cls, setCls] = useState<string>(classNames(\n '',\n {\n [`${hoverClass}`]: process.env.FRAMEWORK === 'solid' ? (hover as unknown as TFunc)() : hover\n },\n className\n ))\n\n const _onTouchStart = e => {\n if (hoverClass) {\n setTouch(true)\n setTimeout(() => {\n if (process.env.FRAMEWORK === 'solid' ? (touch as unknown as TFunc)() : touch) {\n setHover(true)\n }\n }, hoverStartTime)\n }\n onTouchStart && onTouchStart(e)\n if (other.onLongPress) {\n timeoutEvent = setTimeout(() => {\n other.onLongPress!()\n }, 350)\n startTime = new Date().getTime()\n }\n }\n\n const _onTouchMove = e => {\n clearTimeout(timeoutEvent)\n onTouchMove && onTouchMove(e)\n }\n\n const _onTouchEnd = e => {\n const spanTime = new Date().getTime() - startTime\n if (spanTime < 350) {\n clearTimeout(timeoutEvent)\n }\n if (hoverClass) {\n setTouch(false)\n setTimeout(() => {\n if (process.env.FRAMEWORK === 'solid' ? (touch as unknown as TFunc)() : touch) {\n setHover(false)\n }\n }, hoverStayTime)\n }\n onTouchEnd && onTouchEnd(e)\n }\n\n useEffect(() => {\n setCls(classNames(\n '',\n {\n [`${hoverClass}`]: process.env.FRAMEWORK === 'solid' ? (hover as unknown as TFunc)() : hover\n },\n className\n ))\n }, [hover, className])\n\n return (\n <div\n ref={forwardedRef}\n className={process.env.FRAMEWORK === 'solid' ? (cls as unknown as TFunc)() : cls as string}\n onTouchStart={_onTouchStart}\n onTouchEnd={_onTouchEnd}\n onTouchMove={_onTouchMove}\n {...other}\n >\n {other.children}\n </div>\n )\n}\n\n\nexport default createForwardRefComponent(View)\n"],"names":["View","_a","className","hoverClass","forwardedRef","onTouchStart","onTouchEnd","onTouchMove","hoverStartTime","hoverStayTime","other","__rest","timeoutEvent","startTime","hover","setHover","useState","touch","setTouch","cls","setCls","classNames","process","_onTouchStart","e","setTimeout","onLongPress","Date","getTime","_onTouchMove","clearTimeout","_onTouchEnd","spanTime","useEffect","_jsx","ref","children","createForwardRefComponent"],"mappings":";;;;;;AAmBA,SAASA,IAAIA,CAAEC,EAUN,EAAA;MAVM;MACbC,SAAS;MACTC,UAAU;MACVC,YAAY;MACZC,YAAY;MACZC,UAAU;MACVC,WAAW;AACXC,MAAAA,cAAc,GAAG,EAAE;AACnBC,MAAAA,aAAa,GAAG;UAET;IADJC,KAAK,GATKC,MAAA,CAAAV,EAAA,EAAA,CAAA,WAAA,EAAA,YAAA,EAAA,cAAA,EAAA,cAAA,EAAA,YAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,eAAA,CAUd,CADS;AAER,EAAA,IAAIW,YAA2C;EAC/C,IAAIC,SAAS,GAAG,CAAC;EACjB,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,G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,CAAC,KAAK,CAAC;AACfO,MAAAA,UAAU,CAAC,MAAK;AACd,QAAA,IAAIH,OAAqB,KAAK,OAAO,GAAIL,KAA0B,EAAE,GAAGA,KAAK,EAAE;UAC7EF,QAAQ,CAAC,KAAK,CAAC;AACjB;OACD,EAAEN,aAAa,CAAC;AACnB;AACAH,IAAAA,UAAU,IAAIA,UAAU,CAACkB,CAAC,CAAC;GAC5B;AAEDS,EAAAA,SAAS,CAAC,MAAK;AACbb,IAAAA,MAAM,CAACC,UAAU,CACf,EAAE,EACF;AACE,MAAA,CAAC,CAAGlB,EAAAA,UAAU,CAAE,CAAA,GAAGmB,OAAqB,KAAK,OAAO,GAAIR,KAA0B,EAAE,GAAGA;KACxF,EACDZ,SAAS,CACV,CAAC;AACJ,GAAC,EAAE,CAACY,KAAK,EAAEZ,SAAS,CAAC,CAAC;AAEtB,EAAA,oBACEgC,GAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,GAAG,EAAE/B,YAAa;AAClBF,IAAAA,SAAS,EAAEoB,OAAqB,KAAK,OAAO,GAAIH,GAAwB,EAAE,GAAGA,GAAc;AAC3Fd,IAAAA,YAAY,EAAEkB,aAAc;AAC5BjB,IAAAA,UAAU,EAAEyB,WAAY;AACxBxB,IAAAA,WAAW,EAAEsB,YAAa;AAAA,IAAA,GACtBnB,KAAK;IAAA0B,QAAA,EAER1B,KAAK,CAAC0B;AAAQ,GACZ,CAAC;AAEV;AAGA,YAAeC,yBAAyB,CAACrC,IAAI,CAAC;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@-webkit-keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.taro-button-core[loading]>.weui-loading{animation:weuiLoading 1s steps(12) infinite;background:transparent 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") no-repeat;background-size:100%;display:inline-block;height:20px;vertical-align:middle;width:20px}.taro-button-core[loading]>.weui-loading.weui-btn_primary,.taro-button-core[loading]>.weui-loading.weui-btn_warn{color:hsla(0,0%,100%,.6)}.taro-button-core[loading]>.weui-loading.weui-btn_primary{background-color:#179b16}.taro-button-core[loading]>.weui-loading.weui-btn_warn{background-color:#ce3c39}.taro-button-core{-webkit-tap-highlight-color:rgba(0,0,0,0);appearance:none;background-color:#f8f8f8;border-radius:5px;border-width:0;box-sizing:border-box;color:#000;display:block;font-size:18px;line-height:2.55555556;margin-left:auto;margin-right:auto;outline:0;overflow:hidden;padding-left:14px;padding-right:14px;position:relative;text-align:center;text-decoration:none;width:100%}.taro-button-core:focus{outline:0}.taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0,0,0,.6)}.taro-button-core:after{border:1px solid rgba(0,0,0,.2);border-radius:10px;box-sizing:border-box;content:" ";height:200%;left:0;position:absolute;top:0;transform:scale(.5);transform-origin:0 0;width:200%}.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,.6)}.taro-button-core[size=mini]{display:inline-block;font-size:13px;line-height:2.3;padding:0 1.32em;width:auto}.taro-button-core[plain=true],.taro-button-core[plain=true][type=default],.taro-button-core[plain=true][type=primary]{background-color:transparent;border-width:1px}.taro-button-core[disabled]{color:hsla(0,0%,100%,.6)}.taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(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:-.2em .34em 0 0}.taro-button-core[loading][type=primary],.taro-button-core[loading][type=warn]{color:hsla(0,0%,100%,.6)}.taro-button-core[loading][type=primary]{background-color:#179b16}.taro-button-core[loading][type=warn]{background-color:#ce3c39}.taro-button-core[plain=true][type=primary]{border:1px solid #1aad19;color:#1aad19}.taro-button-core[plain=true][type=primary]:not([disabled]):active{background-color:transparent;border-color:rgba(26,173,25,.6);color:rgba(26,173,25,.6)}.taro-button-core[plain=true][type=primary]:after{border-width:0}.taro-button-core[plain=true][type=warn]{border:1px solid #e64340;color:#e64340}.taro-button-core[plain=true][type=warn]:not([disabled]):active{background-color:transparent;border-color:rgba(230,67,64,.6);color:rgba(230,67,64,.6)}.taro-button-core[plain=true][type=warn]:after{border-width:0}.taro-button-core[plain=true],.taro-button-core[plain=true][type=default]{border:1px solid #353535;color:#353535}.taro-button-core[plain=true]:not([disabled]):active,.taro-button-core[plain=true][type=default]:not([disabled]):active{background-color:transparent;border-color:rgba(53,53,53,.6);color:rgba(53,53,53,.6)}.taro-button-core[plain=true]:after,.taro-button-core[plain=true][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:hsla(0,0%,100%,.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:hsla(0,0%,100%,.6)}.taro-button-core[plain=true][disabled],.taro-button-core[plain=true][disabled][type=primary]{background-color:#f7f7f7;border:1px solid rgba(0,0,0,.2);color:rgba(0,0,0,.3)}.weui-icon-circle:before{content:"\ea01"}.weui-icon-download:before{content:"\ea02"}.weui-icon-info:before{content:"\ea03"}.weui-icon-safe-success:before{content:"\ea04"}.weui-icon-safe-warn:before{content:"\ea05"}.weui-icon-success:before{content:"\ea06"}.weui-icon-success-circle:before{content:"\ea07"}.weui-icon-success-no-circle:before{content:"\ea08"}.weui-icon-waiting:before{content:"\ea09"}.weui-icon-waiting-circle:before{content:"\ea0a"}.weui-icon-warn:before{content:"\ea0b"}.weui-icon-info-circle:before{content:"\ea0c"}.weui-icon-cancel:before{content:"\ea0d"}.weui-icon-search:before{content:"\ea0e"}.weui-icon-clear:before{content:"\ea0f"}.weui-icon-back:before{content:"\ea10"}.weui-icon-delete:before{content:"\ea11"}.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-clear,.weui-icon-search{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}img[src=""]{opacity:0}.taro-img{display:inline-block;font-size:0;height:240px;overflow:hidden;position:relative;width:320px}.taro-img.taro-img__widthfix,.taro-img__mode-heightfix{height:100%}.taro-img__mode-scaletofill{height:100%;width:100%}.taro-img__mode-aspectfit{height:100%;object-fit:contain;width:100%}.taro-img__mode-aspectfill{height:100%;object-fit:cover;width:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-bottom,.taro-img__mode-top{left:50%;position:absolute;transform:translate(-50%)}.taro-img__mode-bottom{bottom:0}.taro-img__mode-center{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.taro-img__mode-left,.taro-img__mode-right{position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-right{right:0}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{bottom:0;position:absolute}.taro-img__mode-bottomright{bottom:0;position:absolute;right:0}.taro-input-core{display:block}.weui-input{-webkit-appearance:none;background-color:transparent;border:0;color:inherit;font-size:inherit;height:1.4705882353em;line-height:1.4705882353;outline:0;width:100%}.weui-input::-webkit-inner-spin-button,.weui-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.taro-picker__overlay{position:fixed;z-index:1000}.taro-picker__mask-overlay,.taro-picker__overlay{bottom:0;height:100%;left:0;right:0;top:0;width:100%}.taro-picker__mask-overlay{background-color:rgba(0,0,0,.6);position:absolute;z-index:1001}.taro-picker{background-color:#e5e5e5;bottom:0;font-size:14px;left:0;position:absolute;width:100%;z-index:1002}.taro-picker__hd{align-items:center;background-color:#fff;display:flex;font-size:17px;height:44px;justify-content:space-between;padding:0;position:relative}.taro-picker__hd:after{background-color:#e5e5e5;bottom:0;content:"";height:1px;left:0;position:absolute;transform:scaleY(.5);width:100%}.taro-picker__action{color:#ff0f23;flex:0 0 auto;font-size:14px;height:44px;line-height:44px;padding:0 10px}.taro-picker__action:first-child{color:#888}.taro-picker__title{color:#000;font-size:16px;font-weight:500;left:50%;max-width:40%;overflow:hidden;position:absolute;text-overflow:ellipsis;top:50%;transform:translate(-50%,-50%);white-space:nowrap}.taro-picker__bd{background-color:#fff;height:238px;overflow:hidden;width:100%}.taro-picker__bd,.taro-picker__group{box-sizing:border-box;display:flex;flex:1}.taro-picker__group{align-items:center;height:100%;justify-content:center;min-width:0;position:relative}.taro-picker__group--date .taro-picker__columns{display:flex;height:100%;width:100%}.taro-picker__mask{background:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6) 40%,hsla(0,0%,100%,0) 45%,hsla(0,0%,100%,0) 55%,hsla(0,0%,100%,.6) 60%,hsla(0,0%,100%,.95));height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}.taro-picker__indicator{box-sizing:border-box;height:34px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:1002}.taro-picker__indicator:after,.taro-picker__indicator:before{background-color:#e5e5e5;content:"";height:1px;left:0;position:absolute;right:0;transform:scaleY(.5)}.taro-picker__indicator:before{top:0}.taro-picker__indicator:after{bottom:0}.taro-picker__content{box-sizing:border-box;height:100%;width:100%}.taro-picker__item{align-items:center;box-sizing:border-box;color:#000;display:flex;font-size:16px;height:34px;justify-content:center;line-height:34px;overflow:hidden;padding:0 8px;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.taro-picker__item--selected{color:#ff0f23;font-weight:500}.taro-picker__item--disabled{color:#999}.taro-picker__column{flex:1;margin:0 8px}.taro-picker__column:first-child{margin-left:0}.taro-picker__column:last-child{margin-right:0}.taro-picker__item--custom{align-items:center;color:#888;display:flex;font-weight:400;justify-content:center;text-align:center}@keyframes taro-picker__slide-up{0%{transform:translate3d(0,100%,0)}to{transform:translateZ(0)}}@keyframes taro-picker__slide-down{0%{transform:translateZ(0)}to{transform:translate3d(0,100%,0)}}@keyframes taro-picker__fade-in{0%{opacity:0}to{opacity:1}}@keyframes taro-picker__fade-out{0%{opacity:1}to{opacity:0}}.rmc-pull-to-refresh-content{transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{transition:transform .3s}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{animation-fill-mode:both;animation:rmc-pull-to-refresh-indicator .5s linear 0s infinite;background-color:grey;border-radius:100%;display:inline-block;height:6px;margin:3px;width:6px}.rmc-pull-to-refresh-indicator>div:nth-child(0){animation-delay:-.1s!important}.rmc-pull-to-refresh-indicator>div:first-child{animation-delay:-.2s!important}.rmc-pull-to-refresh-indicator>div:nth-child(2){animation-delay:-.3s!important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}.taro-scroll{-webkit-overflow-scrolling:auto}.taro-scroll--hidebar::-webkit-scrollbar{display:none}.taro-scroll-view{overflow:hidden}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}.swiper-container-wrapper{height:150px}.swiper-container{height:100%;overflow:visible;position:relative}.taro-text{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.taro-text__selectable{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}
|
|
2
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/button/style/weui-btn_loading.scss","../../src/components/button/style/index.scss","../../src/components/icon/style/index.scss","../../src/components/image/style/index.css","../../src/components/input/style/index.scss","../../src/components/input/style/variable.scss","../../src/components/picker/style/index.scss","../../src/components/picker/style/variable.scss","../../src/components/pull-down-refresh/style/index.css","../../src/components/scroll-view/style/index.css","../../src/components/swiper/style/index.css","../../src/components/text/style/index.css"],"names":[],"mappings":"AAAA,+BACE,GACE,sBCCF,CDEA,GACE,uBCAF,CACF,CDGA,uBACE,GACE,sBCDF,CDIA,GACE,uBCFF,CACF,CDME,yCAME,2CAAA,CACA,whDAAA,CACA,oBAAA,CAJA,oBAAA,CADA,WAAA,CAEA,qBAAA,CAHA,UCCJ,CDOI,iHAEE,wBCNN,CDQI,0DAEE,wBCPN,CDUI,uDACE,wBCRN,CAiBA,kBAoBE,yCAAA,CARA,eAAA,CAEA,wBA9CiB,CA0CjB,iBArDoB,CAoDpB,cAAA,CALA,qBAAA,CAeA,UAtDwB,CAoCxB,aAAA,CAiBA,cAjEgB,CA8DhB,sBAAA,CAVA,gBAAA,CACA,iBAAA,CAOA,SAAA,CAXA,eAAA,CAKA,iBAAA,CACA,kBAAA,CALA,iBAAA,CAcA,iBAAA,CADA,oBAAA,CALA,UALF,CAgBE,wBACE,SAdJ,CAiBE,yCACE,wBA1DqB,CA2DrB,oBAfJ,CAkBE,wBAKE,+BAAA,CACA,kBAAA,CAFA,qBAAA,CAKA,WAAA,CADA,WAAA,CANA,MAAA,CADA,iBAAA,CAEA,KAAA,CAOA,mBAAA,CACA,oBAAA,CAJA,UAZJ,CAmBE,oCACE,eAjBJ,CAoBE,gCACE,wBAlFe,CAmFf,UAlBJ,CAoBI,wDACE,UAlBN,CAqBI,uDACE,wBAzFmB,CA0FnB,oBAnBN,CAuBE,6BACE,oBAAA,CAIA,cA3GkB,CA0GlB,eAzGgB,CAuGhB,gBAAA,CACA,UAnBJ,CAwBE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,CACzB,oBAAqB,CACrB,gBACF","file":"index.css","sourcesContent":["@-webkit-keyframes weuiLoading {\r\n 0% {\r\n transform: rotate3d(0, 0, 1, 0deg);\r\n }\r\n\r\n 100% {\r\n transform: rotate3d(0, 0, 1, 360deg);\r\n }\r\n}\r\n\r\n@keyframes weuiLoading {\r\n 0% {\r\n transform: rotate3d(0, 0, 1, 0deg);\r\n }\r\n\r\n 100% {\r\n transform: rotate3d(0, 0, 1, 360deg);\r\n }\r\n}\r\n\r\n.taro-button-core[loading] {\r\n >.weui-loading {\r\n // font-size: 16px;\r\n width: 20px; // 1em;\r\n height: 20px; // 1em;\r\n display: inline-block;\r\n vertical-align: middle;\r\n animation: weuiLoading 1s steps(12, end) infinite;\r\n background: transparent 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\") no-repeat;\r\n background-size: 100%;\r\n\r\n &.weui-btn_primary,\r\n &.weui-btn_warn {\r\n color: $weuiBtnActiveFontColor;\r\n }\r\n &.weui-btn_primary {\r\n // color: var(--weui-WHITE);\r\n background-color: $weuiBtnPrimaryActiveBg;\r\n }\r\n \r\n &.weui-btn_warn {\r\n background-color: $weuiBtnWarnActiveBg;\r\n }\r\n }\r\n \r\n}","@import 'variable';\n@import 'weui-btn_loading.scss';\n$weuiBtnHeight: 46px;\n$weuiBtnFontSize: 18px;\n$weuiBtnFontColor: #fff;\n$weuiBtnActiveFontColor: rgb(255 255 255 / 60%);\n$weuiBtnDisabledFontColor: rgb(255 255 255 / 60%);\n$weuiBtnBorderRadius: 5px;\n$weuiBtnDefaultGap: 15px;\n\n// Button Mini\n$weuiBtnMiniFontSize: 13px;\n$weuiBtnMiniHeight: 2.3;\n\n// Button Default\n$weuiBtnDefaultFontColor: #000;\n$weuiBtnDefaultActiveFontColor: rgb(0 0 0 / 60%);\n$weuiBtnDefaultDisabledFontColor: rgb(0 0 0 / 30%);\n$weuiBtnDefaultBg: #f8f8f8;\n$weuiBtnDefaultActiveBg: #dedede;\n$weuiBtnDefaultDisabledBg: #f7f7f7;\n\n// Button Primary\n$weuiBtnPrimaryBg: #1aad19;\n$weuiBtnPrimaryActiveBg: #179b16;\n$weuiBtnPrimaryDisabledBg: #9ed99d;\n\n// Button Warn\n$weuiBtnWarnBg: #e64340;\n$weuiBtnWarnActiveBg: #ce3c39;\n$weuiBtnWarnDisabledBg: #ec8b89;\n\n// Button Plain Primary\n$weuiBtnPlainPrimaryColor: rgb(26 173 25 / 100%);\n$weuiBtnPlainPrimaryBorderColor: rgb(26 173 25 / 100%);\n$weuiBtnPlainPrimaryActiveColor: rgb(26 173 25 / 60%);\n$weuiBtnPlainPrimaryActiveBorderColor: rgb(26 173 25 / 60%);\n\n// Button Plain Default\n$weuiBtnPlainDefaultColor: rgb(53 53 53 / 100%);\n$weuiBtnPlainDefaultBorderColor: rgb(53 53 53 / 100%);\n$weuiBtnPlainDefaultActiveColor: rgb(53 53 53 / 60%);\n$weuiBtnPlainDefaultActiveBorderColor: rgb(53 53 53 / 60%);\n\n// Button Plain Warn\n$weuiBtnPlainWarnColor: #e64340;\n$weuiBtnPlainWarnBorderColor: #e64340;\n$weuiBtnPlainWarnActiveColor: rgba(230 67 64 / 60%);\n$weuiBtnPlainWarnActiveBorderColor: rgba(230 67 64 / 60%);\n\n.taro-button-core {\n display: block;\n overflow: hidden;\n position: relative;\n box-sizing: border-box;\n margin-left: auto;\n margin-right: auto;\n padding-left: 14px;\n padding-right: 14px;\n border-width: 0;\n border-radius: $weuiBtnBorderRadius;\n width: 100%;\n appearance: none;\n outline: 0;\n background-color: $weuiBtnDefaultBg;\n line-height: 2.55555556;\n text-decoration: none;\n text-align: center;\n font-size: $weuiBtnFontSize;\n color: $weuiBtnDefaultFontColor;\n -webkit-tap-highlight-color: rgb(0 0 0 / 0%);\n\n &:focus {\n outline: 0;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnDefaultActiveBg;\n color: $weuiBtnDefaultActiveFontColor;\n }\n\n &::after {\n position: absolute;\n left: 0;\n top: 0;\n box-sizing: border-box;\n border: 1px solid rgb(0 0 0 / 20%);\n border-radius: $weuiBtnBorderRadius * 2;\n width: 200%;\n height: 200%;\n content: ' ';\n transform: scale(0.5);\n transform-origin: 0 0;\n }\n\n & + & {\n margin-top: $weuiBtnDefaultGap;\n }\n\n &[type=\"default\"] {\n background-color: $weuiBtnDefaultBg;\n color: $weuiBtnDefaultFontColor;\n\n &:not([disabled]):visited {\n color: $weuiBtnDefaultFontColor;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnDefaultActiveBg;\n color: $weuiBtnDefaultActiveFontColor;\n }\n }\n\n &[size=\"mini\"] {\n display: inline-block;\n padding: 0 1.32em;\n width: auto;\n line-height: $weuiBtnMiniHeight;\n font-size: $weuiBtnMiniFontSize;\n }\n\n &[plain=\"true\"],\n &[plain=\"true\"][type=\"default\"],\n &[plain=\"true\"][type=\"primary\"] {\n border-width: 1px;\n background-color: transparent;\n }\n\n &[disabled] {\n color: $weuiBtnDisabledFontColor;\n\n &[type=\"default\"] {\n background-color: $weuiBtnDefaultDisabledBg;\n color: $weuiBtnDefaultDisabledFontColor;\n }\n\n &[type=\"primary\"] {\n background-color: $weuiBtnPrimaryDisabledBg;\n }\n\n &[type=\"warn\"] {\n background-color: $weuiBtnWarnDisabledBg;\n }\n }\n\n &[loading] {\n .weui-loading {\n margin: -0.2em 0.34em 0 0;\n }\n\n &[type=\"primary\"],\n &[type=\"warn\"] {\n color: $weuiBtnActiveFontColor;\n }\n\n &[type=\"primary\"] {\n background-color: $weuiBtnPrimaryActiveBg;\n }\n\n &[type=\"warn\"] {\n background-color: $weuiBtnWarnActiveBg;\n }\n }\n\n &[plain=\"true\"][type=\"primary\"] {\n border: 1px solid $weuiBtnPlainPrimaryBorderColor;\n color: $weuiBtnPlainPrimaryColor;\n\n &:not([disabled]):active {\n border-color: $weuiBtnPlainPrimaryActiveBorderColor;\n background-color: transparent;\n color: $weuiBtnPlainPrimaryActiveColor;\n }\n\n &::after {\n border-width: 0;\n }\n }\n\n &[plain=\"true\"][type=\"warn\"] {\n border: 1px solid $weuiBtnPlainWarnBorderColor;\n color: $weuiBtnPlainWarnColor;\n\n &:not([disabled]):active {\n border-color: $weuiBtnPlainWarnActiveBorderColor;\n background-color: transparent;\n color: $weuiBtnPlainWarnActiveColor;\n }\n\n &::after {\n border-width: 0;\n }\n }\n\n &[plain=\"true\"],\n &[plain=\"true\"][type=\"default\"] {\n border: 1px solid $weuiBtnPlainDefaultBorderColor;\n color: $weuiBtnPlainDefaultColor;\n\n &:not([disabled]):active {\n border-color: $weuiBtnPlainDefaultActiveBorderColor;\n background-color: transparent;\n color: $weuiBtnPlainDefaultActiveColor;\n }\n\n &::after {\n border-width: 0;\n }\n }\n\n &[type=\"primary\"] {\n background-color: $weuiBtnPrimaryBg;\n color: #fff;\n\n &:not([disabled]):visited {\n color: $weuiBtnFontColor;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnPrimaryActiveBg;\n color: $weuiBtnActiveFontColor;\n }\n }\n\n &[type=\"warn\"] {\n background-color: $weuiBtnWarnBg;\n color: #fff;\n\n &:not([disabled]):visited {\n color: $weuiBtnFontColor;\n }\n\n &:not([disabled]):active {\n background-color: $weuiBtnWarnActiveBg;\n color: $weuiBtnActiveFontColor;\n }\n }\n\n &[plain=\"true\"][disabled] {\n border: 1px solid rgb(0 0 0 / 20%);\n background-color: #f7f7f7;\n color: rgb(0 0 0 / 30%);\n }\n\n &[plain=\"true\"][disabled][type=\"primary\"] {\n border: 1px solid rgb(0 0 0 / 20%);\n background-color: #f7f7f7;\n color: rgb(0 0 0 / 30%);\n }\n}\n",".weui-icon-circle:before { content: '\\EA01' } /* '' */\n.weui-icon-download:before { content: '\\EA02' } /* '' */\n.weui-icon-info:before { content: '\\EA03' } /* '' */\n.weui-icon-safe-success:before { content: '\\EA04' } /* '' */\n.weui-icon-safe-warn:before { content: '\\EA05' } /* '' */\n.weui-icon-success:before { content: '\\EA06' } /* '' */\n.weui-icon-success-circle:before { content: '\\EA07' } /* '' */\n.weui-icon-success-no-circle:before { content: '\\EA08' } /* '' */\n.weui-icon-waiting:before { content: '\\EA09' } /* '' */\n.weui-icon-waiting-circle:before { content: '\\EA0A' } /* '' */\n.weui-icon-warn:before { content: '\\EA0B' } /* '' */\n.weui-icon-info-circle:before { content: '\\EA0C' } /* '' */\n.weui-icon-cancel:before { content: '\\EA0D' } /* '' */\n.weui-icon-search:before { content: '\\EA0E' } /* '' */\n.weui-icon-clear:before { content: '\\EA0F' } /* '' */\n.weui-icon-back:before { content: '\\EA10' } /* '' */\n.weui-icon-delete:before { content: '\\EA11' } /* '' */\n\n.weui-icon-success {\n font-size: 23px;\n color: #09BB07;\n}\n\n.weui-icon-waiting {\n font-size: 23px;\n color: #10AEFF;\n}\n\n.weui-icon-warn {\n font-size: 23px;\n color: #F43530;\n}\n\n.weui-icon-info {\n font-size: 23px;\n color: #10AEFF;\n}\n\n.weui-icon-success-circle {\n font-size: 23px;\n color: #09BB07;\n}\n\n.weui-icon-success-no-circle {\n font-size: 23px;\n color: #09BB07;\n}\n\n.weui-icon-waiting-circle {\n font-size: 23px;\n color: #10AEFF;\n}\n\n.weui-icon-circle {\n font-size: 23px;\n color: #C9C9C9;\n}\n\n.weui-icon-download {\n font-size: 23px;\n color: #09BB07;\n}\n\n.weui-icon-info-circle {\n font-size: 23px;\n color: #09BB07;\n}\n\n.weui-icon-safe-success {\n color: #09BB07;\n}\n\n.weui-icon-safe-warn {\n color: #FFBE00;\n}\n\n.weui-icon-cancel {\n color: #F43530;\n font-size: 22px;\n}\n\n.weui-icon-search {\n color: #B2B2B2;\n font-size: 14px;\n}\n\n.weui-icon-clear {\n color: #B2B2B2;\n font-size: 14px;\n}\n\n.weui-icon-delete {\n &.weui-icon_gallery-delete {\n color: #FFFFFF;\n font-size: 22px;\n }\n}\n\n.weui-icon_msg {\n font-size: 93px;\n\n &.weui-icon-warn {\n color: #F76260;\n }\n}\n\n.weui-icon_msg-primary {\n font-size: 93px;\n\n &.weui-icon-warn {\n color: #FFBE00;\n }\n}\n\n/** Note: 暂不考虑切换到 SVG 模式,原因如下:\n * 1. 实际使用体验与原先使用 WEUI V1.1.3 通过字体加载 Icon 的方式存在差异;\n * 2. 当前 SVG 模式下,图标大小不一致需要进一步调试。\n * 需要注意的是,移除字体文件可以为全局的 css 样式节省约 6.7KB 的大小。\n */\n\n// icon map\n// .weui-icon-circle {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%221000%22%20height%3D%221000%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M500%20916.667C269.881%20916.667%2083.333%20730.119%2083.333%20500%2083.333%20269.881%20269.881%2083.333%20500%2083.333c230.119%200%20416.667%20186.548%20416.667%20416.667%200%20230.119-186.548%20416.667-416.667%20416.667zm0-50c202.504%200%20366.667-164.163%20366.667-366.667%200-202.504-164.163-366.667-366.667-366.667-202.504%200-366.667%20164.163-366.667%20366.667%200%20202.504%20164.163%20366.667%20366.667%20366.667z%22%20fill-rule%3D%22evenodd%22%20fill-opacity%3D%22.9%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-download {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.25%2012.04l-1.72-1.72-1.06%201.06%202.828%202.83a1%201%200%20001.414-.001l2.828-2.828-1.06-1.061-1.73%201.73V7h-1.5v5.04zm0-5.04V2h1.5v5h6.251c.55%200%20.999.446.999.996v13.008a.998.998%200%2001-.996.996H4.996A.998.998%200%20014%2021.004V7.996A1%201%200%20014.999%207h6.251z%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-info {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm-.75-12v7h1.5v-7h-1.5zM12%209a1%201%200%20100-2%201%201%200%20000%202z%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-safe-success {\n// mask-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%3E%3Cpath%20d%3D%22M500.9%204.6C315.5%2046.7%20180.4%2093.1%2057.6%20132c0%20129.3.2%20231.7.2%20339.7%200%20304.2%20248.3%20471.6%20443.1%20523.7C695.7%20943.3%20944%20775.9%20944%20471.7c0-108%20.2-210.4.2-339.7C821.4%2093.1%20686.3%2046.7%20500.9%204.6zm248.3%20349.1l-299.7%20295c-2.1%202-5.3%202-7.4-.1L304.4%20506.1c-2-2.1-2.3-5.7-.6-8l18.3-24.9c1.7-2.3%205-2.8%207.2-1l112.2%2086c2.3%201.8%206%201.7%208.1-.1l274.7-228.9c2.2-1.8%205.7-1.7%207.7.3l17%2016.8c2.2%202.1%202.2%205.3.2%207.4z%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23070202%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-safe-warn {\n// mask-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%3E%3Cpath%20d%3D%22M500.9%204.5c-185.4%2042-320.4%2088.4-443.2%20127.3%200%20129.3.2%20231.7.2%20339.6%200%20304.1%20248.2%20471.4%20443%20523.6%20194.7-52.2%20443-219.5%20443-523.6%200-107.9.2-210.3.2-339.6C821.3%2092.9%20686.2%2046.5%20500.9%204.5zm-26.1%20271.1h52.1c5.8%200%2010.3%204.7%2010.1%2010.4l-11.6%20313.8c-.1%202.8-2.5%205.2-5.4%205.2h-38.2c-2.9%200-5.3-2.3-5.4-5.2L464.8%20286c-.2-5.8%204.3-10.4%2010-10.4zm26.1%20448.3c-20.2%200-36.5-16.3-36.5-36.5s16.3-36.5%2036.5-36.5%2036.5%2016.3%2036.5%2036.5-16.4%2036.5-36.5%2036.5z%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23020202%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-success {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm-1.177-7.86l-2.765-2.767L7%2012.431l3.119%203.121a1%201%200%20001.414%200l5.952-5.95-1.062-1.062-5.6%205.6z%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-success-circle {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm0-1.2a8.8%208.8%200%20100-17.6%208.8%208.8%200%20000%2017.6zm-1.172-6.242l5.809-5.808.848.849-5.95%205.95a1%201%200%2001-1.414%200L7%2012.426l.849-.849%202.98%202.98z%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-success-no-circle {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.657%2018.435L3%2012.778l1.414-1.414%204.95%204.95L20.678%205l1.414%201.414-12.02%2012.021a1%201%200%2001-1.415%200z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-waiting {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.75%2011.38V6h-1.5v6l4.243%204.243%201.06-1.06-3.803-3.804zM12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-waiting-circle {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.6%2011.503l3.891%203.891-.848.849L11.4%2012V6h1.2v5.503zM12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm0-1.2a8.8%208.8%200%20100-17.6%208.8%208.8%200%20000%2017.6z%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-warn {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm-.763-15.864l.11%207.596h1.305l.11-7.596h-1.525zm.759%2010.967c.512%200%20.902-.383.902-.882%200-.5-.39-.882-.902-.882a.878.878%200%2000-.896.882c0%20.499.396.882.896.882z%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-outlined-warn {\n// mask-image: url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12ZM20.8 12C20.8 16.8601 16.8601 20.8 12 20.8C7.13989 20.8 3.2 16.8601 3.2 12C3.2 7.13989 7.13989 3.2 12 3.2C16.8601 3.2 20.8 7.13989 20.8 12ZM12.6592 6.43115L12.5713 13.4917H11.4287L11.3408 6.43115H12.6592ZM11.165 16.2383C11.165 16.707 11.5312 17.0732 12 17.0732C12.4761 17.0732 12.835 16.707 12.835 16.2383C12.835 15.7622 12.4761 15.4033 12 15.4033C11.5312 15.4033 11.165 15.7622 11.165 16.2383Z' fill='black' /%3E%3C/svg%3E%0A\");\n// }\n// .weui-icon-info-circle {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm0-1.2a8.8%208.8%200%20100-17.6%208.8%208.8%200%20000%2017.6zM11.4%2010h1.2v7h-1.2v-7zm.6-1a1%201%200%20110-2%201%201%200%20010%202z%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-cancel {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm0-1.2a8.8%208.8%200%20100-17.6%208.8%208.8%200%20000%2017.6z%22%20fill-rule%3D%22nonzero%22%2F%3E%3Cpath%20d%3D%22M12.849%2012l3.11%203.111-.848.849L12%2012.849l-3.111%203.11-.849-.848L11.151%2012l-3.11-3.111.848-.849L12%2011.151l3.111-3.11.849.848L12.849%2012z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-search {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M16.31%2015.561l4.114%204.115-.848.848-4.123-4.123a7%207%200%2011.857-.84zM16.8%2011a5.8%205.8%200%2010-11.6%200%205.8%205.8%200%200011.6%200z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-clear {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M13.06%2012l3.006-3.005-1.06-1.06L12%2010.938%208.995%207.934l-1.06%201.06L10.938%2012l-3.005%203.005%201.06%201.06L12%2013.062l3.005%203.005%201.06-1.06L13.062%2012zM12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010z%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-back {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm1.999-6.563L10.68%2012%2014%208.562%2012.953%207.5%209.29%2011.277a1.045%201.045%200%20000%201.446l3.663%203.777L14%2015.437z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-delete {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M6.774%206.4l.812%2013.648a.8.8%200%2000.798.752h7.232a.8.8%200%2000.798-.752L17.226%206.4H6.774zm11.655%200l-.817%2013.719A2%202%200%200115.616%2022H8.384a2%202%200%2001-1.996-1.881L5.571%206.4H3.5v-.7a.5.5%200%2001.5-.5h16a.5.5%200%2001.5.5v.7h-2.071zM14%203a.5.5%200%2001.5.5v.7h-5v-.7A.5.5%200%200110%203h4zM9.5%209h1.2l.5%209H10l-.5-9zm3.8%200h1.2l-.5%209h-1.2l.5-9z%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-success-no-circle-thin {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.864%2016.617l-5.303-5.303-1.061%201.06%205.657%205.657a1%201%200%20001.414%200L21.238%206.364l-1.06-1.06L8.864%2016.616z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-arrow {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.454%206.58l1.06-1.06%205.78%205.779a.996.996%200%20010%201.413l-5.78%205.779-1.06-1.061%205.425-5.425-5.425-5.424z%22%20fill%3D%22%23B2B2B2%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-arrow-bold {\n// mask-image: url(data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2212%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.157%2012.711L4.5%2018.368l-1.414-1.414%204.95-4.95-4.95-4.95L4.5%205.64l5.657%205.657a1%201%200%20010%201.414z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-back-arrow {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M3.343%2012l7.071%207.071L9%2020.485l-7.778-7.778a1%201%200%20010-1.414L9%203.515l1.414%201.414L3.344%2012z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-back-arrow-thin {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10%2019.438L8.955%2020.5l-7.666-7.79a1.02%201.02%200%20010-1.42L8.955%203.5%2010%204.563%202.682%2012%2010%2019.438z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-close {\n// mask-image: url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.25 10.6932L6.05682 4.5L5 5.55682L11.1932 11.75L5 17.9432L6.05682 19L12.25 12.8068L18.4432 19L19.5 17.9432L13.3068 11.75L19.5 5.55682L18.4432 4.5L12.25 10.6932Z' fill='black' /%3E%3C/svg%3E%0A\");\n// }\n// .weui-icon-close-thin {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.25%2010.693L6.057%204.5%205%205.557l6.193%206.193L5%2017.943%206.057%2019l6.193-6.193L18.443%2019l1.057-1.057-6.193-6.193L19.5%205.557%2018.443%204.5z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);\n// }\n// .weui-icon-back-circle {\n// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm0-1.2a8.8%208.8%200%20100-17.6%208.8%208.8%200%20000%2017.6zm1.999-5.363L12.953%2016.5%209.29%2012.723a1.045%201.045%200%20010-1.446L12.953%207.5%2014%208.563%2010.68%2012%2014%2015.438z%22%2F%3E%3C%2Fsvg%3E);\n// }\n\n// icon setting\n// .weui-icon-success {\n// color: $weuiColorPrimary;\n// }\n// .weui-icon-waiting {\n// color: var(--weui-BLUE);\n// }\n// .weui-icon-warn {\n// color: $weuiColorWarn;\n// }\n// .weui-icon-info {\n// color: var(--weui-BLUE);\n// }\n\n// .weui-icon-success-circle {\n// color: $weuiColorPrimary;\n// }\n// .weui-icon-success-no-circle,\n// .weui-icon-success-no-circle-thin {\n// color: $weuiColorPrimary;\n// }\n// .weui-icon-waiting-circle {\n// color: var(--weui-BLUE);\n// }\n// .weui-icon-circle {\n// color: $weuiTextColorTips;\n// }\n// .weui-icon-download {\n// color: $weuiColorPrimary;\n// }\n\n// .weui-icon-info-circle {\n// color: $weuiTextColorTips;\n// }\n\n// .weui-icon-safe-success {\n// color: $weuiColorPrimary;\n// }\n// .weui-icon-safe-warn {\n// color: var(--weui-YELLOW);\n// }\n\n// .weui-icon-cancel {\n// color: $weuiColorWarn;\n// }\n\n// .weui-icon-search {\n// color: $weuiTextColorDesc;\n// }\n\n// .weui-icon-clear {\n// color: $weuiTextColorTips;\n// &:active {\n// color: $weuiTextColorDesc;\n// }\n// }\n\n// .weui-icon-delete {\n// &.weui-icon_gallery-delete {\n// color: var(--weui-WHITE);\n// }\n// }\n// .weui-icon-arrow,\n// .weui-icon-arrow-bold,\n// .weui-icon-back-arrow,\n// .weui-icon-back-arrow-thin {\n// & {\n// width: 1.2em;\n// }\n// }\n// .weui-icon-arrow,\n// .weui-icon-arrow-bold {\n// color: $weuiTextColorTips;\n// }\n// .weui-icon-back-arrow,\n// .weui-icon-back-arrow-thin {\n// color: $weuiTextColorTitle;\n// }\n// .weui-icon-back,\n// .weui-icon-back-circle {\n// color: $weuiTextColorTitle;\n// }\n\n// .weui-icon_msg {\n// & {\n// width: 6.4em;\n// height: 6.4em;\n// &.weui-icon-warn {\n// color: $weuiColorWarn;\n// }\n// &.weui-icon-info-circle {\n// color: var(--weui-BLUE);\n// }\n// }\n// }\n// .weui-icon_msg-primary {\n// & {\n// width: 6.4em;\n// height: 6.4em;\n// &.weui-icon-warn {\n// color: var(--weui-YELLOW);\n// }\n// }\n// }\n","img[src=''] {\n opacity: 0;\n}\n\n.taro-img {\n display: inline-block;\n overflow: hidden;\n position: relative;\n width: 320px;\n height: 240px;\n font-size: 0;\n}\n\n.taro-img.taro-img__widthfix {\n height: 100%;\n}\n\n.taro-img__mode-heightfix {\n height: 100%;\n}\n\n.taro-img__mode-scaletofill {\n width: 100%;\n height: 100%;\n}\n\n.taro-img__mode-aspectfit {\n width: 100%;\n height: 100%;\n object-fit: contain;\n}\n\n.taro-img__mode-aspectfill {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.taro-img__mode-widthfix {\n width: 100%;\n}\n\n.taro-img__mode-top {\n position: absolute;\n left: 50%;\n transform: translate(-50%, 0);\n}\n\n.taro-img__mode-bottom {\n position: absolute;\n left: 50%;\n bottom: 0;\n transform: translate(-50%, 0);\n}\n\n.taro-img__mode-center {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.taro-img__mode-left {\n position: absolute;\n top: 50%;\n transform: translate(0, -50%);\n}\n\n.taro-img__mode-right {\n position: absolute;\n right: 0;\n top: 50%;\n transform: translate(0, -50%);\n}\n\n.taro-img__mode-topright {\n position: absolute;\n right: 0;\n}\n\n.taro-img__mode-bottomleft {\n position: absolute;\n bottom: 0;\n}\n\n.taro-img__mode-bottomright {\n position: absolute;\n right: 0;\n bottom: 0;\n}\n","@import './variable.scss';\n\n.taro-input-core {\n display: block;\n}\n\n.weui-input {\n width: 100%;\n border: 0;\n outline: 0;\n -webkit-appearance: none;\n background-color: transparent;\n // font-family: inherit;\n font-size: inherit;\n color: inherit;\n height: em($weuiCellLineHeight);\n line-height: $weuiCellLineHeight;\n \n // hides the spin-button\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n // &:focus {\n // &:not(:placeholder-shown) {\n // & + .weui-btn_input-clear {\n // display: inline;\n // }\n // }\n // }\n}\n","@use 'sass:math';\n\n$browser-context: 16;\n@function em($pixels, $context: $browser-context) {\n // @if math.unit($pixels) == px {\n // $pixels: math.div($pixels, $context);\n // }\n @if math.unit($pixels) != '' {\n $pixels: math.div($pixels, $pixels * 0 + 1);\n }\n \n @return #{$pixels}em;\n }\n \n\n$weuiCellBg:#FFFFFF; // var(--weui-BG-2);\n$weuiCellBorderColor:#e5e5e5; // $weuiLineColorLight;\n$weuiCellGapV:10px; // 16px;\n$weuiCellGapH:15px; // 16px;\n$weuiCellInnerGapH:.35em; // 16px;\n$weuiCellHeight: 45px; // 56px;\n$weuiCellFontSize: 17px;\n$weuiCellTipsFontSize: 14px;\n$weuiCellLabelWidth: 105px;\n// $weuiCellActiveBg: $weuiBgColorActive;\n\n$weuiCellLineHeight: calc(($weuiCellHeight - 2 * $weuiCellGapV) / $weuiCellFontSize); // 高度减去上下padding的行高\n$weuiCellsMarginTop: em(math.div(20, $weuiCellFontSize)); // 8px;\n\n// weui switch\n$weuiSwitchHeight: 32px;\n\n// weui uploader\n$weuiUploaderBorderColor:#D9D9D9;\n$weuiUploaderActiveBorderColor:#999999;\n$weuiUploaderFileSpacing: 9px;\n$weuiUploaderSize: 79px;\n$weuiUploaderBorderWidth: 1px;\n","@import './variable';\n\n// 覆盖层遮罩(用于全屏遮罩)\n.taro-picker__overlay {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: $weuiPickerZIndexContainer;\n}\n\n// 点击取消遮罩(用于事件处理)\n.taro-picker__mask-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: $weuiPickerZIndexMask;\n background-color: rgba(0, 0, 0, 0.6);\n}\n\n.taro-picker {\n position: absolute;\n bottom: 0;\n left: 0;\n z-index: $weuiPickerZIndexIndicator;\n background-color: $weuiLineColorLight;\n width: 100%;\n font-size: 14px;\n}\n\n.taro-picker__hd {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: $weuiPickerHeaderHeight;\n padding: 0;\n background-color: #fff;\n font-size: 17px;\n position: relative;\n \n &::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 1px;\n background-color: $weuiLineColorLight;\n transform: scaleY(0.5);\n }\n}\n\n.taro-picker__action {\n flex: 0 0 auto; /* 不伸缩,保持内容宽度 */\n padding: 0 10px;\n height: $weuiPickerHeaderHeight;\n line-height: $weuiPickerHeaderHeight;\n color: $weuiColorPrimary;\n font-size: 14px;\n \n \n // 左侧取消按钮\n &:first-child {\n color: $weuiTextColorDesc;\n }\n}\n\n.taro-picker__title {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-width: 40%; /* 限制最大宽度,防止挤压按钮 */\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-weight: 500;\n font-size: 16px;\n color: $weuiTextColorBlack;\n}\n\n.taro-picker__bd {\n display: flex;\n flex: 1;\n width: 100%;\n height: $weuiPickerContentHeight;\n box-sizing: border-box;\n overflow: hidden;\n background-color: #fff;\n}\n\n// 选择器组\n.taro-picker__group {\n display: flex;\n position: relative;\n height: 100%;\n box-sizing: border-box;\n justify-content: center; /* 水平居中 */\n align-items: center; \n flex: 1; /* 确保在多列情况下平均分配空间 */\n min-width: 0;\n \n // 多列布局\n &--date {\n .taro-picker__columns {\n display: flex;\n width: 100%;\n height: 100%;\n }\n }\n}\n\n// 遮罩层 - 上下渐变效果\n.taro-picker__mask {\n position: absolute;\n left: 0;\n top: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n background: \n linear-gradient(\n 180deg,\n rgba(255, 255, 255, 0.95) 0%,\n rgba(255, 255, 255, 0.6) 40%,\n rgba(255, 255, 255, 0) 45%,\n rgba(255, 255, 255, 0) 55%,\n rgba(255, 255, 255, 0.6) 60%,\n rgba(255, 255, 255, 0.95) 100%\n );\n pointer-events: none;\n}\n\n// 选中行指示器\n.taro-picker__indicator {\n position: absolute;\n left: 0;\n top: 50%;\n z-index: $weuiPickerZIndexIndicator;\n width: 100%;\n height: $weuiPickerItemHeight;\n box-sizing: border-box;\n transform: translateY(-50%);\n \n // 上下边框\n &::before, &::after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n background-color: $weuiLineColorLight;\n transform: scaleY(0.5);\n }\n \n &::before { top: 0; }\n &::after { bottom: 0; }\n}\n\n// 滚动内容区域\n.taro-picker__content {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n}\n\n// 选项样式\n.taro-picker__item {\n width: 100%;\n height: $weuiPickerItemHeight;\n padding: 0 8px; /* 增加内边距使文本不贴边 */\n box-sizing: border-box;\n overflow: hidden; /* 隐藏溢出内容 */\n line-height: $weuiPickerItemHeight;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 16px; /* 稍微减小字体大小 */\n color: $weuiTextColorBlack;\n \n // 选中状态\n &--selected {\n font-weight: 500; /* 使用适中的字体粗细 */\n color: $weuiColorPrimary;\n }\n \n // 禁用状态\n &--disabled {\n color: $weuiTextColorGray;\n }\n}\n\n// 列间距调整\n.taro-picker__column {\n flex: 1;\n margin: 0 $weuiPickerColumnGap;\n \n // 第一列和最后一列的间距调整\n &:first-child { margin-left: 0; }\n &:last-child { margin-right: 0; }\n}\n\n// 新增:自定义项样式\n.taro-picker__item--custom {\n text-align: center; /* 确保自定义项也居中 */\n display: flex;\n justify-content: center;\n align-items: center;\n font-weight: normal;\n color: #888;\n}\n\n// 动画相关\n@keyframes taro-picker__slide-up {\n from {\n transform: translate3d(0, 100%, 0);\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n//目前动画支持度不够 暂时屏蔽\n.taro-picker__animate-slide-up {\n // animation: taro-picker__slide-up ease #{$weuiPickerTransitionDuration} forwards;\n}\n\n@keyframes taro-picker__slide-down {\n from {\n transform: translate3d(0, 0, 0);\n }\n\n to {\n transform: translate3d(0, 100%, 0);\n }\n}\n\n.taro-picker__animate-slide-down {\n // animation: taro-picker__slide-down ease #{$weuiPickerTransitionDuration} forwards;\n}\n\n@keyframes taro-picker__fade-in {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n.taro-picker__animate-fade-in {\n // animation: taro-picker__fade-in ease #{$weuiPickerTransitionDuration} forwards;\n}\n\n@keyframes taro-picker__fade-out {\n from {\n opacity: 1;\n }\n\n to {\n opacity: 0;\n }\n}\n\n.taro-picker__animate-fade-out {\n // animation: taro-picker__fade-out ease #{$weuiPickerTransitionDuration} forwards;\n}\n","$weuiLineColorLight: #e5e5e5;\n$weuiColorPrimary: #FF0F23;\n$weuiTextColorGray: #999;\n$weuiTextColorDesc: #888;\n$weuiTextColorBlack: #000;\n\n// Picker 相关变量\n$weuiPickerZIndexContainer: 1000; // picker容器层级\n$weuiPickerZIndexMask: 1001; // 遮罩层级\n$weuiPickerZIndexIndicator: 1002; // 选中指示器层级\n\n// Picker 尺寸\n$weuiPickerHeaderHeight: 44px; // 头部高度\n$weuiPickerItemHeight: 34px; // 选项高度\n$weuiPickerContentHeight: 238px; // 内容区高度\n$weuiPickerColumnGap: 8px; // 列间距\n\n// 动画\n$weuiPickerTransitionDuration: 0.3s; // 过渡动画时长",".rmc-pull-to-refresh-content {\r\n transform-origin: left top 0px;\r\n}\r\n.rmc-pull-to-refresh-content-wrapper {\r\n min-height: 100%;\r\n}\r\n\r\n.rmc-pull-to-refresh-transition {\r\n transition: transform 0.3s;\r\n}\r\n\r\n@keyframes rmc-pull-to-refresh-indicator {\r\n 50% {\r\n opacity: 0.2;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n\r\n.rmc-pull-to-refresh-indicator {\r\n text-align: center;\r\n height: 30px;\r\n line-height: 10px;\r\n}\r\n\r\n.rmc-pull-to-refresh-indicator > div {\r\n background-color: grey;\r\n width: 6px;\r\n height: 6px;\r\n border-radius: 100%;\r\n margin: 3px;\r\n animation-fill-mode: both;\r\n display: inline-block;\r\n animation: rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;\r\n}\r\n.rmc-pull-to-refresh-indicator > div:nth-child(0) {\r\n animation-delay: -0.1s !important;\r\n}\r\n.rmc-pull-to-refresh-indicator > div:nth-child(1) {\r\n animation-delay: -0.2s !important;\r\n}\r\n.rmc-pull-to-refresh-indicator > div:nth-child(2) {\r\n animation-delay: -0.3s !important;\r\n}\r\n.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator {\r\n margin-top: -25px;\r\n}\r\n",".taro-scroll {\n -webkit-overflow-scrolling: auto;\n}\n\n/* 默认不隐藏滚动条,只有加上 .taro-scroll--hidebar 时才隐藏 */\n.taro-scroll--hidebar::-webkit-scrollbar {\n display: none;\n}\n\n.taro-scroll-view {\n overflow: hidden;\n}\n\n.taro-scroll-view__scroll-x {\n overflow-x: scroll;\n overflow-y: hidden;\n}\n\n.taro-scroll-view__scroll-y {\n overflow-x: hidden;\n overflow-y: scroll;\n}\n",".swiper-container-wrapper {\n height: 150px;\n}\n\n.swiper-container {\n height: 100%;\n position: relative;\n overflow: visible;\n}\n",".taro-text {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.taro-text__selectable {\n -moz-user-select: text;\n -webkit-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { Ad, AdCustom, AnimationVideo, AnimationView, ArCamera, Audio, AwemeData, Block, Camera, Canvas, ChannelLive, ChannelVideo, Checkbox, CheckboxGroup, CommentDetail, CommentList, ContactButton, CoverImage, CoverView, CustomWrapper, DraggableSheet, Editor, FollowSwan, Form, FunctionalPageNavigator, GridBuilder, GridView, InlinePaymentPanel, KeyboardAccessory, Label, Lifestyle, Like, ListBuilder, ListView, LivePlayer, LivePusher, Login, Lottie, Map, MatchMedia, MovableArea, MovableView, NativeSlot, NavigationBar, Navigator, NestedScrollBody, NestedScrollHeader, OfficialAccount, OpenContainer, OpenData, PageContainer, PageMeta, PickerView, PickerViewColumn, Progress, Radio, RadioGroup, RichText, RootPortal, RtcRoom, RtcRoomItem, Script, ShareElement, Slider, Slot, Snapshot, Span, Switch, Tabs, Textarea, Video, VoipRoom, WebView } from '@tarojs/components/lib/react';
|
|
2
|
+
export { default as Button } from './components/button/index.js';
|
|
3
|
+
export { default as Icon } from './components/icon/index.js';
|
|
4
|
+
export { default as Image } from './components/image/index.js';
|
|
5
|
+
export { default as Input } from './components/input/index.js';
|
|
6
|
+
export { default as Picker } from './components/picker/index.js';
|
|
7
|
+
export { default as PullDownRefresh } from './components/pull-down-refresh/index.js';
|
|
8
|
+
export { default as Refresher } from './components/refresher/index.js';
|
|
9
|
+
export { default as ScrollView } from './components/scroll-view/index.js';
|
|
10
|
+
export { Swiper, SwiperItem } from './components/swiper/index.js';
|
|
11
|
+
export { default as Text } from './components/text/index.js';
|
|
12
|
+
export { default as View } from './components/view/index.js';
|
|
13
|
+
|
|
14
|
+
/* eslint-disable simple-import-sort/exports */
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.react.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nexport { Ad } from '@tarojs/components/lib/react'\nexport { AdCustom } from '@tarojs/components/lib/react'\nexport { AnimationVideo } from '@tarojs/components/lib/react'\nexport { AnimationView } from '@tarojs/components/lib/react'\nexport { ArCamera } from '@tarojs/components/lib/react'\nexport { Audio } from '@tarojs/components/lib/react'\nexport { AwemeData } from '@tarojs/components/lib/react'\nexport { Block } from '@tarojs/components/lib/react'\nexport { default as Button } from './components/button'\nexport { Camera } from '@tarojs/components/lib/react'\nexport { Canvas } from '@tarojs/components/lib/react'\nexport { ChannelLive } from '@tarojs/components/lib/react'\nexport { ChannelVideo } from '@tarojs/components/lib/react'\nexport { Checkbox, CheckboxGroup } from '@tarojs/components/lib/react'\nexport { CommentDetail, CommentList } from '@tarojs/components/lib/react'\nexport { ContactButton } from '@tarojs/components/lib/react'\nexport { CoverImage } from '@tarojs/components/lib/react'\nexport { CoverView } from '@tarojs/components/lib/react'\nexport { CustomWrapper } from '@tarojs/components/lib/react'\nexport { DraggableSheet } from '@tarojs/components/lib/react'\nexport { Editor } from '@tarojs/components/lib/react'\nexport { FollowSwan } from '@tarojs/components/lib/react'\nexport { Form } from '@tarojs/components/lib/react'\nexport { FunctionalPageNavigator } from '@tarojs/components/lib/react'\nexport { GridView } from '@tarojs/components/lib/react'\nexport { GridBuilder } from '@tarojs/components/lib/react'\nexport { default as Icon } from './components/icon'\nexport { default as Image } from './components/image'\nexport { InlinePaymentPanel } from '@tarojs/components/lib/react'\nexport { default as Input } from './components/input'\nexport { KeyboardAccessory } from '@tarojs/components/lib/react'\nexport { Label } from '@tarojs/components/lib/react'\nexport { Lifestyle } from '@tarojs/components/lib/react'\nexport { Like } from '@tarojs/components/lib/react'\nexport { LivePlayer } from '@tarojs/components/lib/react'\nexport { LivePusher } from '@tarojs/components/lib/react'\nexport { ListBuilder } from '@tarojs/components/lib/react'\nexport { ListView } from '@tarojs/components/lib/react'\nexport { Login } from '@tarojs/components/lib/react'\nexport { Lottie } from '@tarojs/components/lib/react'\nexport { Map } from '@tarojs/components/lib/react'\nexport { MatchMedia } from '@tarojs/components/lib/react'\nexport { MovableArea, MovableView } from '@tarojs/components/lib/react'\nexport { NavigationBar } from '@tarojs/components/lib/react'\nexport { Navigator } from '@tarojs/components/lib/react'\nexport { NestedScrollBody } from '@tarojs/components/lib/react'\nexport { NestedScrollHeader } from '@tarojs/components/lib/react'\nexport { OfficialAccount } from '@tarojs/components/lib/react'\nexport { OpenData } from '@tarojs/components/lib/react'\nexport { OpenContainer } from '@tarojs/components/lib/react'\nexport { PageContainer } from '@tarojs/components/lib/react'\nexport { PageMeta } from '@tarojs/components/lib/react'\nexport { default as Picker } from './components/picker'\nexport { PickerView, PickerViewColumn } from '@tarojs/components/lib/react'\nexport { Progress } from '@tarojs/components/lib/react'\nexport { default as PullDownRefresh } from './components/pull-down-refresh'\n// export { PullToRefresh } from '@tarojs/components/lib/react'\nexport { default as Refresher } from './components/refresher'\nexport { Radio, RadioGroup } from '@tarojs/components/lib/react'\nexport { RichText } from '@tarojs/components/lib/react'\nexport { RootPortal } from '@tarojs/components/lib/react'\nexport { RtcRoom, RtcRoomItem } from '@tarojs/components/lib/react'\nexport { Script } from '@tarojs/components/lib/react'\nexport { default as ScrollView } from './components/scroll-view'\nexport { ShareElement } from '@tarojs/components/lib/react'\nexport { Slider } from '@tarojs/components/lib/react'\nexport { Snapshot } from '@tarojs/components/lib/react'\nexport { Span } from '@tarojs/components/lib/react'\nexport { NativeSlot, Slot } from '@tarojs/components/lib/react'\nexport { Swiper, SwiperItem } from './components/swiper'\nexport { Switch } from '@tarojs/components/lib/react'\nexport { Tabs } from '@tarojs/components/lib/react'\nexport { default as Text } from './components/text'\nexport { Textarea } from '@tarojs/components/lib/react'\nexport { Video } from '@tarojs/components/lib/react'\nexport { default as View } from './components/view'\nexport { VoipRoom } from '@tarojs/components/lib/react'\nexport { WebView } from '@tarojs/components/lib/react'\n"],"names":[],"mappings":";;;;;;;;;;;;;AAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
const useState = React.useState;
|
|
4
|
+
const useCallback = React.useCallback;
|
|
5
|
+
const useEffect = React.useEffect;
|
|
6
|
+
const useMemo = React.useMemo;
|
|
7
|
+
const useRef = React.useRef;
|
|
8
|
+
const createContext = React.createContext;
|
|
9
|
+
const useContext = React.useContext;
|
|
10
|
+
const memo = React.memo;
|
|
11
|
+
const forwardRef = React.forwardRef;
|
|
12
|
+
const useImperativeHandle = React.useImperativeHandle;
|
|
13
|
+
|
|
14
|
+
export { createContext, forwardRef, memo, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState };
|
|
15
|
+
//# sourceMappingURL=hooks.react.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.react.js","sources":["../../../src/utils/hooks.react.ts"],"sourcesContent":["import * as React from 'react'\n\nexport const useState = React.useState\n\nexport const useCallback = React.useCallback\n\nexport const useEffect = React.useEffect\n\nexport const useMemo = React.useMemo\n\nexport const useRef = React.useRef\n\nexport const createContext = React.createContext\nexport const useContext = React.useContext\nexport const memo = React.memo\nexport const forwardRef = React.forwardRef\nexport const useImperativeHandle = React.useImperativeHandle\n"],"names":["useState","React","useCallback","useEffect","useMemo","useRef","createContext","useContext","memo","forwardRef","useImperativeHandle"],"mappings":";;AAEaA,MAAAA,QAAQ,GAAGC,KAAK,CAACD;AAEjBE,MAAAA,WAAW,GAAGD,KAAK,CAACC;AAEpBC,MAAAA,SAAS,GAAGF,KAAK,CAACE;AAElBC,MAAAA,OAAO,GAAGH,KAAK,CAACG;AAEhBC,MAAAA,MAAM,GAAGJ,KAAK,CAACI;AAEfC,MAAAA,aAAa,GAAGL,KAAK,CAACK;AACtBC,MAAAA,UAAU,GAAGN,KAAK,CAACM;AACnBC,MAAAA,IAAI,GAAGP,KAAK,CAACO;AACbC,MAAAA,UAAU,GAAGR,KAAK,CAACQ;AACnBC,MAAAA,mBAAmB,GAAGT,KAAK,CAACS;;;;"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { forwardRef } from './hooks.react.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
/* eslint-disable react/react-in-jsx-scope */
|
|
5
|
+
function throttle(fn) {
|
|
6
|
+
let threshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 250;
|
|
7
|
+
let scope = arguments.length > 2 ? arguments[2] : undefined;
|
|
8
|
+
let lastTime = 0;
|
|
9
|
+
let deferTimer;
|
|
10
|
+
return function () {
|
|
11
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
12
|
+
args[_key] = arguments[_key];
|
|
13
|
+
}
|
|
14
|
+
const context = scope || this;
|
|
15
|
+
const now = Date.now();
|
|
16
|
+
if (now - lastTime > threshold) {
|
|
17
|
+
fn.apply(this, args);
|
|
18
|
+
lastTime = now;
|
|
19
|
+
} else {
|
|
20
|
+
clearTimeout(deferTimer);
|
|
21
|
+
deferTimer = setTimeout(() => {
|
|
22
|
+
lastTime = now;
|
|
23
|
+
fn.apply(context, args);
|
|
24
|
+
}, threshold);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function debounce(fn) {
|
|
29
|
+
let ms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 250;
|
|
30
|
+
let scope = arguments.length > 2 ? arguments[2] : undefined;
|
|
31
|
+
let timer;
|
|
32
|
+
return function () {
|
|
33
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
34
|
+
args[_key2] = arguments[_key2];
|
|
35
|
+
}
|
|
36
|
+
const context = scope || this;
|
|
37
|
+
clearTimeout(timer);
|
|
38
|
+
timer = setTimeout(function () {
|
|
39
|
+
fn.apply(context, args);
|
|
40
|
+
}, ms);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function omit(obj, fields) {
|
|
44
|
+
const shallowCopy = Object.assign({}, obj);
|
|
45
|
+
for (let i = 0; i < fields.length; i += 1) {
|
|
46
|
+
const key = fields[i];
|
|
47
|
+
delete shallowCopy[key];
|
|
48
|
+
}
|
|
49
|
+
return shallowCopy;
|
|
50
|
+
}
|
|
51
|
+
const createForwardRefComponent = ReactComponent => {
|
|
52
|
+
const forwardRefComponent = (props, ref) => /*#__PURE__*/jsx(ReactComponent, {
|
|
53
|
+
...props,
|
|
54
|
+
forwardedRef: ref
|
|
55
|
+
});
|
|
56
|
+
return forwardRef(forwardRefComponent);
|
|
57
|
+
};
|
|
58
|
+
// Picker 工具函数
|
|
59
|
+
function getTimeRange(begin, end) {
|
|
60
|
+
const range = [];
|
|
61
|
+
for (let i = begin; i <= end; i++) {
|
|
62
|
+
range.push(`${i < 10 ? '0' : ''}${i}`);
|
|
63
|
+
}
|
|
64
|
+
return range;
|
|
65
|
+
}
|
|
66
|
+
const hoursRange = getTimeRange(0, 23);
|
|
67
|
+
const minutesRange = getTimeRange(0, 59);
|
|
68
|
+
/**
|
|
69
|
+
* 校验传入的 value 是否合法
|
|
70
|
+
*/
|
|
71
|
+
function verifyValue(value, range) {
|
|
72
|
+
if (!isNaN(+value) && value >= 0 && value < range.length) return true;
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 检验传入的 time value 是否合法
|
|
77
|
+
*/
|
|
78
|
+
function verifyTime(value) {
|
|
79
|
+
if (!/^\d{1,2}:\d{1,2}$/.test(value)) return false;
|
|
80
|
+
const time = value.split(':').map(num => +num);
|
|
81
|
+
if (time[0] < 0 || time[0] > 23) return false;
|
|
82
|
+
if (time[1] < 0 || time[1] > 59) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* 比较时间
|
|
87
|
+
* return t1 <= t2
|
|
88
|
+
*/
|
|
89
|
+
function compareTime(t1, t2) {
|
|
90
|
+
const t1List = t1.split(':').map(i => +i);
|
|
91
|
+
const t2List = t2.split(':').map(i => +i);
|
|
92
|
+
if (t1List[0] < t2List[0]) return true;
|
|
93
|
+
if (t1List[0] === t2List[0] && t1List[1] <= t2List[1]) return true;
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* 校验日期合法性,返回合法性和日期数组
|
|
98
|
+
*/
|
|
99
|
+
function verifyDate(dateStr) {
|
|
100
|
+
if (!dateStr) return false;
|
|
101
|
+
const date = new Date(dateStr.replace(/-/g, '/'));
|
|
102
|
+
return isNaN(date.getMonth()) ? false : date;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* 获取当月最大天数
|
|
106
|
+
*/
|
|
107
|
+
function getMaxDay(year, month) {
|
|
108
|
+
if (month === 4 || month === 6 || month === 9 || month === 11) return 30;
|
|
109
|
+
if (month === 2) {
|
|
110
|
+
if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) return 29;else return 28;
|
|
111
|
+
}
|
|
112
|
+
return 31;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* 获取时间数组
|
|
116
|
+
*/
|
|
117
|
+
function getDateRange(start, end) {
|
|
118
|
+
const range = [];
|
|
119
|
+
for (let i = start; i <= end; i++) {
|
|
120
|
+
range.push(i);
|
|
121
|
+
}
|
|
122
|
+
return range;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* 获取年份区间数组
|
|
126
|
+
*/
|
|
127
|
+
function getYearRange(start, end) {
|
|
128
|
+
return getDateRange(start, end);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* 获取月份区间数组
|
|
132
|
+
*/
|
|
133
|
+
function getMonthRange(start, end, year) {
|
|
134
|
+
let rangeStart = 1;
|
|
135
|
+
let rangeEnd = 12;
|
|
136
|
+
// 当前年份等于开始年份,由开始对应的月份约束开始值
|
|
137
|
+
if (start.getFullYear() === year) {
|
|
138
|
+
rangeStart = start.getMonth() + 1;
|
|
139
|
+
}
|
|
140
|
+
// 当前年份等于结束年份,由结束对应的月份约束结束值
|
|
141
|
+
if (end.getFullYear() === year) {
|
|
142
|
+
rangeEnd = end.getMonth() + 1;
|
|
143
|
+
}
|
|
144
|
+
return getDateRange(rangeStart, rangeEnd);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* 获取日期区间数组
|
|
148
|
+
*/
|
|
149
|
+
function getDayRange(start, end, year, month) {
|
|
150
|
+
let rangeStart = 1;
|
|
151
|
+
let rangeEnd = getMaxDay(year, month);
|
|
152
|
+
if (start.getFullYear() === year && start.getMonth() + 1 === month) {
|
|
153
|
+
rangeStart = start.getDate();
|
|
154
|
+
}
|
|
155
|
+
if (end.getFullYear() === year && end.getMonth() + 1 === month) {
|
|
156
|
+
rangeEnd = end.getDate();
|
|
157
|
+
}
|
|
158
|
+
return getDateRange(rangeStart, rangeEnd);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export { compareTime, createForwardRefComponent, debounce, getDayRange, getMonthRange, getYearRange, hoursRange, minutesRange, omit, throttle, verifyDate, verifyTime, verifyValue };
|
|
162
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/utils/index.tsx"],"sourcesContent":["/* eslint-disable react/react-in-jsx-scope */\nimport { forwardRef } from './hooks'\n\nexport function throttle (fn, threshold = 250, scope?) {\n let lastTime = 0\n let deferTimer: ReturnType<typeof setTimeout>\n return function (...args) {\n const context = scope || this\n const now = Date.now()\n if (now - lastTime > threshold) {\n fn.apply(this, args)\n lastTime = now\n } else {\n clearTimeout(deferTimer)\n deferTimer = setTimeout(() => {\n lastTime = now\n fn.apply(context, args)\n }, threshold)\n }\n }\n}\n\nexport function debounce (fn, ms = 250, scope?) {\n let timer: ReturnType<typeof setTimeout>\n\n return function (...args) {\n const context = scope || this\n clearTimeout(timer)\n timer = setTimeout(function () {\n fn.apply(context, args)\n }, ms)\n }\n}\n\nexport function omit (obj, fields) {\n const shallowCopy = Object.assign({}, obj)\n for (let i = 0; i < fields.length; i += 1) {\n const key = fields[i]\n delete shallowCopy[key]\n }\n return shallowCopy\n}\n\nexport const createForwardRefComponent = (ReactComponent: any) => {\n const forwardRefComponent = (\n props,\n ref\n ) => <ReactComponent {...props} forwardedRef={ref} />\n\n return forwardRef(forwardRefComponent)\n}\n\n// Picker 工具函数\nfunction getTimeRange (begin: number, end: number) {\n const range: string[] = []\n for (let i = begin; i <= end; i++) {\n range.push(`${i < 10 ? '0' : ''}${i}`)\n }\n return range\n}\n\nexport const hoursRange = getTimeRange(0, 23)\n\nexport const minutesRange = getTimeRange(0, 59)\n\n/**\n * 校验传入的 value 是否合法\n */\nexport function verifyValue (value: number, range: any[]) {\n if (!isNaN(+value) && value >= 0 && value < range.length) return true\n return false\n}\n\n/**\n * 检验传入的 time value 是否合法\n */\nexport function verifyTime (value: string) {\n if (!/^\\d{1,2}:\\d{1,2}$/.test(value)) return false\n\n const time = value.split(':').map(num => +num)\n\n if (time[0] < 0 || time[0] > 23) return false\n if (time[1] < 0 || time[1] > 59) return false\n\n return true\n}\n\n/**\n * 比较时间\n * return t1 <= t2\n */\nexport function compareTime (t1: string, t2: string) {\n const t1List = t1.split(':').map(i => +i)\n const t2List = t2.split(':').map(i => +i)\n\n if (t1List[0] < t2List[0]) return true\n if (t1List[0] === t2List[0] && t1List[1] <= t2List[1]) return true\n\n return false\n}\n\n/**\n * 校验日期合法性,返回合法性和日期数组\n */\nexport function verifyDate (dateStr: string) {\n if (!dateStr) return false\n const date = new Date(dateStr.replace(/-/g, '/'))\n return isNaN(date.getMonth()) ? false : date\n}\n\n/**\n * 获取当月最大天数\n */\nfunction getMaxDay (year: number, month: number) {\n if (month === 4 || month === 6 || month === 9 || month === 11) return 30\n if (month === 2) {\n if ((year % 4 === 0 && year % 100 !== 0) || year % 400 === 0) return 29\n else return 28\n }\n return 31\n}\n\n/**\n * 获取时间数组\n */\nfunction getDateRange (start: number, end: number) {\n const range: number[] = []\n for (let i = start; i <= end; i++) {\n range.push(i)\n }\n return range\n}\n\n/**\n * 获取年份区间数组\n */\nexport function getYearRange (start: number, end: number) {\n return getDateRange(start, end)\n}\n\n/**\n * 获取月份区间数组\n */\nexport function getMonthRange (start: Date, end: Date, year: number) {\n let rangeStart = 1\n let rangeEnd = 12\n\n // 当前年份等于开始年份,由开始对应的月份约束开始值\n if (start.getFullYear() === year) {\n rangeStart = start.getMonth() + 1\n }\n\n // 当前年份等于结束年份,由结束对应的月份约束结束值\n if (end.getFullYear() === year) {\n rangeEnd = end.getMonth() + 1\n }\n\n return getDateRange(rangeStart, rangeEnd)\n}\n\n/**\n * 获取日期区间数组\n */\nexport function getDayRange (start: Date, end: Date, year: number, month: number) {\n let rangeStart = 1\n let rangeEnd = getMaxDay(year, month)\n\n if (start.getFullYear() === year && start.getMonth() + 1 === month) {\n rangeStart = start.getDate()\n }\n\n if (end.getFullYear() === year && end.getMonth() + 1 === month) {\n rangeEnd = end.getDate()\n }\n\n return getDateRange(rangeStart, rangeEnd)\n}\n\n"],"names":["throttle","fn","threshold","arguments","length","undefined","scope","lastTime","deferTimer","_len","args","Array","_key","context","now","Date","apply","clearTimeout","setTimeout","debounce","ms","timer","_len2","_key2","omit","obj","fields","shallowCopy","Object","assign","i","key","createForwardRefComponent","ReactComponent","forwardRefComponent","props","ref","_jsx","forwardedRef","forwardRef","getTimeRange","begin","end","range","push","hoursRange","minutesRange","verifyValue","value","isNaN","verifyTime","test","time","split","map","num","compareTime","t1","t2","t1List","t2List","verifyDate","dateStr","date","replace","getMonth","getMaxDay","year","month","getDateRange","start","getYearRange","getMonthRange","rangeStart","rangeEnd","getFullYear","getDayRange","getDate"],"mappings":";;;AAAA;AAGM,SAAUA,QAAQA,CAAEC,EAAE,EAAyB;AAAA,EAAA,IAAvBC,SAAS,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,GAAG;EAAA,IAAEG,KAAM,GAAAH,SAAA,CAAAC,MAAA,GAAAD,CAAAA,GAAAA,SAAA,MAAAE,SAAA;EACnD,IAAIE,QAAQ,GAAG,CAAC;AAChB,EAAA,IAAIC,UAAyC;AAC7C,EAAA,OAAO,YAAiB;AAAA,IAAA,KAAA,IAAAC,IAAA,GAAAN,SAAA,CAAAC,MAAA,EAAJM,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;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components-react",
|
|
3
|
-
"version": "4.1.7-beta.
|
|
3
|
+
"version": "4.1.7-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main:h5": "dist/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"identity-obj-proxy": "^3.0.0",
|
|
30
30
|
"swiper": "11.1.15",
|
|
31
31
|
"tslib": "^2.6.2",
|
|
32
|
-
"@tarojs/components": "4.1.7-beta.
|
|
33
|
-
"@tarojs/shared": "4.1.7-beta.
|
|
34
|
-
"@tarojs/taro": "4.1.7-beta.
|
|
32
|
+
"@tarojs/components": "4.1.7-beta.2",
|
|
33
|
+
"@tarojs/shared": "4.1.7-beta.2",
|
|
34
|
+
"@tarojs/taro": "4.1.7-beta.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@babel/plugin-transform-runtime": "^7.24.1",
|
|
@@ -45,10 +45,12 @@
|
|
|
45
45
|
"babel-preset-solid": "^1.8.15",
|
|
46
46
|
"jest": "^29.7.0",
|
|
47
47
|
"jest-environment-jsdom": "^29.7.0",
|
|
48
|
+
"rollup-plugin-styles": "^4.0.0",
|
|
49
|
+
"sass": "^1.92.0",
|
|
48
50
|
"solid-js": "^1.8.16",
|
|
49
51
|
"ts-jest": "^29.1.1",
|
|
50
|
-
"@tarojs/
|
|
51
|
-
"@tarojs/
|
|
52
|
+
"@tarojs/helper": "4.1.7-beta.2",
|
|
53
|
+
"@tarojs/runtime": "4.1.7-beta.2"
|
|
52
54
|
},
|
|
53
55
|
"peerDependencies": {
|
|
54
56
|
"react": "*",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["index.scss"],"names":[],"mappings":"AACA,sBACE,cAAe,CAOf,YACF,CAEA,iDAPE,QAAS,CAGT,WAAY,CAFZ,MAAO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,sBAGE,qBAAsB,CADtB,WAAY,CADZ,UAGF,CAEA,mBASE,kBAAmB,CALnB,qBAAsB,CAUtB,UAAW,CANX,YAAa,CAKb,cAAe,CAXf,WAAY,CAQZ,sBAAuB,CAJvB,gBAAiB,CADjB,eAAgB,CAFhB,aAAc,CAId,iBAAkB,CAKlB,sBAAuB,CADvB,kBAAmB,CAVnB,UAcF,CACA,6BAEE,aAAc,CADd,eAEF,CACA,6BACE,UACF,CAEA,qBACE,MAAO,CACP,YACF,CACA,iCACE,aACF,CACA,gCACE,cACF,CAEA,2BAIE,kBAAmB,CAEnB,UAAW,CAJX,YAAa,CAGb,eAAmB,CAFnB,sBAAuB,CAFvB,iBAMF,CAEA,iCACE,GACE,+BACF,CACA,GACE,uBACF,CACF,CACA,mCACE,GACE,uBACF,CACA,GACE,+BACF,CACF,CACA,gCACE,GACE,SACF,CACA,GACE,SACF,CACF,CACA,iCACE,GACE,SACF,CACA,GACE,SACF,CACF","file":"style.css","sourcesContent":["@charset \"UTF-8\";\n.taro-picker__overlay {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1000;\n}\n\n.taro-picker__mask-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1001;\n background-color: rgba(0, 0, 0, 0.6);\n}\n\n.taro-picker {\n position: absolute;\n bottom: 0;\n left: 0;\n z-index: 1002;\n background-color: #e5e5e5;\n width: 100%;\n font-size: 14px;\n}\n\n.taro-picker__hd {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 44px;\n padding: 0;\n background-color: #fff;\n font-size: 17px;\n position: relative;\n}\n.taro-picker__hd::after {\n content: \"\";\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 1px;\n background-color: #e5e5e5;\n transform: scaleY(0.5);\n}\n\n.taro-picker__action {\n flex: 0 0 auto; /* 不伸缩,保持内容宽度 */\n padding: 0 10px;\n height: 44px;\n line-height: 44px;\n color: #FF0F23;\n font-size: 14px;\n}\n.taro-picker__action:first-child {\n color: #888;\n}\n\n.taro-picker__title {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-width: 40%; /* 限制最大宽度,防止挤压按钮 */\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-weight: 500;\n font-size: 16px;\n color: #000;\n}\n\n.taro-picker__bd {\n display: flex;\n flex: 1;\n width: 100%;\n height: 238px;\n box-sizing: border-box;\n overflow: hidden;\n background-color: #fff;\n}\n\n.taro-picker__group {\n display: flex;\n position: relative;\n height: 100%;\n box-sizing: border-box;\n justify-content: center; /* 水平居中 */\n align-items: center;\n flex: 1; /* 确保在多列情况下平均分配空间 */\n min-width: 0;\n}\n.taro-picker__group--date .taro-picker__columns {\n display: flex;\n width: 100%;\n height: 100%;\n}\n\n.taro-picker__mask {\n position: absolute;\n left: 0;\n top: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.95) 100%);\n pointer-events: none;\n}\n\n.taro-picker__indicator {\n position: absolute;\n left: 0;\n top: 50%;\n z-index: 1002;\n width: 100%;\n height: 34px;\n box-sizing: border-box;\n transform: translateY(-50%);\n}\n.taro-picker__indicator::before, .taro-picker__indicator::after {\n content: \"\";\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n background-color: #e5e5e5;\n transform: scaleY(0.5);\n}\n.taro-picker__indicator::before {\n top: 0;\n}\n.taro-picker__indicator::after {\n bottom: 0;\n}\n\n.taro-picker__content {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n}\n\n.taro-picker__item {\n width: 100%;\n height: 34px;\n padding: 0 8px; /* 增加内边距使文本不贴边 */\n box-sizing: border-box;\n overflow: hidden; /* 隐藏溢出内容 */\n line-height: 34px;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 16px; /* 稍微减小字体大小 */\n color: #000;\n}\n.taro-picker__item--selected {\n font-weight: 500; /* 使用适中的字体粗细 */\n color: #FF0F23;\n}\n.taro-picker__item--disabled {\n color: #999;\n}\n\n.taro-picker__column {\n flex: 1;\n margin: 0 8px;\n}\n.taro-picker__column:first-child {\n margin-left: 0;\n}\n.taro-picker__column:last-child {\n margin-right: 0;\n}\n\n.taro-picker__item--custom {\n text-align: center; /* 确保自定义项也居中 */\n display: flex;\n justify-content: center;\n align-items: center;\n font-weight: normal;\n color: #888;\n}\n\n@keyframes taro-picker__slide-up {\n from {\n transform: translate3d(0, 100%, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes taro-picker__slide-down {\n from {\n transform: translate3d(0, 0, 0);\n }\n to {\n transform: translate3d(0, 100%, 0);\n }\n}\n@keyframes taro-picker__fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@keyframes taro-picker__fade-out {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|