euvl / vue-js-grid

:bento: Vue.js 2.x responsive grid system with smooth sorting, drag-n-drop and reordering
https://euvl.github.io/vue-js-grid/
MIT License
951 stars 109 forks source link

Why is the click event executed twice when I click on the child element once? #41

Open thomasliew opened 3 years ago

thomasliew commented 3 years ago

It's not always done twice, `

         <grid  
            :draggable="true"
            :sortable="true"
            :items="dragnees"
            center
            @sort="dragnessChange"
            @click="dragnessClick"
            >
            <template slot="cell" slot-scope="props" >
                <div class="imgs">
                <img
                  class="imgItem"
                  :src="props.item.url"
                  alt=""
                />
                <img
                  class="icon"
                  @click="del(props)"
                  src="@/assets/images/publish/detele.png"
                  alt=""
                />
              </div>
            </template>
          </grid>

`