UNPKG

naive-ui

Version:

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

108 lines (107 loc) 3.75 kB
import type { ImgHTMLAttributes, PropType, Ref } from 'vue'; 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; 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>;