We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 997f0bc commit 527d9d2Copy full SHA for 527d9d2
src/components/Sortable.vue
@@ -19,6 +19,12 @@ type SortableOptionsProp = Omit<
19
| "onChange"
20
>;
21
22
+type ExposedProps = {
23
+ containerRef: Ref<HTMLDivElement | null>;
24
+ sortable: Ref<Sortable | null>;
25
+ isDragging: Ref<boolean>;
26
+}
27
+
28
const props = defineProps({
29
/** All SortableJS options are supported; events are handled by the `defineEmits` below and should be used with v-on */
30
options: {
@@ -76,9 +82,9 @@ const getKey = computed(() => {
76
82
77
83
defineExpose({
78
84
containerRef,
79
- sortable: <Ref<Sortable | null>>sortable,
85
+ sortable,
80
86
isDragging,
81
-});
87
+} as ExposedProps);
88
89
watch(containerRef, (newDraggable) => {
90
if (newDraggable) {
0 commit comments