Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vuejs/core
/ useAttrs
Function
useAttrs
packages/runtime-core/src/apiSetupHelpers.ts:419–421 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
417
}
418
419
export
function
useAttrs(): SetupContext[
'attrs'
] {
420
return
getContext(
'useAttrs'
).attrs
421
}
422
423
function
getContext(calledFunctionName: string): SetupContext {
424
const
i = getCurrentInstance()!
Callers
3
setup
Function · 0.90
tsx.test-d.tsx
File · 0.85
setupHelpers.test-d.ts
File · 0.85
Calls
1
getContext
Function · 0.85
Tested by
1
setup
Function · 0.72