UNPKG

weapp-tailwindcss

Version:

把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!

22 lines (21 loc) 880 B
interface RewriteCodeOptions { wrapExpression?: boolean; } export declare function hasTopLevelVariant(candidate: string): boolean; export declare function shouldEnableComponentLocalStyle(id: string): boolean; export declare function shouldEnablePageLocalStyle(id: string): boolean; export declare class UniAppXComponentLocalStyleCollector { private readonly fileId; private readonly runtimeSet?; private aliasByUtility; private aliasByLookup; constructor(fileId: string, runtimeSet?: Set<string> | undefined); private ensureAlias; private rewriteLiteral; collectAndRewriteStaticClass(literal: string): string; collectRuntimeClasses(rawSource: string, options?: RewriteCodeOptions): void; rewriteTransformedCode(rawSource: string, options?: RewriteCodeOptions): string; hasStyles(): boolean; toStyleBlock(): string; } export {};