mirror of https://github.com/ElemeFE/element
Dropdown: add focus method so it can be triggered when used with Popover and Tooltip (#10288)
parent
cf7f117bfb
commit
259aeec369
|
@ -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 @@
|
||||||
.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
|
||||||
|
|
Loading…
Reference in New Issue