MCPcopy
hub / github.com/vuejs/core / getFunctionalFallthrough

Function getFunctionalFallthrough

packages/runtime-core/src/componentRenderUtils.ts:344–352  ·  view source on GitHub ↗
(attrs: Data)

Source from the content-addressed store, hash-verified

342}
343
344const getFunctionalFallthrough = (attrs: Data): Data | undefined => {
345 let res: Data | undefined
346 for (const key in attrs) {
347 if (key === 'class' || key === 'style' || isOn(key)) {
348 ;(res || (res = {}))[key] = attrs[key]
349 }
350 }
351 return res
352}
353
354const filterModelListeners = (attrs: Data, props: NormalizedProps): Data => {
355 const res: Data = {}

Callers 1

renderComponentRootFunction · 0.85

Calls 1

isOnFunction · 0.90

Tested by

no test coverage detected