mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[bugfix] Picker should prevent default touchmove (#432)
This commit is contained in:
@@ -109,7 +109,7 @@ export default create({
|
||||
frameStyle() {
|
||||
return {
|
||||
height: this.itemHeight + 'px'
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
currentValue() {
|
||||
@@ -168,7 +168,7 @@ export default create({
|
||||
},
|
||||
|
||||
setValue(value) {
|
||||
const { options, valueKey } = this;
|
||||
const { options } = this;
|
||||
for (let i = 0; i < options.length; i++) {
|
||||
if (this.getOptionText(options[i]) === value) {
|
||||
this.setIndex(i);
|
||||
|
Reference in New Issue
Block a user