vue-autonumeric-directive
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "vue-autonumeric-directive", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Vue directive plugin to assure number to be number", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-autonumeric-directive.common.js", |
@@ -55,2 +55,11 @@ /* @flow */ | ||
}, | ||
update(el, binding: VNodeDirective, vnode: VNode) { | ||
if (el._autoNumericElement.valueOnFocus !== binding.value.bind) { // 通过代码直接修改了binding.value.bind会进入这个逻辑 | ||
let targetElement = checkElementType(el, vnode) | ||
let oldValue = getVNodeValue(vnode) | ||
let options = getOptions(binding, outerOptions) | ||
el._autoNumericElement = new AutoNumeric(targetElement, oldValue, options.numricOptions) | ||
} | ||
}, | ||
}) | ||
@@ -57,0 +66,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1282596
4383