fix(Toast): failed to sync clear toast

This commit is contained in:
chenjiahan
2021-09-29 10:32:54 +08:00
committed by neverland
parent 9f1c1a8d81
commit a48caa7c98
+4 -1
View File
@@ -16,10 +16,13 @@ export function usePopupState() {
const open = (props: Record<string, any>) => {
extend(state, props);
// for transition
nextTick(() => toggle(true));
};
const close = () => toggle(false);
const close = () => {
nextTick(() => toggle(false));
};
useExpose({ open, close, toggle });