Closed jcushman closed 2 years ago
The webpack svg loader vue-svg-loader allows event handling on svgs in templates like this:
vue-svg-loader
<MySVG @click="myClickEvent" @mouseover="myMouseoverEvent" />
I think it works through this line:
svg = svg.replace('<svg', '<svg v-on="$listeners"');
Could this loader add the same feature?
close #5
The webpack svg loader
vue-svg-loader
allows event handling on svgs in templates like this:I think it works through this line:
Could this loader add the same feature?