Parcourir la source

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

杨奕 il y a 7 ans
Parent
commit
259aeec369

+ 3 - 0
packages/dropdown/src/dropdown.vue

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

+ 1 - 0
packages/theme-chalk/src/pagination.scss

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