@nutui/nutui-react-taro 1.5.9 → 1.5.10
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 +6 -0
- package/dist/esm/Calendar.js +2 -2
- package/dist/esm/CalendarItem.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 +2 -2
- 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 +2 -1
- package/dist/nutui.react.umd.js +2 -1
- package/dist/style.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
@@ -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';
|
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.10 Wed Jun 28 2023 17:32:25 GMT+0800 (China Standard Time)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -5522,6 +5522,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5522
5522
|
}
|
|
5523
5523
|
const target = e.target;
|
|
5524
5524
|
const currentScrollTop = target.scrollTop;
|
|
5525
|
+
Taro.getEnv() === "WEB" && setScrollTop(currentScrollTop);
|
|
5525
5526
|
let current = Math.floor(currentScrollTop / state.avgHeight);
|
|
5526
5527
|
if (current === 0) {
|
|
5527
5528
|
if (currentScrollTop >= state.monthsData[current + 1].cssScrollHeight) {
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v1.5.
|
|
11
|
+
* @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:32:25 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -5538,6 +5538,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5538
5538
|
}
|
|
5539
5539
|
const target = e.target;
|
|
5540
5540
|
const currentScrollTop = target.scrollTop;
|
|
5541
|
+
Taro.getEnv() === "WEB" && setScrollTop(currentScrollTop);
|
|
5541
5542
|
let current = Math.floor(currentScrollTop / state.avgHeight);
|
|
5542
5543
|
if (current === 0) {
|
|
5543
5544
|
if (currentScrollTop >= state.monthsData[current + 1].cssScrollHeight) {
|
package/dist/style.mjs
CHANGED