Skip to content

Commit d436305

Browse files
Improving tests
1 parent 8bc1c27 commit d436305

File tree

2 files changed

+174
-134
lines changed

2 files changed

+174
-134
lines changed

tests/unit/helper/DraggableOption.vue

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<template>
2+
<draggable :list="array" v-bind="additionalData">
3+
<div v-for="item in array" :key="item">{{ item }}</div>
4+
</draggable>
5+
</template>
6+
<script>
7+
import draggable from "@/vuedraggable";
8+
9+
export default {
10+
props: {
11+
additionalData: {
12+
type: Object,
13+
default: () => {}
14+
}
15+
},
16+
components: {
17+
draggable
18+
},
19+
data() {
20+
return {
21+
array: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
22+
};
23+
}
24+
};
25+
</script>

0 commit comments

Comments
 (0)