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 = () => ;