UNPKG

naive-ui

Version:

A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast

110 lines (109 loc) 3.86 kB
import type { ImgHTMLAttributes, PropType, Ref } from 'vue'; import type { ImageRenderToolbar } from './public-types'; export interface MoveStrategy { moveVerticalDirection: 'verticalTop' | 'verticalBottom'; moveHorizontalDirection: 'horizontalLeft' | 'horizontalRight'; deltaHorizontal: number; deltaVertical: number; } export declare const imagePreviewSharedProps: { onPreviewPrev: PropType<() => void>; onPreviewNext: PropType<() => void>; showToolbar: { type: BooleanConstructor; default: boolean; }; showToolbarTooltip: BooleanConstructor; renderToolbar: PropType<ImageRenderToolbar>; theme: PropType<import("../../_mixins").Theme<"Image", { toolbarIconColor: string; toolbarColor: string; toolbarBoxShadow: string; toolbarBorderRadius: string; }, { Tooltip: import("../../_mixins").Theme<"Tooltip", { borderRadius: string; boxShadow: string; color: string; textColor: string; padding: string; }, { Popover: import("../../_mixins").Theme<"Popover", { fontSize: string; borderRadius: string; color: string; dividerColor: string; textColor: string; boxShadow: string; space: string; spaceArrow: string; arrowOffset: string; arrowOffsetVertical: string; arrowHeight: string; padding: string; }, any>; }>; }>>; themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", { toolbarIconColor: string; toolbarColor: string; toolbarBoxShadow: string; toolbarBorderRadius: string; }, { Tooltip: import("../../_mixins").Theme<"Tooltip", { borderRadius: string; boxShadow: string; color: string; textColor: string; padding: string; }, { Popover: import("../../_mixins").Theme<"Popover", { fontSize: string; borderRadius: string; color: string; dividerColor: string; textColor: string; boxShadow: string; space: string; spaceArrow: string; arrowOffset: string; arrowOffsetVertical: string; arrowHeight: string; padding: string; }, any>; }>; }>>>; builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", { toolbarIconColor: string; toolbarColor: string; toolbarBoxShadow: string; toolbarBorderRadius: string; }, { Tooltip: import("../../_mixins").Theme<"Tooltip", { borderRadius: string; boxShadow: string; color: string; textColor: string; padding: string; }, { Popover: import("../../_mixins").Theme<"Popover", { fontSize: string; borderRadius: string; color: string; dividerColor: string; textColor: string; boxShadow: string; space: string; spaceArrow: string; arrowOffset: string; arrowOffsetVertical: string; arrowHeight: string; padding: string; }, any>; }>; }>>>; }; export interface ImageContext { previewedImgPropsRef: Ref<ImgHTMLAttributes | undefined>; } export declare const imageContextKey: import("vue").InjectionKey<ImageContext>;