vue dnd preview in non-React-Dnd-HTML5-Backend
npm i vue-dnd-preview -S
<script setup>
import DndPreview from "vue-dnd-preview";
</script>
<template>
<dnd-preview>
<div class="root">
<div class="head">
head
</div>
<div class="body">
body
</div>
</div>
</dnd-preview>
</template>
Property | Description | Type | Default Value |
---|---|---|---|
default | Preview element node | slot | |
zIndex | Preview the z-index of the element node | number | 9999999 |