style(Field): remove word num full color (#6545)

This commit is contained in:
neverland
2020-06-15 21:02:29 +08:00
committed by GitHub
parent 700a0f23f7
commit 35a4b95ef2
4 changed files with 2 additions and 11 deletions
+1 -3
View File
@@ -497,12 +497,10 @@ export default createComponent({
genWordLimit() {
if (this.showWordLimit && this.maxlength) {
const count = (this.value || '').length;
const full = count >= this.maxlength;
return (
<div class={bem('word-limit')}>
<span class={bem('word-num', { full })}>{count}</span>/
{this.maxlength}
<span class={bem('word-num')}>{count}</span>/{this.maxlength}
</div>
);
}