mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types of [@types/vue-splitpane] package * Add types of [@types/vue-splitpane] package * update split type * fix EsLint Missing semicolon * fix Eslint Missing semicolon * fix esLint * fix Eslint * Add types of [@types/splitpanes] package * fix file rename * fix Submit multiple components at a PR * fix rename * fix build rename * Add new definitions for [@types/splitpanes] * fix tsconfig files list * fix tsconfig files name * fix eslint * fix bug dt-header add object-literal-key-quotes * fix Consecutive * fix stander name
50 lines
1.2 KiB
TypeScript
50 lines
1.2 KiB
TypeScript
// Type definitions for vue-splitpane 1.0
|
|
// Project: https://github.com/PanJiaChen/vue-split-pane/
|
|
// Definitions by: noonhorse <https://github.com/noonhorse>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.5
|
|
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;
|
|
}
|