@nutui/nutui-react-taro 1.5.9 → 1.5.11-beta.0
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/CHANGELOG.md +13 -0
- package/dist/esm/Calendar.js +2 -2
- package/dist/esm/CalendarItem.js +1 -1
- package/dist/esm/SearchBar.js +1 -1
- package/dist/esm/{calendar.taro-2a19ee22.js → calendar.taro-fecbb646.js} +1 -1
- package/dist/esm/{calendaritem.taro-e3f13a3b.js → calendaritem.taro-16f0103d.js} +2 -1
- package/dist/esm/nutui-react.es.js +3 -3
- package/dist/esm/{searchbar.taro-0c25927b.js → searchbar.taro-4b892018.js} +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +85 -111
- package/dist/nutui.react.umd.js +85 -111
- package/dist/packages/popover/popover.scss +1 -0
- package/dist/packages/searchbar/searchbar.scss +8 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v1.5.11
|
|
2
|
+
`2023-07-05`
|
|
3
|
+
|
|
4
|
+
* :bug: fix(searchbar): 修复 taro-h5 下 onSearch 不能触发的问题 (#1177) @Eiinu
|
|
5
|
+
* :bug: fix: 修复popover文字过长样式错乱的问题 (#1162) @junjun666
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# v1.5.10
|
|
9
|
+
`2023-06-28`
|
|
10
|
+
|
|
11
|
+
* :bug: fix: calendar taro h5 无法滚动 (#1157) @xiaoyatong
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
# v1.5.9
|
|
2
15
|
`2023-06-13`
|
|
3
16
|
|
package/dist/esm/Calendar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Calendar } from './calendar.taro-
|
|
1
|
+
import { C as Calendar } from './calendar.taro-fecbb646.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import './popup.taro-01676bff.js';
|
|
4
4
|
import 'react-dom';
|
|
@@ -10,7 +10,7 @@ import '@bem-react/classname';
|
|
|
10
10
|
import '@tarojs/components';
|
|
11
11
|
import './icon.taro-296a1bec.js';
|
|
12
12
|
import './typings-b9828dba.js';
|
|
13
|
-
import './calendaritem.taro-
|
|
13
|
+
import './calendaritem.taro-16f0103d.js';
|
|
14
14
|
import '@tarojs/taro';
|
|
15
15
|
import './configprovider.taro-8d71eb49.js';
|
|
16
16
|
import 'lodash.kebabcase';
|
package/dist/esm/CalendarItem.js
CHANGED
package/dist/esm/SearchBar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useRef } from 'react';
|
|
2
2
|
import { P as Popup } from './popup.taro-01676bff.js';
|
|
3
|
-
import { U as Utils, C as CalendarItem } from './calendaritem.taro-
|
|
3
|
+
import { U as Utils, C as CalendarItem } from './calendaritem.taro-16f0103d.js';
|
|
4
4
|
import { u as useConfig } from './configprovider.taro-8d71eb49.js';
|
|
5
5
|
|
|
6
6
|
const defaultProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { ScrollView } from '@tarojs/components';
|
|
4
|
-
import { nextTick } from '@tarojs/taro';
|
|
4
|
+
import Taro, { nextTick } from '@tarojs/taro';
|
|
5
5
|
import { c as cn } from './bem-350c1702.js';
|
|
6
6
|
import { u as useConfig } from './configprovider.taro-8d71eb49.js';
|
|
7
7
|
|
|
@@ -503,6 +503,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
503
503
|
}
|
|
504
504
|
const target = e.target;
|
|
505
505
|
const currentScrollTop = target.scrollTop;
|
|
506
|
+
Taro.getEnv() === 'WEB' && setScrollTop(currentScrollTop);
|
|
506
507
|
let current = Math.floor(currentScrollTop / state.avgHeight);
|
|
507
508
|
if (current === 0) {
|
|
508
509
|
if (currentScrollTop >= state.monthsData[current + 1].cssScrollHeight) {
|
|
@@ -27,8 +27,8 @@ export { T as Tabbar } from './tabbar.taro-9acfc2fa.js';
|
|
|
27
27
|
export { T as TabbarItem } from './tabbaritem.taro-bf517487.js';
|
|
28
28
|
export { T as TabPane } from './tabpane.taro-4ca340ef.js';
|
|
29
29
|
export { T as Tabs } from './tabs.taro-6a7524a4.js';
|
|
30
|
-
export { C as Calendar } from './calendar.taro-
|
|
31
|
-
export { C as CalendarItem } from './calendaritem.taro-
|
|
30
|
+
export { C as Calendar } from './calendar.taro-fecbb646.js';
|
|
31
|
+
export { C as CalendarItem } from './calendaritem.taro-16f0103d.js';
|
|
32
32
|
export { C as Cascader } from './cascader.taro-a5553aa5.js';
|
|
33
33
|
export { C as Checkbox, a as CheckboxGroup } from './checkbox.taro-6120e3e3.js';
|
|
34
34
|
export { D as DatePicker } from './datepicker.taro-94aca24a.js';
|
|
@@ -41,7 +41,7 @@ export { P as Picker } from './picker.taro-6bb0a2a4.js';
|
|
|
41
41
|
export { R as Radio, a as RadioGroup } from './radio.taro-a6eff96c.js';
|
|
42
42
|
export { R as Range } from './range.taro-5ab0e79e.js';
|
|
43
43
|
export { R as Rate } from './rate.taro-6cdf03bd.js';
|
|
44
|
-
export { S as SearchBar } from './searchbar.taro-
|
|
44
|
+
export { S as SearchBar } from './searchbar.taro-4b892018.js';
|
|
45
45
|
export { S as ShortPassword } from './shortpassword.taro-9ee034f7.js';
|
|
46
46
|
export { T as TextArea } from './textarea.taro-442e7350.js';
|
|
47
47
|
export { U as Uploader } from './uploader.taro-587e6bf3.js';
|
|
@@ -116,7 +116,7 @@ const SearchBar = (props) => {
|
|
|
116
116
|
return null;
|
|
117
117
|
};
|
|
118
118
|
const onKeypress = (e) => {
|
|
119
|
-
if (e.keyCode === 13) {
|
|
119
|
+
if (e.key === 'Enter' || e.keyCode === 13) {
|
|
120
120
|
if (typeof e.cancelable !== 'boolean' || e.cancelable) {
|
|
121
121
|
e.preventDefault();
|
|
122
122
|
}
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v1.5.
|
|
8
|
+
* @nutui/nutui-react-taro v1.5.11-beta.0 Wed Jul 05 2023 10:55:52 GMT+0800 (中国标准时间)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -15,15 +15,10 @@ import Taro, { redirectTo, navigateTo, getEnv, usePageScroll, getSystemInfoSync,
|
|
|
15
15
|
import { View, ScrollView, PickerView, PickerViewColumn, Image as Image$2 } from "@tarojs/components";
|
|
16
16
|
import ReactDOM, { createPortal, unstable_batchedUpdates } from "react-dom";
|
|
17
17
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
set exports(v) {
|
|
24
|
-
classnameExports = v;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
18
|
+
function getDefaultExportFromCjs(x) {
|
|
19
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
20
|
+
}
|
|
21
|
+
var classname = { exports: {} };
|
|
27
22
|
var classname_production_min = {};
|
|
28
23
|
var hasRequiredClassname_production_min;
|
|
29
24
|
function requireClassname_production_min() {
|
|
@@ -31,37 +26,37 @@ function requireClassname_production_min() {
|
|
|
31
26
|
return classname_production_min;
|
|
32
27
|
hasRequiredClassname_production_min = 1;
|
|
33
28
|
function r(r2) {
|
|
34
|
-
function
|
|
35
|
-
var f = i ?
|
|
29
|
+
function t2(t3, i, a, o) {
|
|
30
|
+
var f = i ? e + t3 + r2.e + i : e + t3, v = f;
|
|
36
31
|
if (a) {
|
|
37
|
-
var
|
|
38
|
-
for (var
|
|
39
|
-
if (a.hasOwnProperty(
|
|
40
|
-
var p = a[
|
|
41
|
-
true === p ? v +=
|
|
32
|
+
var s = " " + v + r2.m;
|
|
33
|
+
for (var u in a)
|
|
34
|
+
if (a.hasOwnProperty(u)) {
|
|
35
|
+
var p = a[u];
|
|
36
|
+
true === p ? v += s + u : p && (v += s + u + n + p);
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
39
|
if (void 0 !== o)
|
|
45
|
-
for (var
|
|
46
|
-
var
|
|
47
|
-
if (
|
|
48
|
-
for (var g =
|
|
40
|
+
for (var y = 0, c = (o = Array.isArray(o) ? o : [o]).length; y < c; y++) {
|
|
41
|
+
var l = o[y];
|
|
42
|
+
if (l && "string" == typeof l.valueOf())
|
|
43
|
+
for (var g = l.valueOf().split(" "), d = 0; d < g.length; d++) {
|
|
49
44
|
var h = g[d];
|
|
50
45
|
h !== f && (v += " " + h);
|
|
51
46
|
}
|
|
52
47
|
}
|
|
53
48
|
return v;
|
|
54
49
|
}
|
|
55
|
-
var
|
|
56
|
-
return function(r3,
|
|
50
|
+
var e = r2.n || "", n = r2.v || r2.m;
|
|
51
|
+
return function(r3, e2) {
|
|
57
52
|
return function(n2, i, a) {
|
|
58
|
-
return "string" == typeof n2 ? Array.isArray(i) ?
|
|
53
|
+
return "string" == typeof n2 ? "string" == typeof i || Array.isArray(i) ? t2(r3, n2, void 0, i) : t2(r3, n2, i, a) : t2(r3, e2, n2, i);
|
|
59
54
|
};
|
|
60
55
|
};
|
|
61
56
|
}
|
|
62
57
|
Object.defineProperty(classname_production_min, "__esModule", { value: true });
|
|
63
|
-
var
|
|
64
|
-
classname_production_min.cn =
|
|
58
|
+
var t = r({ e: "-", m: "_" });
|
|
59
|
+
classname_production_min.cn = t, classname_production_min.withNaming = r;
|
|
65
60
|
return classname_production_min;
|
|
66
61
|
}
|
|
67
62
|
var classname_development = {};
|
|
@@ -91,6 +86,7 @@ function requireClassname_development() {
|
|
|
91
86
|
}
|
|
92
87
|
}
|
|
93
88
|
if (mix !== void 0) {
|
|
89
|
+
mix = Array.isArray(mix) ? mix : [mix];
|
|
94
90
|
for (var i = 0, len = mix.length; i < len; i++) {
|
|
95
91
|
var value = mix[i];
|
|
96
92
|
if (!value || typeof value.valueOf() !== "string")
|
|
@@ -109,7 +105,7 @@ function requireClassname_development() {
|
|
|
109
105
|
return function cnGenerator(b2, e) {
|
|
110
106
|
return function(elemOrMods, elemModsOrBlockMix, elemMix) {
|
|
111
107
|
if (typeof elemOrMods === "string") {
|
|
112
|
-
if (Array.isArray(elemModsOrBlockMix)) {
|
|
108
|
+
if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
|
|
113
109
|
return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
|
|
114
110
|
}
|
|
115
111
|
return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
|
|
@@ -126,13 +122,12 @@ function requireClassname_development() {
|
|
|
126
122
|
classname_development.withNaming = withNaming;
|
|
127
123
|
return classname_development;
|
|
128
124
|
}
|
|
129
|
-
(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
})(classname);
|
|
125
|
+
if (process.env.NODE_ENV === "production") {
|
|
126
|
+
classname.exports = requireClassname_production_min();
|
|
127
|
+
} else {
|
|
128
|
+
classname.exports = requireClassname_development();
|
|
129
|
+
}
|
|
130
|
+
var classnameExports = classname.exports;
|
|
136
131
|
const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
|
|
137
132
|
const defaultProps$1v = {
|
|
138
133
|
name: "",
|
|
@@ -748,6 +743,7 @@ function words(string, pattern, guard) {
|
|
|
748
743
|
return string.match(pattern) || [];
|
|
749
744
|
}
|
|
750
745
|
var lodash_kebabcase = kebabCase;
|
|
746
|
+
const kebabCase$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodash_kebabcase);
|
|
751
747
|
const zhCN = {
|
|
752
748
|
save: "保存",
|
|
753
749
|
confirm: "确认",
|
|
@@ -895,7 +891,7 @@ const useConfig$1 = () => {
|
|
|
895
891
|
function convertThemeVarsToCSSVars(themeVars) {
|
|
896
892
|
const cssVars = {};
|
|
897
893
|
Object.keys(themeVars).forEach((key) => {
|
|
898
|
-
cssVars[`--${
|
|
894
|
+
cssVars[`--${kebabCase$1(key)}`] = themeVars[key];
|
|
899
895
|
});
|
|
900
896
|
return cssVars;
|
|
901
897
|
}
|
|
@@ -1012,15 +1008,7 @@ const Image$1 = (props) => {
|
|
|
1012
1008
|
};
|
|
1013
1009
|
Image$1.defaultProps = defaultProps$1q;
|
|
1014
1010
|
Image$1.displayName = "NutImage";
|
|
1015
|
-
var
|
|
1016
|
-
var classnames = {
|
|
1017
|
-
get exports() {
|
|
1018
|
-
return classnamesExports;
|
|
1019
|
-
},
|
|
1020
|
-
set exports(v) {
|
|
1021
|
-
classnamesExports = v;
|
|
1022
|
-
}
|
|
1023
|
-
};
|
|
1011
|
+
var classnames = { exports: {} };
|
|
1024
1012
|
/*!
|
|
1025
1013
|
Copyright (c) 2018 Jed Watson.
|
|
1026
1014
|
Licensed under the MIT License (MIT), see
|
|
@@ -1067,7 +1055,8 @@ var classnames = {
|
|
|
1067
1055
|
}
|
|
1068
1056
|
})();
|
|
1069
1057
|
})(classnames);
|
|
1070
|
-
|
|
1058
|
+
var classnamesExports = classnames.exports;
|
|
1059
|
+
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
1071
1060
|
const defaultOverlayProps = {
|
|
1072
1061
|
zIndex: 2e3,
|
|
1073
1062
|
duration: 0.3,
|
|
@@ -1193,24 +1182,8 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
1193
1182
|
subClass.prototype.constructor = subClass;
|
|
1194
1183
|
_setPrototypeOf(subClass, superClass);
|
|
1195
1184
|
}
|
|
1196
|
-
var
|
|
1197
|
-
var
|
|
1198
|
-
get exports() {
|
|
1199
|
-
return propTypesExports;
|
|
1200
|
-
},
|
|
1201
|
-
set exports(v) {
|
|
1202
|
-
propTypesExports = v;
|
|
1203
|
-
}
|
|
1204
|
-
};
|
|
1205
|
-
var reactIsExports = {};
|
|
1206
|
-
var reactIs = {
|
|
1207
|
-
get exports() {
|
|
1208
|
-
return reactIsExports;
|
|
1209
|
-
},
|
|
1210
|
-
set exports(v) {
|
|
1211
|
-
reactIsExports = v;
|
|
1212
|
-
}
|
|
1213
|
-
};
|
|
1185
|
+
var propTypes = { exports: {} };
|
|
1186
|
+
var reactIs = { exports: {} };
|
|
1214
1187
|
var reactIs_production_min = {};
|
|
1215
1188
|
/** @license React v16.13.1
|
|
1216
1189
|
* react-is.production.min.js
|
|
@@ -1481,16 +1454,14 @@ function requireReactIs_development() {
|
|
|
1481
1454
|
var hasRequiredReactIs;
|
|
1482
1455
|
function requireReactIs() {
|
|
1483
1456
|
if (hasRequiredReactIs)
|
|
1484
|
-
return
|
|
1457
|
+
return reactIs.exports;
|
|
1485
1458
|
hasRequiredReactIs = 1;
|
|
1486
|
-
(
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
})(reactIs);
|
|
1493
|
-
return reactIsExports;
|
|
1459
|
+
if (process.env.NODE_ENV === "production") {
|
|
1460
|
+
reactIs.exports = requireReactIs_production_min();
|
|
1461
|
+
} else {
|
|
1462
|
+
reactIs.exports = requireReactIs_development();
|
|
1463
|
+
}
|
|
1464
|
+
return reactIs.exports;
|
|
1494
1465
|
}
|
|
1495
1466
|
/*
|
|
1496
1467
|
object-assign
|
|
@@ -2157,6 +2128,8 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2157
2128
|
} else {
|
|
2158
2129
|
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
2159
2130
|
}
|
|
2131
|
+
var propTypesExports = propTypes.exports;
|
|
2132
|
+
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
2160
2133
|
function hasClass(element, className) {
|
|
2161
2134
|
if (element.classList)
|
|
2162
2135
|
return !!className && element.classList.contains(className);
|
|
@@ -2186,22 +2159,22 @@ function removeClass$1(element, className) {
|
|
|
2186
2159
|
const config$1 = {
|
|
2187
2160
|
disabled: false
|
|
2188
2161
|
};
|
|
2189
|
-
var timeoutsShape = process.env.NODE_ENV !== "production" ?
|
|
2190
|
-
enter:
|
|
2191
|
-
exit:
|
|
2192
|
-
appear:
|
|
2162
|
+
var timeoutsShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
2163
|
+
enter: PropTypes.number,
|
|
2164
|
+
exit: PropTypes.number,
|
|
2165
|
+
appear: PropTypes.number
|
|
2193
2166
|
}).isRequired]) : null;
|
|
2194
|
-
var classNamesShape = process.env.NODE_ENV !== "production" ?
|
|
2195
|
-
enter:
|
|
2196
|
-
exit:
|
|
2197
|
-
active:
|
|
2198
|
-
}),
|
|
2199
|
-
enter:
|
|
2200
|
-
enterDone:
|
|
2201
|
-
enterActive:
|
|
2202
|
-
exit:
|
|
2203
|
-
exitDone:
|
|
2204
|
-
exitActive:
|
|
2167
|
+
var classNamesShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
2168
|
+
enter: PropTypes.string,
|
|
2169
|
+
exit: PropTypes.string,
|
|
2170
|
+
active: PropTypes.string
|
|
2171
|
+
}), PropTypes.shape({
|
|
2172
|
+
enter: PropTypes.string,
|
|
2173
|
+
enterDone: PropTypes.string,
|
|
2174
|
+
enterActive: PropTypes.string,
|
|
2175
|
+
exit: PropTypes.string,
|
|
2176
|
+
exitDone: PropTypes.string,
|
|
2177
|
+
exitActive: PropTypes.string
|
|
2205
2178
|
})]) : null;
|
|
2206
2179
|
const TransitionGroupContext = React__default.createContext(null);
|
|
2207
2180
|
var forceReflow = function forceReflow2(node) {
|
|
@@ -2451,10 +2424,10 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2451
2424
|
* (see
|
|
2452
2425
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
2453
2426
|
*/
|
|
2454
|
-
nodeRef:
|
|
2455
|
-
current: typeof Element === "undefined" ?
|
|
2427
|
+
nodeRef: PropTypes.shape({
|
|
2428
|
+
current: typeof Element === "undefined" ? PropTypes.any : function(propValue, key, componentName, location, propFullName, secret) {
|
|
2456
2429
|
var value = propValue[key];
|
|
2457
|
-
return
|
|
2430
|
+
return PropTypes.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
2458
2431
|
}
|
|
2459
2432
|
}),
|
|
2460
2433
|
/**
|
|
@@ -2471,23 +2444,23 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2471
2444
|
* </Transition>
|
|
2472
2445
|
* ```
|
|
2473
2446
|
*/
|
|
2474
|
-
children:
|
|
2447
|
+
children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
|
|
2475
2448
|
/**
|
|
2476
2449
|
* Show the component; triggers the enter or exit states
|
|
2477
2450
|
*/
|
|
2478
|
-
in:
|
|
2451
|
+
in: PropTypes.bool,
|
|
2479
2452
|
/**
|
|
2480
2453
|
* By default the child component is mounted immediately along with
|
|
2481
2454
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
2482
2455
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
2483
2456
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
2484
2457
|
*/
|
|
2485
|
-
mountOnEnter:
|
|
2458
|
+
mountOnEnter: PropTypes.bool,
|
|
2486
2459
|
/**
|
|
2487
2460
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
2488
2461
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
2489
2462
|
*/
|
|
2490
|
-
unmountOnExit:
|
|
2463
|
+
unmountOnExit: PropTypes.bool,
|
|
2491
2464
|
/**
|
|
2492
2465
|
* By default the child component does not perform the enter transition when
|
|
2493
2466
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -2499,15 +2472,15 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2499
2472
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
2500
2473
|
* > differently.
|
|
2501
2474
|
*/
|
|
2502
|
-
appear:
|
|
2475
|
+
appear: PropTypes.bool,
|
|
2503
2476
|
/**
|
|
2504
2477
|
* Enable or disable enter transitions.
|
|
2505
2478
|
*/
|
|
2506
|
-
enter:
|
|
2479
|
+
enter: PropTypes.bool,
|
|
2507
2480
|
/**
|
|
2508
2481
|
* Enable or disable exit transitions.
|
|
2509
2482
|
*/
|
|
2510
|
-
exit:
|
|
2483
|
+
exit: PropTypes.bool,
|
|
2511
2484
|
/**
|
|
2512
2485
|
* The duration of the transition, in milliseconds.
|
|
2513
2486
|
* Required unless `addEndListener` is provided.
|
|
@@ -2557,7 +2530,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2557
2530
|
* }}
|
|
2558
2531
|
* ```
|
|
2559
2532
|
*/
|
|
2560
|
-
addEndListener:
|
|
2533
|
+
addEndListener: PropTypes.func,
|
|
2561
2534
|
/**
|
|
2562
2535
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
2563
2536
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2566,7 +2539,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2566
2539
|
*
|
|
2567
2540
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2568
2541
|
*/
|
|
2569
|
-
onEnter:
|
|
2542
|
+
onEnter: PropTypes.func,
|
|
2570
2543
|
/**
|
|
2571
2544
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
2572
2545
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2575,7 +2548,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2575
2548
|
*
|
|
2576
2549
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2577
2550
|
*/
|
|
2578
|
-
onEntering:
|
|
2551
|
+
onEntering: PropTypes.func,
|
|
2579
2552
|
/**
|
|
2580
2553
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
2581
2554
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -2584,7 +2557,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2584
2557
|
*
|
|
2585
2558
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2586
2559
|
*/
|
|
2587
|
-
onEntered:
|
|
2560
|
+
onEntered: PropTypes.func,
|
|
2588
2561
|
/**
|
|
2589
2562
|
* Callback fired before the "exiting" status is applied.
|
|
2590
2563
|
*
|
|
@@ -2592,7 +2565,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2592
2565
|
*
|
|
2593
2566
|
* @type Function(node: HtmlElement) -> void
|
|
2594
2567
|
*/
|
|
2595
|
-
onExit:
|
|
2568
|
+
onExit: PropTypes.func,
|
|
2596
2569
|
/**
|
|
2597
2570
|
* Callback fired after the "exiting" status is applied.
|
|
2598
2571
|
*
|
|
@@ -2600,7 +2573,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2600
2573
|
*
|
|
2601
2574
|
* @type Function(node: HtmlElement) -> void
|
|
2602
2575
|
*/
|
|
2603
|
-
onExiting:
|
|
2576
|
+
onExiting: PropTypes.func,
|
|
2604
2577
|
/**
|
|
2605
2578
|
* Callback fired after the "exited" status is applied.
|
|
2606
2579
|
*
|
|
@@ -2608,7 +2581,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2608
2581
|
*
|
|
2609
2582
|
* @type Function(node: HtmlElement) -> void
|
|
2610
2583
|
*/
|
|
2611
|
-
onExited:
|
|
2584
|
+
onExited: PropTypes.func
|
|
2612
2585
|
} : {};
|
|
2613
2586
|
function noop$2() {
|
|
2614
2587
|
}
|
|
@@ -2847,7 +2820,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2847
2820
|
*
|
|
2848
2821
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2849
2822
|
*/
|
|
2850
|
-
onEnter:
|
|
2823
|
+
onEnter: PropTypes.func,
|
|
2851
2824
|
/**
|
|
2852
2825
|
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
2853
2826
|
* 'appear-active' class is applied.
|
|
@@ -2856,7 +2829,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2856
2829
|
*
|
|
2857
2830
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2858
2831
|
*/
|
|
2859
|
-
onEntering:
|
|
2832
|
+
onEntering: PropTypes.func,
|
|
2860
2833
|
/**
|
|
2861
2834
|
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
2862
2835
|
* 'appear' classes are **removed** and the `done` class is added to the DOM node.
|
|
@@ -2865,7 +2838,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2865
2838
|
*
|
|
2866
2839
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2867
2840
|
*/
|
|
2868
|
-
onEntered:
|
|
2841
|
+
onEntered: PropTypes.func,
|
|
2869
2842
|
/**
|
|
2870
2843
|
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
2871
2844
|
* applied.
|
|
@@ -2874,7 +2847,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2874
2847
|
*
|
|
2875
2848
|
* @type Function(node: HtmlElement)
|
|
2876
2849
|
*/
|
|
2877
|
-
onExit:
|
|
2850
|
+
onExit: PropTypes.func,
|
|
2878
2851
|
/**
|
|
2879
2852
|
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
2880
2853
|
*
|
|
@@ -2882,7 +2855,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2882
2855
|
*
|
|
2883
2856
|
* @type Function(node: HtmlElement)
|
|
2884
2857
|
*/
|
|
2885
|
-
onExiting:
|
|
2858
|
+
onExiting: PropTypes.func,
|
|
2886
2859
|
/**
|
|
2887
2860
|
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
2888
2861
|
* are **removed** and the `exit-done` class is added to the DOM node.
|
|
@@ -2891,7 +2864,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$3({},
|
|
|
2891
2864
|
*
|
|
2892
2865
|
* @type Function(node: HtmlElement)
|
|
2893
2866
|
*/
|
|
2894
|
-
onExited:
|
|
2867
|
+
onExited: PropTypes.func
|
|
2895
2868
|
}) : {};
|
|
2896
2869
|
const CSSTransition$1 = CSSTransition;
|
|
2897
2870
|
const defaultProps$1p = {
|
|
@@ -5522,6 +5495,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5522
5495
|
}
|
|
5523
5496
|
const target = e.target;
|
|
5524
5497
|
const currentScrollTop = target.scrollTop;
|
|
5498
|
+
Taro.getEnv() === "WEB" && setScrollTop(currentScrollTop);
|
|
5525
5499
|
let current = Math.floor(currentScrollTop / state.avgHeight);
|
|
5526
5500
|
if (current === 0) {
|
|
5527
5501
|
if (currentScrollTop >= state.monthsData[current + 1].cssScrollHeight) {
|
|
@@ -9760,7 +9734,7 @@ const SearchBar = (props) => {
|
|
|
9760
9734
|
return null;
|
|
9761
9735
|
};
|
|
9762
9736
|
const onKeypress = (e) => {
|
|
9763
|
-
if (e.keyCode === 13) {
|
|
9737
|
+
if (e.key === "Enter" || e.keyCode === 13) {
|
|
9764
9738
|
if (typeof e.cancelable !== "boolean" || e.cancelable) {
|
|
9765
9739
|
e.preventDefault();
|
|
9766
9740
|
}
|