@tarojs/components-react 4.0.1-alpha.1 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +8 -8
- package/dist/components/button/index.js +103 -78
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/icon/index.js +17 -26
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/image/index.js +101 -76
- package/dist/components/image/index.js.map +1 -1
- package/dist/components/input/index.js +206 -183
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/pull-down-refresh/index.js +211 -195
- package/dist/components/pull-down-refresh/index.js.map +1 -1
- package/dist/components/scroll-view/index.js +167 -137
- package/dist/components/scroll-view/index.js.map +1 -1
- package/dist/components/swiper/index.js +268 -248
- package/dist/components/swiper/index.js.map +1 -1
- package/dist/components/text/index.js +31 -22
- package/dist/components/text/index.js.map +1 -1
- package/dist/components/view/index.js +97 -72
- package/dist/components/view/index.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/utils/index.js +15 -26
- package/dist/utils/index.js.map +1 -1
- package/package.json +18 -19
- package/dist/solid/components/button/index.js +0 -95
- package/dist/solid/components/button/index.js.map +0 -1
- package/dist/solid/components/button/style/index.scss.js +0 -4
- package/dist/solid/components/button/style/index.scss.js.map +0 -1
- package/dist/solid/components/icon/index.js +0 -39
- package/dist/solid/components/icon/index.js.map +0 -1
- package/dist/solid/components/icon/style/index.scss.js +0 -4
- package/dist/solid/components/icon/style/index.scss.js.map +0 -1
- package/dist/solid/components/image/index.js +0 -94
- package/dist/solid/components/image/index.js.map +0 -1
- package/dist/solid/components/input/index.js +0 -256
- package/dist/solid/components/input/index.js.map +0 -1
- package/dist/solid/components/input/style/index.scss.js +0 -4
- package/dist/solid/components/input/style/index.scss.js.map +0 -1
- package/dist/solid/components/pull-down-refresh/index.js +0 -334
- package/dist/solid/components/pull-down-refresh/index.js.map +0 -1
- package/dist/solid/components/pull-down-refresh/style/index.css.js +0 -4
- package/dist/solid/components/pull-down-refresh/style/index.css.js.map +0 -1
- package/dist/solid/components/scroll-view/index.js +0 -188
- package/dist/solid/components/scroll-view/index.js.map +0 -1
- package/dist/solid/components/scroll-view/style/index.css.js +0 -4
- package/dist/solid/components/scroll-view/style/index.css.js.map +0 -1
- package/dist/solid/components/swiper/index.js +0 -307
- package/dist/solid/components/swiper/index.js.map +0 -1
- package/dist/solid/components/swiper/style/index.css.js +0 -4
- package/dist/solid/components/swiper/style/index.css.js.map +0 -1
- package/dist/solid/components/text/index.js +0 -32
- package/dist/solid/components/text/index.js.map +0 -1
- package/dist/solid/components/text/style/index.css.js +0 -4
- package/dist/solid/components/text/style/index.css.js.map +0 -1
- package/dist/solid/components/view/index.js +0 -88
- package/dist/solid/components/view/index.js.map +0 -1
- package/dist/solid/index.css +0 -1
- package/dist/solid/index.js +0 -13
- package/dist/solid/index.js.map +0 -1
- package/dist/solid/utils/hooks.solid.js +0 -54
- package/dist/solid/utils/hooks.solid.js.map +0 -1
- package/dist/solid/utils/index.js +0 -58
- package/dist/solid/utils/index.js.map +0 -1
- package/dist/utils/hooks.react.js +0 -15
- package/dist/utils/hooks.react.js.map +0 -1
- package/types/index.d.ts +0 -17
- /package/dist/{solid/components/image → components/view}/style/index.css.js +0 -0
- /package/dist/{solid/components/image → components/view}/style/index.css.js.map +0 -0
package/LICENSE
CHANGED
|
@@ -154,8 +154,15 @@ See `/LICENSE` for details of the license.
|
|
|
154
154
|
|
|
155
155
|
==================
|
|
156
156
|
|
|
157
|
+
MIT (stencil-vue2-output-target):
|
|
158
|
+
The following files embed [stencil-vue2-output-target](https://github.com/diondree/stencil-vue2-output-target) MIT:
|
|
159
|
+
`/packages/taro-components-library-vue2/src/vue-component-lib/utils.ts`
|
|
160
|
+
See `/LICENSE` for details of the license.
|
|
161
|
+
|
|
162
|
+
==================
|
|
163
|
+
|
|
157
164
|
MIT (weui):
|
|
158
|
-
The following files embed [
|
|
165
|
+
The following files embed [stencil-vue2-output-target](https://github.com/Tencent/weui) MIT:
|
|
159
166
|
`/packages/taro-components/src/components/*.scss`
|
|
160
167
|
See `/LICENSE.txt` for details of the license.
|
|
161
168
|
|
|
@@ -165,10 +172,3 @@ Apache-2.0 (intersection-observer):
|
|
|
165
172
|
The following files embed [intersection-observer](https://github.com/GoogleChromeLabs/intersection-observer) Apache-2.0:
|
|
166
173
|
`/packages/taro-api/src/polyfill/intersection-observer.ts`
|
|
167
174
|
See `/LICENSE.txt` for details of the license.
|
|
168
|
-
|
|
169
|
-
==================
|
|
170
|
-
|
|
171
|
-
MIT (babel-plugin-jsx-dom-expressions):
|
|
172
|
-
The following files embed [babel-plugin-jsx-dom-expressions](https://github.com/ryansolid/dom-expressions/blob/main/packages/babel-plugin-jsx-dom-expressions) MIT:
|
|
173
|
-
`/packages/babel-plugin-transform-solid-jsx/src/*`
|
|
174
|
-
See `/LICENSE` for details of the license.
|
|
@@ -1,87 +1,112 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
3
|
+
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
|
+
import _inherits from '@babel/runtime/helpers/inherits';
|
|
5
|
+
import _createSuper from '@babel/runtime/helpers/createSuper';
|
|
2
6
|
import './style/index.scss.js';
|
|
3
7
|
import classNames from 'classnames';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { omit } from '../../utils/index.js';
|
|
7
10
|
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
endTimer.current && clearTimeout(endTimer.current);
|
|
11
|
+
var Button = /*#__PURE__*/function (_React$Component) {
|
|
12
|
+
_inherits(Button, _React$Component);
|
|
13
|
+
var _super = _createSuper(Button);
|
|
14
|
+
function Button(props) {
|
|
15
|
+
var _this;
|
|
16
|
+
_classCallCheck(this, Button);
|
|
17
|
+
_this = _super.call(this, props);
|
|
18
|
+
_this.state = {
|
|
19
|
+
hover: false,
|
|
20
|
+
touch: false
|
|
19
21
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (state.touch) {
|
|
28
|
-
setState(e => Object.assign(Object.assign({}, e), {
|
|
29
|
-
hover: true
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
}, props.hoverStartTime || 20);
|
|
22
|
+
return _this;
|
|
23
|
+
}
|
|
24
|
+
_createClass(Button, [{
|
|
25
|
+
key: "componentWillUnmount",
|
|
26
|
+
value: function componentWillUnmount() {
|
|
27
|
+
this.startTimer && clearTimeout(this.startTimer);
|
|
28
|
+
this.endTimer && clearTimeout(this.endTimer);
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
30
|
+
}, {
|
|
31
|
+
key: "render",
|
|
32
|
+
value: function render() {
|
|
33
|
+
var _this2 = this;
|
|
34
|
+
var _this$props = this.props,
|
|
35
|
+
_this$props$plain = _this$props.plain,
|
|
36
|
+
plain = _this$props$plain === void 0 ? false : _this$props$plain,
|
|
37
|
+
children = _this$props.children,
|
|
38
|
+
_this$props$disabled = _this$props.disabled,
|
|
39
|
+
disabled = _this$props$disabled === void 0 ? false : _this$props$disabled,
|
|
40
|
+
className = _this$props.className,
|
|
41
|
+
style = _this$props.style,
|
|
42
|
+
onClick = _this$props.onClick,
|
|
43
|
+
onTouchStart = _this$props.onTouchStart,
|
|
44
|
+
onTouchEnd = _this$props.onTouchEnd,
|
|
45
|
+
_this$props$hoverClas = _this$props.hoverClass,
|
|
46
|
+
hoverClass = _this$props$hoverClas === void 0 ? 'button-hover' : _this$props$hoverClas,
|
|
47
|
+
_this$props$hoverStar = _this$props.hoverStartTime,
|
|
48
|
+
hoverStartTime = _this$props$hoverStar === void 0 ? 20 : _this$props$hoverStar,
|
|
49
|
+
_this$props$hoverStay = _this$props.hoverStayTime,
|
|
50
|
+
hoverStayTime = _this$props$hoverStay === void 0 ? 70 : _this$props$hoverStay,
|
|
51
|
+
_this$props$loading = _this$props.loading,
|
|
52
|
+
loading = _this$props$loading === void 0 ? false : _this$props$loading,
|
|
53
|
+
type = _this$props.type;
|
|
54
|
+
var cls = classNames(className, 'taro-button-core', _defineProperty({}, "".concat(hoverClass), this.state.hover && !disabled));
|
|
55
|
+
var _onTouchStart = function _onTouchStart(e) {
|
|
56
|
+
_this2.setState(function () {
|
|
57
|
+
return {
|
|
58
|
+
touch: true
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
if (hoverClass && hoverClass !== 'none' && !disabled) {
|
|
62
|
+
_this2.startTimer = setTimeout(function () {
|
|
63
|
+
if (_this2.state.touch) {
|
|
64
|
+
_this2.setState(function () {
|
|
65
|
+
return {
|
|
66
|
+
hover: true
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}, hoverStartTime);
|
|
71
|
+
}
|
|
72
|
+
onTouchStart && onTouchStart(e);
|
|
73
|
+
};
|
|
74
|
+
var _onTouchEnd = function _onTouchEnd(e) {
|
|
75
|
+
_this2.setState(function () {
|
|
76
|
+
return {
|
|
77
|
+
touch: false
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
if (hoverClass && hoverClass !== 'none' && !disabled) {
|
|
81
|
+
_this2.endTimer = setTimeout(function () {
|
|
82
|
+
if (!_this2.state.touch) {
|
|
83
|
+
_this2.setState(function () {
|
|
84
|
+
return {
|
|
85
|
+
hover: false
|
|
86
|
+
};
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}, hoverStayTime);
|
|
46
90
|
}
|
|
47
|
-
|
|
91
|
+
onTouchEnd && onTouchEnd(e);
|
|
92
|
+
};
|
|
93
|
+
return React.createElement("button", Object.assign({}, omit(this.props, ['hoverClass', 'onTouchStart', 'onTouchEnd', 'type', 'loading']), {
|
|
94
|
+
type: type,
|
|
95
|
+
className: cls,
|
|
96
|
+
style: style,
|
|
97
|
+
onClick: onClick,
|
|
98
|
+
disabled: disabled,
|
|
99
|
+
onTouchStart: _onTouchStart,
|
|
100
|
+
onTouchEnd: _onTouchEnd,
|
|
101
|
+
loading: loading.toString(),
|
|
102
|
+
plain: plain.toString()
|
|
103
|
+
}), !!loading && React.createElement("i", {
|
|
104
|
+
className: 'weui-loading'
|
|
105
|
+
}), children);
|
|
48
106
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
forwardedRef,
|
|
53
|
-
plain = false,
|
|
54
|
-
children,
|
|
55
|
-
disabled = false,
|
|
56
|
-
className,
|
|
57
|
-
style,
|
|
58
|
-
onClick,
|
|
59
|
-
hoverClass = 'button-hover',
|
|
60
|
-
loading = false,
|
|
61
|
-
type
|
|
62
|
-
} = props,
|
|
63
|
-
restProps = __rest(props, ["forwardedRef", "plain", "children", "disabled", "className", "style", "onClick", "hoverClass", "loading", "type"]);
|
|
64
|
-
const cls = classNames(className, 'taro-button-core', {
|
|
65
|
-
[`${hoverClass}`]: state.hover && !disabled
|
|
66
|
-
});
|
|
67
|
-
return /*#__PURE__*/jsxs("button", {
|
|
68
|
-
...omit(restProps, ['hoverClass', 'onTouchStart', 'onTouchEnd', 'type', 'loading', 'forwardedRef']),
|
|
69
|
-
type: type,
|
|
70
|
-
ref: forwardedRef,
|
|
71
|
-
className: cls,
|
|
72
|
-
style: style,
|
|
73
|
-
onClick: onClick,
|
|
74
|
-
disabled: disabled,
|
|
75
|
-
onTouchStart: _onTouchStart,
|
|
76
|
-
onTouchEnd: _onTouchEnd,
|
|
77
|
-
loading: loading.toString(),
|
|
78
|
-
plain: plain.toString(),
|
|
79
|
-
children: [!!loading && /*#__PURE__*/jsx("i", {
|
|
80
|
-
className: "weui-loading"
|
|
81
|
-
}), children]
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
var index = createForwardRefComponent(Button);
|
|
107
|
+
}]);
|
|
108
|
+
return Button;
|
|
109
|
+
}(React.Component);
|
|
85
110
|
|
|
86
|
-
export {
|
|
111
|
+
export { Button as default };
|
|
87
112
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/button/index.tsx"],"sourcesContent":["import './style/index.scss'\n\nimport classNames from 'classnames'\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/button/index.tsx"],"sourcesContent":["import './style/index.scss'\n\nimport classNames from 'classnames'\nimport React from 'react'\n\nimport { omit } from '../../utils'\n\ninterface IProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {\n size?: string\n plain?: boolean\n hoverClass?: string\n hoverStartTime?: number\n hoverStayTime?: number\n disabled?: boolean\n loading?: boolean\n type?: string\n className?: string\n}\n\ninterface IState {\n hover:boolean\n touch: boolean\n}\n\nclass Button extends React.Component<IProps, IState> {\n constructor (props) {\n super(props)\n this.state = {\n hover: false,\n touch: false\n }\n }\n\n startTimer: ReturnType<typeof setTimeout>\n endTimer: ReturnType<typeof setTimeout>\n\n componentWillUnmount () {\n this.startTimer && clearTimeout(this.startTimer)\n this.endTimer && clearTimeout(this.endTimer)\n }\n\n render () {\n const {\n plain = false,\n children,\n disabled = false,\n className,\n style,\n onClick,\n onTouchStart,\n onTouchEnd,\n hoverClass = 'button-hover',\n hoverStartTime = 20,\n hoverStayTime = 70,\n loading = false,\n type,\n } = this.props\n const cls = classNames(\n className,\n 'taro-button-core',\n {\n [`${hoverClass}`]: this.state.hover && !disabled\n }\n )\n\n const _onTouchStart = e => {\n this.setState(() => ({\n touch: true\n }))\n if (hoverClass && hoverClass !== 'none' && !disabled) {\n this.startTimer = setTimeout(() => {\n if (this.state.touch) {\n this.setState(() => ({\n hover: true\n }))\n }\n }, hoverStartTime)\n }\n onTouchStart && onTouchStart(e)\n }\n const _onTouchEnd = e => {\n this.setState(() => ({\n touch: false\n }))\n if (hoverClass && hoverClass !== 'none' && !disabled) {\n this.endTimer = setTimeout(() => {\n if (!this.state.touch) {\n this.setState(() => ({\n hover: false\n }))\n }\n }, hoverStayTime)\n }\n onTouchEnd && onTouchEnd(e)\n }\n\n return (\n <button\n {...omit(this.props, ['hoverClass', 'onTouchStart', 'onTouchEnd', 'type', 'loading'])}\n type={type}\n className={cls}\n style={style}\n onClick={onClick}\n disabled={disabled}\n onTouchStart={_onTouchStart}\n onTouchEnd={_onTouchEnd}\n loading={loading.toString()}\n plain={plain.toString()}\n >\n {!!loading && <i className='weui-loading' />}\n {children}\n </button>\n )\n }\n}\n\nexport default Button\n"],"names":["Button","_React$Component","_inherits","_super","_createSuper","props","_this","_classCallCheck","call","state","hover","touch","_createClass","key","value","componentWillUnmount","startTimer","clearTimeout","endTimer","render","_this2","_this$props","_this$props$plain","plain","children","_this$props$disabled","disabled","className","style","onClick","onTouchStart","onTouchEnd","_this$props$hoverClas","hoverClass","_this$props$hoverStar","hoverStartTime","_this$props$hoverStay","hoverStayTime","_this$props$loading","loading","type","cls","classNames","_defineProperty","concat","_onTouchStart","e","setState","setTimeout","_onTouchEnd","React","createElement","Object","assign","omit","toString","Component"],"mappings":";;;;;;;;;;AAwBMA,IAAAA,MAAO,0BAAAC,gBAAA,EAAA;EAAAC,SAAA,CAAAF,MAAA,EAAAC,gBAAA,CAAA,CAAA;AAAA,EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,MAAA,CAAA,CAAA;EACX,SAAAA,MAAAA,CAAaK,KAAK,EAAA;AAAA,IAAA,IAAAC,KAAA,CAAA;AAAAC,IAAAA,eAAA,OAAAP,MAAA,CAAA,CAAA;AAChBM,IAAAA,KAAA,GAA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CAAC,CAAChB,OAAO,IAAIW;AAAGvB,QAAAA,SAAS,EAAC,cAAA;OAAiB,CAAA,EAC3CH,QAAQ,CACF,CAAA;AAEb,KAAA;AAAC,GAAA,CAAA,CAAA,CAAA;AAAA,EAAA,OAAAxB,MAAA,CAAA;AAAA,CAzFkBkD,CAAAA,KAAK,CAACM,SAAyB;;;;"}
|
|
@@ -1,36 +1,27 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
1
2
|
import './style/index.scss.js';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { omit } from '../../utils/index.js';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
className = '',
|
|
10
|
-
size =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} = props;
|
|
7
|
+
var Icon = function Icon(props) {
|
|
8
|
+
var type = props.type,
|
|
9
|
+
_props$className = props.className,
|
|
10
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
11
|
+
_props$size = props.size,
|
|
12
|
+
size = _props$size === void 0 ? '23' : _props$size,
|
|
13
|
+
color = props.color;
|
|
14
14
|
if (type) type = type.replace(/_/g, '-');
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}, className);
|
|
18
|
-
const style = {
|
|
15
|
+
var cls = classNames(_defineProperty({}, "weui-icon-".concat(type), true), className);
|
|
16
|
+
var style = {
|
|
19
17
|
'font-size': size + 'px',
|
|
20
18
|
color: color
|
|
21
19
|
};
|
|
22
|
-
return (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
ref: forwardedRef,
|
|
27
|
-
...omit(props, ['type', 'className', 'forwardedRef']),
|
|
28
|
-
className: cls,
|
|
29
|
-
style: style
|
|
30
|
-
})
|
|
31
|
-
);
|
|
20
|
+
return React.createElement("i", Object.assign({}, omit(props, ['type', 'className']), {
|
|
21
|
+
className: cls,
|
|
22
|
+
style: style
|
|
23
|
+
}));
|
|
32
24
|
};
|
|
33
|
-
var index = createForwardRefComponent(Icon);
|
|
34
25
|
|
|
35
|
-
export {
|
|
26
|
+
export { Icon as default };
|
|
36
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/icon/index.tsx"],"sourcesContent":["import './style/index.scss'\n\nimport classNames from 'classnames'\n\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/icon/index.tsx"],"sourcesContent":["import './style/index.scss'\n\nimport classNames from 'classnames'\nimport React from 'react'\n\nimport { omit } from '../../utils'\n\n\ninterface IProps {\n type: string\n color: string\n size?: number | string\n className?: string\n}\n\nconst Icon = (props: IProps) => {\n let { type, className = '', size = '23', color } = props\n if (type) type = type.replace(/_/g, '-')\n const cls = classNames(\n {\n [`weui-icon-${type}`]: true\n },\n className\n )\n const style = { 'font-size': size + 'px', color: color }\n\n return (\n <i {...omit(props, ['type', 'className'])} className={cls} style={style} />\n )\n}\nexport default Icon\n"],"names":["Icon","props","type","_props$className","className","_props$size","size","color","replace","cls","classNames","_defineProperty","concat","style","React","omit"],"mappings":";;;;;;AAeA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAIC,KAAa,EAAI;AAC7B,EAAA,IAAMC,IAAI,GAAyCD,KAAK,CAAlDC,IAAI;IAAAC,gBAAA,GAAyCF,KAAK,CAA5CG,SAAS;AAATA,IAAAA,SAAS,GAAAD,gBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,gBAAA;IAAAE,WAAA,GAAyBJ,KAAK,CAA5BK,IAAI;AAAJA,IAAAA,IAAI,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,WAAA;IAAEE,KAAK,GAAKN,KAAK,CAAfM,KAAK,CAAA;EAC9C,IAAIL,IAAI,EAAEA,IAAI,GAAGA,IAAI,CAACM,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;AACxC,EAAA,IAAMC,GAAG,GAAGC,UAAU,CAAAC,eAAA,CAAA,EAAA,EAAA,YAAA,CAAAC,MAAA,CAEJV,IAAI,CAAA,EAAK,IAAI,CAAA,EAE7BE,SAAS,CACV,CAAA;AACD,EAAA,IAAMS,KAAK,GAAG;IAAE,WAAW,EAAEP,IAAI,GAAG,IAAI;AAAEC,IAAAA,KAAK,EAAEA,KAAAA;GAAO,CAAA;EAExD,OACEO,2CAAOC,IAAI,CAACd,KAAK,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,EAAE;AAAAG,IAAAA,SAAS,EAAEK,GAAG;AAAEI,IAAAA,KAAK,EAAEA,KAAAA;AAAS,GAAA,CAAA,CAAA,CAAA;AAE/E;;;;"}
|
|
@@ -1,86 +1,111 @@
|
|
|
1
|
+
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
|
+
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
+
import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
|
|
4
|
+
import _inherits from '@babel/runtime/helpers/inherits';
|
|
5
|
+
import _createSuper from '@babel/runtime/helpers/createSuper';
|
|
1
6
|
import { __rest } from 'tslib';
|
|
2
7
|
import './style/index.css.js';
|
|
3
8
|
import classNames from 'classnames';
|
|
4
|
-
import
|
|
5
|
-
import { useRef, useState, useCallback, useEffect } from '../../utils/hooks.react.js';
|
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
import React from 'react';
|
|
7
10
|
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
11
|
+
var Image = /*#__PURE__*/function (_React$Component) {
|
|
12
|
+
_inherits(Image, _React$Component);
|
|
13
|
+
var _super = _createSuper(Image);
|
|
14
|
+
function Image(props) {
|
|
15
|
+
var _this;
|
|
16
|
+
_classCallCheck(this, Image);
|
|
17
|
+
_this = _super.call(this, props);
|
|
18
|
+
_this.observer = {};
|
|
19
|
+
_this.imgRef = null;
|
|
20
|
+
_this.state = {
|
|
21
|
+
isLoaded: false
|
|
22
|
+
};
|
|
23
|
+
_this.imageOnLoad = _this.imageOnLoad.bind(_assertThisInitialized(_this));
|
|
24
|
+
// this.observer = {}
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
_createClass(Image, [{
|
|
28
|
+
key: "componentDidMount",
|
|
29
|
+
value: function componentDidMount() {
|
|
30
|
+
var _this2 = this;
|
|
31
|
+
if (this.props.lazyLoad) {
|
|
32
|
+
this.observer = new IntersectionObserver(function (entries) {
|
|
33
|
+
// 异步 api 关系
|
|
34
|
+
if (entries[entries.length - 1].isIntersecting) {
|
|
35
|
+
_this2.setState({
|
|
36
|
+
isLoaded: true
|
|
37
|
+
}, function () {
|
|
38
|
+
// findDOMNode(this).children[0].src = this.props.src
|
|
39
|
+
_this2.imgRef.src = _this2.props.src;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
rootMargin: '300px 0px'
|
|
44
|
+
});
|
|
45
|
+
this.observer.observe(this.imgRef);
|
|
37
46
|
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
key: "componentWillUnmount",
|
|
50
|
+
value: function componentWillUnmount() {
|
|
51
|
+
this.observer.disconnect && this.observer.disconnect();
|
|
52
|
+
}
|
|
53
|
+
}, {
|
|
54
|
+
key: "imageOnLoad",
|
|
55
|
+
value: function imageOnLoad(e) {
|
|
56
|
+
var onLoad = this.props.onLoad;
|
|
57
|
+
Object.defineProperty(e, 'detail', {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
writable: true,
|
|
60
|
+
value: {
|
|
61
|
+
width: e.target.width,
|
|
62
|
+
height: e.target.height
|
|
50
63
|
}
|
|
51
|
-
}, {
|
|
52
|
-
rootMargin: '300px 0px'
|
|
53
64
|
});
|
|
54
|
-
|
|
65
|
+
onLoad && onLoad(e);
|
|
55
66
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
67
|
+
}, {
|
|
68
|
+
key: "render",
|
|
69
|
+
value: function render() {
|
|
70
|
+
var _this3 = this;
|
|
71
|
+
var _a = this.props,
|
|
72
|
+
className = _a.className,
|
|
73
|
+
_a$style = _a.style,
|
|
74
|
+
style = _a$style === void 0 ? {} : _a$style,
|
|
75
|
+
src = _a.src,
|
|
76
|
+
mode = _a.mode,
|
|
77
|
+
onError = _a.onError,
|
|
78
|
+
lazyLoad = _a.lazyLoad,
|
|
79
|
+
imgProps = _a.imgProps,
|
|
80
|
+
reset = __rest(_a, ["className", "style", "src", "mode", "onError", "lazyLoad", "imgProps"]);
|
|
81
|
+
var cls = classNames('taro-img', {
|
|
82
|
+
'taro-img__widthfix': mode === 'widthFix'
|
|
83
|
+
}, className);
|
|
84
|
+
var imgCls = classNames('taro-img__mode-' + (mode || 'scaleToFill').toLowerCase().replace(/\s/g, ''));
|
|
85
|
+
return React.createElement("div", Object.assign({
|
|
86
|
+
className: cls,
|
|
87
|
+
style: style
|
|
88
|
+
}, reset), lazyLoad ? React.createElement("img", Object.assign({
|
|
89
|
+
ref: function ref(img) {
|
|
90
|
+
return _this3.imgRef = img;
|
|
91
|
+
},
|
|
92
|
+
className: imgCls,
|
|
93
|
+
"data-src": src,
|
|
94
|
+
onLoad: this.imageOnLoad,
|
|
95
|
+
onError: onError
|
|
96
|
+
}, imgProps)) : React.createElement("img", Object.assign({
|
|
97
|
+
ref: function ref(img) {
|
|
98
|
+
return _this3.imgRef = img;
|
|
99
|
+
},
|
|
100
|
+
className: imgCls,
|
|
101
|
+
src: src,
|
|
102
|
+
onLoad: this.imageOnLoad,
|
|
103
|
+
onError: onError
|
|
104
|
+
}, imgProps)));
|
|
105
|
+
}
|
|
106
|
+
}]);
|
|
107
|
+
return Image;
|
|
108
|
+
}(React.Component);
|
|
84
109
|
|
|
85
|
-
export {
|
|
110
|
+
export { Image as default };
|
|
86
111
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/image/index.tsx"],"sourcesContent":["import './style/index.css'\n\nimport classNames from 'classnames'\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/image/index.tsx"],"sourcesContent":["import './style/index.css'\n\nimport classNames from 'classnames'\nimport React from 'react'\n\ninterface IProps extends React.HTMLAttributes<HTMLDivElement> {\n src: string\n mode: string\n onError: () => void\n onLoad: (e) => void\n lazyLoad?: boolean\n imgProps?: Record<string, any>\n}\n\nclass Image extends React.Component<IProps> {\n constructor (props) {\n super(props)\n this.state = {\n isLoaded: false\n }\n this.imageOnLoad = this.imageOnLoad.bind(this)\n // this.observer = {}\n }\n\n observer: any = {}\n imgRef: any = null\n\n componentDidMount () {\n if (this.props.lazyLoad) {\n this.observer = new IntersectionObserver(\n entries => {\n // 异步 api 关系\n if (entries[entries.length - 1].isIntersecting) {\n this.setState({ isLoaded: true }, () => {\n // findDOMNode(this).children[0].src = this.props.src\n this.imgRef.src = this.props.src\n })\n }\n },\n {\n rootMargin: '300px 0px'\n }\n )\n this.observer.observe(this.imgRef)\n }\n }\n\n componentWillUnmount () {\n this.observer.disconnect && this.observer.disconnect()\n }\n\n imageOnLoad (e) {\n const { onLoad } = this.props\n Object.defineProperty(e, 'detail', {\n enumerable: true,\n writable: true,\n value: {\n width: e.target.width,\n height: e.target.height\n }\n })\n\n onLoad && onLoad(e)\n }\n\n render () {\n const {\n className,\n style = {},\n src,\n mode,\n onError,\n lazyLoad,\n imgProps,\n ...reset\n } = this.props\n const cls = classNames(\n 'taro-img',\n {\n 'taro-img__widthfix': mode === 'widthFix'\n },\n className\n )\n const imgCls = classNames(\n 'taro-img__mode-' +\n (mode || 'scaleToFill').toLowerCase().replace(/\\s/g, '')\n )\n\n return (\n <div className={cls} style={style} {...reset}>\n {lazyLoad ? (\n <img\n ref={img => (this.imgRef = img)}\n className={imgCls}\n data-src={src}\n onLoad={this.imageOnLoad}\n onError={onError}\n {...imgProps}\n />\n ) : (\n <img\n ref={img => (this.imgRef = img)}\n className={imgCls}\n src={src}\n onLoad={this.imageOnLoad}\n onError={onError}\n {...imgProps}\n />\n )}\n </div>\n )\n }\n}\n\nexport default Image\n"],"names":["Image","_React$Component","_inherits","_super","_createSuper","props","_this","_classCallCheck","call","observer","imgRef","state","isLoaded","imageOnLoad","bind","_assertThisInitialized","_createClass","key","value","componentDidMount","_this2","lazyLoad","IntersectionObserver","entries","length","isIntersecting","setState","src","rootMargin","observe","componentWillUnmount","disconnect","e","onLoad","Object","defineProperty","enumerable","writable","width","target","height","render","_this3","_a","className","_a$style","style","mode","onError","imgProps","reset","__rest","cls","classNames","imgCls","toLowerCase","replace","React","createElement","assign","ref","img","Component"],"mappings":";;;;;;;;;;AAcMA,IAAAA,KAAM,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