tip:注意draggable v-model绑定

<draggable v-model="fileAll" :move="getdata" @update="datadragEnd()">
                            <transition-group>
                                <li class="el-upload-list__item is-success el-upload-list--picture-card" style="overflow: inherit;margin: 0px 8px 40px 0;" v-for="(item,index) in fileAll" :key="item.path">
                                    //item
                                </li>
                            </transition-group>
                        </draggable>
import draggable from 'vuedraggable';

 components: {
        draggable
    },
         //拖拽中
        getdata(evt) {
            // console.log(evt);
        },
        //拖拽结束
        datadragEnd(list) {
            this.$message({
                type: 'success',
                message: '修改排序成功!'
            });
        },

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案