<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标签后添加:<textclass="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;}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号