@nutui/nutui-react 1.5.13-beta.0 → 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.
- package/dist/esm/MenuItem.js +8 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +9 -1
- package/dist/nutui.react.umd.js +9 -1
- package/dist/style.mjs +1 -1
- package/package.json +1 -1
package/dist/esm/MenuItem.js
CHANGED
|
@@ -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]);
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
var _a;
|
|
8
8
|
/*!
|
|
9
|
-
* @nutui/nutui-react v1.5.
|
|
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]);
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9
9
|
return value;
|
|
10
10
|
};
|
|
11
11
|
/*!
|
|
12
|
-
* @nutui/nutui-react v1.5.
|
|
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