Commit 259aeec3 authored by 杨奕's avatar 杨奕 Committed by GitHub

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

parent cf7f117b
...@@ -237,6 +237,9 @@ ...@@ -237,6 +237,9 @@
this.visible = false; this.visible = false;
} }
this.$emit('command', command, instance); this.$emit('command', command, instance);
},
focus() {
this.triggerElm.focus && this.triggerElm.focus();
} }
}, },
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
.el-input__inner { .el-input__inner {
text-align: center; text-align: center;
-moz-appearance: textfield; -moz-appearance: textfield;
line-height: normal;
} }
// pagesize 的下拉 icon // pagesize 的下拉 icon
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment