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

Function applyModelFromMixins

packages/runtime-core/src/compat/componentVModel.ts:66–73  ·  view source on GitHub ↗
(model: any, mixins?: ComponentOptions[])

Source from the content-addressed store, hash-verified

64}
65
66function applyModelFromMixins(model: any, mixins?: ComponentOptions[]) {
67 if (mixins) {
68 mixins.forEach(m => {
69 if (m.model) extend(model, m.model)
70 if (m.mixins) applyModelFromMixins(model, m.mixins)
71 })
72 }
73}
74
75export function compatModelEmit(
76 instance: ComponentInternalInstance,

Callers 1

convertLegacyVModelPropsFunction · 0.85

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected