MCPcopy
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
419export function useAttrs(): SetupContext['attrs'] {
420 return getContext('useAttrs').attrs
421}
422
423function getContext(calledFunctionName: string): SetupContext {
424 const i = getCurrentInstance()!

Callers 3

setupFunction · 0.90
tsx.test-d.tsxFile · 0.85

Calls 1

getContextFunction · 0.85

Tested by 1

setupFunction · 0.72