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

Function getModelModifiers

packages/runtime-core/src/helpers/useModel.ts:128–137  ·  view source on GitHub ↗
(
  props: Record<string, any>,
  modelName: string,
)

Source from the content-addressed store, hash-verified

126}
127
128export const getModelModifiers = (
129 props: Record<string, any>,
130 modelName: string,
131): Record<string, boolean> | undefined => {
132 return modelName === 'modelValue' || modelName === 'model-value'
133 ? props.modelModifiers
134 : props[`${modelName}Modifiers`] ||
135 props[`${camelize(modelName)}Modifiers`] ||
136 props[`${hyphenate(modelName)}Modifiers`]
137}

Callers 2

emitFunction · 0.90
useModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected