UNPKG

naive-ui

Version:

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

318 lines (317 loc) 11.6 kB
import type { ImagePreviewInst } from './ImagePreview'; import type { ImageRenderToolbar } from './public-types'; import { type Ref } from 'vue'; import { type ExtractPublicPropTypes } from '../../_utils'; export declare const imageGroupInjectionKey: import("vue").InjectionKey<ImagePreviewInst & { groupId: string; mergedClsPrefixRef: Ref<string>; renderToolbarRef: Ref<ImageRenderToolbar | undefined>; }>; export declare const imageGroupProps: { onPreviewPrev: import("vue").PropType<() => void>; onPreviewNext: import("vue").PropType<() => void>; showToolbar: { type: BooleanConstructor; default: boolean; }; showToolbarTooltip: BooleanConstructor; renderToolbar: import("vue").PropType<ImageRenderToolbar>; theme: import("vue").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: import("vue").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: import("vue").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 type ImageGroupProps = ExtractPublicPropTypes<typeof imageGroupProps>; declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ onPreviewPrev: import("vue").PropType<() => void>; onPreviewNext: import("vue").PropType<() => void>; showToolbar: { type: BooleanConstructor; default: boolean; }; showToolbarTooltip: BooleanConstructor; renderToolbar: import("vue").PropType<ImageRenderToolbar>; theme: import("vue").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: import("vue").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: import("vue").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>; }>; }>>>; }>, { mergedClsPrefix: Ref<string, string>; previewInstRef: Ref<{ setThumbnailEl: (e: HTMLImageElement | null) => void; setPreviewSrc: (src?: string) => void; toggleShow: () => void; } | null, ImagePreviewInst | { setThumbnailEl: (e: HTMLImageElement | null) => void; setPreviewSrc: (src?: string) => void; toggleShow: () => void; } | null>; next: () => void; prev: () => void; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ onPreviewPrev: import("vue").PropType<() => void>; onPreviewNext: import("vue").PropType<() => void>; showToolbar: { type: BooleanConstructor; default: boolean; }; showToolbarTooltip: BooleanConstructor; renderToolbar: import("vue").PropType<ImageRenderToolbar>; theme: import("vue").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: import("vue").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: import("vue").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>; }>; }>>>; }>> & Readonly<{}>, { showToolbar: boolean; showToolbarTooltip: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default;