[犀牛鸟]feat(textarea): add clearable to support clearing func - #6785
Open
LiamFan16-mikasa wants to merge 4 commits into
Open
[犀牛鸟]feat(textarea): add clearable to support clearing func#6785LiamFan16-mikasa wants to merge 4 commits into
LiamFan16-mikasa wants to merge 4 commits into
Conversation
LiamFan16-mikasa
requested review from
Cat1007,
PengYYYYY,
Wesley-0808,
chaishi,
liweijie0812,
uyarn,
zhangpaopao0609 and
zydemail
as code owners
July 6, 2026 07:51
16 tasks
Collaborator
TDesign Component Site Preview Open
|
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

closes Tencent/tdesign-common#2566
🤔 这个 PR 的性质是?
🔗 相关 Issue
本 Issue 是 Tencent/tdesign-common#2566
依赖PR:Tencent/tdesign-common#2613
💡 需求背景和解决方案
clearable属性和onClear事件。实现内容:
clearable属性,控制是否展示清空按钮,默认falseonClear事件,点击清空按钮时触发,同步清空内部受控值、原生 DOM 值并重新计算高度核心改进点与优化:
clearable开关的问题效果展示:


📝 更新日志
tdesign-vue-next
clearable属性和onClear事件,支持一键清空内容@tdesign-vue-next/chat
@tdesign-vue-next/nuxt
@tdesign-vue-next/auto-import-resolver
☑️ 请求合并前的自查清单