vue -vuedraggable 页面变化,数组不变化

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: '修改排序成功!'
            });
        },
原文地址:https://www.cnblogs.com/gggggggxin/p/13321308.html