TInput: 新增 minLines 参数#952
Open
Yong-yuan-X wants to merge 1 commit into
Open
Conversation
Member
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
Fixes #906
💡 需求背景和解决方案
TInputView内部已支持minLines并透传给 FlutterTextField,但外层TInput未对外暴露该参数,业务侧无法通过TInput设置最小输入行数。本 PR 仅处理
TInput/TDInput的minLines参数暴露、透传及对应 input 文档/示例/测试,不涉及主题、按钮或其他组件改动。本 PR 为
TInput新增minLines参数,默认值为1,并在各输入类型构建TInputView时透传该参数。用法示例:
同时补充了 API 文档、
ExamplePage.test验收 demo、演示代码资产和 widget test。📝 更新日志
feat(TInput): 新增
minLines参数,支持设置最小输入行数本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
组件类名: 修改描述(示例:TBottomTabBar: 修复iconText模式,底部溢出2.5像素)