feat(Form): scrollToField can scroll to bottom (#6335)

This commit is contained in:
neverland
2020-05-21 19:15:50 +08:00
committed by GitHub
parent 6630816742
commit 96ef2557c2
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -119,10 +119,10 @@ export default createComponent({
},
// @exposed-api
scrollToField(name) {
scrollToField(name, options) {
this.fields.forEach((item) => {
if (item.name === name) {
item.$el.scrollIntoView();
item.$el.scrollIntoView(options);
}
});
},