未设置前
光标在左边
<input type="number" placeholder="请输入分润数量" placeholder-class="shareprofit_placeholder_num"
v-model="money">
设置后
光标在右边
<input type="number" placeholder="请输入分润数量" placeholder-class="shareprofit_placeholder_num"
v-model="money" style="text-align: right; direction: rtl;">
要设置input样式
在input加上这两个样式就ok了
.identity-input {
text-align: right;
direction: rtl;
}
转自大佬