style(Field): remove word num full color (#6545)
This commit is contained in:
+1
-3
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user