vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
29 lines (28 loc) • 1.18 kB
TypeScript
import { configIcons, configLocale, configZIndex, IconsOptions, LocaleConfig, LocaleOptions } from '@vexip-ui/config';
import { App, MaybeRef } from 'vue';
import { PropsOptions } from './props';
export interface InstallOptions {
prefix?: string;
namespace?: MaybeRef<string>;
props?: MaybeRef<PropsOptions>;
locale?: MaybeRef<LocaleOptions>;
zIndex?: MaybeRef<number>;
icons?: MaybeRef<IconsOptions>;
hoverDelay?: MaybeRef<number>;
}
export declare function buildInstall(components?: any[], defaultLocale?: LocaleConfig): (app: App, options?: InstallOptions) => void;
/**
* Provide a props config for under components.
*
* @param props props config
* @param app the app of Vue, will use app.provide if specify
*/
declare function proxyConfigProps(props: MaybeRef<PropsOptions>, app?: App): void;
/**
* Provide supported config for under components.
*
* @param config supported config
* @param app the app of Vue, will use app.provide if specify
*/
export declare function provideConfig(config?: Omit<InstallOptions, 'prefix' | 'namespace'>, app?: App): void;
export { proxyConfigProps as configProps, configLocale, configZIndex, configIcons };