@types/vue-splitpane
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/vue-splitpane

Weekly Downloads

4,182

Version

1.0.5

License

MIT

Unpacked Size

4.63 kB

Total Files

5

Last publish

Collaborators

  • types