init
This commit is contained in:
67
cool-admin-vue/packages/vite-plugin/dist/uniapp-x.d.ts
vendored
Normal file
67
cool-admin-vue/packages/vite-plugin/dist/uniapp-x.d.ts
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
interface PostcssRemToRpxOptions {
|
||||
remUnit?: number;
|
||||
remPrecision?: number;
|
||||
rpxRatio?: number;
|
||||
}
|
||||
interface TailwindTransformOptions extends PostcssRemToRpxOptions {
|
||||
}
|
||||
/**
|
||||
* Vite 插件:自动转换 .uvue 文件中的 Tailwind 类名为安全字符
|
||||
* 并自动注入 rem 转 rpx 的 PostCSS 插件
|
||||
* @param options 配置项
|
||||
* @returns Vite 插件对象
|
||||
*/
|
||||
export declare function tailwindTransformPlugin(options?: TailwindTransformOptions): {
|
||||
name: string;
|
||||
enforce: "pre";
|
||||
config(): {
|
||||
css: {
|
||||
postcss: {
|
||||
plugins: {
|
||||
postcssPlugin: string;
|
||||
prepare(): {
|
||||
Rule(rule: any): void;
|
||||
Declaration(decl: any): void;
|
||||
};
|
||||
}[];
|
||||
};
|
||||
};
|
||||
};
|
||||
transform(code: string, id: string): {
|
||||
code: string;
|
||||
map: {
|
||||
mappings: string;
|
||||
};
|
||||
} | null;
|
||||
};
|
||||
/**
|
||||
* uniappX 入口,自动注入 Tailwind 类名转换插件
|
||||
* @param options 配置项
|
||||
* @returns Vite 插件数组
|
||||
*/
|
||||
export declare function uniappX(options?: {
|
||||
tailwind?: TailwindTransformOptions;
|
||||
}): {
|
||||
name: string;
|
||||
enforce: "pre";
|
||||
config(): {
|
||||
css: {
|
||||
postcss: {
|
||||
plugins: {
|
||||
postcssPlugin: string;
|
||||
prepare(): {
|
||||
Rule(rule: any): void;
|
||||
Declaration(decl: any): void;
|
||||
};
|
||||
}[];
|
||||
};
|
||||
};
|
||||
};
|
||||
transform(code: string, id: string): {
|
||||
code: string;
|
||||
map: {
|
||||
mappings: string;
|
||||
};
|
||||
} | null;
|
||||
}[];
|
||||
export {};
|
Reference in New Issue
Block a user