Function
getModelModifiers
(
props: Record<string, any>,
modelName: string,
)
Source from the content-addressed store, hash-verified
| 126 | } |
| 127 | |
| 128 | export 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 | } |
Tested by
no test coverage detected