mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
chore: improve watcher
This commit is contained in:
@@ -112,17 +112,17 @@ export default createComponent({
|
||||
},
|
||||
|
||||
watch: {
|
||||
max: 'check',
|
||||
min: 'check',
|
||||
integer: 'check',
|
||||
decimalLength: 'check',
|
||||
|
||||
value(val) {
|
||||
if (!equal(val, this.currentValue)) {
|
||||
this.currentValue = this.format(val);
|
||||
}
|
||||
},
|
||||
|
||||
max: 'check',
|
||||
min: 'check',
|
||||
integer: 'check',
|
||||
decimalLength: 'check',
|
||||
|
||||
currentValue(val) {
|
||||
this.$emit('input', val);
|
||||
this.$emit('change', val, { name: this.name });
|
||||
|
Reference in New Issue
Block a user