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

Function convertLegacyEventKey

packages/runtime-core/src/compat/renderFn.ts:229–241  ·  view source on GitHub ↗
(event: string)

Source from the content-addressed store, hash-verified

227}
228
229function convertLegacyEventKey(event: string): string {
230 // normalize v2 event prefixes
231 if (event[0] === '&') {
232 event = event.slice(1) + 'Passive'
233 }
234 if (event[0] === '~') {
235 event = event.slice(1) + 'Once'
236 }
237 if (event[0] === '!') {
238 event = event.slice(1) + 'Capture'
239 }
240 return toHandlerKey(event)
241}
242
243function convertLegacyDirectives(
244 vnode: VNode,

Callers 1

convertLegacyPropsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected