Tencent / Tencent/tdesign-flutter
[TDFormItem] 可否支持自定义内容
Open
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.2k
- Forks
- 182
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 88
Description
这个功能解决了什么问题
有一些地方可能需要做一些深度定制的弹出层(Picker)选择器,选中之后回显;比如数据是一个接口列表里的数据,选中之后,一般是选择一个 id,根据这个 id 回显不同的内容。
你建议的方案是什么
感觉可以加一个 customPicker 的选项,然后让使用者自己填充里边的内容,然后调用选中事件触发交互。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the TDFormItem entry point and inspect how its existing Picker content and selection callbacks are exposed. Compare the requested customPicker option with current form-item and picker behavior, then define completion as allowing custom picker content, receiving the selection event, and displaying the selected result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100