<script>
import DndList from '../components/DndList'
// import { fetchList } from '@/api/article'
export default {
name: 'DndListDemo',
components: { DndList },
data() {
return {
list1: [],
list2: [],
list:[...方便你看省略掉了..]
}
},
created() {
this.getData()
},
methods: {
getData() {
this.listLoading = true
this.list1 = this.list.splice(0, 5)
this.list2 = this.list
}
}
}
</script>
就是拖拽的时候从右边到左边没死但是从左往右拖得时候会有几项不见掉

