Installation
npm install --save @types/vue-splitpane
Summary
This package contains type definitions for vue-splitpane (https://github.com/PanJiaChen/vue-split-pane/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vue-splitpane.
index.d.ts
import { VueConstructor } from "vue";
export default Splitpane;
export const Splitpane: SplitpaneConstructor;
export interface SplitpaneProps {
minPercent: number;
defaultPercent: number;
split: string; // = ['vertical', 'horizontal']
className: string;
}
export interface SplitpaneData {
active: boolean;
hasMoved: boolean;
height: any; // null number string
percent: number;
type: string;
resizeType: string;
}
export interface SplitpaneWatch {
defaultPercent: (val: any) => void;
}
export interface SplitpaneMethods {
onClick: () => void;
onMouseDown: () => void;
onMouseUp: () => void;
onMouseMove: (e: Event) => void;
}
export interface SplitpaneComputed {
userSelect: () => string;
cursor: () => string;
}
export interface SplitpaneConstructor extends VueConstructor {
props: SplitpaneProps;
data: () => SplitpaneData;
watch: SplitpaneWatch;
methods: SplitpaneMethods;
computed: SplitpaneComputed;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: vue
Credits
These definitions were written by noonhorse.