参考にさせていただいたページ
どうやるか
「vue.js - Vue 3 Composition API - How to get the component element ($el) on which the component is mounted? - Stack Overflow」によると、ref属性で参照するらしいです。
OptionsAPIではできていた以下のような記述はどうやらできないみたいですね。
this.$el.querySelector('.example');
「vue.js - Vue 3 Composition API - How to get the component element ($el) on which the component is mounted? - Stack Overflow」によると、ref属性で参照するらしいです。
OptionsAPIではできていた以下のような記述はどうやらできないみたいですね。
this.$el.querySelector('.example');