vue element-ui el-input 动态获取 焦点 使用 ref <el-input ref="ref"/> //进行 获取 焦点 this.$refs.ref.focus() 如果是动态的 显示 例如:v-if 或 v-show 结合用 需要加载完成后在获取 //进行 加载好后 获取焦点 this.$nextTick(() => { this.$refs.inputNumberRef.focus() })