-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use correct event type for checkbox v-model handler (#1083)
- Loading branch information
1 parent
92c3f71
commit ef66c26
Showing
12 changed files
with
132 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
import Vue from 'vue' | ||
import { semVerGreaterThan } from './util' | ||
import semver from 'semver' | ||
|
||
export const NAME_SELECTOR = 'NAME_SELECTOR' | ||
export const COMPONENT_SELECTOR = 'COMPONENT_SELECTOR' | ||
export const REF_SELECTOR = 'REF_SELECTOR' | ||
export const DOM_SELECTOR = 'DOM_SELECTOR' | ||
export const INVALID_SELECTOR = 'INVALID_SELECTOR' | ||
|
||
export const VUE_VERSION = Number( | ||
`${Vue.version.split('.')[0]}.${Vue.version.split('.')[1]}` | ||
) | ||
|
||
export const FUNCTIONAL_OPTIONS = | ||
VUE_VERSION >= 2.5 ? 'fnOptions' : 'functionalOptions' | ||
|
||
export const BEFORE_RENDER_LIFECYCLE_HOOK = | ||
semVerGreaterThan(Vue.version, '2.1.8') | ||
semver.gt(Vue.version, '2.1.8') | ||
? 'beforeCreate' | ||
: 'beforeMount' | ||
|
||
export const CREATE_ELEMENT_ALIAS = semver.gt(Vue.version, '2.1.5') | ||
? '_c' | ||
: '_h' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.