UNPKG

naive-ui

Version:

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

628 lines (627 loc) 25.5 kB
import type { ScrollbarInst } from '../../_internal'; import { type PropType } from 'vue'; import { type VirtualListInst } from 'vueuc'; import { type TmNode } from './interface'; declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ depth: { type: NumberConstructor; required: true; }; tmNodes: { type: PropType<TmNode[]>; required: true; }; }>, { scroll: (index: number, elSize: number) => void; mergedClsPrefix: import("vue").Ref<string, string>; mergedTheme: import("vue").Ref<{ common: import("../..").ThemeCommonVars; self: { menuBorderRadius: string; menuColor: string; menuBoxShadow: string; menuDividerColor: string; menuHeight: string; optionArrowColor: string; optionHeight: string; optionFontSize: string; optionColorHover: string; optionTextColor: string; optionTextColorActive: string; optionTextColorDisabled: string; optionCheckMarkColor: string; loadingColor: string; columnWidth: string; }; peers: { InternalSelectMenu: import("../../_mixins").Theme<"InternalSelectMenu", { optionFontSizeTiny: string; optionFontSizeSmall: string; optionFontSizeMedium: string; optionFontSizeLarge: string; optionFontSizeHuge: string; optionHeightTiny: string; optionHeightSmall: string; optionHeightMedium: string; optionHeightLarge: string; optionHeightHuge: string; borderRadius: string; color: string; groupHeaderTextColor: string; actionDividerColor: string; optionTextColor: string; optionTextColorPressed: string; optionTextColorDisabled: string; optionTextColorActive: string; optionOpacityDisabled: string; optionCheckColor: string; optionColorPending: string; optionColorActive: string; optionColorActivePending: string; actionTextColor: string; loadingColor: string; height: string; paddingTiny: string; paddingSmall: string; paddingMedium: string; paddingLarge: string; paddingHuge: string; optionPaddingTiny: string; optionPaddingSmall: string; optionPaddingMedium: string; optionPaddingLarge: string; optionPaddingHuge: string; loadingSize: string; }, { Scrollbar: import("../../_mixins").Theme<"Scrollbar", { height: string; width: string; borderRadius: string; color: string; colorHover: string; railInsetHorizontalBottom: string; railInsetHorizontalTop: string; railInsetVerticalRight: string; railInsetVerticalLeft: string; railColor: string; }, any>; Empty: import("../../_mixins").Theme<"Empty", { fontSizeTiny: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; fontSizeHuge: string; textColor: string; iconColor: string; extraTextColor: string; iconSizeTiny: string; iconSizeSmall: string; iconSizeMedium: string; iconSizeLarge: string; iconSizeHuge: string; }, any>; }>; InternalSelection: import("../../_mixins").Theme<"InternalSelection", { fontSizeTiny: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; heightTiny: string; heightSmall: string; heightMedium: string; heightLarge: string; borderRadius: string; fontWeight: string; textColor: string; textColorDisabled: string; placeholderColor: string; placeholderColorDisabled: string; color: string; colorDisabled: string; colorActive: string; border: string; borderHover: string; borderActive: string; borderFocus: string; boxShadowHover: string; boxShadowActive: string; boxShadowFocus: string; caretColor: string; arrowColor: string; arrowColorDisabled: string; loadingColor: string; borderWarning: string; borderHoverWarning: string; borderActiveWarning: string; borderFocusWarning: string; boxShadowHoverWarning: string; boxShadowActiveWarning: string; boxShadowFocusWarning: string; colorActiveWarning: string; caretColorWarning: string; borderError: string; borderHoverError: string; borderActiveError: string; borderFocusError: string; boxShadowHoverError: string; boxShadowActiveError: string; boxShadowFocusError: string; colorActiveError: string; caretColorError: string; clearColor: string; clearColorHover: string; clearColorPressed: string; paddingSingle: string; paddingMultiple: string; clearSize: string; arrowSize: 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>; }>; Scrollbar: import("../../_mixins").Theme<"Scrollbar", { height: string; width: string; borderRadius: string; color: string; colorHover: string; railInsetHorizontalBottom: string; railInsetHorizontalTop: string; railInsetVerticalRight: string; railInsetVerticalLeft: string; railColor: string; }, any>; Checkbox: import("../../_mixins").Theme<"Checkbox", { labelLineHeight: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; borderRadius: string; color: string; colorChecked: string; colorDisabled: string; colorDisabledChecked: string; colorTableHeader: string; colorTableHeaderModal: string; colorTableHeaderPopover: string; checkMarkColor: string; checkMarkColorDisabled: string; checkMarkColorDisabledChecked: string; border: string; borderDisabled: string; borderDisabledChecked: string; borderChecked: string; borderFocus: string; boxShadowFocus: string; textColor: string; textColorDisabled: string; sizeSmall: string; sizeMedium: string; sizeLarge: string; labelPadding: string; labelFontWeight: string; }, any>; Empty: import("../../_mixins").Theme<"Empty", { fontSizeTiny: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; fontSizeHuge: string; textColor: string; iconColor: string; extraTextColor: string; iconSizeTiny: string; iconSizeSmall: string; iconSizeMedium: string; iconSizeLarge: string; iconSizeHuge: string; }, any>; }; peerOverrides: { InternalSelectMenu?: { peers?: { Scrollbar?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Scrollbar", { height: string; width: string; borderRadius: string; color: string; colorHover: string; railInsetHorizontalBottom: string; railInsetHorizontalTop: string; railInsetVerticalRight: string; railInsetVerticalLeft: string; railColor: string; }, any>> | undefined; Empty?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Empty", { fontSizeTiny: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; fontSizeHuge: string; textColor: string; iconColor: string; extraTextColor: string; iconSizeTiny: string; iconSizeSmall: string; iconSizeMedium: string; iconSizeLarge: string; iconSizeHuge: string; }, any>> | undefined; } | undefined; } | undefined; InternalSelection?: { peers?: { Popover?: import("../../_mixins/use-theme").ExtractThemeOverrides<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>> | undefined; } | undefined; } | undefined; Scrollbar?: { peers?: { [x: string]: any; } | undefined; } | undefined; Checkbox?: { peers?: { [x: string]: any; } | undefined; } | undefined; Empty?: { peers?: { [x: string]: any; } | undefined; } | undefined; }; }, { common: import("../..").ThemeCommonVars; self: { menuBorderRadius: string; menuColor: string; menuBoxShadow: string; menuDividerColor: string; menuHeight: string; optionArrowColor: string; optionHeight: string; optionFontSize: string; optionColorHover: string; optionTextColor: string; optionTextColorActive: string; optionTextColorDisabled: string; optionCheckMarkColor: string; loadingColor: string; columnWidth: string; }; peers: { InternalSelectMenu: import("../../_mixins").Theme<"InternalSelectMenu", { optionFontSizeTiny: string; optionFontSizeSmall: string; optionFontSizeMedium: string; optionFontSizeLarge: string; optionFontSizeHuge: string; optionHeightTiny: string; optionHeightSmall: string; optionHeightMedium: string; optionHeightLarge: string; optionHeightHuge: string; borderRadius: string; color: string; groupHeaderTextColor: string; actionDividerColor: string; optionTextColor: string; optionTextColorPressed: string; optionTextColorDisabled: string; optionTextColorActive: string; optionOpacityDisabled: string; optionCheckColor: string; optionColorPending: string; optionColorActive: string; optionColorActivePending: string; actionTextColor: string; loadingColor: string; height: string; paddingTiny: string; paddingSmall: string; paddingMedium: string; paddingLarge: string; paddingHuge: string; optionPaddingTiny: string; optionPaddingSmall: string; optionPaddingMedium: string; optionPaddingLarge: string; optionPaddingHuge: string; loadingSize: string; }, { Scrollbar: import("../../_mixins").Theme<"Scrollbar", { height: string; width: string; borderRadius: string; color: string; colorHover: string; railInsetHorizontalBottom: string; railInsetHorizontalTop: string; railInsetVerticalRight: string; railInsetVerticalLeft: string; railColor: string; }, any>; Empty: import("../../_mixins").Theme<"Empty", { fontSizeTiny: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; fontSizeHuge: string; textColor: string; iconColor: string; extraTextColor: string; iconSizeTiny: string; iconSizeSmall: string; iconSizeMedium: string; iconSizeLarge: string; iconSizeHuge: string; }, any>; }>; InternalSelection: import("../../_mixins").Theme<"InternalSelection", { fontSizeTiny: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; heightTiny: string; heightSmall: string; heightMedium: string; heightLarge: string; borderRadius: string; fontWeight: string; textColor: string; textColorDisabled: string; placeholderColor: string; placeholderColorDisabled: string; color: string; colorDisabled: string; colorActive: string; border: string; borderHover: string; borderActive: string; borderFocus: string; boxShadowHover: string; boxShadowActive: string; boxShadowFocus: string; caretColor: string; arrowColor: string; arrowColorDisabled: string; loadingColor: string; borderWarning: string; borderHoverWarning: string; borderActiveWarning: string; borderFocusWarning: string; boxShadowHoverWarning: string; boxShadowActiveWarning: string; boxShadowFocusWarning: string; colorActiveWarning: string; caretColorWarning: string; borderError: string; borderHoverError: string; borderActiveError: string; borderFocusError: string; boxShadowHoverError: string; boxShadowActiveError: string; boxShadowFocusError: string; colorActiveError: string; caretColorError: string; clearColor: string; clearColorHover: string; clearColorPressed: string; paddingSingle: string; paddingMultiple: string; clearSize: string; arrowSize: 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>; }>; Scrollbar: import("../../_mixins").Theme<"Scrollbar", { height: string; width: string; borderRadius: string; color: string; colorHover: string; railInsetHorizontalBottom: string; railInsetHorizontalTop: string; railInsetVerticalRight: string; railInsetVerticalLeft: string; railColor: string; }, any>; Checkbox: import("../../_mixins").Theme<"Checkbox", { labelLineHeight: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; borderRadius: string; color: string; colorChecked: string; colorDisabled: string; colorDisabledChecked: string; colorTableHeader: string; colorTableHeaderModal: string; colorTableHeaderPopover: string; checkMarkColor: string; checkMarkColorDisabled: string; checkMarkColorDisabledChecked: string; border: string; borderDisabled: string; borderDisabledChecked: string; borderChecked: string; borderFocus: string; boxShadowFocus: string; textColor: string; textColorDisabled: string; sizeSmall: string; sizeMedium: string; sizeLarge: string; labelPadding: string; labelFontWeight: string; }, any>; Empty: import("../../_mixins").Theme<"Empty", { fontSizeTiny: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; fontSizeHuge: string; textColor: string; iconColor: string; extraTextColor: string; iconSizeTiny: string; iconSizeSmall: string; iconSizeMedium: string; iconSizeLarge: string; iconSizeHuge: string; }, any>; }; peerOverrides: { InternalSelectMenu?: { peers?: { Scrollbar?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Scrollbar", { height: string; width: string; borderRadius: string; color: string; colorHover: string; railInsetHorizontalBottom: string; railInsetHorizontalTop: string; railInsetVerticalRight: string; railInsetVerticalLeft: string; railColor: string; }, any>> | undefined; Empty?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Empty", { fontSizeTiny: string; fontSizeSmall: string; fontSizeMedium: string; fontSizeLarge: string; fontSizeHuge: string; textColor: string; iconColor: string; extraTextColor: string; iconSizeTiny: string; iconSizeSmall: string; iconSizeMedium: string; iconSizeLarge: string; iconSizeHuge: string; }, any>> | undefined; } | undefined; } | undefined; InternalSelection?: { peers?: { Popover?: import("../../_mixins/use-theme").ExtractThemeOverrides<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>> | undefined; } | undefined; } | undefined; Scrollbar?: { peers?: { [x: string]: any; } | undefined; } | undefined; Checkbox?: { peers?: { [x: string]: any; } | undefined; } | undefined; Empty?: { peers?: { [x: string]: any; } | undefined; } | undefined; }; }>; scrollbarInstRef: import("vue").Ref<{ $el: HTMLElement; containerRef: HTMLElement | null; contentRef: HTMLElement | null; containerScrollTop: number; syncUnifiedContainer: () => void; scrollTo: import("../../_internal/scrollbar/src/Scrollbar").ScrollTo; scrollBy: import("../../_internal/scrollbar/src/Scrollbar").ScrollBy; sync: () => void; handleMouseEnterWrapper: () => void; handleMouseLeaveWrapper: () => void; } | null, ScrollbarInst | { $el: HTMLElement; containerRef: HTMLElement | null; contentRef: HTMLElement | null; containerScrollTop: number; syncUnifiedContainer: () => void; scrollTo: import("../../_internal/scrollbar/src/Scrollbar").ScrollTo; scrollBy: import("../../_internal/scrollbar/src/Scrollbar").ScrollBy; sync: () => void; handleMouseEnterWrapper: () => void; handleMouseLeaveWrapper: () => void; } | null>; vlInstRef: import("vue").Ref<{ listElRef: HTMLElement; itemsElRef: HTMLElement | null; scrollTo: import("vueuc").VVirtualListScrollTo; } | null, VirtualListInst | { listElRef: HTMLElement; itemsElRef: HTMLElement | null; scrollTo: import("vueuc").VVirtualListScrollTo; } | null>; virtualScroll: import("vue").Ref<boolean, boolean>; itemSize: import("vue").ComputedRef<number>; handleVlScroll: () => void; getVlContainer: () => HTMLElement | undefined; getVlContent: () => HTMLElement | null | undefined; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ depth: { type: NumberConstructor; required: true; }; tmNodes: { type: PropType<TmNode[]>; required: true; }; }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default;