first commit

This commit is contained in:
2026-01-09 23:05:52 -05:00
commit dec0c8e4e4
4203 changed files with 824454 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { n as UseSortableReturn, t as UseSortableOptions } from "../index-CDFJRy7j.js";
import * as vue7 from "vue";
import { Reactive, SlotsType } from "vue";
import { RenderableComponent } from "@vueuse/core";
//#region useSortable/component.d.ts
interface UseSortableProps extends RenderableComponent {
modelValue: any[];
options?: UseSortableOptions;
}
interface UseSortableSlots {
default: (data: Reactive<UseSortableReturn>) => any;
}
declare const UseSortable: vue7.DefineSetupFnComponent<UseSortableProps, Record<string, never>, SlotsType<UseSortableSlots>, UseSortableProps & {
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
}, vue7.PublicProps>;
//#endregion
export { UseSortable, UseSortableProps };

View File

@@ -0,0 +1,23 @@
import { i as useSortable } from "../useSortable-jtnNPDb0.js";
import { defineComponent, h, reactive, shallowRef } from "vue";
import { useVModel } from "@vueuse/core";
//#region useSortable/component.ts
const UseSortable = /* @__PURE__ */ defineComponent((props, { slots }) => {
const list = useVModel(props, "modelValue");
const target = shallowRef();
const data = reactive(useSortable(target, list, props.options));
return () => {
if (slots.default) return h(props.as || "div", { ref: target }, slots.default(data));
};
}, {
name: "UseSortable",
props: [
"as",
"modelValue",
"options"
]
});
//#endregion
export { UseSortable };