UNPKG

@extclp/vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

47 lines (46 loc) 2.54 kB
import { ExtractPropTypes, PropType } from 'vue'; import { ConfigurableProps } from '@vexip-ui/config'; import { ViewerActionLayout, ViewerState, ViewerToolbarAction } from './symbol'; export declare const viewerProps: { inherit: PropType<boolean>; locale: PropType<Partial<{ rotateRight: string; rotateLeft: string; flipHorizontal: string; flipVertical: string; zoomIn: string; zoomOut: string; fullScreen: string; fullScreenExit: string; reset: string; }>>; width: PropType<string | number>; height: PropType<string | number>; moveDisabled: PropType<boolean>; zoomDisabled: PropType<boolean>; zoomDelta: PropType<number>; zoomMin: PropType<number>; zoomMax: PropType<number>; flipDisabled: PropType<boolean>; rotateDisabled: PropType<boolean>; rotateDelta: PropType<number>; fullDisabled: PropType<boolean>; toolbarPlacement: PropType<"bottom" | "top" | "right" | "left" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "right-start" | "right-end" | "left-start" | "left-end">; actions: PropType<ViewerToolbarAction[]>; toolbarFade: PropType<number | boolean>; noTransition: PropType<boolean>; centerScale: PropType<boolean>; actionLayout: PropType<ViewerActionLayout>; onMoveStart: PropType<((state: ViewerState) => void) | ((state: ViewerState) => void)[]>; onMove: PropType<((state: ViewerState) => void) | ((state: ViewerState) => void)[]>; onMoveEnd: PropType<((state: ViewerState) => void) | ((state: ViewerState) => void)[]>; onWheel: PropType<((sign: 1 | -1, state: ViewerState) => void) | ((sign: 1 | -1, state: ViewerState) => void)[]>; onRotate: PropType<((deg: number, state: ViewerState) => void) | ((deg: number, state: ViewerState) => void)[]>; onFlipX: PropType<((flip: boolean, state: ViewerState) => void) | ((flip: boolean, state: ViewerState) => void)[]>; onFlipY: PropType<((flip: boolean, state: ViewerState) => void) | ((flip: boolean, state: ViewerState) => void)[]>; onZoom: PropType<((zoom: number, state: ViewerState) => void) | ((zoom: number, state: ViewerState) => void)[]>; onFull: PropType<((full: boolean, state: ViewerState) => void) | ((full: boolean, state: ViewerState) => void)[]>; onReset: PropType<((state: ViewerState) => void) | ((state: ViewerState) => void)[]>; }; export type ViewerProps = ExtractPropTypes<typeof viewerProps>; export type ViewerCProps = ConfigurableProps<ViewerProps>;