UNPKG

a-draggable-component

Version:

一个可以托拽的vue3+typescript组件,主要应用场景:两个子空间的拖拽状态的相互转换

29 lines (28 loc) 717 B
import { CSSProperties } from "vue"; interface ShowOptionsProps { showLeft?: boolean; showRight?: boolean; showTop?: boolean; showBottom?: boolean; showTopLeft?: boolean; showTopRight?: boolean; showBottomLeft?: boolean; showBottomRight?: boolean; } interface StyleOptionsProps { componentStyle?: CSSProperties; topStyle?: CSSProperties; leftStyle?: CSSProperties; bottomStyle?: CSSProperties; rightStyle?: CSSProperties; height?: number; width?: number; top?: number; left?: number; } export type defaultProps = ShowOptionsProps & StyleOptionsProps & { labelKey?: string; canDragSquare?: boolean; containerIndex?: number; }; export {};