feat: splitpanes

This commit is contained in:
arashsheyda
2023-04-21 12:05:32 +03:00
parent 49a08979d8
commit 85f1547150
4 changed files with 190 additions and 77 deletions

21
client/splitpanes.d.ts vendored Normal file
View File

@ -0,0 +1,21 @@
// TODO install @types/splitpanes once updated
declare module 'splitpanes' {
import { Component } from 'vue'
export interface SplitpaneProps {
horizontal: boolean
pushOtherPanes: boolean
dblClickSplitter: boolean
firstSplitter: boolean
}
export interface PaneProps {
size: number | string
minSize: number | string
maxSize: number | string
}
export type Pane = Component<PaneProps>
export const Pane: Pane
export const Splitpanes: Component<SplitpaneProps>
}