<u--input type="text" maxlength="10" placeholder="请填写具体诊断" border="none" @change="change"
placeholderStyle="color:#CCCCCC;font-size: 28rpx;height: 40rpx;font-weight: 500;line-height: 33rpx;" showWordLimit="true"></u--input>
//在input标签后添加:
<text
class="u-input__showWordLimit"
:style="{
'background-color': disabled ? 'transparent' : '#fff',
}"
v-if="showWordLimit"
>{{ innerValue.length }}/{{ maxlength }}</text>
//style里.u-input下添加
&__showWordLimit {
position: absolute;
right: 5px;
bottom: 2px;
font-size: 12px;
color: $u-tips-color;
background-color: #ffffff;
padding: 1px 4px;
}
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!