Skip to content

feat(input): 新增 autoTruncate 配置项,支持超出 maxlength 时不自动截断 #AI commit# - #1030

Merged
wanchun merged 1 commit into
mainfrom
feat-input-exceed-limit
Sep 16, 2026
Merged

wanchun merged 1 commit into
mainfrom
feat-input-exceed-limit

Conversation

@ocean-gao

Copy link
Copy Markdown
Collaborator
  • 默认 true 保持现有截断行为;为 false 时不向原生元素透传 maxlength,键入/粘贴/程序赋值均可超出限制
  • 不截断模式下字数统计正常计算展示并标红,粘贴超长不弹出提示
  • 补齐 vitest 单测、e2e 用例、文档 Props 表与「超出不截断」demo

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Related issue (if exists):

Other information:

- 默认 true 保持现有截断行为;为 false 时不向原生元素透传 maxlength,键入/粘贴/程序赋值均可超出限制
- 不截断模式下字数统计正常计算展示并标红,粘贴超长不弹出提示
- 补齐 vitest 单测、e2e 用例、文档 Props 表与「超出不截断」demo
@wanchun
wanchun merged commit aaa75e9 into main Sep 16, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants