html代码:
<el-input ref="formdescInput" v-model="formdesc" placeholder="请输入描述语"/>
js代码:
this.$nextTick(() => {
this.$refs.formdescInput.$refs.input.focus();
});
html代码:
<el-input ref="formdescInput" v-model="formdesc" placeholder="请输入描述语"/>
js代码:
this.$nextTick(() => {
this.$refs.formdescInput.$refs.input.focus();
});