@ctsy/layui-vue
Version:
a component library for Vue 3 base on layui-vue
36 lines (35 loc) • 768 B
TypeScript
export interface LayuiVueResolverOptions {
/**
* import style along with components
*
* @default 'css'
*/
importStyle?: boolean | "css";
/**
* resolve `@layui/layui-vue' icons
* requires package `@layui/icons-vue`
*
* @default false
*/
resolveIcons?: boolean;
/**
* exclude components that do not require automatic import
* @default []
*
*/
exclude?: string[];
}
/**
* Resolver for layui-vue
*
* @param options
* @returns
*/
export declare function LayuiVueResolver(options?: LayuiVueResolverOptions): {
type: string;
resolve: (name: string) => {
importName: string;
path: string;
sideEffects: string | string[] | undefined;
} | null;
};