el-input聚焦时全选文本 <el-input @focus="getInputFocus($event)" clearable v-model="consignorName"> </el-input> getInputFocus(event) { event.currentTarget.select(); } 标签:Elementvue