Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use sortablejs plugins #33

Open
arkfancy opened this issue Apr 27, 2022 · 1 comment
Open

How to use sortablejs plugins #33

arkfancy opened this issue Apr 27, 2022 · 1 comment

Comments

@arkfancy
Copy link

arkfancy commented Apr 27, 2022

I want to use swap plugin like this https://github.com/SortableJS/Sortable/tree/master/plugins/Swap
but I don't know how or where to write the mount method

now my code is like this

<vue-draggable-next group="drapGroup" v-model="row.dropList" @change="dropChange($event, row, false)">
<div class="can-drop" v-for="item in row.dropList" :key="item.id">
	<div>{{item.name}}</div>
</div>
</vue-draggable-next>

<script setup>
import { VueDraggableNext } from 'vue-draggable-next'
...
</script>

what can i do next

@lzdml
Copy link

lzdml commented Sep 19, 2023

I want to use swap plugin like this https://github.com/SortableJS/Sortable/tree/master/plugins/Swap but I don't know how or where to write the mount method

now my code is like this

<vue-draggable-next group="drapGroup" v-model="row.dropList" @change="dropChange($event, row, false)">
<div class="can-drop" v-for="item in row.dropList" :key="item.id">
	<div>{{item.name}}</div>
</div>
</vue-draggable-next>

<script setup>
import { VueDraggableNext } from 'vue-draggable-next'
...
</script>

what can i do next

Is there a solution please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants