vue3:
<el-input class="center-input" v-model="***"/>
<style scoped>
::v-deep(.center-input .el-input__inner ){
text-align: center;
}
</style>
vue2:
<el-input class="center-input" v-model="***"/>
<style scoped>
/v-deep/ .center-input .el-input__inner {
text-align: center;
}
</style>
主要处理vue样式穿透的问题,也可参考vue------样式穿透/deep/ >>> ::v-deep 三者的区别