<script setup> </script>
этот код<script>
import { directive } from "vue3-click-away";
export default {
directives: {
ClickAway: directive
},
methods: {
onClickAway(event) {
console.log('ruururuururur', event);
}
}
}
</script>
<script setup>
import { directive as vClickAway } from "vue3-click-away";
const onClickInside = (event) => {
console.log('onClickInside: ', event);
};
</script>