From 259aeec369c2b03f699b72a16ef10ee0a6f6024a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=A5=95?= Date: Wed, 21 Mar 2018 19:30:29 +0800 Subject: [PATCH] Dropdown: add focus method so it can be triggered when used with Popover and Tooltip (#10288) --- packages/dropdown/src/dropdown.vue | 3 +++ packages/theme-chalk/src/pagination.scss | 1 + 2 files changed, 4 insertions(+) diff --git a/packages/dropdown/src/dropdown.vue b/packages/dropdown/src/dropdown.vue index 931f749a2..0f52e755f 100644 --- a/packages/dropdown/src/dropdown.vue +++ b/packages/dropdown/src/dropdown.vue @@ -237,6 +237,9 @@ this.visible = false; } this.$emit('command', command, instance); + }, + focus() { + this.triggerElm.focus && this.triggerElm.focus(); } }, diff --git a/packages/theme-chalk/src/pagination.scss b/packages/theme-chalk/src/pagination.scss index 4176d1ed8..e1b9be098 100644 --- a/packages/theme-chalk/src/pagination.scss +++ b/packages/theme-chalk/src/pagination.scss @@ -24,6 +24,7 @@ .el-input__inner { text-align: center; -moz-appearance: textfield; + line-height: normal; } // pagesize ηš„δΈ‹ζ‹‰ icon