element-ui中给input加单位符号

在input标签中加入 : <i slot="suffix" style="font-style:normal;margin-right: 10px;">℃</i>

<el-form-item label="温度:" class="layout">
   <el-input v-model="form.temperature" placeholder="工艺温度" ><i slot="suffix" style="font-style:normal;margin-right: 10px;">℃</i></el-input>
</el-form-item>

  

原文地址:https://www.cnblogs.com/ygunoil/p/13383957.html