Dropdown: add focus method so it can be triggered when used with Popover and Tooltip (#10288)

pull/10291/head
杨奕 2018-03-21 19:30:29 +08:00 committed by GitHub
parent cf7f117bfb
commit 259aeec369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -237,6 +237,9 @@
this.visible = false;
}
this.$emit('command', command, instance);
},
focus() {
this.triggerElm.focus && this.triggerElm.focus();
}
},

View File

@ -24,6 +24,7 @@
.el-input__inner {
text-align: center;
-moz-appearance: textfield;
line-height: normal;
}
// pagesize icon