useCssModule() — vue Function Reference
Architecture documentation for the useCssModule() function in useCssModule.ts from the vue codebase.
Entity Profile
Relationship Graph
Source Code
src/v3/sfc-helpers/useCssModule.ts lines 4–24
export function useCssModule(name = '$style'): Record<string, string> {
/* istanbul ignore else */
if (!__GLOBAL__) {
if (!currentInstance) {
__DEV__ && warn(`useCssModule must be called inside setup()`)
return emptyObject
}
const mod = currentInstance[name]
if (!mod) {
__DEV__ &&
warn(`Current instance does not have CSS module named "${name}".`)
return emptyObject
}
return mod as Record<string, string>
} else {
if (__DEV__) {
warn(`useCssModule() is not supported in the global build.`)
}
return emptyObject
}
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free