在 el-input标签内添加readonly属性:
<div>
<p>
<strong>截至此时,本次按月补贴决算总金额为:</strong>
</p>
<el-input v-model="total" style="width:150px;" readonly="true">
</el-input>
</div>
本文介绍如何在Element UI的El-Input组件中添加readonly属性,实现输入框的只读状态,展示了一段具体的代码实例。
在 el-input标签内添加readonly属性:
<div>
<p>
<strong>截至此时,本次按月补贴决算总金额为:</strong>
</p>
<el-input v-model="total" style="width:150px;" readonly="true">
</el-input>
</div>
4290