@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 CHANGED
@@ -1,3 +1,9 @@
1
+ # v1.5.10
2
+ `2023-06-28`
3
+
4
+ * :bug: fix: calendar taro h5 无法滚动 (#1157) @xiaoyatong
5
+
6
+
1
7
  # v1.5.9
2
8
  `2023-06-13`
3
9
 
@@ -1,4 +1,4 @@
1
- import { C as Calendar } from './calendar.taro-2a19ee22.js';
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-e3f13a3b.js';
13
+ import './calendaritem.taro-16f0103d.js';
14
14
  import '@tarojs/taro';
15
15
  import './configprovider.taro-8d71eb49.js';
16
16
  import 'lodash.kebabcase';
@@ -1,4 +1,4 @@
1
- import { C as CalendarItem } from './calendaritem.taro-e3f13a3b.js';
1
+ import { C as CalendarItem } from './calendaritem.taro-16f0103d.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@tarojs/components';
@@ -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-e3f13a3b.js';
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-2a19ee22.js';
31
- export { C as CalendarItem } from './calendaritem.taro-e3f13a3b.js';
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';
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.9 Tue Jun 13 2023 15:54:08 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.9 Tue Jun 13 2023 15:54:08 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.9 Tue Jun 13 2023 15:54:08 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.9 Tue Jun 13 2023 15:54:08 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.9 Tue Jun 13 2023 15:54:08 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.9 Tue Jun 13 2023 15:54:08 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:33:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  /*!
8
- * @nutui/nutui-react-taro v1.5.9 Tue Jun 13 2023 15:53:31 GMT+0800 (China Standard Time)
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) {
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
8
8
  return value;
9
9
  };
10
10
  /*!
11
- * @nutui/nutui-react-taro v1.5.9 Tue Jun 13 2023 15:53:31 GMT+0800 (China Standard Time)
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.5.9 Tue Jun 13 2023 15:53:51 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.5.10 Wed Jun 28 2023 17:32:46 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react-taro",
3
- "version": "1.5.9",
3
+ "version": "1.5.10",
4
4
  "description": "京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序",
5
5
  "title": "NutUI-React",
6
6
  "keywords": [