@tarojs/components-react 4.1.4-beta.13 → 4.1.4-beta.14
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/components/button/index.js +87 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button/style/index.scss.js +4 -0
- package/dist/components/button/style/index.scss.js.map +1 -0
- package/dist/components/icon/index.js +36 -0
- package/dist/components/icon/index.js.map +1 -0
- package/dist/components/icon/style/index.scss.js +4 -0
- package/dist/components/icon/style/index.scss.js.map +1 -0
- package/dist/components/image/index.js +86 -0
- package/dist/components/image/index.js.map +1 -0
- package/dist/components/image/style/index.css.js +4 -0
- package/dist/components/image/style/index.css.js.map +1 -0
- package/dist/components/input/index.js +233 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/style/index.scss.js +4 -0
- package/dist/components/input/style/index.scss.js.map +1 -0
- package/dist/components/picker/index.js +13 -7
- package/dist/components/picker/index.js.map +1 -1
- package/dist/components/pull-down-refresh/index.js +320 -0
- package/dist/components/pull-down-refresh/index.js.map +1 -0
- package/dist/components/pull-down-refresh/style/index.css.js +4 -0
- package/dist/components/pull-down-refresh/style/index.css.js.map +1 -0
- package/dist/components/scroll-view/index.js +184 -0
- package/dist/components/scroll-view/index.js.map +1 -0
- package/dist/components/scroll-view/style/index.css.js +4 -0
- package/dist/components/scroll-view/style/index.css.js.map +1 -0
- package/dist/components/swiper/index.js +461 -0
- package/dist/components/swiper/index.js.map +1 -0
- package/dist/components/swiper/style/index.css.js +4 -0
- package/dist/components/swiper/style/index.css.js.map +1 -0
- package/dist/components/text/index.js +28 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/style/index.css.js +4 -0
- package/dist/components/text/style/index.css.js.map +1 -0
- package/dist/components/view/index.js +80 -0
- package/dist/components/view/index.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +12 -79
- package/dist/index.js.map +1 -1
- package/dist/solid/components/button/index.js +95 -0
- package/dist/solid/components/button/index.js.map +1 -0
- package/dist/solid/components/button/style/index.scss.js +4 -0
- package/dist/solid/components/button/style/index.scss.js.map +1 -0
- package/dist/solid/components/icon/index.js +39 -0
- package/dist/solid/components/icon/index.js.map +1 -0
- package/dist/solid/components/icon/style/index.scss.js +4 -0
- package/dist/solid/components/icon/style/index.scss.js.map +1 -0
- package/dist/solid/components/image/index.js +94 -0
- package/dist/solid/components/image/index.js.map +1 -0
- package/dist/solid/components/image/style/index.css.js +4 -0
- package/dist/solid/components/image/style/index.css.js.map +1 -0
- package/dist/solid/components/picker/index.js +15 -7
- package/dist/solid/components/picker/index.js.map +1 -1
- package/dist/solid/components/scroll-view/index.js +188 -0
- package/dist/solid/components/scroll-view/index.js.map +1 -0
- package/dist/solid/components/scroll-view/style/index.css.js +4 -0
- package/dist/solid/components/scroll-view/style/index.css.js.map +1 -0
- package/dist/solid/components/text/index.js +32 -0
- package/dist/solid/components/text/index.js.map +1 -0
- package/dist/solid/components/text/style/index.css.js +4 -0
- package/dist/solid/components/text/style/index.css.js.map +1 -0
- package/dist/solid/components/view/index.js +88 -0
- package/dist/solid/components/view/index.js.map +1 -0
- package/dist/solid/index.css +1 -1
- package/dist/solid/index.js +9 -79
- package/dist/solid/index.js.map +1 -1
- package/dist/styles/picker-styles.css +1 -1
- package/dist/styles/picker-styles.css.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { template, use, spread, mergeProps, memo, insert, delegateEvents } from 'solid-js/web';
|
|
2
|
+
import { __rest } from 'tslib';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { useState, useEffect } from '../../utils/hooks.solid.js';
|
|
5
|
+
import { createForwardRefComponent } from '../../utils/index.js';
|
|
6
|
+
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/template(`<div>`);
|
|
8
|
+
function View(_a) {
|
|
9
|
+
var {
|
|
10
|
+
className,
|
|
11
|
+
hoverClass,
|
|
12
|
+
forwardedRef,
|
|
13
|
+
onTouchStart,
|
|
14
|
+
onTouchEnd,
|
|
15
|
+
onTouchMove,
|
|
16
|
+
hoverStartTime = 50,
|
|
17
|
+
hoverStayTime = 400
|
|
18
|
+
} = _a,
|
|
19
|
+
other = __rest(_a, ["className", "hoverClass", "forwardedRef", "onTouchStart", "onTouchEnd", "onTouchMove", "hoverStartTime", "hoverStayTime"]);
|
|
20
|
+
let timeoutEvent;
|
|
21
|
+
let startTime = 0;
|
|
22
|
+
const [hover, setHover] = useState(false);
|
|
23
|
+
const [touch, setTouch] = useState(false);
|
|
24
|
+
const [cls, setCls] = useState(classNames('', {
|
|
25
|
+
[`${hoverClass}`]: "solid" === 'solid' ? hover() : hover
|
|
26
|
+
}, className));
|
|
27
|
+
const _onTouchStart = e => {
|
|
28
|
+
if (hoverClass) {
|
|
29
|
+
setTouch(true);
|
|
30
|
+
setTimeout(() => {
|
|
31
|
+
if ("solid" === 'solid' ? touch() : touch) {
|
|
32
|
+
setHover(true);
|
|
33
|
+
}
|
|
34
|
+
}, hoverStartTime);
|
|
35
|
+
}
|
|
36
|
+
onTouchStart && onTouchStart(e);
|
|
37
|
+
if (other.onLongPress) {
|
|
38
|
+
timeoutEvent = setTimeout(() => {
|
|
39
|
+
other.onLongPress();
|
|
40
|
+
}, 350);
|
|
41
|
+
startTime = new Date().getTime();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const _onTouchMove = e => {
|
|
45
|
+
clearTimeout(timeoutEvent);
|
|
46
|
+
onTouchMove && onTouchMove(e);
|
|
47
|
+
};
|
|
48
|
+
const _onTouchEnd = e => {
|
|
49
|
+
const spanTime = new Date().getTime() - startTime;
|
|
50
|
+
if (spanTime < 350) {
|
|
51
|
+
clearTimeout(timeoutEvent);
|
|
52
|
+
}
|
|
53
|
+
if (hoverClass) {
|
|
54
|
+
setTouch(false);
|
|
55
|
+
setTimeout(() => {
|
|
56
|
+
if ("solid" === 'solid' ? touch() : touch) {
|
|
57
|
+
setHover(false);
|
|
58
|
+
}
|
|
59
|
+
}, hoverStayTime);
|
|
60
|
+
}
|
|
61
|
+
onTouchEnd && onTouchEnd(e);
|
|
62
|
+
};
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
setCls(classNames('', {
|
|
65
|
+
[`${hoverClass}`]: "solid" === 'solid' ? hover() : hover
|
|
66
|
+
}, className));
|
|
67
|
+
}, [hover, className]);
|
|
68
|
+
return (() => {
|
|
69
|
+
var _el$ = _tmpl$();
|
|
70
|
+
_el$.$$touchmove = _onTouchMove;
|
|
71
|
+
_el$.$$touchend = _onTouchEnd;
|
|
72
|
+
_el$.$$touchstart = _onTouchStart;
|
|
73
|
+
var _ref$ = forwardedRef;
|
|
74
|
+
typeof _ref$ === "function" ? use(_ref$, _el$) : forwardedRef = _el$;
|
|
75
|
+
spread(_el$, mergeProps({
|
|
76
|
+
get className() {
|
|
77
|
+
return memo(() => "solid" === 'solid')() ? cls() : cls;
|
|
78
|
+
}
|
|
79
|
+
}, other), false, true);
|
|
80
|
+
insert(_el$, () => other.children);
|
|
81
|
+
return _el$;
|
|
82
|
+
})();
|
|
83
|
+
}
|
|
84
|
+
var index = createForwardRefComponent(View);
|
|
85
|
+
delegateEvents(["touchstart", "touchend", "touchmove"]);
|
|
86
|
+
|
|
87
|
+
export { index as default };
|
|
88
|
+
//# 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","_el$","_tmpl$","$$touchmove","$$touchend","$$touchstart","_ref$","_$use","_$spread","_$mergeProps","_$memo","_$insert","children","createForwardRefComponent","_$delegateEvents"],"mappings":"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"}
|
package/dist/solid/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.taro-picker__overlay{z-index:1000}.taro-picker__mask-overlay,.taro-picker__overlay{bottom:0;height:100%;left:0;position:relative;right:0;top:0;width:100%}.taro-picker__mask-overlay{background-color:rgba(0,0,0,.6);z-index:1001}.taro-picker{background-color:#e5e5e5;bottom:0;left:0;position:relative;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:#1aad19;flex:0 0 auto;font-size:16px;height:44px;line-height:44px;padding:0 10px}.taro-picker__action:first-child{color:#888}.taro-picker__title{color:#000;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) 50%,hsla(0,0%,100%,0) 0,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:#1aad19;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}}.taro-picker,.taro-picker__hd{font-size:12px}
|
|
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-picker__overlay{z-index:1000}.taro-picker__mask-overlay,.taro-picker__overlay{bottom:0;height:100%;left:0;position:relative;right:0;top:0;width:100%}.taro-picker__mask-overlay{background-color:rgba(0,0,0,.6);z-index:1001}.taro-picker{background-color:#e5e5e5;bottom:0;left:0;position:relative;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:#1aad19;flex:0 0 auto;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) 50%,hsla(0,0%,100%,0) 0,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:#1aad19;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}}.taro-picker,.taro-picker__hd{font-size:14px}.taro-scroll{-webkit-overflow-scrolling:auto}.taro-scroll::-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}.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}
|
package/dist/solid/index.js
CHANGED
|
@@ -1,81 +1,11 @@
|
|
|
1
|
-
export {
|
|
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, Input, KeyboardAccessory, Label, Lifestyle, Like, ListBuilder, ListView, LivePlayer, LivePusher, Login, Lottie, Map, MatchMedia, MovableArea, MovableView, NativeSlot, NavigationBar, Navigator, NestedScrollBody, NestedScrollHeader, OfficialAccount, OpenContainer, OpenData, PageContainer, PageMeta, Progress, PullToRefresh, Radio, RadioGroup, RichText, RootPortal, RtcRoom, RtcRoomItem, Script, ShareElement, Slider, Slot, Snapshot, Span, StickyHeader, StickySection, Swiper, SwiperItem, Switch, Tabs, Textarea, Video, VoipRoom, WebView } from '@tarojs/components/lib/solid';
|
|
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 Picker } from './components/picker/index.js';
|
|
6
|
+
export { default as ScrollView } from './components/scroll-view/index.js';
|
|
7
|
+
export { default as Text } from './components/text/index.js';
|
|
8
|
+
export { default as View } from './components/view/index.js';
|
|
2
9
|
|
|
3
|
-
|
|
4
|
-
// export { Ad } from '@tarojs/components/lib/solid'
|
|
5
|
-
// export { AdCustom } from '@tarojs/components/lib/solid'
|
|
6
|
-
// export { AnimationVideo } from '@tarojs/components/lib/solid'
|
|
7
|
-
// export { AnimationView } from '@tarojs/components/lib/solid'
|
|
8
|
-
// export { ArCamera } from '@tarojs/components/lib/solid'
|
|
9
|
-
// export { Audio } from '@tarojs/components/lib/solid'
|
|
10
|
-
// export { AwemeData } from '@tarojs/components/lib/solid'
|
|
11
|
-
// export { Block } from '@tarojs/components/lib/solid'
|
|
12
|
-
// export { default as Button } from './components/button'
|
|
13
|
-
// export { Camera } from '@tarojs/components/lib/solid'
|
|
14
|
-
// export { Canvas } from '@tarojs/components/lib/solid'
|
|
15
|
-
// export { ChannelLive } from '@tarojs/components/lib/solid'
|
|
16
|
-
// export { ChannelVideo } from '@tarojs/components/lib/solid'
|
|
17
|
-
// export { Checkbox, CheckboxGroup } from '@tarojs/components/lib/solid'
|
|
18
|
-
// export { CommentDetail, CommentList } from '@tarojs/components/lib/solid'
|
|
19
|
-
// export { ContactButton } from '@tarojs/components/lib/solid'
|
|
20
|
-
// export { CoverImage } from '@tarojs/components/lib/solid'
|
|
21
|
-
// export { CoverView } from '@tarojs/components/lib/solid'
|
|
22
|
-
// export { CustomWrapper } from '@tarojs/components/lib/solid'
|
|
23
|
-
// export { DraggableSheet } from '@tarojs/components/lib/solid'
|
|
24
|
-
// export { Editor } from '@tarojs/components/lib/solid'
|
|
25
|
-
// export { FollowSwan } from '@tarojs/components/lib/solid'
|
|
26
|
-
// export { Form } from '@tarojs/components/lib/solid'
|
|
27
|
-
// export { FunctionalPageNavigator } from '@tarojs/components/lib/solid'
|
|
28
|
-
// export { GridView } from '@tarojs/components/lib/solid'
|
|
29
|
-
// export { GridBuilder } from '@tarojs/components/lib/solid'
|
|
30
|
-
// export { default as Icon } from './components/icon'
|
|
31
|
-
// export { default as Image } from './components/image'
|
|
32
|
-
// export { InlinePaymentPanel } from '@tarojs/components/lib/solid'
|
|
33
|
-
// export { Input } from '@tarojs/components/lib/solid'
|
|
34
|
-
// export { KeyboardAccessory } from '@tarojs/components/lib/solid'
|
|
35
|
-
// export { Label } from '@tarojs/components/lib/solid'
|
|
36
|
-
// export { Lifestyle } from '@tarojs/components/lib/solid'
|
|
37
|
-
// export { Like } from '@tarojs/components/lib/solid'
|
|
38
|
-
// export { LivePlayer } from '@tarojs/components/lib/solid'
|
|
39
|
-
// export { LivePusher } from '@tarojs/components/lib/solid'
|
|
40
|
-
// export { ListBuilder } from '@tarojs/components/lib/solid'
|
|
41
|
-
// export { ListView } from '@tarojs/components/lib/solid'
|
|
42
|
-
// export { Login } from '@tarojs/components/lib/solid'
|
|
43
|
-
// export { Lottie } from '@tarojs/components/lib/solid'
|
|
44
|
-
// export { Map } from '@tarojs/components/lib/solid'
|
|
45
|
-
// export { MatchMedia } from '@tarojs/components/lib/solid'
|
|
46
|
-
// export { MovableArea, MovableView } from '@tarojs/components/lib/solid'
|
|
47
|
-
// export { NavigationBar } from '@tarojs/components/lib/solid'
|
|
48
|
-
// export { Navigator } from '@tarojs/components/lib/solid'
|
|
49
|
-
// export { NestedScrollBody } from '@tarojs/components/lib/solid'
|
|
50
|
-
// export { NestedScrollHeader } from '@tarojs/components/lib/solid'
|
|
51
|
-
// export { OfficialAccount } from '@tarojs/components/lib/solid'
|
|
52
|
-
// export { OpenData } from '@tarojs/components/lib/solid'
|
|
53
|
-
// export { OpenContainer } from '@tarojs/components/lib/solid'
|
|
54
|
-
// export { PageContainer } from '@tarojs/components/lib/solid'
|
|
55
|
-
// export { PageMeta } from '@tarojs/components/lib/solid'
|
|
56
|
-
// export { Progress } from '@tarojs/components/lib/solid'
|
|
57
|
-
// // export { default as PullDownRefresh } from './components/pull-down-refresh'
|
|
58
|
-
// export { PullToRefresh } from '@tarojs/components/lib/solid'
|
|
59
|
-
// export { Radio, RadioGroup } from '@tarojs/components/lib/solid'
|
|
60
|
-
// export { RichText } from '@tarojs/components/lib/solid'
|
|
61
|
-
// export { RootPortal } from '@tarojs/components/lib/solid'
|
|
62
|
-
// export { RtcRoom, RtcRoomItem } from '@tarojs/components/lib/solid'
|
|
63
|
-
// export { Script } from '@tarojs/components/lib/solid'
|
|
64
|
-
// export { default as ScrollView } from './components/scroll-view'
|
|
65
|
-
// export { ShareElement } from '@tarojs/components/lib/solid'
|
|
66
|
-
// export { Slider } from '@tarojs/components/lib/solid'
|
|
67
|
-
// export { Snapshot } from '@tarojs/components/lib/solid'
|
|
68
|
-
// export { Span } from '@tarojs/components/lib/solid'
|
|
69
|
-
// export { StickyHeader } from '@tarojs/components/lib/solid'
|
|
70
|
-
// export { StickySection } from '@tarojs/components/lib/solid'
|
|
71
|
-
// export { NativeSlot, Slot } from '@tarojs/components/lib/solid'
|
|
72
|
-
// export { Swiper, SwiperItem } from '@tarojs/components/lib/solid'
|
|
73
|
-
// export { Switch } from '@tarojs/components/lib/solid'
|
|
74
|
-
// export { Tabs } from '@tarojs/components/lib/solid'
|
|
75
|
-
// export { default as Text } from './components/text'
|
|
76
|
-
// export { Textarea } from '@tarojs/components/lib/solid'
|
|
77
|
-
// export { Video } from '@tarojs/components/lib/solid'
|
|
78
|
-
// export { default as View } from './components/view'
|
|
79
|
-
// export { VoipRoom } from '@tarojs/components/lib/solid'
|
|
80
|
-
// export { WebView } from '@tarojs/components/lib/solid'
|
|
10
|
+
/* eslint-disable simple-import-sort/exports */
|
|
81
11
|
//# sourceMappingURL=index.js.map
|
package/dist/solid/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.solid.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.solid.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\nexport { Ad } from '@tarojs/components/lib/solid'\nexport { AdCustom } from '@tarojs/components/lib/solid'\nexport { AnimationVideo } from '@tarojs/components/lib/solid'\nexport { AnimationView } from '@tarojs/components/lib/solid'\nexport { ArCamera } from '@tarojs/components/lib/solid'\nexport { Audio } from '@tarojs/components/lib/solid'\nexport { AwemeData } from '@tarojs/components/lib/solid'\nexport { Block } from '@tarojs/components/lib/solid'\nexport { default as Button } from './components/button'\nexport { Camera } from '@tarojs/components/lib/solid'\nexport { Canvas } from '@tarojs/components/lib/solid'\nexport { ChannelLive } from '@tarojs/components/lib/solid'\nexport { ChannelVideo } from '@tarojs/components/lib/solid'\nexport { Checkbox, CheckboxGroup } from '@tarojs/components/lib/solid'\nexport { CommentDetail, CommentList } from '@tarojs/components/lib/solid'\nexport { ContactButton } from '@tarojs/components/lib/solid'\nexport { CoverImage } from '@tarojs/components/lib/solid'\nexport { CoverView } from '@tarojs/components/lib/solid'\nexport { CustomWrapper } from '@tarojs/components/lib/solid'\nexport { DraggableSheet } from '@tarojs/components/lib/solid'\nexport { Editor } from '@tarojs/components/lib/solid'\nexport { FollowSwan } from '@tarojs/components/lib/solid'\nexport { Form } from '@tarojs/components/lib/solid'\nexport { FunctionalPageNavigator } from '@tarojs/components/lib/solid'\nexport { GridView } from '@tarojs/components/lib/solid'\nexport { GridBuilder } from '@tarojs/components/lib/solid'\nexport { default as Icon } from './components/icon'\nexport { default as Image } from './components/image'\nexport { InlinePaymentPanel } from '@tarojs/components/lib/solid'\nexport { Input } from '@tarojs/components/lib/solid'\nexport { KeyboardAccessory } from '@tarojs/components/lib/solid'\nexport { Label } from '@tarojs/components/lib/solid'\nexport { Lifestyle } from '@tarojs/components/lib/solid'\nexport { Like } from '@tarojs/components/lib/solid'\nexport { LivePlayer } from '@tarojs/components/lib/solid'\nexport { LivePusher } from '@tarojs/components/lib/solid'\nexport { ListBuilder } from '@tarojs/components/lib/solid'\nexport { ListView } from '@tarojs/components/lib/solid'\nexport { Login } from '@tarojs/components/lib/solid'\nexport { Lottie } from '@tarojs/components/lib/solid'\nexport { Map } from '@tarojs/components/lib/solid'\nexport { MatchMedia } from '@tarojs/components/lib/solid'\nexport { MovableArea, MovableView } from '@tarojs/components/lib/solid'\nexport { NavigationBar } from '@tarojs/components/lib/solid'\nexport { Navigator } from '@tarojs/components/lib/solid'\nexport { NestedScrollBody } from '@tarojs/components/lib/solid'\nexport { NestedScrollHeader } from '@tarojs/components/lib/solid'\nexport { OfficialAccount } from '@tarojs/components/lib/solid'\nexport { OpenData } from '@tarojs/components/lib/solid'\nexport { OpenContainer } from '@tarojs/components/lib/solid'\nexport { PageContainer } from '@tarojs/components/lib/solid'\nexport { PageMeta } from '@tarojs/components/lib/solid'\nexport { default as Picker } from './components/picker'\nexport { Progress } from '@tarojs/components/lib/solid'\n// export { default as PullDownRefresh } from './components/pull-down-refresh'\nexport { PullToRefresh } from '@tarojs/components/lib/solid'\nexport { Radio, RadioGroup } from '@tarojs/components/lib/solid'\nexport { RichText } from '@tarojs/components/lib/solid'\nexport { RootPortal } from '@tarojs/components/lib/solid'\nexport { RtcRoom, RtcRoomItem } from '@tarojs/components/lib/solid'\nexport { Script } from '@tarojs/components/lib/solid'\nexport { default as ScrollView } from './components/scroll-view'\nexport { ShareElement } from '@tarojs/components/lib/solid'\nexport { Slider } from '@tarojs/components/lib/solid'\nexport { Snapshot } from '@tarojs/components/lib/solid'\nexport { Span } from '@tarojs/components/lib/solid'\nexport { StickyHeader } from '@tarojs/components/lib/solid'\nexport { StickySection } from '@tarojs/components/lib/solid'\nexport { NativeSlot, Slot } from '@tarojs/components/lib/solid'\nexport { Swiper, SwiperItem } from '@tarojs/components/lib/solid'\nexport { Switch } from '@tarojs/components/lib/solid'\nexport { Tabs } from '@tarojs/components/lib/solid'\nexport { default as Text } from './components/text'\nexport { Textarea } from '@tarojs/components/lib/solid'\nexport { Video } from '@tarojs/components/lib/solid'\nexport { default as View } from './components/view'\nexport { VoipRoom } from '@tarojs/components/lib/solid'\nexport { WebView } from '@tarojs/components/lib/solid'\n"],"names":[],"mappings":";;;;;;;;;AAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.taro-picker__overlay{z-index:1000}.taro-picker__mask-overlay,.taro-picker__overlay{bottom:0;height:100%;left:0;position:relative;right:0;top:0;width:100%}.taro-picker__mask-overlay{background-color:rgba(0,0,0,.6);z-index:1001}.taro-picker{background-color:#e5e5e5;bottom:0;left:0;position:relative;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:#1aad19;flex:0 0 auto;
|
|
1
|
+
.taro-picker__overlay{z-index:1000}.taro-picker__mask-overlay,.taro-picker__overlay{bottom:0;height:100%;left:0;position:relative;right:0;top:0;width:100%}.taro-picker__mask-overlay{background-color:rgba(0,0,0,.6);z-index:1001}.taro-picker{background-color:#e5e5e5;bottom:0;left:0;position:relative;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:#1aad19;flex:0 0 auto;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) 50%,hsla(0,0%,100%,0) 0,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:#1aad19;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}}.taro-picker,.taro-picker__hd{font-size:14px}
|
|
2
2
|
/*# sourceMappingURL=picker-styles.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.scss"],"names":[],"mappings":"AACA,sBAQE,YACF,CAEA,iDAPE,QAAS,CAGT,WAAY,CAFZ,MAAO,CAJP,iBAAkB,CAElB,OAAQ,CADR,KAAM,CAIN,UAeF,CAVA,2BASE,+BAAoC,CADpC,YAEF,CAEA,aAKE,wBAAyB,CAHzB,QAAS,CACT,MAAO,CAFP,iBAAkB,CAKlB,UAAW,CAFX,YAGF,CAEA,iBAEE,kBAAmB,CAInB,qBAAsB,CALtB,YAAa,CAMb,cAAe,CAHf,WAAY,CADZ,6BAA8B,CAE9B,SAAU,CAGV,iBACF,CACA,uBAOE,wBAAyB,CAHzB,QAAS,CAHT,UAAW,CAKX,UAAW,CAHX,MAAO,CADP,iBAAkB,CAMlB,oBAAsB,CAHtB,UAIF,CAEA,qBAKE,aAAc,CAJd,aAAc,
|
|
1
|
+
{"version":3,"sources":["index.scss"],"names":[],"mappings":"AACA,sBAQE,YACF,CAEA,iDAPE,QAAS,CAGT,WAAY,CAFZ,MAAO,CAJP,iBAAkB,CAElB,OAAQ,CADR,KAAM,CAIN,UAeF,CAVA,2BASE,+BAAoC,CADpC,YAEF,CAEA,aAKE,wBAAyB,CAHzB,QAAS,CACT,MAAO,CAFP,iBAAkB,CAKlB,UAAW,CAFX,YAGF,CAEA,iBAEE,kBAAmB,CAInB,qBAAsB,CALtB,YAAa,CAMb,cAAe,CAHf,WAAY,CADZ,6BAA8B,CAE9B,SAAU,CAGV,iBACF,CACA,uBAOE,wBAAyB,CAHzB,QAAS,CAHT,UAAW,CAKX,UAAW,CAHX,MAAO,CADP,iBAAkB,CAMlB,oBAAsB,CAHtB,UAIF,CAEA,qBAKE,aAAc,CAJd,aAAc,CAEd,WAAY,CACZ,gBAAiB,CAFjB,cAIF,CACA,iCACE,UACF,CAEA,oBAWE,UAAW,CADX,cAAe,CADf,eAAgB,CAPhB,QAAS,CAGT,aAAc,CACd,eAAgB,CALhB,iBAAkB,CAOlB,sBAAuB,CALvB,OAAQ,CACR,8BAAgC,CAGhC,kBAKF,CAEA,iBAOE,qBAAsB,CAHtB,YAAa,CAEb,eAAgB,CAHhB,UAKF,CAEA,qCALE,qBAAsB,CAJtB,YAAa,CACb,MAiBF,CATA,oBAME,kBAAmB,CAHnB,WAAY,CAEZ,sBAAuB,CAGvB,WAAY,CANZ,iBAOF,CACA,gDACE,YAAa,CAEb,WAAY,CADZ,UAEF,CAEA,mBAOE,kKAAqN,CADrN,WAAY,CAJZ,MAAO,CAMP,mBAAoB,CAPpB,iBAAkB,CAElB,KAAM,CAEN,UAAW,CADX,SAKF,CAEA,wBAOE,qBAAsB,CADtB,WAAY,CAJZ,MAAO,CADP,iBAAkB,CAElB,OAAQ,CAKR,0BAA2B,CAH3B,UAAW,CADX,YAKF,CACA,6DAME,wBAAyB,CALzB,UAAW,CAIX,UAAW,CAFX,MAAO,CADP,iBAAkB,CAElB,OAAQ,CAGR,oBACF,CACA,+BACE,KACF,CACA,8BACE,QACF,CAEA,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,CACA,8BAEE,cACF","file":"picker-styles.css","sourcesContent":["@charset \"UTF-8\";\n.taro-picker__overlay {\n position: relative;\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: relative;\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: relative;\n bottom: 0;\n left: 0;\n z-index: 1002;\n background-color: #e5e5e5;\n width: 100%;\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: #1aad19;\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) 50%, rgba(255, 255, 255, 0) 50%, 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: #1aad19;\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}\n.taro-picker,\n.taro-picker__hd {\n font-size: 14px;\n}"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components-react",
|
|
3
|
-
"version": "4.1.4-beta.
|
|
3
|
+
"version": "4.1.4-beta.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main:h5": "dist/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"classnames": "^2.2.5",
|
|
29
29
|
"swiper": "11.1.15",
|
|
30
30
|
"tslib": "^2.6.2",
|
|
31
|
-
"@tarojs/
|
|
32
|
-
"@tarojs/
|
|
33
|
-
"@tarojs/components": "4.1.4-beta.
|
|
31
|
+
"@tarojs/shared": "4.1.4-beta.14",
|
|
32
|
+
"@tarojs/taro": "4.1.4-beta.14",
|
|
33
|
+
"@tarojs/components": "4.1.4-beta.14"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/preset-react": "^7.24.1",
|
|
37
37
|
"babel-preset-solid": "^1.8.15",
|
|
38
38
|
"solid-js": "^1.8.16",
|
|
39
|
-
"@tarojs/
|
|
40
|
-
"@tarojs/
|
|
39
|
+
"@tarojs/helper": "4.1.4-beta.14",
|
|
40
|
+
"@tarojs/runtime": "4.1.4-beta.14"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": "*",
|