react-vant-nova 1.1.1-test → 1.1.2-test
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 +3 -0
- package/bundle/react-vant-nova.js +3 -0
- package/bundle/react-vant-nova.min.js +1 -1
- package/es/toast/Toast.js +1 -0
- package/es/toast/method.js +11 -6
- package/es/utils/dom/render.js +1 -0
- package/lib/toast/Toast.js +1 -0
- package/lib/toast/method.js +11 -6
- package/lib/utils/dom/render.js +1 -0
- package/package.json +1 -1
|
@@ -2063,6 +2063,7 @@ function toggleWarning(skip) {
|
|
|
2063
2063
|
const MARK = "__react_vant_root__";
|
|
2064
2064
|
function legacyRender(node, container) {
|
|
2065
2065
|
if (fullClone.render) {
|
|
2066
|
+
console.log("render");
|
|
2066
2067
|
fullClone.render(node, container);
|
|
2067
2068
|
} else {
|
|
2068
2069
|
if (createRoot) {
|
|
@@ -5634,6 +5635,7 @@ const Toast$1 = (p) => {
|
|
|
5634
5635
|
};
|
|
5635
5636
|
const renderMessage = () => {
|
|
5636
5637
|
const { message } = props;
|
|
5638
|
+
console.log("useRffect \u7684 message");
|
|
5637
5639
|
if (isDef(message) && message !== "") {
|
|
5638
5640
|
return /* @__PURE__ */ React.createElement("div", {
|
|
5639
5641
|
className: clsx(bem$10("info"))
|
|
@@ -5738,6 +5740,7 @@ const ToastObj = (p) => {
|
|
|
5738
5740
|
if (state.duration !== 0 && "duration" in state) {
|
|
5739
5741
|
timer = window.setTimeout(destroy, +state.duration);
|
|
5740
5742
|
}
|
|
5743
|
+
console.log("useIsomorphicLayoutEffect");
|
|
5741
5744
|
return () => {
|
|
5742
5745
|
if (timer !== 0) {
|
|
5743
5746
|
window.clearTimeout(timer);
|
|
@@ -2844,6 +2844,7 @@
|
|
|
2844
2844
|
const MARK = "__react_vant_root__";
|
|
2845
2845
|
function legacyRender(node, container) {
|
|
2846
2846
|
if (fullClone.render) {
|
|
2847
|
+
console.log("render");
|
|
2847
2848
|
fullClone.render(node, container);
|
|
2848
2849
|
} else {
|
|
2849
2850
|
if (createRoot) {
|
|
@@ -12193,6 +12194,7 @@
|
|
|
12193
12194
|
};
|
|
12194
12195
|
const renderMessage = () => {
|
|
12195
12196
|
const { message } = props;
|
|
12197
|
+
console.log("useRffect \u7684 message");
|
|
12196
12198
|
if (isDef(message) && message !== "") {
|
|
12197
12199
|
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
12198
12200
|
className: clsx(bem$10("info"))
|
|
@@ -12297,6 +12299,7 @@
|
|
|
12297
12299
|
if (state.duration !== 0 && "duration" in state) {
|
|
12298
12300
|
timer = window.setTimeout(destroy, +state.duration);
|
|
12299
12301
|
}
|
|
12302
|
+
console.log("useIsomorphicLayoutEffect");
|
|
12300
12303
|
return () => {
|
|
12301
12304
|
if (timer !== 0) {
|
|
12302
12305
|
window.clearTimeout(timer);
|