mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
feat(vue): composition api lifecycle methods (#22241)
This commit is contained in:
10
packages/vue/src/globalExtensions.ts
Normal file
10
packages/vue/src/globalExtensions.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { LIFECYCLE_DID_ENTER, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_ENTER, LIFECYCLE_WILL_LEAVE } from '@ionic/core';
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
export interface ComponentCustomOptions {
|
||||
[LIFECYCLE_DID_ENTER]?: () => void;
|
||||
[LIFECYCLE_DID_LEAVE]?: () => void;
|
||||
[LIFECYCLE_WILL_ENTER]?: () => void;
|
||||
[LIFECYCLE_WILL_LEAVE]?: () => void;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user