We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ResizeObserverDelegate.registerHandler can be called multiple time.
vueuc/src/resize-observer/src/delegate.ts
Lines 27 to 39 in a578387
And these methods can be used for any file that has been imported the delegate.
vueuc/src/resize-observer/src/VResizeObserver.ts
Line 9 in a578387
So, is there need a naive-ui-style api like below?
// App.vue <NResizeObserverProvider> <content /> </NResizeObserverProvider>
// YourComponent.vue <script setup> const divRef1 = ref(null) const divRef2 = ref(null) const observer = useResizeObserver() observer.add(divRef1, onResize1) observer.add(divRef2, onResize2) </script> <template> <div> <div ref="divRef1" /> <div ref="divRef2" /> </div> </template>
So we can use multiple observer at once.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ResizeObserverDelegate.registerHandler can be called multiple time.
vueuc/src/resize-observer/src/delegate.ts
Lines 27 to 39 in a578387
And these methods can be used for any file that has been imported the delegate.
vueuc/src/resize-observer/src/VResizeObserver.ts
Line 9 in a578387
So, is there need a naive-ui-style api like below?
So we can use multiple observer at once.
The text was updated successfully, but these errors were encountered: