el-input在输入框后加单位

在使用过程中遇到要在输入框后加上单位的情况,采用下述代码即可实现,再对单位的样式进行完善

<el-input v-model="value">
  <i slot="suffix" style="font-style:normal;"></i>
</el-input>
posted @ 2022-06-22 16:53  zwbsoft  阅读(2793)  评论(0编辑  收藏  举报