From 79f3f330de81caa6d76ff413c6c3a2872a36e6d5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=91=E6=96=87=E5=8F=AF?= <1041367524@qq.com>
Date: Thu, 9 Jun 2022 15:22:31 +0800
Subject: [PATCH] =?UTF-8?q?perf:=20=E8=BE=93=E5=85=A5=E6=A1=86=E9=BB=98?=
=?UTF-8?q?=E8=AE=A4=E9=99=90=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/extra/ElInput.vue | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/components/extra/ElInput.vue b/src/components/extra/ElInput.vue
index 6851a69..7435014 100644
--- a/src/components/extra/ElInput.vue
+++ b/src/components/extra/ElInput.vue
@@ -13,6 +13,10 @@
type: Boolean,
default: true,
},
+ maxlength: {
+ type: [Number, String],
+ default: 255,
+ },
placeholder: {
type: String,
default: '请输入',
@@ -44,6 +48,7 @@
});
const attrs = useAttrs();
const slots = useSlots();
- const render = () => ;
+ const showWordLimit = props.showWordLimit === true && props.maxlength !== 255;
+ const render = () => ;