mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 20:04:09 +00:00
Merge branch 'dev' into next
This commit is contained in:
@@ -126,10 +126,12 @@ export default createComponent({
|
||||
|
||||
// @exposed-api
|
||||
scrollToField(name, options) {
|
||||
this.fields.forEach((item) => {
|
||||
this.fields.some((item) => {
|
||||
if (item.name === name) {
|
||||
item.$el.scrollIntoView(options);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user