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: '修改排序成功!'
            });
        },
posted @ 2020-07-16 10:35  gggggggxin  阅读(2564)  评论(0编辑  收藏  举报