react-vant-nova 1.1.3-test → 1.1.5-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.
|
@@ -5606,7 +5606,6 @@ const Toast$1 = (p) => {
|
|
|
5606
5606
|
}
|
|
5607
5607
|
};
|
|
5608
5608
|
useEffect(() => {
|
|
5609
|
-
debugger;
|
|
5610
5609
|
console.log("useEffect");
|
|
5611
5610
|
if (!props.visible) {
|
|
5612
5611
|
lockClick(false);
|
|
@@ -5704,7 +5703,7 @@ const ToastObj = (p) => {
|
|
|
5704
5703
|
const bodyContainer = resolveContainer(teleport);
|
|
5705
5704
|
bodyContainer.appendChild(container);
|
|
5706
5705
|
const TempToast = () => {
|
|
5707
|
-
|
|
5706
|
+
console.log("TempToast");
|
|
5708
5707
|
const options = {
|
|
5709
5708
|
duration: 2e3,
|
|
5710
5709
|
...props
|
|
@@ -5724,7 +5723,7 @@ const ToastObj = (p) => {
|
|
|
5724
5723
|
}, +state.duration || +defaultOptions.duration);
|
|
5725
5724
|
}, [container]);
|
|
5726
5725
|
const destroy = useCallback(() => {
|
|
5727
|
-
|
|
5726
|
+
console.log("destroy");
|
|
5728
5727
|
setVisible(false);
|
|
5729
5728
|
if (onClose)
|
|
5730
5729
|
onClose();
|
|
@@ -5739,7 +5738,6 @@ const ToastObj = (p) => {
|
|
|
5739
5738
|
[setState]
|
|
5740
5739
|
);
|
|
5741
5740
|
useIsomorphicLayoutEffect(() => {
|
|
5742
|
-
debugger;
|
|
5743
5741
|
console.log("useIsomorphicLayoutEffect");
|
|
5744
5742
|
setVisible(true);
|
|
5745
5743
|
if (!allowMultiple)
|
|
@@ -5763,8 +5761,10 @@ const ToastObj = (p) => {
|
|
|
5763
5761
|
});
|
|
5764
5762
|
};
|
|
5765
5763
|
render(/* @__PURE__ */ React.createElement(TempToast, null), container);
|
|
5766
|
-
|
|
5767
|
-
|
|
5764
|
+
console.log("render(<TempToast />, container)");
|
|
5765
|
+
setTimeout(() => {
|
|
5766
|
+
return update;
|
|
5767
|
+
}, 300);
|
|
5768
5768
|
};
|
|
5769
5769
|
function parseOptions(message) {
|
|
5770
5770
|
if (isObject(message)) {
|
|
@@ -12165,7 +12165,6 @@
|
|
|
12165
12165
|
}
|
|
12166
12166
|
};
|
|
12167
12167
|
React.useEffect(() => {
|
|
12168
|
-
debugger;
|
|
12169
12168
|
console.log("useEffect");
|
|
12170
12169
|
if (!props.visible) {
|
|
12171
12170
|
lockClick(false);
|
|
@@ -12263,7 +12262,7 @@
|
|
|
12263
12262
|
const bodyContainer = resolveContainer(teleport);
|
|
12264
12263
|
bodyContainer.appendChild(container);
|
|
12265
12264
|
const TempToast = () => {
|
|
12266
|
-
|
|
12265
|
+
console.log("TempToast");
|
|
12267
12266
|
const options = {
|
|
12268
12267
|
duration: 2e3,
|
|
12269
12268
|
...props
|
|
@@ -12283,7 +12282,7 @@
|
|
|
12283
12282
|
}, +state.duration || +defaultOptions.duration);
|
|
12284
12283
|
}, [container]);
|
|
12285
12284
|
const destroy = React.useCallback(() => {
|
|
12286
|
-
|
|
12285
|
+
console.log("destroy");
|
|
12287
12286
|
setVisible(false);
|
|
12288
12287
|
if (onClose)
|
|
12289
12288
|
onClose();
|
|
@@ -12298,7 +12297,6 @@
|
|
|
12298
12297
|
[setState]
|
|
12299
12298
|
);
|
|
12300
12299
|
useIsomorphicLayoutEffect$1(() => {
|
|
12301
|
-
debugger;
|
|
12302
12300
|
console.log("useIsomorphicLayoutEffect");
|
|
12303
12301
|
setVisible(true);
|
|
12304
12302
|
if (!allowMultiple)
|
|
@@ -12322,8 +12320,10 @@
|
|
|
12322
12320
|
});
|
|
12323
12321
|
};
|
|
12324
12322
|
render(/* @__PURE__ */ React__default["default"].createElement(TempToast, null), container);
|
|
12325
|
-
|
|
12326
|
-
|
|
12323
|
+
console.log("render(<TempToast />, container)");
|
|
12324
|
+
setTimeout(() => {
|
|
12325
|
+
return update2;
|
|
12326
|
+
}, 300);
|
|
12327
12327
|
};
|
|
12328
12328
|
function parseOptions(message) {
|
|
12329
12329
|
if (isObject$1(message)) {
|