David-Desmaisons / Vue.resize

Vue directive to detect resize events with deboucing and throttling capacity.
MIT License
326 stars 36 forks source link

Why is vue-resize-directive not firing? #3

Closed yuncode closed 6 years ago

yuncode commented 6 years ago

three steps

  1. npm install vue-resize-directive --save
  2. // ES6
    import resize from 'vue-resize-directive'
    //...
    export default {
    directives: {
        resize,
    }
    //...

    3.<div v-resize="onResize">

finnally div no effect

David-Desmaisons commented 6 years ago

1) What is your implementation of onResize method? 2) What is the scenario you are testing and give "no effect"?

yuncode commented 6 years ago

@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