<el-input v-model="filterPlanName" ref="autoFocus" ></el-input>
this.$nextTick((_) => {
this.$refs.autoFocus.focus();
})
参考:
<el-input v-model="filterPlanName" ref="autoFocus" ></el-input>
this.$nextTick((_) => {
this.$refs.autoFocus.focus();
})
参考: