提交 3a1db07d 编写于 作者: S suzigang

fix: popup close event

上级 eada65c6
......@@ -162,6 +162,7 @@ export default create({
state.showSlot = true;
}
}
emit('open');
};
const close = () => {
......@@ -172,6 +173,7 @@ export default create({
if (props.destroyOnClose) {
setTimeout(() => {
state.showSlot = false;
emit('close');
}, +props.duration * 1000);
}
}
......@@ -238,10 +240,8 @@ export default create({
value => {
if (value) {
open();
emit('open');
} else {
close();
emit('close');
}
}
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册