@nutui/nutui-react 1.5.13 → 1.5.14-beta.0

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.
@@ -55,6 +55,14 @@ var MenuItem = forwardRef(function (props, ref) {
55
55
  useEffect(function () {
56
56
  setShowPopup(showPopup);
57
57
  }, [showPopup]);
58
+ useEffect(function () {
59
+ setValue(value);
60
+ options === null || options === void 0 ? void 0 : options.map(function (option) {
61
+ if (option.value === value) {
62
+ setTitle(option.text);
63
+ }
64
+ });
65
+ }, [value]);
58
66
  useEffect(function () {
59
67
  getParentOffset();
60
68
  }, [_showPopup]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.13 Mon Dec 11 2023 14:20:30 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.14-beta.0 Wed Mar 13 2024 16:38:19 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.13 Mon Dec 11 2023 14:20:30 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.14-beta.0 Wed Mar 13 2024 16:38:19 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.13 Mon Dec 11 2023 14:20:30 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.14-beta.0 Wed Mar 13 2024 16:38:19 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.13 Mon Dec 11 2023 14:20:30 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.14-beta.0 Wed Mar 13 2024 16:38:19 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.13 Mon Dec 11 2023 14:20:30 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.14-beta.0 Wed Mar 13 2024 16:38:19 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.13 Mon Dec 11 2023 14:20:30 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.14-beta.0 Wed Mar 13 2024 16:38:19 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.13 Mon Dec 11 2023 14:19:51 GMT+0800 (China Standard Time)
9
+ * @nutui/nutui-react v1.5.14-beta.0 Wed Mar 13 2024 16:37:45 GMT+0800 (China Standard Time)
10
10
  * (c) 2023 @jdf2e.
11
11
  * Released under the MIT License.
12
12
  */
@@ -9310,6 +9310,14 @@ const MenuItem = forwardRef((props, ref) => {
9310
9310
  useEffect(() => {
9311
9311
  setShowPopup(showPopup);
9312
9312
  }, [showPopup]);
9313
+ useEffect(() => {
9314
+ setValue(value);
9315
+ options2 == null ? void 0 : options2.map((option) => {
9316
+ if (option.value === value) {
9317
+ setTitle(option.text);
9318
+ }
9319
+ });
9320
+ }, [value]);
9313
9321
  useEffect(() => {
9314
9322
  getParentOffset();
9315
9323
  }, [_showPopup]);
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  return value;
10
10
  };
11
11
  /*!
12
- * @nutui/nutui-react v1.5.13 Mon Dec 11 2023 14:19:51 GMT+0800 (China Standard Time)
12
+ * @nutui/nutui-react v1.5.14-beta.0 Wed Mar 13 2024 16:37:45 GMT+0800 (China Standard Time)
13
13
  * (c) 2023 @jdf2e.
14
14
  * Released under the MIT License.
15
15
  */
@@ -9328,6 +9328,14 @@ Please add \`${key}Action\` when creating your handler.`);
9328
9328
  React.useEffect(() => {
9329
9329
  setShowPopup(showPopup);
9330
9330
  }, [showPopup]);
9331
+ React.useEffect(() => {
9332
+ setValue(value);
9333
+ options2 == null ? void 0 : options2.map((option) => {
9334
+ if (option.value === value) {
9335
+ setTitle(option.text);
9336
+ }
9337
+ });
9338
+ }, [value]);
9331
9339
  React.useEffect(() => {
9332
9340
  getParentOffset();
9333
9341
  }, [_showPopup]);
package/dist/style.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.13 Mon Dec 11 2023 14:20:10 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.14-beta.0 Wed Mar 13 2024 16:38:06 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": "1.5.13",
3
+ "version": "1.5.14-beta.0",
4
4
  "description": "京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序",
5
5
  "title": "NutUI-React",
6
6
  "keywords": [