feat: tabs adds a variety of style configurations

This commit is contained in:
vben
2024-07-14 18:32:37 +08:00
parent ebf73b2df9
commit 3a91a24e0d
16 changed files with 248 additions and 33 deletions

View File

@@ -1,4 +1,5 @@
import type { SortableOptions } from 'sortablejs';
import type Sortable from 'sortablejs';
function useSortable<T extends HTMLElement>(
sortableContainer: T,
@@ -22,7 +23,7 @@ function useSortable<T extends HTMLElement>(
delayOnTouchOnly: true,
...options,
});
return sortable;
return sortable as Sortable;
};
return {
@@ -31,3 +32,5 @@ function useSortable<T extends HTMLElement>(
}
export { useSortable };
export type { Sortable };