T
T
tenaro2021-11-22 05:14:56
JavaScript
tenaro, 2021-11-22 05:14:56

How to make a shared component for lists in vue3?

There are different lists on the project that look and work in their own way,
I want to write a common component that will expand their logic, and add to each the function of dragging elements, deleting, duplicating, etc.
Without changing their structure, just provide logic that can be used, how to do it correctly, through slots?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex_mos, 2021-11-22
@Alex_mos

Well, make a component and pass props and events to it that it should execute. It is not very clear from your question, not seeing what has already been done, what exactly you need. The question looks more like a task)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question