naive-ui
Version:
A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
107 lines (106 loc) • 3.96 kB
TypeScript
import { type CSSProperties, type ExtractPropTypes, type PropType } from 'vue';
import type { ExtractPublicPropTypes } from '../../_utils';
export interface LoadingBarInst {
start: () => void;
error: () => void;
finish: () => void;
}
export type LoadingBarProviderInst = LoadingBarInst;
export type LoadingBarApiInjection = LoadingBarInst;
export declare const loadingBarProviderProps: {
to: {
type: PropType<string | HTMLElement | false>;
default: undefined;
};
containerClass: StringConstructor;
containerStyle: PropType<string | CSSProperties>;
loadingBarStyle: {
type: PropType<{
loading?: string | CSSProperties;
error?: string | CSSProperties;
}>;
};
theme: PropType<import("../../_mixins").Theme<"LoadingBar", {
colorError: string;
colorLoading: string;
height: string;
}, any>>;
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"LoadingBar", {
colorError: string;
colorLoading: string;
height: string;
}, any>>>;
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"LoadingBar", {
colorError: string;
colorLoading: string;
height: string;
}, any>>>;
};
export type LoadingBarProviderProps = ExtractPublicPropTypes<typeof loadingBarProviderProps>;
export type LoadingBarProviderSetupProps = ExtractPropTypes<typeof loadingBarProviderProps>;
declare const _default: import("vue").DefineComponent<{
to: {
type: PropType<string | HTMLElement | false>;
default: undefined;
};
containerClass: StringConstructor;
containerStyle: PropType<string | CSSProperties>;
loadingBarStyle: {
type: PropType<{
loading?: string | CSSProperties;
error?: string | CSSProperties;
}>;
};
theme: PropType<import("../../_mixins").Theme<"LoadingBar", {
colorError: string;
colorLoading: string;
height: string;
}, any>>;
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"LoadingBar", {
colorError: string;
colorLoading: string;
height: string;
}, any>>>;
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"LoadingBar", {
colorError: string;
colorLoading: string;
height: string;
}, any>>>;
}, LoadingBarInst & {
loadingBarRef: import("vue").Ref<{
start: () => void;
error: () => void;
finish: () => void;
} | null>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
to: {
type: PropType<string | HTMLElement | false>;
default: undefined;
};
containerClass: StringConstructor;
containerStyle: PropType<string | CSSProperties>;
loadingBarStyle: {
type: PropType<{
loading?: string | CSSProperties;
error?: string | CSSProperties;
}>;
};
theme: PropType<import("../../_mixins").Theme<"LoadingBar", {
colorError: string;
colorLoading: string;
height: string;
}, any>>;
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"LoadingBar", {
colorError: string;
colorLoading: string;
height: string;
}, any>>>;
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"LoadingBar", {
colorError: string;
colorLoading: string;
height: string;
}, any>>>;
}>>, {
to: string | false | HTMLElement;
}, {}>;
export default _default;