a-draggable-component
Version:
一个可以托拽的vue3+typescript组件,主要应用场景:两个子空间的拖拽状态的相互转换
16 lines (15 loc) • 419 B
TypeScript
import { ExtractPropTypes } from "vue";
import ADraggableMain from "./index.vue";
export type ADraggableMainProps = ExtractPropTypes<typeof ADraggableMain>;
export interface childProp {
key: string;
name: string;
position: string;
[key: string]: any;
}
export type ListProps = Partial<childProp>[];
export interface MainContainerStyleProps {
height: number;
width: number;
zIndex: number;
}