We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前 Textarea 组件是有两个 API show-count 和 maxlength 用于控制渲染右下角的字数统计,不够灵活。
show-count
maxlength
如果这里确认需要修改的话,希望作为 good first issue
是否可以考虑新增字数渲染的自定义插槽,并提供输入的文本内容的上下文。 这样做不仅带来了更灵活的自定义渲染,还提供了更多功能拓展——比如用户对内容进行校验后,可以在右下角渲染对应的提示。
插槽,形如:
<template #counter #text="{data}">自定义渲染的字数统计</template>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What problem does this feature solve
现状
目前 Textarea 组件是有两个 API
show-count
和maxlength
用于控制渲染右下角的字数统计,不够灵活。补充
如果这里确认需要修改的话,希望作为 good first issue
What does the proposed API look like
改进思路
是否可以考虑新增字数渲染的自定义插槽,并提供输入的文本内容的上下文。
这样做不仅带来了更灵活的自定义渲染,还提供了更多功能拓展——比如用户对内容进行校验后,可以在右下角渲染对应的提示。
API 形式
插槽,形如:
The text was updated successfully, but these errors were encountered: