2019-10-10 22:02:51 +00:00
|
|
|
import { registerRuntimeHelpers } from '@vue/compiler-core'
|
|
|
|
|
|
|
|
export const V_MODEL_RADIO = Symbol(__DEV__ ? `vModelRadio` : ``)
|
|
|
|
export const V_MODEL_CHECKBOX = Symbol(__DEV__ ? `vModelCheckbox` : ``)
|
|
|
|
export const V_MODEL_TEXT = Symbol(__DEV__ ? `vModelText` : ``)
|
|
|
|
export const V_MODEL_SELECT = Symbol(__DEV__ ? `vModelSelect` : ``)
|
|
|
|
export const V_MODEL_DYNAMIC = Symbol(__DEV__ ? `vModelDynamic` : ``)
|
|
|
|
|
2019-10-14 04:33:23 +00:00
|
|
|
export const V_ON_MODIFIERS_GUARD = Symbol(__DEV__ ? `vOnModifiersGuard` : ``)
|
|
|
|
export const V_ON_KEYS_GUARD = Symbol(__DEV__ ? `vOnKeysGuard` : ``)
|
|
|
|
|
2019-10-10 22:02:51 +00:00
|
|
|
registerRuntimeHelpers({
|
|
|
|
[V_MODEL_RADIO]: `vModelRadio`,
|
|
|
|
[V_MODEL_CHECKBOX]: `vModelCheckbox`,
|
|
|
|
[V_MODEL_TEXT]: `vModelText`,
|
|
|
|
[V_MODEL_SELECT]: `vModelSelect`,
|
2019-10-14 04:33:23 +00:00
|
|
|
[V_MODEL_DYNAMIC]: `vModelDynamic`,
|
2019-10-18 20:20:45 +00:00
|
|
|
[V_ON_MODIFIERS_GUARD]: `withModifiers`,
|
|
|
|
[V_ON_KEYS_GUARD]: `withKeys`
|
2019-10-10 22:02:51 +00:00
|
|
|
})
|