Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event on mount #196

Closed
kelunik opened this issue Dec 14, 2020 · 1 comment
Closed

Event on mount #196

kelunik opened this issue Dec 14, 2020 · 1 comment

Comments

@kelunik
Copy link

kelunik commented Dec 14, 2020

Thank you for your component! I've implemented an automatic size switch with it. However, I had to manually add a mounted() hook to determine the initial size.

mounted(): void {
   this.handleResize({
      width: (this.$el as HTMLElement).offsetWidth,
      height: (this.$el as HTMLElement).offsetHeight
   });
},

Would you be interested in me submitting a PR to add a property to also fire an event on mount? I'm thinking about appear, just like Vue's <transition />.

@Akryum Akryum closed this as completed in 23302d6 Dec 29, 2020
@kelunik
Copy link
Author

kelunik commented Dec 29, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant