Code: Select all
(this.$refs.sortp as OverlayPanel).toggle(event)
Code: Select all
Cannot use namespace 'OverlayPanel' as a type
Again and again I feel TypeScript is a funny way to write your code three times and finally cast to any, but I have to use it right now. What should I do to cast vue ref to OverlayPanel type?