Why is vue-resize-directive not firing?
yuncode opened this issue · 2 comments
yuncode commented
three steps
npm install vue-resize-directive --save
// ES6
import resize from 'vue-resize-directive'
//...
export default {
directives: {
resize,
}
//...
3.<div v-resize="onResize">
finnally div no effect
David-Desmaisons commented
- What is your implementation of onResize method?
- What is the scenario you are testing and give "no effect"?
yuncode commented
@David-Desmaisons thank you very much ,I wrongly thought this Library was used to resize Dom 。 。
sorry 。 and i suggest your project name shoud be vue-resize-listen