@nutui/nutui-react-taro 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +4 -4
- package/dist/esm/DatePicker.js +3 -3
- package/dist/esm/Input.js +2 -2
- package/dist/esm/Picker.js +2 -2
- package/dist/esm/SideNavBar.js +3 -3
- package/dist/esm/SubSideNavBar.js +3 -3
- package/dist/esm/address.taro-c03b8b16.js +23 -21
- package/dist/esm/barrage.taro-d86c367a.js +22 -24
- package/dist/esm/calendaritem.taro-85a8c4fc.js +16 -18
- package/dist/esm/cascader.taro-459f7d45.js +234 -244
- package/dist/esm/{datepicker.taro-00a72ca3.js → datepicker.taro-7de67b85.js} +1 -1
- package/dist/esm/ellipsis.taro-c0de6ff4.js +76 -84
- package/dist/esm/{input.taro-65db24c3.js → input.taro-8b3f8381.js} +12 -24
- package/dist/esm/menuitem.taro-2f8e69a4.js +14 -16
- package/dist/esm/noticebar.taro-43c18dc9.js +31 -33
- package/dist/esm/nutui-react.es.js +6 -6
- package/dist/esm/offsetContext-bfb02c25.js +3 -0
- package/dist/esm/{picker.taro-e23bc9d1.js → picker.taro-9b7263ca.js} +11 -15
- package/dist/esm/popover.taro-7e5dff8c.js +15 -17
- package/dist/esm/pulltorefresh.taro-f26a20dd.js +75 -81
- package/dist/esm/range.taro-4cbe2469.js +67 -71
- package/dist/esm/{sidenavbar.taro-a828250a.js → sidenavbar.taro-3b1f1218.js} +13 -5
- package/dist/esm/{subsidenavbar.taro-4c80ad38.js → subsidenavbar.taro-f46b4c73.js} +12 -11
- package/dist/esm/swipe.taro-83bc248f.js +35 -37
- package/dist/esm/swiper.taro-852f6615.js +26 -28
- package/dist/esm/types/src/packages/input/input.d.ts +0 -8
- package/dist/esm/types/src/packages/input/input.taro.d.ts +0 -8
- package/dist/esm/useClientRect-bf69d7b3.js +10 -12
- package/dist/locales/base.js +2 -2
- package/dist/locales/en-US.js +2 -2
- package/dist/locales/id-ID.js +2 -2
- package/dist/locales/zh-CN.js +2 -2
- package/dist/locales/zh-TW.js +2 -2
- package/dist/locales/zh-UG.js +2 -2
- package/dist/nutui.react.es.js +66 -88
- package/dist/nutui.react.umd.js +66 -88
- package/dist/packages/input/input.scss +12 -12
- package/dist/style.css +1 -1
- package/dist/style.es.js +2 -2
- package/dist/types/index.d.ts +0 -8
- package/package.json +1 -1
- package/dist/esm/offsetContext-0e3d04b3.js +0 -16
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
|
|
43
43
|
## Features
|
|
44
44
|
|
|
45
|
-
* 🚀
|
|
46
|
-
* 📖 Based on JD APP
|
|
45
|
+
* 🚀 70+ High Quality Components
|
|
46
|
+
* 📖 Based on JD APP 11.0 Visual Specifications
|
|
47
47
|
* 🍭 Support Tree Shaking
|
|
48
48
|
* 📖 Extensive Documentation and Demos
|
|
49
49
|
* 💪 Written in TypeScript
|
|
50
50
|
* 💪 Support SSR (Experimental)
|
|
51
51
|
* 🍭 Support Custom Themes
|
|
52
|
-
* 🍭
|
|
52
|
+
* 🍭 90%+ Unit Test Coverage
|
|
53
53
|
* 📖 Provide Sketch Design Resources
|
|
54
54
|
|
|
55
55
|
|
|
@@ -148,4 +148,4 @@ NutUI follows [Angular Style Commit Message Conventions](https://gist.github.com
|
|
|
148
148
|
|
|
149
149
|
## Open Source License
|
|
150
150
|
|
|
151
|
-
This project is based on **MIT** protocol
|
|
151
|
+
This project is based on **MIT** protocol
|
package/dist/esm/DatePicker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DatePicker } from './datepicker.taro-
|
|
2
|
-
export { D as default } from './datepicker.taro-
|
|
1
|
+
import { D as DatePicker } from './datepicker.taro-7de67b85.js';
|
|
2
|
+
export { D as default } from './datepicker.taro-7de67b85.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './picker.taro-
|
|
4
|
+
import './picker.taro-9b7263ca.js';
|
|
5
5
|
import './popup.taro-33d0bbc8.js';
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
import 'react-transition-group';
|
package/dist/esm/Input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as Input } from './input.taro-
|
|
2
|
-
export { I as default } from './input.taro-
|
|
1
|
+
import { I as Input } from './input.taro-8b3f8381.js';
|
|
2
|
+
export { I as default } from './input.taro-8b3f8381.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './icon.taro-1d0d4fb7.js';
|
|
5
5
|
import './bem-893ad28d.js';
|
package/dist/esm/Picker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Picker } from './picker.taro-
|
|
2
|
-
export { P as default } from './picker.taro-
|
|
1
|
+
import { P as Picker } from './picker.taro-9b7263ca.js';
|
|
2
|
+
export { P as default } from './picker.taro-9b7263ca.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './popup.taro-33d0bbc8.js';
|
|
5
5
|
import 'react-dom';
|
package/dist/esm/SideNavBar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SideNavBar } from './sidenavbar.taro-
|
|
2
|
-
export { S as default } from './sidenavbar.taro-
|
|
1
|
+
import { S as SideNavBar } from './sidenavbar.taro-3b1f1218.js';
|
|
2
|
+
export { S as default } from './sidenavbar.taro-3b1f1218.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './configprovider.taro-8bdb3a28.js';
|
|
5
5
|
import 'lodash';
|
|
@@ -13,4 +13,4 @@ import './bem-893ad28d.js';
|
|
|
13
13
|
import '@bem-react/classname';
|
|
14
14
|
import './icon.taro-1d0d4fb7.js';
|
|
15
15
|
import './typings-1c5f2628.js';
|
|
16
|
-
import './offsetContext-
|
|
16
|
+
import './offsetContext-bfb02c25.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SubSideNavBar } from './subsidenavbar.taro-
|
|
2
|
-
export { S as default } from './subsidenavbar.taro-
|
|
1
|
+
import { S as SubSideNavBar } from './subsidenavbar.taro-f46b4c73.js';
|
|
2
|
+
export { S as default } from './subsidenavbar.taro-f46b4c73.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './offsetContext-
|
|
4
|
+
import './offsetContext-bfb02c25.js';
|
|
@@ -275,32 +275,34 @@ var CustomRender = function CustomRender(props) {
|
|
|
275
275
|
if (modelValue.length > 0) {
|
|
276
276
|
var tagIndex = 0;
|
|
277
277
|
var selectedRegionC = selectedRegion && Object.assign(selectedRegion);
|
|
278
|
-
|
|
278
|
+
var _loop = function _loop() {
|
|
279
279
|
if (regionList[tabName[index]].length === 0) {
|
|
280
280
|
tagIndex = index - 1;
|
|
281
281
|
setTabIndex(index - 1);
|
|
282
|
-
break;
|
|
282
|
+
return "break";
|
|
283
283
|
} else {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
setSelectedRegion(selectedRegionC);
|
|
302
|
-
})();
|
|
284
|
+
var val = modelValue[index];
|
|
285
|
+
var arr = regionList[tabName[index]];
|
|
286
|
+
if (privateType === 'custom') {
|
|
287
|
+
selectedRegionC[[tabName[index]]] = arr.filter(function (item) {
|
|
288
|
+
return item.id === val;
|
|
289
|
+
})[0];
|
|
290
|
+
} else if (privateType === 'custom2') {
|
|
291
|
+
var sumArr = [];
|
|
292
|
+
arr.forEach(function (item) {
|
|
293
|
+
sumArr.push.apply(sumArr, _toConsumableArray(item.list));
|
|
294
|
+
});
|
|
295
|
+
selectedRegionC[[tabName[index]]] = sumArr.filter(function (item) {
|
|
296
|
+
return item.id === val;
|
|
297
|
+
})[0];
|
|
298
|
+
}
|
|
299
|
+
tagIndex = index;
|
|
300
|
+
setSelectedRegion(selectedRegionC);
|
|
303
301
|
}
|
|
302
|
+
};
|
|
303
|
+
for (var index = 0; index < modelValue.length; index++) {
|
|
304
|
+
var _ret = _loop();
|
|
305
|
+
if (_ret === "break") break;
|
|
304
306
|
}
|
|
305
307
|
setTabIndex(tagIndex);
|
|
306
308
|
lineAnimation(tagIndex);
|
|
@@ -58,30 +58,28 @@ var InternalBarrage = function InternalBarrage(props, ref) {
|
|
|
58
58
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
59
59
|
var _index, el;
|
|
60
60
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
61
|
-
while (1) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return _context.stop();
|
|
84
|
-
}
|
|
61
|
+
while (1) switch (_context.prev = _context.next) {
|
|
62
|
+
case 0:
|
|
63
|
+
_index = loop ? index.current % barrageList.length : index.current;
|
|
64
|
+
el = document.createElement("div");
|
|
65
|
+
el.innerHTML = barrageList[_index];
|
|
66
|
+
el.classList.add('barrage-item');
|
|
67
|
+
barrageContainer.current.appendChild(el);
|
|
68
|
+
Taro.createSelectorQuery().select('.barrage-item').boundingClientRect(function (res) {
|
|
69
|
+
console.log('res', res);
|
|
70
|
+
var height = res === null || res === void 0 ? void 0 : res.height;
|
|
71
|
+
el.classList.add('move');
|
|
72
|
+
el.style.animationDuration = "".concat(speeds, "ms");
|
|
73
|
+
el.style.top = "".concat(_index % rows * (height + top) + 20, "px");
|
|
74
|
+
el.dataset.index = "".concat(_index);
|
|
75
|
+
el.addEventListener('animationend', function () {
|
|
76
|
+
barrageContainer.current.removeChild(el);
|
|
77
|
+
});
|
|
78
|
+
index.current++;
|
|
79
|
+
}).exec();
|
|
80
|
+
case 6:
|
|
81
|
+
case "end":
|
|
82
|
+
return _context.stop();
|
|
85
83
|
}
|
|
86
84
|
}, _callee);
|
|
87
85
|
}));
|
|
@@ -341,24 +341,22 @@ var CalendarItem = function CalendarItem(props) {
|
|
|
341
341
|
requestAniFrame$1( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
342
342
|
var weeksPanelRes, monthsDoms, i;
|
|
343
343
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
344
|
-
while (1) {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
return _context.stop();
|
|
361
|
-
}
|
|
344
|
+
while (1) switch (_context.prev = _context.next) {
|
|
345
|
+
case 0:
|
|
346
|
+
if (!(weeksPanel !== null && weeksPanel !== void 0 && weeksPanel.current && monthsPanel !== null && monthsPanel !== void 0 && monthsPanel.current)) {
|
|
347
|
+
_context.next = 7;
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
_context.next = 3;
|
|
351
|
+
return getRectByTaro(weeksPanel === null || weeksPanel === void 0 ? void 0 : weeksPanel.current);
|
|
352
|
+
case 3:
|
|
353
|
+
weeksPanelRes = _context.sent;
|
|
354
|
+
weeksPanelRes === null || weeksPanelRes === void 0 ? void 0 : weeksPanelRes.bottom;
|
|
355
|
+
monthsDoms = monthsPanel.current.getElementsByClassName('calendar-month');
|
|
356
|
+
for (i = 0; i < monthsDoms.length; i++) {}
|
|
357
|
+
case 7:
|
|
358
|
+
case "end":
|
|
359
|
+
return _context.stop();
|
|
362
360
|
}
|
|
363
361
|
}, _callee);
|
|
364
362
|
})));
|