@nutui/nutui-react 1.5.7 → 1.5.8

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.8
2
+ `2023-06-07`
3
+
4
+ * :bug: fix(watermark): 修复小程序下画布尺寸问题 (#1073) @Eiinu
5
+
6
+
1
7
  # v1.5.7
2
8
  `2023-05-31`
3
9
 
@@ -395,9 +395,6 @@ var CalendarItem = React__default.forwardRef(function (props, ref) {
395
395
  }
396
396
  } else {
397
397
  var viewPosition = Math.round(currentScrollTop + viewHeight);
398
- if (viewPosition < state.monthsData[current].cssScrollHeight + state.monthsData[current].cssHeight && currentScrollTop > state.monthsData[current - 1].cssScrollHeight) {
399
- current -= 1;
400
- }
401
398
  if (current + 1 <= state.monthsNum && viewPosition >= state.monthsData[current + 1].cssScrollHeight + state.monthsData[current + 1].cssHeight) {
402
399
  current += 1;
403
400
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.7 Wed May 31 2023 13:56:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.8 Wed Jun 07 2023 14:43:04 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.7 Wed May 31 2023 13:56:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.8 Wed Jun 07 2023 14:43:04 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.7 Wed May 31 2023 13:56:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.8 Wed Jun 07 2023 14:43:04 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.7 Wed May 31 2023 13:56:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.8 Wed Jun 07 2023 14:43:04 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.7 Wed May 31 2023 13:56:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.8 Wed Jun 07 2023 14:43:04 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.7 Wed May 31 2023 13:56:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.8 Wed Jun 07 2023 14:43:04 GMT+0800 (中国标准时间)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  var _a;
8
8
  /*!
9
- * @nutui/nutui-react v1.5.7 Wed May 31 2023 13:55:54 GMT+0800 (中国标准时间)
9
+ * @nutui/nutui-react v1.5.8 Wed Jun 07 2023 14:42:21 GMT+0800 (中国标准时间)
10
10
  * (c) 2023 @jdf2e.
11
11
  * Released under the MIT License.
12
12
  */
@@ -10658,9 +10658,6 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10658
10658
  }
10659
10659
  } else {
10660
10660
  const viewPosition = Math.round(currentScrollTop + viewHeight);
10661
- if (viewPosition < state.monthsData[current].cssScrollHeight + state.monthsData[current].cssHeight && currentScrollTop > state.monthsData[current - 1].cssScrollHeight) {
10662
- current -= 1;
10663
- }
10664
10661
  if (current + 1 <= state.monthsNum && viewPosition >= state.monthsData[current + 1].cssScrollHeight + state.monthsData[current + 1].cssHeight) {
10665
10662
  current += 1;
10666
10663
  }
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  return value;
10
10
  };
11
11
  /*!
12
- * @nutui/nutui-react v1.5.7 Wed May 31 2023 13:55:54 GMT+0800 (中国标准时间)
12
+ * @nutui/nutui-react v1.5.8 Wed Jun 07 2023 14:42:21 GMT+0800 (中国标准时间)
13
13
  * (c) 2023 @jdf2e.
14
14
  * Released under the MIT License.
15
15
  */
@@ -10676,9 +10676,6 @@ Please add \`${key}Action\` when creating your handler.`);
10676
10676
  }
10677
10677
  } else {
10678
10678
  const viewPosition = Math.round(currentScrollTop + viewHeight);
10679
- if (viewPosition < state.monthsData[current].cssScrollHeight + state.monthsData[current].cssHeight && currentScrollTop > state.monthsData[current - 1].cssScrollHeight) {
10680
- current -= 1;
10681
- }
10682
10679
  if (current + 1 <= state.monthsNum && viewPosition >= state.monthsData[current + 1].cssScrollHeight + state.monthsData[current + 1].cssHeight) {
10683
10680
  current += 1;
10684
10681
  }
package/dist/style.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.7 Wed May 31 2023 13:56:13 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.8 Wed Jun 07 2023 14:42:44 GMT+0800 (中国标准时间)
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",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序",
5
5
  "title": "NutUI-React",
6
6
  "keywords": [