fix: 🐛 passed props to VueDraggable

This commit is contained in:
Kainoa Kanter 2023-09-28 08:33:50 -07:00
parent 8db91f277f
commit 26bc90e44b
5 changed files with 11 additions and 11 deletions

View File

@ -3,9 +3,9 @@
<VueDraggable <VueDraggable
v-model="_files" v-model="_files"
class="files" class="files"
animation="150" :animation="150"
delay="100" :delay="100"
delay-on-touch-only="true" :delay-on-touch-only="true"
> >
<div <div
v-for="element in _files" v-for="element in _files"

View File

@ -28,7 +28,7 @@
i18n.ts.close i18n.ts.close
}}</MkButton> }}</MkButton>
</header> </header>
<VueDraggable v-model="widgets_" handle=".handle" animation="150"> <VueDraggable v-model="widgets_" handle=".handle" :animation="150">
<div v-for="element in widgets_" :key="element.id"> <div v-for="element in widgets_" :key="element.id">
<div class="customize-container"> <div class="customize-container">
<button <button

View File

@ -4,8 +4,8 @@
tag="div" tag="div"
handle=".drag-handle" handle=".drag-handle"
:group="{ name: 'blocks' }" :group="{ name: 'blocks' }"
animation="150" :animation="150"
swap-threshold="0.5" :swap-threshold="0.5"
> >
<component <component
:is="'x-' + element.type" :is="'x-' + element.type"

View File

@ -125,8 +125,8 @@
class="variables" class="variables"
handle=".drag-handle" handle=".drag-handle"
:group="{ name: 'variables' }" :group="{ name: 'variables' }"
animation="150" :animation="150"
swap-threshold="0.5" :swap-threshold="0.5"
> >
<XVariable <XVariable
v-for="element in variables" v-for="element in variables"

View File

@ -13,9 +13,9 @@
<VueDraggable <VueDraggable
v-model="reactions" v-model="reactions"
class="zoaiodol" class="zoaiodol"
animation="150" :animation="150"
delay="100" :delay="100"
delay-on-touch-only="true" :delay-on-touch-only="true"
@end="save" @end="save"
> >
<div <div