xiaochan 1 ano atrás
pai
commit
7068be8a05
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      src/components/cy/dialog/src/useCyDialog.ts

+ 1 - 2
src/components/cy/dialog/src/useCyDialog.ts

@@ -119,7 +119,7 @@ export function UseCyDialog(props: IsCyDialog, emit: any) {
     useDraggable(boxRef, headerRef, draggable)
 
     function closed(closingMethod: ClosingMethod, val: any) {
-        emit('closed')
+        emit('closed', closingMethod, val)
     }
 
     async function handleConfirm() {
@@ -143,7 +143,6 @@ export function UseCyDialog(props: IsCyDialog, emit: any) {
         next(null)
     }
 
-
     async function handleCancel() {
         state.cancelLoading = true;