Open KnSup opened 3 years ago
<draggable tag="el-collapse" // want to use both transition-group and el-collapse :list="list" :component-data="collapseComponentData" item-key="id" > <template #item="{ element }"> <el-collapse-item :title="element.title" :name="element.id"> <div v-for="(lign, idx) in element.text" :key="idx">{{ lign }}</div> </el-collapse-item> </template> </draggable>```
Refer to this example: https://github.com/xiaoxian521/CURD-TS/blob/main/src/views/components/draggable/index.vue