@nutui/nutui-react 2.0.0-alpha.6 → 2.0.0-alpha.7

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,7 @@
1
+ # v2.0.0-alpha.7
2
+ `2023-05-12`
3
+ * :bug: fix: tabs children 变化需要更新选中状态 @oasis-cloud
4
+
1
5
  # v2.0.0-alpha.6
2
6
  `2023-05-12`
3
7
 
package/dist/esm/tabs2.js CHANGED
@@ -108,7 +108,9 @@ var Tabs = function Tabs2(props) {
108
108
  current = value;
109
109
  }
110
110
  });
111
- setValue(current);
111
+ if (current !== "") {
112
+ setValue(current);
113
+ }
112
114
  }, [children]);
113
115
  var classes = classNames(classPrefix, "".concat(classPrefix, "--").concat(direction), className);
114
116
  var classesTitle = classNames("".concat(classPrefix, "__titles"), (_classNames = {}, _defineProperty(_classNames, "".concat(classPrefix, "__titles--").concat(activeType), activeType), _defineProperty(_classNames, "".concat(classPrefix, "__titles--scrollable"), true), _defineProperty(_classNames, "".concat(classPrefix, "__titles--").concat(align), align), _classNames));
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.0-alpha.6 Fri May 12 2023 15:14:14 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.0-alpha.7 Fri May 12 2023 15:35:59 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 v2.0.0-alpha.6 Fri May 12 2023 15:14:14 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.0-alpha.7 Fri May 12 2023 15:35:59 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 v2.0.0-alpha.6 Fri May 12 2023 15:14:14 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.0-alpha.7 Fri May 12 2023 15:35:59 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 v2.0.0-alpha.6 Fri May 12 2023 15:14:14 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.0-alpha.7 Fri May 12 2023 15:35:59 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 v2.0.0-alpha.6 Fri May 12 2023 15:14:14 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.0-alpha.7 Fri May 12 2023 15:35:59 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 v2.0.0-alpha.6 Fri May 12 2023 15:14:14 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.0-alpha.7 Fri May 12 2023 15:35:59 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 v2.0.0-alpha.6 Fri May 12 2023 15:13:32 GMT+0800 (China Standard Time)
9
+ * @nutui/nutui-react v2.0.0-alpha.7 Fri May 12 2023 15:35:24 GMT+0800 (China Standard Time)
10
10
  * (c) 2023 @jdf2e.
11
11
  * Released under the MIT License.
12
12
  */
@@ -12577,7 +12577,9 @@ const Tabs = (props) => {
12577
12577
  current = value;
12578
12578
  }
12579
12579
  });
12580
- setValue(current);
12580
+ if (current !== "") {
12581
+ setValue(current);
12582
+ }
12581
12583
  }, [children]);
12582
12584
  const classes = classNames(
12583
12585
  classPrefix$a,
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  return value;
10
10
  };
11
11
  /*!
12
- * @nutui/nutui-react v2.0.0-alpha.6 Fri May 12 2023 15:13:32 GMT+0800 (China Standard Time)
12
+ * @nutui/nutui-react v2.0.0-alpha.7 Fri May 12 2023 15:35:24 GMT+0800 (China Standard Time)
13
13
  * (c) 2023 @jdf2e.
14
14
  * Released under the MIT License.
15
15
  */
@@ -12595,7 +12595,9 @@ Please add \`${key}Action\` when creating your handler.`);
12595
12595
  current = value;
12596
12596
  }
12597
12597
  });
12598
- setValue(current);
12598
+ if (current !== "") {
12599
+ setValue(current);
12600
+ }
12599
12601
  }, [children]);
12600
12602
  const classes = classNames(
12601
12603
  classPrefix$a,
package/dist/style.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.0-alpha.6 Fri May 12 2023 15:14:02 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.0-alpha.7 Fri May 12 2023 15:35:45 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",
3
- "version": "2.0.0-alpha.6",
3
+ "version": "2.0.0-alpha.7",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",