feat(Field): fix render error when value is null or undefined (#6419)

This commit is contained in:
lazy1993
2020-05-30 20:34:52 +08:00
committed by GitHub
parent 754e8994a0
commit ba04660ed3
3 changed files with 41 additions and 1 deletions
+1 -1
View File
@@ -491,7 +491,7 @@ export default createComponent({
genWordLimit() {
if (this.showWordLimit && this.maxlength) {
const count = this.value.length;
const count = (this.value || '').length;
const full = count >= this.maxlength;
return (