@nutui/nutui-react 1.5.2-beta.1 → 1.5.2-beta.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 CHANGED
@@ -1,7 +1,6 @@
1
1
  # v1.5.2
2
2
  `2023-04-26`
3
3
 
4
- * 🔨 chore: release v1.5.1 @junjun666
5
4
  * :bug: fix: countdown 修改销毁实例方法 (#944) @拧巴的猫
6
5
  * :bug: fix: uploader组件onSuccess和onFailure方法添加file参数表示当前上传文件 (#932) @cuicuiworld
7
6
 
@@ -74,7 +74,7 @@ var CollapseItem = function CollapseItem(props) {
74
74
  // 一开始content都有高度,在这里根据isOpen,改变其高度
75
75
  setTimeout(function () {
76
76
  if (domHeight !== -1) {
77
- isOpen ? setCurrHeight("".concat(domHeight, "px")) : setCurrHeight('0px');
77
+ isOpen ? setCurrHeight("auto") : setCurrHeight('0px');
78
78
  }
79
79
  var newIconStyle = isOpen ? {
80
80
  transform: "translateY(-50%) rotate(".concat(rotate, "deg)")
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.2-beta.1 Wed Apr 26 2023 16:28:23 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.2-beta.2 Wed Oct 18 2023 17:33:49 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 v1.5.2-beta.1 Wed Apr 26 2023 16:28:23 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.2-beta.2 Wed Oct 18 2023 17:33:49 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 v1.5.2-beta.1 Wed Apr 26 2023 16:28:23 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.2-beta.2 Wed Oct 18 2023 17:33:49 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 v1.5.2-beta.1 Wed Apr 26 2023 16:28:23 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.2-beta.2 Wed Oct 18 2023 17:33:49 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 v1.5.2-beta.1 Wed Apr 26 2023 16:28:23 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.2-beta.2 Wed Oct 18 2023 17:33:49 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 v1.5.2-beta.1 Wed Apr 26 2023 16:28:23 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui-react v1.5.2-beta.2 Wed Oct 18 2023 17:33:49 GMT+0800 (China Standard Time)
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.2-beta.1 Wed Apr 26 2023 16:27:53 GMT+0800 (中国标准时间)
9
+ * @nutui/nutui-react v1.5.2-beta.2 Wed Oct 18 2023 17:33:22 GMT+0800 (China Standard Time)
10
10
  * (c) 2023 @jdf2e.
11
11
  * Released under the MIT License.
12
12
  */
@@ -19262,7 +19262,7 @@ const CollapseItem = (props) => {
19262
19262
  useEffect(() => {
19263
19263
  setTimeout(() => {
19264
19264
  if (domHeight !== -1) {
19265
- isOpen ? setCurrHeight(`${domHeight}px`) : setCurrHeight("0px");
19265
+ isOpen ? setCurrHeight(`auto`) : setCurrHeight("0px");
19266
19266
  }
19267
19267
  const newIconStyle = isOpen ? { transform: `translateY(-50%) rotate(${rotate}deg)` } : { transform: "translateY(-50%)" };
19268
19268
  setIconStyle(newIconStyle);
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  return value;
10
10
  };
11
11
  /*!
12
- * @nutui/nutui-react v1.5.2-beta.1 Wed Apr 26 2023 16:27:53 GMT+0800 (中国标准时间)
12
+ * @nutui/nutui-react v1.5.2-beta.2 Wed Oct 18 2023 17:33:22 GMT+0800 (China Standard Time)
13
13
  * (c) 2023 @jdf2e.
14
14
  * Released under the MIT License.
15
15
  */
@@ -19280,7 +19280,7 @@ Please add \`${key}Action\` when creating your handler.`);
19280
19280
  React.useEffect(() => {
19281
19281
  setTimeout(() => {
19282
19282
  if (domHeight !== -1) {
19283
- isOpen ? setCurrHeight(`${domHeight}px`) : setCurrHeight("0px");
19283
+ isOpen ? setCurrHeight(`auto`) : setCurrHeight("0px");
19284
19284
  }
19285
19285
  const newIconStyle = isOpen ? { transform: `translateY(-50%) rotate(${rotate}deg)` } : { transform: "translateY(-50%)" };
19286
19286
  setIconStyle(newIconStyle);