@nutui/nutui-react-taro 1.4.2 → 1.4.3

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.
Files changed (82) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/esm/ActionSheet.js +4 -4
  3. package/dist/esm/Address.js +4 -4
  4. package/dist/esm/Audio.js +4 -4
  5. package/dist/esm/Badge.js +2 -2
  6. package/dist/esm/Barrage.js +2 -2
  7. package/dist/esm/Calendar.js +5 -5
  8. package/dist/esm/CalendarItem.js +2 -2
  9. package/dist/esm/Cascader.js +4 -4
  10. package/dist/esm/CircleProgress.js +2 -2
  11. package/dist/esm/DatePicker.js +5 -5
  12. package/dist/esm/Dialog.js +2 -2
  13. package/dist/esm/Drag.js +2 -2
  14. package/dist/esm/FixedNav.js +3 -3
  15. package/dist/esm/ImagePreview.js +4 -4
  16. package/dist/esm/InputNumber.js +2 -2
  17. package/dist/esm/MenuItem.js +3 -3
  18. package/dist/esm/NoticeBar.js +2 -2
  19. package/dist/esm/Notify.js +2 -2
  20. package/dist/esm/NumberKeyboard.js +4 -4
  21. package/dist/esm/Overlay.js +2 -2
  22. package/dist/esm/Picker.js +4 -4
  23. package/dist/esm/Popover.js +3 -3
  24. package/dist/esm/Popup.js +3 -3
  25. package/dist/esm/Range.js +3 -3
  26. package/dist/esm/ShortPassword.js +4 -4
  27. package/dist/esm/SideNavBar.js +4 -4
  28. package/dist/esm/Signature.js +2 -2
  29. package/dist/esm/TimeSelect.js +4 -4
  30. package/dist/esm/Toast.js +2 -2
  31. package/dist/esm/WaterMark.js +2 -2
  32. package/dist/esm/{actionsheet.taro-360d8d34.js → actionsheet.taro-a58d3d12.js} +1 -1
  33. package/dist/esm/{address.taro-c03b8b16.js → address.taro-1e2aea24.js} +22 -24
  34. package/dist/esm/{audio.taro-20890c93.js → audio.taro-fddcdfc0.js} +1 -1
  35. package/dist/esm/{badge.taro-9f72d846.js → badge.taro-fe9171ec.js} +1 -1
  36. package/dist/esm/{barrage.taro-d86c367a.js → barrage.taro-0e157b5e.js} +25 -23
  37. package/dist/esm/{calendar.taro-93b14945.js → calendar.taro-72974415.js} +2 -2
  38. package/dist/esm/{calendaritem.taro-85a8c4fc.js → calendaritem.taro-84e889eb.js} +19 -17
  39. package/dist/esm/{cascader.taro-459f7d45.js → cascader.taro-d8cb1c3e.js} +245 -235
  40. package/dist/esm/{circleprogress.taro-3c89a157.js → circleprogress.taro-47db537c.js} +2 -13
  41. package/dist/esm/{datepicker.taro-7de67b85.js → datepicker.taro-7199f521.js} +1 -1
  42. package/dist/esm/{dialog.taro-cf9e3087.js → dialog.taro-f54cfbf0.js} +1 -1
  43. package/dist/esm/{drag.taro-0717c783.js → drag.taro-82b6b27a.js} +4 -8
  44. package/dist/esm/ellipsis.taro-c0de6ff4.js +84 -76
  45. package/dist/esm/{fixednav.taro-005765f4.js → fixednav.taro-9e759320.js} +1 -1
  46. package/dist/esm/{imagepreview.taro-68e776f5.js → imagepreview.taro-3400ea03.js} +1 -1
  47. package/dist/esm/{inputnumber.taro-0a01f6e1.js → inputnumber.taro-dc39b853.js} +1 -0
  48. package/dist/esm/{menuitem.taro-2f8e69a4.js → menuitem.taro-216e9f7d.js} +17 -15
  49. package/dist/esm/{noticebar.taro-43c18dc9.js → noticebar.taro-94002898.js} +35 -33
  50. package/dist/esm/{notify.taro-d9c48fae.js → notify.taro-308e5892.js} +1 -1
  51. package/dist/esm/{numberkeyboard.taro-9635ecc9.js → numberkeyboard.taro-5e8f0ddf.js} +1 -1
  52. package/dist/esm/nutui-react.es.js +30 -30
  53. package/dist/esm/{overlay.taro-be45fed5.js → overlay.taro-98367bc1.js} +1 -1
  54. package/dist/esm/{picker.taro-9b7263ca.js → picker.taro-3b5cc054.js} +14 -12
  55. package/dist/esm/{popover.taro-7e5dff8c.js → popover.taro-46d813e8.js} +18 -16
  56. package/dist/esm/{popup.taro-33d0bbc8.js → popup.taro-cb777e09.js} +1 -1
  57. package/dist/esm/pulltorefresh.taro-f26a20dd.js +81 -75
  58. package/dist/esm/{range.taro-4cbe2469.js → range.taro-c41e9b90.js} +72 -68
  59. package/dist/esm/{shortpassword.taro-4bd513ae.js → shortpassword.taro-3a3bf412.js} +1 -1
  60. package/dist/esm/{sidenavbar.taro-3b1f1218.js → sidenavbar.taro-06026f31.js} +1 -1
  61. package/dist/esm/{signature.taro-504357dc.js → signature.taro-17648cac.js} +79 -39
  62. package/dist/esm/swipe.taro-83bc248f.js +37 -35
  63. package/dist/esm/swiper.taro-852f6615.js +28 -26
  64. package/dist/esm/{timeselect.taro-000060af.js → timeselect.taro-fc7ec6ee.js} +1 -1
  65. package/dist/esm/{toast.taro-86862dff.js → toast.taro-0804b6b4.js} +1 -1
  66. package/dist/esm/useClientRect-bf69d7b3.js +12 -10
  67. package/dist/esm/{watermark.taro-d1f38563.js → watermark.taro-323d1cf3.js} +53 -41
  68. package/dist/locales/base.js +1 -1
  69. package/dist/locales/en-US.js +1 -1
  70. package/dist/locales/id-ID.js +1 -1
  71. package/dist/locales/zh-CN.js +1 -1
  72. package/dist/locales/zh-TW.js +1 -1
  73. package/dist/locales/zh-UG.js +1 -1
  74. package/dist/nutui.react.es.js +160 -111
  75. package/dist/nutui.react.umd.js +159 -110
  76. package/dist/packages/drag/drag.scss +1 -0
  77. package/dist/packages/inputnumber/inputnumber.scss +4 -1
  78. package/dist/packages/signature/signature.scss +10 -3
  79. package/dist/style.css +1 -1
  80. package/dist/style.es.js +1 -1
  81. package/dist/styles/variables.scss +1 -1
  82. package/package.json +1 -1
@@ -69,16 +69,18 @@ var Ellipsis = function Ellipsis(props) {
69
69
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
70
70
  var refe;
71
71
  return _regeneratorRuntime.wrap(function _callee$(_context) {
72
- while (1) switch (_context.prev = _context.next) {
73
- case 0:
74
- _context.next = 2;
75
- return getRectByTaro(symbolContain === null || symbolContain === void 0 ? void 0 : symbolContain.current);
76
- case 2:
77
- refe = _context.sent;
78
- symbolTextWidth = refe.width ? Math.ceil(refe.width) : Math.ceil(widthBase[0] * 0.7921);
79
- case 4:
80
- case "end":
81
- return _context.stop();
72
+ while (1) {
73
+ switch (_context.prev = _context.next) {
74
+ case 0:
75
+ _context.next = 2;
76
+ return getRectByTaro(symbolContain === null || symbolContain === void 0 ? void 0 : symbolContain.current);
77
+ case 2:
78
+ refe = _context.sent;
79
+ symbolTextWidth = refe.width ? Math.ceil(refe.width) : Math.ceil(widthBase[0] * 0.7921);
80
+ case 4:
81
+ case "end":
82
+ return _context.stop();
83
+ }
82
84
  }
83
85
  }, _callee);
84
86
  }));
@@ -96,25 +98,27 @@ var Ellipsis = function Ellipsis(props) {
96
98
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
97
99
  var element, query;
98
100
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
99
- while (1) switch (_context2.prev = _context2.next) {
100
- case 0:
101
- element = root.current;
102
- query = Taro.createSelectorQuery();
103
- query.select("#".concat(element.id)) && query.select("#".concat(element.id)).fields({
104
- computedStyle: ['width', 'height', 'lineHeight', 'paddingTop', 'paddingBottom', 'fontSize']
105
- }, function (res) {
106
- lineH = pxToNumber(res.lineHeight === 'normal' ? lineHeight : res.lineHeight);
107
- maxHeight = Math.floor(lineH * (Number(rows) + 0.5) + pxToNumber(res.paddingTop) + pxToNumber(res.paddingBottom));
108
- originHeight = pxToNumber(res.height);
109
- widthRef.current = res.width;
110
- // 设置基础字符
111
- var bsize = pxToNumber(res.fontSize);
112
- widthBase = [bsize, bsize * 0.72, bsize * 0.53, bsize * 0.4, bsize * 0.75];
113
- calcEllipse();
114
- }).exec();
115
- case 3:
116
- case "end":
117
- return _context2.stop();
101
+ while (1) {
102
+ switch (_context2.prev = _context2.next) {
103
+ case 0:
104
+ element = root.current;
105
+ query = Taro.createSelectorQuery();
106
+ query.select("#".concat(element.id)) && query.select("#".concat(element.id)).fields({
107
+ computedStyle: ['width', 'height', 'lineHeight', 'paddingTop', 'paddingBottom', 'fontSize']
108
+ }, function (res) {
109
+ lineH = pxToNumber(res.lineHeight === 'normal' ? lineHeight : res.lineHeight);
110
+ maxHeight = Math.floor(lineH * (Number(rows) + 0.5) + pxToNumber(res.paddingTop) + pxToNumber(res.paddingBottom));
111
+ originHeight = pxToNumber(res.height);
112
+ widthRef.current = res.width;
113
+ // 设置基础字符
114
+ var bsize = pxToNumber(res.fontSize);
115
+ widthBase = [bsize, bsize * 0.72, bsize * 0.53, bsize * 0.4, bsize * 0.75];
116
+ calcEllipse();
117
+ }).exec();
118
+ case 3:
119
+ case "end":
120
+ return _context2.stop();
121
+ }
118
122
  }
119
123
  }, _callee2);
120
124
  }));
@@ -127,36 +131,38 @@ var Ellipsis = function Ellipsis(props) {
127
131
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
128
132
  var refe, rowNum, end, _end, start;
129
133
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
130
- while (1) switch (_context3.prev = _context3.next) {
131
- case 0:
132
- _context3.next = 2;
133
- return getRectByTaro(rootContain.current);
134
- case 2:
135
- refe = _context3.sent;
136
- if (refe.height <= maxHeight) {
137
- setExceeded(false);
138
- } else {
139
- rowNum = Math.floor(content.length / (originHeight / lineH - 1)); // 每行的字数
140
- if (direction === 'middle') {
141
- end = content.length;
142
- ellipsis.current.leading = tailorContent(0, rowNum * (Number(rows) + 0.5), 'end');
143
- ellipsis.current.tailing = tailorContent(content.length - rowNum * (Number(rows) + 0.5), end, 'start');
144
- } else if (direction === 'end') {
145
- _end = rowNum * (Number(rows) + 0.5);
146
- ellipsis.current.leading = tailorContent(0, _end);
134
+ while (1) {
135
+ switch (_context3.prev = _context3.next) {
136
+ case 0:
137
+ _context3.next = 2;
138
+ return getRectByTaro(rootContain.current);
139
+ case 2:
140
+ refe = _context3.sent;
141
+ if (refe.height <= maxHeight) {
142
+ setExceeded(false);
147
143
  } else {
148
- start = content.length - rowNum * (Number(rows) + 0.5) - 5;
149
- ellipsis.current.tailing = tailorContent(start, content.length);
144
+ rowNum = Math.floor(content.length / (originHeight / lineH - 1)); // 每行的字数
145
+ if (direction === 'middle') {
146
+ end = content.length;
147
+ ellipsis.current.leading = tailorContent(0, rowNum * (Number(rows) + 0.5), 'end');
148
+ ellipsis.current.tailing = tailorContent(content.length - rowNum * (Number(rows) + 0.5), end, 'start');
149
+ } else if (direction === 'end') {
150
+ _end = rowNum * (Number(rows) + 0.5);
151
+ ellipsis.current.leading = tailorContent(0, _end);
152
+ } else {
153
+ start = content.length - rowNum * (Number(rows) + 0.5) - 5;
154
+ ellipsis.current.tailing = tailorContent(start, content.length);
155
+ }
156
+ // 进行兜底判断,是否符合要求
157
+ assignContent();
158
+ setTimeout(function () {
159
+ verifyEllipsis();
160
+ }, 100);
150
161
  }
151
- // 进行兜底判断,是否符合要求
152
- assignContent();
153
- setTimeout(function () {
154
- verifyEllipsis();
155
- }, 100);
156
- }
157
- case 4:
158
- case "end":
159
- return _context3.stop();
162
+ case 4:
163
+ case "end":
164
+ return _context3.stop();
165
+ }
160
166
  }
161
167
  }, _callee3);
162
168
  }));
@@ -169,26 +175,28 @@ var Ellipsis = function Ellipsis(props) {
169
175
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
170
176
  var refe, _ellipsis$current, _ellipsis$current$lea, _ellipsis$current2, _ellipsis$current3, _ellipsis$current3$ta, _ellipsis$current4;
171
177
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
172
- while (1) switch (_context4.prev = _context4.next) {
173
- case 0:
174
- _context4.next = 2;
175
- return getRectByTaro(rootContain.current);
176
- case 2:
177
- refe = _context4.sent;
178
- if (refe && refe.height && refe.height > maxHeight) {
179
- if (direction === 'end') {
180
- ellipsis.current.leading = (_ellipsis$current = ellipsis.current) === null || _ellipsis$current === void 0 ? void 0 : (_ellipsis$current$lea = _ellipsis$current.leading) === null || _ellipsis$current$lea === void 0 ? void 0 : _ellipsis$current$lea.slice(0, ((_ellipsis$current2 = ellipsis.current) === null || _ellipsis$current2 === void 0 ? void 0 : _ellipsis$current2.leading.length) - 1);
181
- } else {
182
- ellipsis.current.tailing = (_ellipsis$current3 = ellipsis.current) === null || _ellipsis$current3 === void 0 ? void 0 : (_ellipsis$current3$ta = _ellipsis$current3.tailing) === null || _ellipsis$current3$ta === void 0 ? void 0 : _ellipsis$current3$ta.slice(1, (_ellipsis$current4 = ellipsis.current) === null || _ellipsis$current4 === void 0 ? void 0 : _ellipsis$current4.tailing.length);
178
+ while (1) {
179
+ switch (_context4.prev = _context4.next) {
180
+ case 0:
181
+ _context4.next = 2;
182
+ return getRectByTaro(rootContain.current);
183
+ case 2:
184
+ refe = _context4.sent;
185
+ if (refe && refe.height && refe.height > maxHeight) {
186
+ if (direction === 'end') {
187
+ ellipsis.current.leading = (_ellipsis$current = ellipsis.current) === null || _ellipsis$current === void 0 ? void 0 : (_ellipsis$current$lea = _ellipsis$current.leading) === null || _ellipsis$current$lea === void 0 ? void 0 : _ellipsis$current$lea.slice(0, ((_ellipsis$current2 = ellipsis.current) === null || _ellipsis$current2 === void 0 ? void 0 : _ellipsis$current2.leading.length) - 1);
188
+ } else {
189
+ ellipsis.current.tailing = (_ellipsis$current3 = ellipsis.current) === null || _ellipsis$current3 === void 0 ? void 0 : (_ellipsis$current3$ta = _ellipsis$current3.tailing) === null || _ellipsis$current3$ta === void 0 ? void 0 : _ellipsis$current3$ta.slice(1, (_ellipsis$current4 = ellipsis.current) === null || _ellipsis$current4 === void 0 ? void 0 : _ellipsis$current4.tailing.length);
190
+ }
191
+ assignContent();
192
+ setTimeout(function () {
193
+ verifyEllipsis();
194
+ }, 100);
183
195
  }
184
- assignContent();
185
- setTimeout(function () {
186
- verifyEllipsis();
187
- }, 100);
188
- }
189
- case 4:
190
- case "end":
191
- return _context4.stop();
196
+ case 4:
197
+ case "end":
198
+ return _context4.stop();
199
+ }
192
200
  }
193
201
  }, _callee4);
194
202
  }));
@@ -6,7 +6,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6
6
  import React__default from 'react';
7
7
  import classNames from 'classnames';
8
8
  import { I as Icon } from './icon.taro-1d0d4fb7.js';
9
- import { O as Overlay } from './overlay.taro-be45fed5.js';
9
+ import { O as Overlay } from './overlay.taro-98367bc1.js';
10
10
  import { c as cn } from './bem-893ad28d.js';
11
11
  import { u as useConfig } from './configprovider.taro-8bdb3a28.js';
12
12
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
5
  import React__default, { useRef, useState, useEffect } from 'react';
6
- import { P as Popup } from './popup.taro-33d0bbc8.js';
6
+ import { P as Popup } from './popup.taro-cb777e09.js';
7
7
  import { S as Swiper } from './swiper.taro-852f6615.js';
8
8
  import { S as SwiperItem } from './swiperitem-86a3578a.js';
9
9
  var defaultProps = {
@@ -161,6 +161,7 @@ var InputNumber = function InputNumber(props) {
161
161
  name: "minus",
162
162
  onClick: reduceNumber
163
163
  }), React__default.createElement("input", {
164
+ className: "nut-number-input",
164
165
  type: "number",
165
166
  min: min,
166
167
  max: max,
@@ -9,7 +9,7 @@ import classNames from 'classnames';
9
9
  import { CSSTransition } from 'react-transition-group';
10
10
  import { u as useConfig } from './configprovider.taro-8bdb3a28.js';
11
11
  import { I as Icon } from './icon.taro-1d0d4fb7.js';
12
- import { O as Overlay } from './overlay.taro-be45fed5.js';
12
+ import { O as Overlay } from './overlay.taro-98367bc1.js';
13
13
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
14
14
  var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
15
15
  className: '',
@@ -91,20 +91,22 @@ var MenuItem = forwardRef(function (props, ref) {
91
91
  setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
92
92
  var p, rect;
93
93
  return _regeneratorRuntime.wrap(function _callee$(_context) {
94
- while (1) switch (_context.prev = _context.next) {
95
- case 0:
96
- p = parent.parent().current;
97
- _context.next = 3;
98
- return p.getBoundingClientRect();
99
- case 3:
100
- rect = _context.sent;
101
- setPosition({
102
- height: rect.height,
103
- top: rect.top
104
- });
105
- case 5:
106
- case "end":
107
- return _context.stop();
94
+ while (1) {
95
+ switch (_context.prev = _context.next) {
96
+ case 0:
97
+ p = parent.parent().current;
98
+ _context.next = 3;
99
+ return p.getBoundingClientRect();
100
+ case 3:
101
+ rect = _context.sent;
102
+ setPosition({
103
+ height: rect.height,
104
+ top: rect.top
105
+ });
106
+ case 5:
107
+ case "end":
108
+ return _context.stop();
109
+ }
108
110
  }
109
111
  }, _callee);
110
112
  })));
@@ -146,37 +146,39 @@ var NoticeBar = function NoticeBar(props) {
146
146
  setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
147
147
  var warpRes, contentRes, wrapW, offsetW, canScroll;
148
148
  return _regeneratorRuntime.wrap(function _callee$(_context) {
149
- while (1) switch (_context.prev = _context.next) {
150
- case 0:
151
- if (!(!wrap.current || !content.current)) {
152
- _context.next = 2;
153
- break;
154
- }
155
- return _context.abrupt("return");
156
- case 2:
157
- _context.next = 4;
158
- return getRectByTaro(wrap.current);
159
- case 4:
160
- warpRes = _context.sent;
161
- _context.next = 7;
162
- return getRectByTaro(content.current);
163
- case 7:
164
- contentRes = _context.sent;
165
- wrapW = warpRes.width;
166
- offsetW = contentRes.width;
167
- canScroll = scrollable == null ? offsetW > wrapW : scrollable;
168
- SetIsCanScroll(canScroll);
169
- if (canScroll) {
170
- SetWrapWidth(wrapW);
171
- SetOffsetW(offsetW);
172
- SetDuration(offsetW / speed);
173
- SetAnimationClass('play');
174
- } else {
175
- SetAnimationClass('');
176
- }
177
- case 13:
178
- case "end":
179
- return _context.stop();
149
+ while (1) {
150
+ switch (_context.prev = _context.next) {
151
+ case 0:
152
+ if (!(!wrap.current || !content.current)) {
153
+ _context.next = 2;
154
+ break;
155
+ }
156
+ return _context.abrupt("return");
157
+ case 2:
158
+ _context.next = 4;
159
+ return getRectByTaro(wrap.current);
160
+ case 4:
161
+ warpRes = _context.sent;
162
+ _context.next = 7;
163
+ return getRectByTaro(content.current);
164
+ case 7:
165
+ contentRes = _context.sent;
166
+ wrapW = warpRes.width;
167
+ offsetW = contentRes.width;
168
+ canScroll = scrollable == null ? offsetW > wrapW : scrollable;
169
+ SetIsCanScroll(canScroll);
170
+ if (canScroll) {
171
+ SetWrapWidth(wrapW);
172
+ SetOffsetW(offsetW);
173
+ SetDuration(offsetW / speed);
174
+ SetAnimationClass('play');
175
+ } else {
176
+ SetAnimationClass('');
177
+ }
178
+ case 13:
179
+ case "end":
180
+ return _context.stop();
181
+ }
180
182
  }
181
183
  }, _callee);
182
184
  })), 0);
@@ -204,7 +206,7 @@ var NoticeBar = function NoticeBar(props) {
204
206
  var startRollEasy = function startRollEasy() {
205
207
  showhorseLamp();
206
208
  var time = height / speed / 4 < 1 ? Number((height / speed / 4).toFixed(1)) * 1000 : ~~(height / speed / 4) * 1000;
207
- var timerCurr = setInterval(showhorseLamp, time + Number(standTime));
209
+ var timerCurr = window.setInterval(showhorseLamp, time + Number(standTime));
208
210
  SetTimer(timerCurr);
209
211
  };
210
212
  var showhorseLamp = function showhorseLamp() {
@@ -217,7 +219,7 @@ var NoticeBar = function NoticeBar(props) {
217
219
  }, time);
218
220
  };
219
221
  var startRoll = function startRoll() {
220
- var timerCurr = setInterval(function () {
222
+ var timerCurr = window.setInterval(function () {
221
223
  var chunk = 100;
222
224
  for (var i = 0; i < chunk; i++) {
223
225
  scroll(i, !(i < chunk - 1));
@@ -58,7 +58,7 @@ var Notify = function Notify(props) {
58
58
  var show = function show() {
59
59
  clearTimer();
60
60
  if (duration) {
61
- timer = setTimeout(function () {
61
+ timer = window.setTimeout(function () {
62
62
  hide();
63
63
  }, duration);
64
64
  }
@@ -6,7 +6,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6
6
  import React__default, { useState, useEffect } from 'react';
7
7
  import classNames from 'classnames';
8
8
  import { c as cn } from './bem-893ad28d.js';
9
- import { P as Popup } from './popup.taro-33d0bbc8.js';
9
+ import { P as Popup } from './popup.taro-cb777e09.js';
10
10
  import { u as useConfig } from './configprovider.taro-8bdb3a28.js';
11
11
  var defaultProps = {
12
12
  confirmText: '',
@@ -2,8 +2,8 @@ export { B as Button } from './button.taro-4ce133b9.js';
2
2
  export { C as Cell } from './cell.taro-cf50c4f2.js';
3
3
  export { C as CellGroup } from './cellgroup.taro-e094471c.js';
4
4
  export { I as Icon } from './icon.taro-1d0d4fb7.js';
5
- export { O as Overlay } from './overlay.taro-be45fed5.js';
6
- export { P as Popup } from './popup.taro-33d0bbc8.js';
5
+ export { O as Overlay } from './overlay.taro-98367bc1.js';
6
+ export { P as Popup } from './popup.taro-cb777e09.js';
7
7
  export { C as ConfigProvider } from './configprovider.taro-8bdb3a28.js';
8
8
  export { I as Image } from './image.taro-c30973d5.js';
9
9
  export { L as Layout } from './layout.taro-358f014f.js';
@@ -14,7 +14,7 @@ export { G as Grid } from './grid.taro-c2cc12d6.js';
14
14
  export { G as GridItem } from './griditem.taro-d3864d8f.js';
15
15
  export { S as Sticky } from './sticky.taro-36013e97.js';
16
16
  export { N as NavBar } from './navbar.taro-c931c078.js';
17
- export { F as FixedNav } from './fixednav.taro-005765f4.js';
17
+ export { F as FixedNav } from './fixednav.taro-9e759320.js';
18
18
  export { T as Tabbar } from './tabbar.taro-86cece39.js';
19
19
  export { T as TabbarItem } from './tabbaritem.taro-8dfb8055.js';
20
20
  export { E as Elevator } from './elevator.taro-d7d65470.js';
@@ -22,41 +22,41 @@ export { P as Pagination } from './pagination.taro-9925ffab.js';
22
22
  export { T as Tabs } from './tabs.taro-e71875fa.js';
23
23
  export { T as TabPane } from './tabpane.taro-91cd6cf4.js';
24
24
  export { I as Indicator } from './indicator.taro-183ea169.js';
25
- export { S as SideNavBar } from './sidenavbar.taro-3b1f1218.js';
25
+ export { S as SideNavBar } from './sidenavbar.taro-06026f31.js';
26
26
  export { S as SubSideNavBar } from './subsidenavbar.taro-f46b4c73.js';
27
27
  export { S as SideNavBarItem } from './sidenavbaritem.taro-fee11d26.js';
28
28
  export { M as Menu } from './menu.taro-4abed328.js';
29
- export { M as MenuItem } from './menuitem.taro-2f8e69a4.js';
30
- export { R as Range } from './range.taro-4cbe2469.js';
31
- export { C as Calendar } from './calendar.taro-93b14945.js';
29
+ export { M as MenuItem } from './menuitem.taro-216e9f7d.js';
30
+ export { R as Range } from './range.taro-c41e9b90.js';
31
+ export { C as Calendar } from './calendar.taro-72974415.js';
32
32
  export { C as Checkbox, a as CheckboxGroup } from './checkbox.taro-0bda9796.js';
33
- export { D as DatePicker } from './datepicker.taro-7de67b85.js';
34
- export { I as InputNumber } from './inputnumber.taro-0a01f6e1.js';
33
+ export { D as DatePicker } from './datepicker.taro-7199f521.js';
34
+ export { I as InputNumber } from './inputnumber.taro-dc39b853.js';
35
35
  export { I as Input } from './input.taro-8b3f8381.js';
36
36
  export { R as Radio, a as RadioGroup } from './index.taro-a36f96fb.js';
37
37
  export { R as Rate } from './rate.taro-10197384.js';
38
- export { C as CalendarItem } from './calendaritem.taro-85a8c4fc.js';
39
- export { P as Picker } from './picker.taro-9b7263ca.js';
40
- export { S as ShortPassword } from './shortpassword.taro-4bd513ae.js';
38
+ export { C as CalendarItem } from './calendaritem.taro-84e889eb.js';
39
+ export { P as Picker } from './picker.taro-3b5cc054.js';
40
+ export { S as ShortPassword } from './shortpassword.taro-3a3bf412.js';
41
41
  export { T as TextArea } from './textarea.taro-83d5fe73.js';
42
42
  export { U as Uploader } from './uploader.taro-a1edf38f.js';
43
- export { C as Cascader } from './cascader.taro-459f7d45.js';
43
+ export { C as Cascader } from './cascader.taro-d8cb1c3e.js';
44
44
  export { S as SearchBar } from './searchbar.taro-01ed4ea4.js';
45
- export { N as NumberKeyboard } from './numberkeyboard.taro-9635ecc9.js';
45
+ export { N as NumberKeyboard } from './numberkeyboard.taro-5e8f0ddf.js';
46
46
  export { F as Form } from './form.taro-880014b1.js';
47
47
  export { F as FormItem } from './formitem.taro-3695f4a7.js';
48
- export { A as ActionSheet } from './actionsheet.taro-360d8d34.js';
48
+ export { A as ActionSheet } from './actionsheet.taro-a58d3d12.js';
49
49
  export { B as BackTop } from './backtop.taro-99107c30.js';
50
- export { D as Drag } from './drag.taro-0717c783.js';
51
- export { D as Dialog } from './dialog.taro-cf9e3087.js';
50
+ export { D as Drag } from './drag.taro-82b6b27a.js';
51
+ export { D as Dialog } from './dialog.taro-f54cfbf0.js';
52
52
  export { I as Infiniteloading } from './infiniteloading.taro-b5ddf3cc.js';
53
- export { N as Notify } from './notify.taro-d9c48fae.js';
53
+ export { N as Notify } from './notify.taro-308e5892.js';
54
54
  export { S as Switch } from './switch.taro-bae2dca0.js';
55
- export { T as Toast } from './toast.taro-86862dff.js';
55
+ export { T as Toast } from './toast.taro-0804b6b4.js';
56
56
  export { S as Swipe } from './swipe.taro-83bc248f.js';
57
57
  export { P as PullToRefresh } from './pulltorefresh.taro-f26a20dd.js';
58
- export { C as CircleProgress } from './circleprogress.taro-3c89a157.js';
59
- export { N as NoticeBar } from './noticebar.taro-43c18dc9.js';
58
+ export { C as CircleProgress } from './circleprogress.taro-47db537c.js';
59
+ export { N as NoticeBar } from './noticebar.taro-94002898.js';
60
60
  export { S as Steps } from './steps.taro-acf205a0.js';
61
61
  export { S as Step } from './step.taro-1c94e067.js';
62
62
  export { S as Swiper } from './swiper.taro-852f6615.js';
@@ -64,9 +64,9 @@ export { S as SwiperItem } from './swiperitem-86a3578a.js';
64
64
  export { A as Avatar } from './avatar.taro-85ced995.js';
65
65
  export { A as AvatarGroup } from './avatargroup-f7f600ff.js';
66
66
  export { P as Price } from './price.taro-8801462e.js';
67
- export { B as Badge } from './badge.taro-9f72d846.js';
67
+ export { B as Badge } from './badge.taro-fe9171ec.js';
68
68
  export { T as Tag } from './tag.taro-bd900990.js';
69
- export { P as Popover } from './popover.taro-7e5dff8c.js';
69
+ export { P as Popover } from './popover.taro-46d813e8.js';
70
70
  export { S as Skeleton } from './skeleton.taro-853ce460.js';
71
71
  export { C as CountDown } from './countdown.taro-d7dc8681.js';
72
72
  export { C as Collapse } from './collapse.taro-af58206c.js';
@@ -77,19 +77,19 @@ export { V as VirtualList } from './virtuallist.taro-4add61c3.js';
77
77
  export { T as Table } from './table.taro-adda6622.js';
78
78
  export { V as Video } from './video-8a3518c5.js';
79
79
  export { P as Progress } from './progress.taro-623bc807.js';
80
- export { A as Audio } from './audio.taro-20890c93.js';
81
- export { I as ImagePreview } from './imagepreview.taro-68e776f5.js';
80
+ export { A as Audio } from './audio.taro-fddcdfc0.js';
81
+ export { I as ImagePreview } from './imagepreview.taro-3400ea03.js';
82
82
  export { T as TrendArrow } from './trendarrow.taro-5a7153e4.js';
83
- export { W as WaterMark } from './watermark.taro-d1f38563.js';
83
+ export { W as WaterMark } from './watermark.taro-323d1cf3.js';
84
84
  export { A as Animate } from './animate.taro-b0e83dd5.js';
85
85
  export { E as Ellipsis } from './ellipsis.taro-c0de6ff4.js';
86
- export { A as Address } from './address.taro-c03b8b16.js';
87
- export { B as Barrage } from './barrage.taro-d86c367a.js';
88
- export { S as Signature } from './signature.taro-504357dc.js';
86
+ export { A as Address } from './address.taro-1e2aea24.js';
87
+ export { B as Barrage } from './barrage.taro-0e157b5e.js';
88
+ export { S as Signature } from './signature.taro-17648cac.js';
89
89
  export { C as Card } from './card.taro-a530dfb3.js';
90
90
  export { T as TimePannel } from './timepannel.taro-c66c63dd.js';
91
91
  export { T as TimeDetail } from './timedetail.taro-105f5380.js';
92
- export { T as TimeSelect } from './timeselect.taro-000060af.js';
92
+ export { T as TimeSelect } from './timeselect.taro-fc7ec6ee.js';
93
93
  import 'react';
94
94
  import './typings-1c5f2628.js';
95
95
  import '@tarojs/taro';
@@ -65,7 +65,7 @@ var Overlay = function Overlay(props) {
65
65
  if (closeOnClickOverlay) {
66
66
  props.onClick && props.onClick(e);
67
67
  renderRef.current = false;
68
- var id = setTimeout(function () {
68
+ var id = window.setTimeout(function () {
69
69
  setShow(!visible);
70
70
  }, duration * 1000 * 0.8);
71
71
  intervalRef.current = id;
@@ -8,7 +8,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
8
8
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
  import React__default, { useState, useRef, useEffect, useImperativeHandle } from 'react';
11
- import { P as Popup } from './popup.taro-33d0bbc8.js';
11
+ import { P as Popup } from './popup.taro-cb777e09.js';
12
12
  import { u as useTouch } from './useTouch-a2ea68c6.js';
13
13
  import { g as getRectByTaro } from './useClientRect-bf69d7b3.js';
14
14
  import { u as useConfig } from './configprovider.taro-8bdb3a28.js';
@@ -200,17 +200,19 @@ var InternalPickerSlot = function InternalPickerSlot(props, ref) {
200
200
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
201
201
  var refe;
202
202
  return _regeneratorRuntime.wrap(function _callee$(_context) {
203
- while (1) switch (_context.prev = _context.next) {
204
- case 0:
205
- _context.next = 2;
206
- return getRectByTaro(listbox === null || listbox === void 0 ? void 0 : listbox.current);
207
- case 2:
208
- refe = _context.sent;
209
- lineSpacing.current = refe.height ? refe.height : 36;
210
- modifyStatus(true);
211
- case 5:
212
- case "end":
213
- return _context.stop();
203
+ while (1) {
204
+ switch (_context.prev = _context.next) {
205
+ case 0:
206
+ _context.next = 2;
207
+ return getRectByTaro(listbox === null || listbox === void 0 ? void 0 : listbox.current);
208
+ case 2:
209
+ refe = _context.sent;
210
+ lineSpacing.current = refe.height ? refe.height : 36;
211
+ modifyStatus(true);
212
+ case 5:
213
+ case "end":
214
+ return _context.stop();
215
+ }
214
216
  }
215
217
  }, _callee);
216
218
  }));
@@ -16,7 +16,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
16
16
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
17
17
  import React__default, { useRef, useState, useEffect } from 'react';
18
18
  import { I as Icon } from './icon.taro-1d0d4fb7.js';
19
- import { O as Overlay } from './overlay.taro-be45fed5.js';
19
+ import { O as Overlay } from './overlay.taro-98367bc1.js';
20
20
  import { g as getRectByTaro } from './useClientRect-bf69d7b3.js';
21
21
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
22
22
 
@@ -113,21 +113,23 @@ var Popover = function Popover(props) {
113
113
  setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
114
114
  var res;
115
115
  return _regeneratorRuntime.wrap(function _callee$(_context) {
116
- while (1) switch (_context.prev = _context.next) {
117
- case 0:
118
- if (!goodItem.current) {
119
- _context.next = 6;
120
- break;
121
- }
122
- _context.next = 3;
123
- return getRectByTaro(goodItem.current);
124
- case 3:
125
- res = _context.sent;
126
- setElWidth(res === null || res === void 0 ? void 0 : res.width);
127
- setElHeight(res === null || res === void 0 ? void 0 : res.height);
128
- case 6:
129
- case "end":
130
- return _context.stop();
116
+ while (1) {
117
+ switch (_context.prev = _context.next) {
118
+ case 0:
119
+ if (!goodItem.current) {
120
+ _context.next = 6;
121
+ break;
122
+ }
123
+ _context.next = 3;
124
+ return getRectByTaro(goodItem.current);
125
+ case 3:
126
+ res = _context.sent;
127
+ setElWidth(res === null || res === void 0 ? void 0 : res.width);
128
+ setElHeight(res === null || res === void 0 ? void 0 : res.height);
129
+ case 6:
130
+ case "end":
131
+ return _context.stop();
132
+ }
131
133
  }
132
134
  }, _callee);
133
135
  })));
@@ -6,7 +6,7 @@ import React__default, { useState, useEffect } from 'react';
6
6
  import { createPortal } from 'react-dom';
7
7
  import { CSSTransition } from 'react-transition-group';
8
8
  import classNames from 'classnames';
9
- import { d as defaultOverlayProps, O as Overlay } from './overlay.taro-be45fed5.js';
9
+ import { d as defaultOverlayProps, O as Overlay } from './overlay.taro-98367bc1.js';
10
10
  import { I as Icon } from './icon.taro-1d0d4fb7.js';
11
11
  import { c as cn } from './bem-893ad28d.js';
12
12
  import { C as ComponentDefaults } from './typings-1c5f2628.js';