react-vant-nova 1.0.7-test → 1.0.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/bundle/react-vant-nova.es.js +7 -9
- package/bundle/react-vant-nova.js +7 -9
- package/bundle/react-vant-nova.min.js +2 -2
- package/es/toast/Toast.js +30 -37
- package/lib/toast/Toast.js +30 -37
- package/package.json +1 -1
|
@@ -5634,15 +5634,13 @@ const Toast$1 = (p) => {
|
|
|
5634
5634
|
return null;
|
|
5635
5635
|
};
|
|
5636
5636
|
const renderMessage = () => {
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
return null;
|
|
5645
|
-
}, 100);
|
|
5637
|
+
const { message } = props;
|
|
5638
|
+
if (isDef(message) && message !== "") {
|
|
5639
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
5640
|
+
className: clsx(bem$10("info"))
|
|
5641
|
+
}, message);
|
|
5642
|
+
}
|
|
5643
|
+
return null;
|
|
5646
5644
|
};
|
|
5647
5645
|
return /* @__PURE__ */ React.createElement(Popup, {
|
|
5648
5646
|
className: clsx([
|
|
@@ -12193,15 +12193,13 @@
|
|
|
12193
12193
|
return null;
|
|
12194
12194
|
};
|
|
12195
12195
|
const renderMessage = () => {
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
return null;
|
|
12204
|
-
}, 100);
|
|
12196
|
+
const { message } = props;
|
|
12197
|
+
if (isDef(message) && message !== "") {
|
|
12198
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
12199
|
+
className: clsx(bem$10("info"))
|
|
12200
|
+
}, message);
|
|
12201
|
+
}
|
|
12202
|
+
return null;
|
|
12205
12203
|
};
|
|
12206
12204
|
return /* @__PURE__ */ React__default["default"].createElement(Popup, {
|
|
12207
12205
|
className: clsx([
|