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

use TransitionGroup and UI component (like el-collapse) at same time #278

Open
hogking opened this issue Jan 12, 2025 · 0 comments
Open

Comments

@hogking
Copy link

hogking commented Jan 12, 2025

hi everyone, I use draggable and el-collapse like

const activeOrderName = ref([]);
const collapseComponentData = computed(() => ({
  modelValue: activeOrderName.value
}));
...
<draggable
                        :key="choiceIndex + draggableKey"
                        tag="el-collapse"
                        item-key="key"
                        :list="orders"
                        :component-data="collapseComponentData"
...
>

which mention in https://github.com/SortableJS/vue.draggable.next/blob/master/example/components/third-party.vue.
And it works.
But this seem like I cannot use el-collapse active name anymore.

I try:

<draggable
                        :key="choiceIndex + draggableKey"
                        tag="transition-group"
                        item-key="key"
                        :list="orders"
                        :component-data="{
                          tag: 'el-collapse'
                        }"
...
>
//const activeOrderName = ref([]);
//const collapseComponentData = computed(() => ({
//  modelValue: activeOrderName.value
//}));

But I want to use TransitionGroup for el-collapse-item when I sort them.
How can I bind them together?

Thank you!

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

1 participant