types(Lazyload): add typing (#8296)

This commit is contained in:
neverland
2021-03-07 10:37:22 +08:00
committed by GitHub
parent 4f080853ca
commit 7aff50f9a4
4 changed files with 7 additions and 12 deletions
+2 -7
View File
@@ -12,15 +12,10 @@ export function usePopupState() {
const open = (props: Record<string, any>) => {
Object.assign(state, props);
nextTick(() => {
toggle(true);
});
nextTick(() => toggle(true));
};
const close = () => {
toggle(false);
};
const close = () => toggle(false);
useExpose({ open, close, toggle });