UNPKG

naive-ui

Version:

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

162 lines (161 loc) 6.09 kB
import { type PropType } from 'vue'; import type { ExtractPublicPropTypes } from '../../_utils'; export declare const badgeProps: { readonly value: PropType<string | number>; readonly max: NumberConstructor; readonly dot: BooleanConstructor; readonly type: { readonly type: PropType<"success" | "error" | "warning" | "info" | "default">; readonly default: "default"; }; readonly show: { readonly type: BooleanConstructor; readonly default: true; }; readonly showZero: BooleanConstructor; readonly processing: BooleanConstructor; readonly color: StringConstructor; readonly offset: PropType<readonly [number | string, number | string]>; readonly theme: PropType<import("../../_mixins").Theme<"Badge", { color: string; colorInfo: string; colorSuccess: string; colorError: string; colorWarning: string; fontSize: string; fontFamily: string; }, any>>; readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", { color: string; colorInfo: string; colorSuccess: string; colorError: string; colorWarning: string; fontSize: string; fontFamily: string; }, any>>>; readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", { color: string; colorInfo: string; colorSuccess: string; colorError: string; colorWarning: string; fontSize: string; fontFamily: string; }, any>>>; }; export type BadgeProps = ExtractPublicPropTypes<typeof badgeProps>; declare const _default: import("vue").DefineComponent<{ readonly value: PropType<string | number>; readonly max: NumberConstructor; readonly dot: BooleanConstructor; readonly type: { readonly type: PropType<"success" | "error" | "warning" | "info" | "default">; readonly default: "default"; }; readonly show: { readonly type: BooleanConstructor; readonly default: true; }; readonly showZero: BooleanConstructor; readonly processing: BooleanConstructor; readonly color: StringConstructor; readonly offset: PropType<readonly [number | string, number | string]>; readonly theme: PropType<import("../../_mixins").Theme<"Badge", { color: string; colorInfo: string; colorSuccess: string; colorError: string; colorWarning: string; fontSize: string; fontFamily: string; }, any>>; readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", { color: string; colorInfo: string; colorSuccess: string; colorError: string; colorWarning: string; fontSize: string; fontFamily: string; }, any>>>; readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", { color: string; colorInfo: string; colorSuccess: string; colorError: string; colorWarning: string; fontSize: string; fontFamily: string; }, any>>>; }, { rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined; mergedClsPrefix: import("vue").Ref<string>; appeared: import("vue").Ref<boolean>; showBadge: import("vue").ComputedRef<boolean>; handleAfterEnter: () => void; handleAfterLeave: () => void; cssVars: import("vue").ComputedRef<{ '--n-font-size': string; '--n-font-family': string; '--n-color': string; '--n-ripple-color': string; '--n-bezier': string; '--n-ripple-bezier': string; }> | undefined; themeClass: import("vue").Ref<string> | undefined; onRender: (() => void) | undefined; offsetStyle: import("vue").ComputedRef<{ transform: string; } | undefined>; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ readonly value: PropType<string | number>; readonly max: NumberConstructor; readonly dot: BooleanConstructor; readonly type: { readonly type: PropType<"success" | "error" | "warning" | "info" | "default">; readonly default: "default"; }; readonly show: { readonly type: BooleanConstructor; readonly default: true; }; readonly showZero: BooleanConstructor; readonly processing: BooleanConstructor; readonly color: StringConstructor; readonly offset: PropType<readonly [number | string, number | string]>; readonly theme: PropType<import("../../_mixins").Theme<"Badge", { color: string; colorInfo: string; colorSuccess: string; colorError: string; colorWarning: string; fontSize: string; fontFamily: string; }, any>>; readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", { color: string; colorInfo: string; colorSuccess: string; colorError: string; colorWarning: string; fontSize: string; fontFamily: string; }, any>>>; readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", { color: string; colorInfo: string; colorSuccess: string; colorError: string; colorWarning: string; fontSize: string; fontFamily: string; }, any>>>; }>>, { readonly type: "default" | "error" | "info" | "success" | "warning"; readonly show: boolean; readonly dot: boolean; readonly showZero: boolean; readonly processing: boolean; }, {}>; export default _default;