Closed iamandrewluca closed 3 years ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@euvl any time to look at this? 🤔
TODO:
declare global {
declare module 'vue-js-modal' {
type ModalProps = {
name: string,
resizable?: boolean,
resizeEdges?: Array<'r' | 'br' | 'b' | 'bl' | 'l' | 'tl' | 't' | 'tr'>,
centerResize?: boolean,
resizeIndicator?: boolean,
adaptive?: boolean,
draggable?: boolean | string,
scrollable?: boolean,
focusTrap?: boolean,
reset?: boolean,
overlayTransition?: string,
transition?: string,
clickToClose?: boolean,
classes?: string | string[],
styles?: string | string[] | Record<string, string>,
minWidth?: number,
minHeight?: number,
maxWidth?: number,
maxHeight?: number,
width?: number | string,
height?: number | string,
shiftX?: number,
shiftY?: number
}
export const Modal: FunctionalComponentOptions<ModalProps>
export interface VModal {
show(
component: typeof Vue | ComponentOptions<Vue> | AsyncComponent,
componentProps?: object,
modalProps?: ModalProps,
modalEvents?: {
'before-open': (state: unknown) => void,
'opened': (state: unknown) => void,
'before-close': (state: unknown) => void,
'closed': (state: unknown) => void,
}
): void
}
}
}
typescript
dependency so we can runtsc
Modal
export typeDialog
export typeversion
export type