mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
build: compile 0.5.27
This commit is contained in:
parent
91ec25ea40
commit
65e8181761
10
dist/stepper/index.js
vendored
10
dist/stepper/index.js
vendored
@ -53,7 +53,9 @@ VantComponent({
|
|||||||
if (typeof newValue === 'number' && +this.data.value !== newValue) {
|
if (typeof newValue === 'number' && +this.data.value !== newValue) {
|
||||||
this.set({ value: newValue });
|
this.set({ value: newValue });
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
max: 'check',
|
||||||
|
min: 'check',
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
focus: false
|
focus: false
|
||||||
@ -64,6 +66,12 @@ VantComponent({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
check() {
|
||||||
|
const newValue = this.range(this.data.value);
|
||||||
|
if (typeof newValue === 'number' && +this.data.value !== newValue) {
|
||||||
|
this.set({ value: newValue });
|
||||||
|
}
|
||||||
|
},
|
||||||
onFocus(event) {
|
onFocus(event) {
|
||||||
this.$emit('focus', event.detail);
|
this.$emit('focus', event.detail);
|
||||||
},
|
},
|
||||||
|
@ -55,7 +55,9 @@ component_1.VantComponent({
|
|||||||
if (typeof newValue === 'number' && +this.data.value !== newValue) {
|
if (typeof newValue === 'number' && +this.data.value !== newValue) {
|
||||||
this.set({ value: newValue });
|
this.set({ value: newValue });
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
max: 'check',
|
||||||
|
min: 'check',
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
focus: false
|
focus: false
|
||||||
@ -66,6 +68,12 @@ component_1.VantComponent({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
check: function () {
|
||||||
|
var newValue = this.range(this.data.value);
|
||||||
|
if (typeof newValue === 'number' && +this.data.value !== newValue) {
|
||||||
|
this.set({ value: newValue });
|
||||||
|
}
|
||||||
|
},
|
||||||
onFocus: function (event) {
|
onFocus: function (event) {
|
||||||
this.$emit('focus', event.detail);
|
this.$emit('focus', event.detail);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user