Skip to content

Commit 527d9d2

Browse files
authored
Fix building error, close #72 (#73)
1 parent 997f0bc commit 527d9d2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/Sortable.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ type SortableOptionsProp = Omit<
1919
| "onChange"
2020
>;
2121
22+
type ExposedProps = {
23+
containerRef: Ref<HTMLDivElement | null>;
24+
sortable: Ref<Sortable | null>;
25+
isDragging: Ref<boolean>;
26+
}
27+
2228
const props = defineProps({
2329
/** All SortableJS options are supported; events are handled by the `defineEmits` below and should be used with v-on */
2430
options: {
@@ -76,9 +82,9 @@ const getKey = computed(() => {
7682
7783
defineExpose({
7884
containerRef,
79-
sortable: <Ref<Sortable | null>>sortable,
85+
sortable,
8086
isDragging,
81-
});
87+
} as ExposedProps);
8288
8389
watch(containerRef, (newDraggable) => {
8490
if (newDraggable) {

0 commit comments

Comments
 (0)