File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ export const modalProps = () => ({
51
51
onOk : Function as PropType < ( e : MouseEvent ) => void > ,
52
52
onCancel : Function as PropType < ( e : MouseEvent ) => void > ,
53
53
'onUpdate:visible' : Function as PropType < ( visible : boolean ) => void > ,
54
- onChange : Function as PropType < ( visible : boolean ) => void > ,
54
+ 'onUpdate:open' : Function as PropType < ( open : boolean ) => void > ,
55
+ onChange : Function as PropType < ( open : boolean ) => void > ,
55
56
afterClose : Function as PropType < ( ) => void > ,
56
57
centered : { type : Boolean , default : undefined } ,
57
58
width : [ String , Number ] ,
@@ -179,6 +180,7 @@ export default defineComponent({
179
180
} ;
180
181
181
182
const handleOk = ( e : MouseEvent ) => {
183
+ emit ( 'update:open' , false ) ;
182
184
emit ( 'ok' , e ) ;
183
185
} ;
184
186
Original file line number Diff line number Diff line change @@ -36,6 +36,5 @@ const showModal = () => {
36
36
37
37
const handleOk = (e : MouseEvent ) => {
38
38
console .log (e );
39
- open .value = false ;
40
39
};
41
40
</script >
You can’t perform that action at this time.
0 commit comments