draggable element must have an item slot
vue3中使用draggable - web前端- 刘勇虎的官方网站
vue3中使用draggable - web前端- 刘勇虎的官方网站
vue3中使用draggable - web前端- 刘勇虎的官方网站 draggable element must have an item slot To make any given element draggable, we simply set the draggable HTML attribute on it to the value true An example follows: We have a simple div> to start pyramid slot demo This was the old syntax template slot=item slot-scope={ item }> but later I found v-slot, but must not have tried item with that new syntax
pyramid slot demo The draggable global attribute is an enumerated attribute that indicates whether the element draggable can have the following values: true :
red devil slot machine The item slot is used to display one element of the list will iterate the list and call this slot for each element Slot props: It is the only Draggable component should directly wrap the draggable elements, or a transition-component containing the draggable elements With footer slot: draggable v-