feat(common): improve confirmation modal api
This commit is contained in:
@@ -18,12 +18,12 @@ const CLIP_HEIGHT = LOGICAL_HEIGHT - BOTTOM_BAR_HEIGHT;
|
||||
|
||||
const handleActivateA = () => {
|
||||
confirmationModal.onConfirm?.();
|
||||
confirmationModal.close();
|
||||
confirmationModal.close("confirm");
|
||||
};
|
||||
|
||||
const handleActivateB = () => {
|
||||
confirmationModal.onCancel?.();
|
||||
confirmationModal.close();
|
||||
confirmationModal.close("cancel");
|
||||
};
|
||||
|
||||
onRender((ctx) => {
|
||||
@@ -45,7 +45,7 @@ onRender((ctx) => {
|
||||
}, 100);
|
||||
|
||||
onUnmounted(() => {
|
||||
confirmationModal.close();
|
||||
confirmationModal.close("cancel");
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user