UNPKG

naive-ui

Version:

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

253 lines (252 loc) 8.55 kB
import { type PropType, type CSSProperties, type DirectiveArguments } from 'vue'; import type { ScrollbarProps } from '../../_internal'; export type Placement = 'left' | 'right' | 'top' | 'bottom'; declare const _default: import("vue").DefineComponent<{ blockScroll: BooleanConstructor; show: { type: PropType<boolean | undefined>; default: undefined; }; displayDirective: { type: PropType<"show" | "if">; required: true; }; placement: { type: PropType<Placement>; required: true; }; contentClass: StringConstructor; contentStyle: PropType<string | CSSProperties>; nativeScrollbar: { type: BooleanConstructor; required: true; }; scrollbarProps: PropType<ScrollbarProps>; trapFocus: { type: BooleanConstructor; default: boolean; }; autoFocus: { type: BooleanConstructor; default: boolean; }; showMask: { type: PropType<boolean | "transparent">; required: true; }; maxWidth: NumberConstructor; maxHeight: NumberConstructor; minWidth: NumberConstructor; minHeight: NumberConstructor; resizable: BooleanConstructor; onClickoutside: PropType<(e: MouseEvent) => void>; onAfterLeave: PropType<() => void>; onAfterEnter: PropType<() => void>; onEsc: PropType<(e: KeyboardEvent) => void>; }, { bodyRef: import("vue").Ref<HTMLElement | null>; rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined; mergedClsPrefix: import("vue").Ref<string>; isMounted: import("vue").Ref<boolean>; mergedTheme: import("vue").Ref<{ common: { baseColor: string; primaryColor: string; primaryColorHover: string; primaryColorPressed: string; primaryColorSuppl: string; infoColor: string; infoColorHover: string; infoColorPressed: string; infoColorSuppl: string; successColor: string; successColorHover: string; successColorPressed: string; successColorSuppl: string; warningColor: string; warningColorHover: string; warningColorPressed: string; warningColorSuppl: string; errorColor: string; errorColorHover: string; errorColorPressed: string; errorColorSuppl: string; textColorBase: string; textColor1: string; textColor2: string; textColor3: string; textColorDisabled: string; placeholderColor: string; placeholderColorDisabled: string; iconColor: string; iconColorHover: string; iconColorPressed: string; iconColorDisabled: string; opacity1: string; opacity2: string; opacity3: string; opacity4: string; opacity5: string; dividerColor: string; borderColor: string; closeIconColor: string; closeIconColorHover: string; closeIconColorPressed: string; closeColorHover: string; closeColorPressed: string; clearColor: string; clearColorHover: string; clearColorPressed: string; scrollbarColor: string; scrollbarColorHover: string; scrollbarWidth: string; scrollbarHeight: string; scrollbarBorderRadius: string; progressRailColor: string; railColor: string; popoverColor: string; tableColor: string; cardColor: string; modalColor: string; bodyColor: string; tagColor: string; avatarColor: string; invertedColor: string; inputColor: string; codeColor: string; tabColor: string; actionColor: string; tableHeaderColor: string; hoverColor: string; tableColorHover: string; tableColorStriped: string; pressedColor: string; opacityDisabled: string; inputColorDisabled: string; buttonColor2: string; buttonColor2Hover: string; buttonColor2Pressed: string; boxShadow1: string; boxShadow2: string; boxShadow3: string; fontFamily: string; fontFamilyMono: string; fontWeight: string; fontWeightStrong: string; cubicBezierEaseInOut: string; cubicBezierEaseOut: string; cubicBezierEaseIn: string; borderRadius: string; borderRadiusSmall: string; fontSize: string; fontSizeMini: string; fontSizeTiny: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; fontSizeHuge: string; lineHeight: string; heightMini: string; heightTiny: string; heightSmall: string; heightMedium: string; heightLarge: string; heightHuge: string; name: "common"; }; self: { bodyPadding: string; headerPadding: string; footerPadding: string; color: string; textColor: string; titleTextColor: string; titleFontSize: string; titleFontWeight: string; boxShadow: string; lineHeight: string; headerBorderBottom: string; footerBorderTop: string; closeIconColor: string; closeIconColorHover: string; closeIconColorPressed: string; closeSize: string; closeIconSize: string; closeColorHover: string; closeColorPressed: string; closeBorderRadius: string; resizableTriggerColorHover: string; }; peers: { Scrollbar: import("../../_mixins").Theme<"Scrollbar", { color: string; colorHover: string; }, any>; }; peerOverrides: { Scrollbar?: { peers?: { [x: string]: any; } | undefined; } | undefined; }; }>; displayed: import("vue").Ref<boolean>; transitionName: import("vue").ComputedRef<string>; handleAfterLeave: () => void; bodyDirectives: import("vue").ComputedRef<DirectiveArguments>; handleMousedownResizeTrigger: (e: MouseEvent) => void; handleMouseenterResizeTrigger: () => void; handleMouseleaveResizeTrigger: () => void; isDragging: import("vue").Ref<boolean>; isHoverOnResizeTrigger: import("vue").Ref<boolean>; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ blockScroll: BooleanConstructor; show: { type: PropType<boolean | undefined>; default: undefined; }; displayDirective: { type: PropType<"show" | "if">; required: true; }; placement: { type: PropType<Placement>; required: true; }; contentClass: StringConstructor; contentStyle: PropType<string | CSSProperties>; nativeScrollbar: { type: BooleanConstructor; required: true; }; scrollbarProps: PropType<ScrollbarProps>; trapFocus: { type: BooleanConstructor; default: boolean; }; autoFocus: { type: BooleanConstructor; default: boolean; }; showMask: { type: PropType<boolean | "transparent">; required: true; }; maxWidth: NumberConstructor; maxHeight: NumberConstructor; minWidth: NumberConstructor; minHeight: NumberConstructor; resizable: BooleanConstructor; onClickoutside: PropType<(e: MouseEvent) => void>; onAfterLeave: PropType<() => void>; onAfterEnter: PropType<() => void>; onEsc: PropType<(e: KeyboardEvent) => void>; }>>, { show: boolean | undefined; autoFocus: boolean; resizable: boolean; trapFocus: boolean; blockScroll: boolean; }, {}>; export default _default;