feat(textarea): add clearable styles and docs - #2588
Closed
Phoen1xCode wants to merge 2 commits into
Closed
Conversation
Collaborator
|
谢谢参与犀牛鸟活动,综合实现的视觉效果,决定采纳 #2583 继续推进 |
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.
🤔 这个 PR 的性质是?
🔗 相关 Issue
Closes #2566
关联框架实现 PR:
💡 需求背景和解决方案
Textarea 缺少与 Input 一致的可清空能力。用户在输入多行文本后,需要通过手动选删除内容完成清空。
Textarea 组件新增
clearable能力后,需要在 common 中补充跨框架共享样式和文档说明。实现内容:
.t-textarea__clear清空图标样式.t-textarea--clearable:hover .t-textarea__clearhover 可见规则验证:
npx lessc style/web/components/textarea/_index.less /tmp/textarea-out.css效果展示:
2026-07-02.03-32-28.mov
📝 更新日志
feat(textarea): 支持多行文本框清空图标样式与文档说明
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单