@nutui/nutui-react-taro 2.0.14 → 2.0.15-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/Dialog.js +1 -1
- package/dist/esm/{dialog.taro-519e45af.js → dialog.taro-309908fb.js} +2 -2
- package/dist/esm/nutui-react.es.js +1 -1
- 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/tr-TR.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.es.js +5 -2
- package/dist/nutui.react.umd.js +5 -2
- package/dist/style.mjs +1 -1
- package/package.json +1 -1
package/dist/esm/Dialog.js
CHANGED
|
@@ -57,7 +57,7 @@ const defaultProps = {
|
|
|
57
57
|
const BaseDialog = (props) => {
|
|
58
58
|
const classPrefix = "nut-dialog";
|
|
59
59
|
const { locale } = useConfig();
|
|
60
|
-
const { params: { id, visible, footer, title, footerDirection, hideConfirmButton, hideCancelButton, lockScroll, disableConfirmButton, closeOnOverlayClick, onOverlayClick, confirmText, cancelText, overlay, onClose, onCancel, onConfirm, beforeCancel, beforeClose }, setParams } = useParams({ ...defaultProps, ...props });
|
|
60
|
+
const { params: { id, visible, footer, title, content, children, footerDirection, hideConfirmButton, hideCancelButton, lockScroll, disableConfirmButton, closeOnOverlayClick, onOverlayClick, confirmText, cancelText, overlay, onClose, onCancel, onConfirm, beforeCancel, beforeClose }, setParams } = useParams({ ...defaultProps, ...props });
|
|
61
61
|
useCustomEvent(id, ({ status, options }) => {
|
|
62
62
|
if (status) {
|
|
63
63
|
setParams({ ...options, visible: true });
|
|
@@ -110,7 +110,7 @@ const BaseDialog = (props) => {
|
|
|
110
110
|
React__default.createElement(
|
|
111
111
|
CSSTransition,
|
|
112
112
|
{ in: visible, timeout: 300, classNames: "fadeDialog", unmountOnExit: true, appear: true },
|
|
113
|
-
React__default.createElement(Content, { title, footer: renderFooter(), footerDirection, visible })
|
|
113
|
+
React__default.createElement(Content, { title, footer: renderFooter(), footerDirection, visible }, content || children)
|
|
114
114
|
)
|
|
115
115
|
)
|
|
116
116
|
);
|
|
@@ -48,7 +48,7 @@ import { T as T5 } from "./textarea.taro-6ebe789c.js";
|
|
|
48
48
|
import { U } from "./uploader.taro-c0bcca89.js";
|
|
49
49
|
import { A as A2 } from "./actionsheet.taro-0a411006.js";
|
|
50
50
|
import { B as B3 } from "./badge.taro-289489e5.js";
|
|
51
|
-
import { B as B4 } from "./dialog.taro-
|
|
51
|
+
import { B as B4 } from "./dialog.taro-309908fb.js";
|
|
52
52
|
import { D as D3 } from "./drag.taro-ce333e51.js";
|
|
53
53
|
import { E as E2 } from "./empty.taro-05f15f93.js";
|
|
54
54
|
import { I as I4 } from "./infiniteloading.taro-cb3b949e.js";
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.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.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v2.0.
|
|
8
|
+
* @nutui/nutui-react-taro v2.0.15-beta.0 Fri Aug 18 2023 18:17:07 GMT+0800 (China Standard Time)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -14117,6 +14117,8 @@ const BaseDialog = (props) => {
|
|
|
14117
14117
|
visible,
|
|
14118
14118
|
footer,
|
|
14119
14119
|
title,
|
|
14120
|
+
content,
|
|
14121
|
+
children,
|
|
14120
14122
|
footerDirection,
|
|
14121
14123
|
hideConfirmButton,
|
|
14122
14124
|
hideCancelButton,
|
|
@@ -14225,7 +14227,8 @@ const BaseDialog = (props) => {
|
|
|
14225
14227
|
footer: renderFooter(),
|
|
14226
14228
|
footerDirection,
|
|
14227
14229
|
visible
|
|
14228
|
-
}
|
|
14230
|
+
},
|
|
14231
|
+
content || children
|
|
14229
14232
|
)
|
|
14230
14233
|
))
|
|
14231
14234
|
);
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v2.0.
|
|
11
|
+
* @nutui/nutui-react-taro v2.0.15-beta.0 Fri Aug 18 2023 18:17:07 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -14133,6 +14133,8 @@ var __publicField = (obj, key, value) => {
|
|
|
14133
14133
|
visible,
|
|
14134
14134
|
footer,
|
|
14135
14135
|
title,
|
|
14136
|
+
content,
|
|
14137
|
+
children,
|
|
14136
14138
|
footerDirection,
|
|
14137
14139
|
hideConfirmButton,
|
|
14138
14140
|
hideCancelButton,
|
|
@@ -14241,7 +14243,8 @@ var __publicField = (obj, key, value) => {
|
|
|
14241
14243
|
footer: renderFooter(),
|
|
14242
14244
|
footerDirection,
|
|
14243
14245
|
visible
|
|
14244
|
-
}
|
|
14246
|
+
},
|
|
14247
|
+
content || children
|
|
14245
14248
|
)
|
|
14246
14249
|
))
|
|
14247
14250
|
);
|
package/dist/style.mjs
CHANGED