Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增 TDForm 组件 #345

Open
wants to merge 64 commits into
base: rhino-bird
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
8b2067f
文件格式开始
SimonWuZY Sep 24, 2024
f71b443
API创建
SimonWuZY Sep 25, 2024
ef17cbc
rate组件初始化
hkaikai Sep 25, 2024
cf51ad5
Merge branch 'develop' of github.com:Tencent/tdesign-flutter into fea…
hkaikai Sep 25, 2024
bb5b80b
formitem1.0
SimonWuZY Sep 25, 2024
73b3461
主体逻辑开发
hkaikai Sep 25, 2024
5f1ccc8
rate demo编写
hkaikai Sep 27, 2024
6bf9d66
优化
hkaikai Sep 30, 2024
eb280e5
初步实现了四个功能
SimonWuZY Sep 30, 2024
4f870d6
初步实现了计数器和半个日期选择器
SimonWuZY Sep 30, 2024
8881f81
初步实现了垂直多级联合选择器
SimonWuZY Oct 1, 2024
f5101bc
初步实现了Form的构建
SimonWuZY Oct 3, 2024
6f29591
初步实现了Form的构建
SimonWuZY Oct 6, 2024
ace339b
Merge branch 'develop'
SimonWuZY Oct 6, 2024
47c53a3
Merge branch 'Tencent:main' into main
SimonWuZY Oct 7, 2024
a66f0e8
初步实现了Form的构建
SimonWuZY Oct 7, 2024
2ab42b2
Merge branch 'main' of github.com:SimonWuZY/tdesign-flutter
SimonWuZY Oct 7, 2024
2fe5516
初步实现了Form的构建
SimonWuZY Oct 8, 2024
aba552f
rate 弹框点击事件完善,改overlay
hkaikai Oct 9, 2024
9f4ae12
完成组件和demo开发
hkaikai Oct 10, 2024
13dccc3
优化弹框位置逻辑
hkaikai Oct 10, 2024
9952df0
流水线提交生成代码
Luozf12345 Oct 13, 2024
6bde895
生成API文档
Luozf12345 Oct 13, 2024
f001d2e
生成演示代码
Luozf12345 Oct 13, 2024
4437402
添加新生成的api和演示代码
Luozf12345 Oct 13, 2024
3e15ba4
Merge branch 'feature/0.1.7' of https://github.com/Tencent/tdesing-fl…
Luozf12345 Oct 13, 2024
c5f5c44
流水线提交生成代码
Luozf12345 Oct 13, 2024
a83bf65
添加文档
Luozf12345 Oct 13, 2024
5422730
Merge branch 'feature/0.1.7' of https://github.com/Tencent/tdesing-fl…
Luozf12345 Oct 13, 2024
bbe8471
update override
Luozf12345 Oct 13, 2024
9022043
demo 文案调整
hkaikai Oct 14, 2024
4215751
完善 Form 的竖直UI
SimonWuZY Oct 14, 2024
5136d40
TODO:
SimonWuZY Oct 14, 2024
8ff8b11
TODO:
SimonWuZY Oct 14, 2024
5ed7ce8
Merge branch 'rhino-bird' into main
SimonWuZY Oct 15, 2024
3098e40
Merge pull request #338 from hkaikai/feature/rate
Luozf12345 Oct 15, 2024
5f9670b
Merge branch 'develop' of https://github.com/Tencent/tdesing-flutter …
Luozf12345 Oct 15, 2024
ff5ad72
添加文档
Luozf12345 Oct 15, 2024
0cc2e22
修改组件数量
Luozf12345 Oct 15, 2024
1192fe3
Merge pull request #348 from Tencent/feature/0.1.7
Luozf12345 Oct 15, 2024
6c3fc38
增加版本号
Luozf12345 Oct 15, 2024
f78b171
修改主题切换的bug
Luozf12345 Oct 15, 2024
2ebaae3
解决无法跟随主题色问题
ccXxx1aoBai Oct 16, 2024
56ab3c7
Merge pull request #350 from ccXxx1aoBai/fix/notice_bar
Luozf12345 Oct 16, 2024
2016df6
Merge branch 'develop' of https://github.com/Tencent/tdesing-flutter …
Luozf12345 Oct 16, 2024
e61668a
替换二维码
Luozf12345 Oct 16, 2024
eb5815e
修改Rate文档
Luozf12345 Oct 16, 2024
f813e86
Merge pull request #349 from Tencent/release/0.1.7
Luozf12345 Oct 16, 2024
9a3a422
添加ChangeLog
Luozf12345 Oct 16, 2024
ff4ae7b
添加ChangeLog
Luozf12345 Oct 16, 2024
b0556fc
解决web端文字高度问题
ccXxx1aoBai Oct 16, 2024
5ff1507
Merge pull request #351 from ccXxx1aoBai/fix/notice_bar
Luozf12345 Oct 16, 2024
4241db3
新增第一层点击选择功能
Oct 18, 2024
7b5daab
disabled 功能支持
hkaikai Oct 19, 2024
70eab7b
Merge pull request #357 from hkaikai/fix/rate
Luozf12345 Oct 21, 2024
a61953d
Merge pull request #355 from shizhe2018/feature/TDCascader_new
Luozf12345 Oct 21, 2024
b1ec236
TODO:
SimonWuZY Oct 22, 2024
df87828
TODO:
SimonWuZY Oct 22, 2024
c688099
Merge remote-tracking branch 'origin/main'
SimonWuZY Oct 22, 2024
03086a8
rebase 分支 develop
SimonWuZY Oct 22, 2024
c2e918a
rebase 分支 develop
SimonWuZY Oct 22, 2024
a332743
优化 TDFormItem type 枚举值 API
SimonWuZY Oct 22, 2024
43bdafe
解决 Input padding 问题
SimonWuZY Oct 24, 2024
44d8709
实现总表单的校验逻辑
SimonWuZY Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions tdesign-component/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
## 🌈 0.1.7 `2024-10-16`
### 🚀 Features
- `TDNoticeBar`: Added noticeBar component @ccXxx1aoBai ([#162](https://github.com/Tencent/tdesign-flutter/pull/162))
- `Result`: Added Result component @shinyina ([#220](https://github.com/Tencent/tdesign-flutter/pull/220))
- `TimeCounter`: Timer component supports time display beyond conversion units, original TDCountDown component renamed to TimeCounter @hkaikai ([#272](https://github.com/Tencent/tdesign-flutter/pull/272))
- `Calendar`: Added Calendar component @hkaikai ([#271](https://github.com/Tencent/tdesign-flutter/pull/271))
- `Indexes`: Added Indexes component @hkaikai ([#321](https://github.com/Tencent/tdesign-flutter/pull/321))
- `Table`: Added table component @ccXxx1aoBai ([#244](https://github.com/Tencent/tdesign-flutter/pull/244))
- `Rate`: Added Rate component @hkaikai ([#338](https://github.com/Tencent/tdesign-flutter/pull/338))
- `Dialog`: Supports custom content padding and buttons @ccXxx1aoBai ([#289](https://github.com/Tencent/tdesign-flutter/pull/289))
- `Drawer`: Supports controlling the visibility of the divider, custom drawer background color, and controlling the display of the last divider @ccXxx1aoBai ([#278](https://github.com/Tencent/tdesign-flutter/pull/278))
- `DropdownMenu`: Added control parameters for icon/width/height/icon and text alignment @hkaikai ([#297](https://github.com/Tencent/tdesign-flutter/pull/297))
- `Search`: Added action and onActionClick properties @Ezer015 ([#263](https://github.com/Tencent/tdesign-flutter/pull/263))
- `Avatar`: Added onTap event @ccXxx1aoBai ([#344](https://github.com/Tencent/tdesign-flutter/pull/344))
- `TDDropdownMenu`: Added tabBarFlex parameter to TDDropdownItem to control width ratio @hkaikai ([#338](https://github.com/Tencent/tdesign-flutter/pull/338))
- `SearchBar`: Feature/td searchbarfix added cursor height property @shizhe2018 ([#337](https://github.com/Tencent/tdesign-flutter/pull/337))
- `TimeCounter`: Added forward timing function @epoll-j ([#246](https://github.com/Tencent/tdesign-flutter/pull/246))
- `NavBar`: [NavBar] supports setting bottom shadow @ccXxx1aoBai ([#284](https://github.com/Tencent/tdesign-flutter/pull/284))
- `Cell`: Added custom padding parameter @epoll-j ([#276](https://github.com/Tencent/tdesign-flutter/pull/276))
- `Input`: Added onTapOutside callback @epoll-j ([#280](https://github.com/Tencent/tdesign-flutter/pull/280))
- `Picker`: Added custom leftText, rightText @epoll-j ([#301](https://github.com/Tencent/tdesign-flutter/pull/301))
- `Slider`: Feature/tdslider added text wrapping function @shizhe2018 ([#329](https://github.com/Tencent/tdesign-flutter/pull/329))
- `Radio`: Feature/tdRadioGroup added built-in line wrapping, set number of rows and columns @shizhe2018 ([#331](https://github.com/Tencent/tdesign-flutter/pull/331))
- `Dialog`: Added custom input box @shizhe2018 ([#333](https://github.com/Tencent/tdesign-flutter/pull/333))
- `TDNavBar`: Added flexibleSpace parameter @Luozf12345 ([#341](https://github.com/Tencent/tdesign-flutter/pull/341))
- `TDSearch`: Added search box focus acquisition and clear events @Luozf12345 ([#342](https://github.com/Tencent/tdesign-flutter/pull/342))

### 🐞 Bug Fixes
- `ImageViewer`: Fixed defaultIndex invalid issue @ccXxx1aoBai ([#292](https://github.com/Tencent/tdesign-flutter/pull/292))
- `TimeCounter`: Fixed issue where it could not be reset repeatedly @hkaikai ([#272](https://github.com/Tencent/tdesign-flutter/pull/272))
- `DropdownMenu`: Adjusted popup layer logic, fixed issue where back button could not be listened to @hkaikai ([#297](https://github.com/Tencent/tdesign-flutter/pull/297))
- `DatePicker`: Removed monitoring on year, month, and day when destroyed to avoid memory leaks; added onSelectedItemChanged event @hkaikai ([#300](https://github.com/Tencent/tdesign-flutter/pull/300))
- `SideBar`: Fixed issue where custom selected style text was not centered @ccXxx1aoBai ([#313](https://github.com/Tencent/tdesign-flutter/pull/313))
- `Popup`: Fixed issue where multiple returns occurred when quickly clicking the mask @ccXxx1aoBai ([#318](https://github.com/Tencent/tdesign-flutter/pull/318))
- `ImageViewer`: Fixed issue where deleting the first image caused display anomalies @ccXxx1aoBai ([#322](https://github.com/Tencent/tdesign-flutter/pull/322))
- `SideBar`: Fixed issue where delayed loading components caused anchor point function anomalies @ccXxx1aoBai ([#343](https://github.com/Tencent/tdesign-flutter/pull/343))
- `TDDropdownMenu`: Optimized menu display text to show ellipsis when exceeding display limit @hkaikai ([#338](https://github.com/Tencent/tdesign-flutter/pull/338))
- `NoticeBar`: Fixed issue where it could not follow the theme color @ccXxx1aoBai ([#350](https://github.com/Tencent/tdesign-flutter/pull/350))
- `Button`: Fixed overflow issue when setting shape to square or circle @epoll-j ([#257](https://github.com/Tencent/tdesign-flutter/pull/257))
- `Slider`: Bugfix: Fixed issue where tb_slider setState did not update @arvinwli ([#298](https://github.com/Tencent/tdesign-flutter/pull/298))
- `Cascader`: Fixed list sorting issue @shizhe2018 ([#303](https://github.com/Tencent/tdesign-flutter/pull/303))
- `Popup`: Fixed issue where the keyboard would cover the input box in the Popup @epoll-j ([#264](https://github.com/Tencent/tdesign-flutter/pull/264))
- `Cascader`: Fixed linkage time limit range logic @shizhe2018 ([#242](https://github.com/Tencent/tdesign-flutter/pull/242))
- `Loading`: Fixed issue where dismissing Loading immediately after showing did not take effect @Luozf12345 ([#340](https://github.com/Tencent/tdesign-flutter/pull/340))

### 🚧 Others
- fix: remove useless output. @Ives7 ([#311](https://github.com/Tencent/tdesign-flutter/pull/311))



## 🌈 0.1.6 `2024-07-24`

Expand Down
2 changes: 1 addition & 1 deletion tdesign-component/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ flutter: ">=3.7.0"

# Feedback

<img src="feedback.png" width = "200" height = "200" alt="feedback" align=center />
<img src="https://raw.githubusercontent.com/Tencent/tdesign/main/packages/components/src/images/groups/flutter-group.png" width = "200" height = "200" alt="feedback" align=center />

# Open source agreement:

Expand Down
1 change: 1 addition & 0 deletions tdesign-component/demo_tool/all_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
# radio
./bin/demo_tool generate --file ../lib/src/components/radio/td_radio.dart --name TDRadioStyle,TDRadio,TDRadioGroup --folder-name radio --output ../example/assets/api/ --only-api --get-comments
# rate
./bin/demo_tool generate --file ../lib/src/components/rate/td_rate.dart --name TDRate --folder-name rate --output ../example/assets/api/ --only-api
# search
./bin/demo_tool generate --file ../lib/src/components/search/td_search_bar.dart --name TDSearchBar --folder-name search --output ../example/assets/api/ --only-api
# slider
Expand Down
2 changes: 1 addition & 1 deletion tdesign-component/example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.6.21'
ext.kotlin_version = '1.9.0'

ext {

Expand Down
1 change: 1 addition & 0 deletions tdesign-component/example/assets/api/button_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
| onTap | TDButtonEvent? | - | 点击事件 |
| icon | IconData? | - | 图标icon |
| iconWidget | Widget? | - | 自定义图标icon控件 |
| iconTextSpacing | double? | - | 自定义图标与文本之间距离 |
| onLongPress | TDButtonEvent? | - | 长按事件 |
| margin | EdgeInsetsGeometry? | - | 自定义margin |
| padding | EdgeInsetsGeometry? | - | 自定义padding |
2 changes: 2 additions & 0 deletions tdesign-component/example/assets/api/calendar_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
| onCellClick | void Function(int value, DateSelectType type, TDate tdate)? | - | 点击日期时触发 |
| onCellLongPress | void Function(int value, DateSelectType type, TDate tdate)? | - | 长安日期时触发 |
| onHeanderClick | void Function(int index, String week)? | - | 点击周时触发 |
| useTimePicker | bool? | false | 是否显示时间选择器 |
| timePickerModel | List<DatePickerModel>? | - | 自定义时间选择器 |

```
```
Expand Down
1 change: 1 addition & 0 deletions tdesign-component/example/assets/api/cascader_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
| backgroundColor | Color? | - | 背景颜色 |
| topRadius | double? | - | 顶部圆角 |
| closeText | String? | - | 关闭按钮文本 |
| isLetterSort | bool | false | 是否开启字母排序 |
| onClose | Function? | - | 选择器关闭按钮回调 |
| onChange | MultiCascaderCallback | - | 值发生变更时触发 |
1 change: 1 addition & 0 deletions tdesign-component/example/assets/api/cell_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
| borderedColor | Color? | - | 单元格边框颜色 |
| groupBorderedColor | Color? | - | 单元格组边框颜色 |
| backgroundColor | Color? | - | 默认状态背景颜色 |
| padding | EdgeInsets? | - | 单元格内边距 |


#### 工厂构造方法
Expand Down
7 changes: 4 additions & 3 deletions tdesign-component/example/assets/api/date-time-picker_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
| showTitle | bool | true | 是否展示标题 |
| pickerHeight | double | 200 | 选择器List的视窗高度,默认200 |
| pickerItemCount | int | - | 选择器List视窗中item个数,pickerHeight / pickerItemCount即item高度 |
| onSelectedItemChanged | void Function(int index)? | - | 选择器选中项改变回调 |
| key | | - | |

```
Expand All @@ -35,6 +36,6 @@

| 名称 | 返回类型 | 参数 | 说明 |
| --- | --- | --- | --- |
| showDatePicker | | required null context, required String title, required DatePickerCallback? onConfirm, DatePickerCallback? onCancel, bool useYear, bool useMonth, bool useDay, bool useHour, bool useMinute, bool useSecond, bool useWeekDay, Color? barrierColor, List<int> dateStart, List<int>? dateEnd, List<int>? initialDate, String? rightText, String? leftText, Duration duration, double pickerHeight, int pickerItemCount, | 显示时间选择器 |
| showMultiPicker | | required null context, String? title, required MultiPickerCallback? onConfirm, MultiPickerCallback? onCancel, required List<List<String>> data, List<int>? initialIndexes, Duration duration, Color? barrierColor, double pickerHeight, int pickerItemCount, | 显示多级选择器 |
| showMultiLinkedPicker | | required null context, String? title, required MultiPickerCallback? onConfirm, MultiPickerCallback? onCancel, required Map data, required int columnNum, required List initialData, Duration duration, Color? barrierColor, double pickerHeight, int pickerItemCount, | 显示多级联动选择器 |
| showDatePicker | | required null context, required String title, required DatePickerCallback? onConfirm, DatePickerCallback? onCancel, bool useYear, bool useMonth, bool useDay, bool useHour, bool useMinute, bool useSecond, bool useWeekDay, Color? barrierColor, List<int> dateStart, List<int>? dateEnd, List<int>? initialDate, String? rightText, String? leftText, TextStyle? leftTextStyle, TextStyle? centerTextStyle, TextStyle? rightTextStyle, Color? titleDividerColor, Duration duration, double pickerHeight, int pickerItemCount, | 显示时间选择器 |
| showMultiPicker | | required null context, String? title, required MultiPickerCallback? onConfirm, MultiPickerCallback? onCancel, required List<List<String>> data, List<int>? initialIndexes, Duration duration, Color? barrierColor, double pickerHeight, String? rightText, String? leftText, TextStyle? leftTextStyle, TextStyle? centerTextStyle, TextStyle? rightTextStyle, Color? titleDividerColor, double? topPadding, int pickerItemCount, | 显示多级选择器 |
| showMultiLinkedPicker | | required null context, String? title, required MultiPickerCallback? onConfirm, MultiPickerCallback? onCancel, required Map data, required int columnNum, required List initialData, Duration duration, Color? barrierColor, String? rightText, String? leftText, TextStyle? leftTextStyle, TextStyle? centerTextStyle, TextStyle? rightTextStyle, double pickerHeight, Color? titleDividerColor, double? topPadding, int pickerItemCount, | 显示多级联动选择器 |
9 changes: 9 additions & 0 deletions tdesign-component/example/assets/api/dialog_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
| leftBtn | TDDialogButtonOptions? | - | 左侧按钮配置 |
| rightBtn | TDDialogButtonOptions? | - | 右侧按钮配置 |
| showCloseButton | bool? | - | 显示右上角关闭按钮 |
| padding | EdgeInsets? | - | 内容内边距 |
| buttonWidget | Widget? | - | 自定义按钮 |

```
```
Expand Down Expand Up @@ -57,6 +59,8 @@
| buttonTextColor | Color? | - | 按钮文字颜色 |
| buttonStyle | TDDialogButtonStyle | TDDialogButtonStyle.normal | 按钮样式 |
| showCloseButton | bool? | - | 右上角关闭按钮 |
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
| buttonWidget | Widget? | - | 自定义按钮 |

```
```
Expand All @@ -79,6 +83,9 @@
| leftBtn | TDDialogButtonOptions? | - | 左侧按钮配置 |
| rightBtn | TDDialogButtonOptions? | - | 右侧按钮配置 |
| showCloseButton | bool? | - | 显示右上角关闭按钮 |
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
| buttonWidget | Widget? | - | 自定义按钮 |
| customInputWidget | Widget? | - | 自定义输入框 |

```
```
Expand All @@ -103,6 +110,8 @@
| rightBtnAction | Function()? | - | 右侧按钮默认点击 |
| showCloseButton | bool? | - | 显示右上角关闭按钮 |
| buttonStyle | | TDDialogButtonStyle.normal | |
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
| buttonWidget | Widget? | - | 自定义按钮 |


#### 工厂构造方法
Expand Down
3 changes: 3 additions & 0 deletions tdesign-component/example/assets/api/drawer_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
| drawerTop | double? | - | 距离顶部的距离 |
| style | TDCellStyle? | - | 列表自定义样式 |
| hover | bool? | true | 是否开启点击反馈 |
| backgroundColor | Color? | - | 组件背景颜色 |
| bordered | bool? | true | 是否显示边框 |
| isShowLastBordered | bool? | true | 是否显示最后一行分割线 |

```
```
Expand Down
1 change: 1 addition & 0 deletions tdesign-component/example/assets/api/dropdown-menu_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
| maxHeight | double? | - | 内容最大高度 |
| tabBarWidth | double? | - | 该item在menu上的宽度,仅在[TDDropdownMenu.isScrollable]为true时有效 |
| tabBarAlign | MainAxisAlignment? | - | [label][arrowIcon]/[TDDropdownMenu.arrowIcon]的对齐方式 |
| tabBarFlex | int? | 1 | 该item在menu上的宽度占比,仅在[TDDropdownMenu.isScrollable]为false时有效 |

```
```
Expand Down
2 changes: 1 addition & 1 deletion tdesign-component/example/assets/api/indexes_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
| indexList | List<String> | - | 索引字符列表。不传默认 A-Z |
| indexListMaxHeight | double | 0.8 | 索引列表最大高度(父容器高度的百分比,默认0.8) |
| activeIndex | ValueNotifier<String> | - | 选中索引 |
| onSelect | void Function(String index, bool isUp) | - | 点击侧边栏时触发事件 |
| onSelect | void Function(String newIndex, String oldIndex) | - | 点击侧边栏时触发事件 |
| builderIndex | Widget Function(BuildContext context, String index, bool isActive)? | - | 索引文本自定义构建,包括索引激活左侧提示 |

```
Expand Down
3 changes: 2 additions & 1 deletion tdesign-component/example/assets/api/input_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
| decoration | Decoration? | - | 输入框样式 |
| leftIcon | Widget? | - | 带图标的输入框 |
| leftLabel | String? | - | 输入框左侧文案 |
| leftLabelStyle | TextStyle? | - | 左侧标签样式 |
| leftLabelStyle | TextStyle? | - | 左侧标签样式 设置该值是若出现像素溢出,请设置letterSpacing: 0 |
| leftLabelSpace | double? | - | 输入框左侧文案间距 |
| required | bool? | - | 是否必填标志(红色*) |
| readOnly | bool | false | 是否只读 |
Expand Down Expand Up @@ -53,3 +53,4 @@
| inputAction | TextInputAction? | - | 键盘动作类型 |
| spacer | TDInputSpacer | - | 组件各模块间间距 |
| cardStyleBottomText | String? | - | 卡片模式下方文字 |
| onTapOutside | TapRegionCallback? | - | 点击输入框外部区域回调 |
2 changes: 1 addition & 1 deletion tdesign-component/example/assets/api/loading_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| --- | --- | --- | --- |
| key | | - | |
| size | TDLoadingSize | - | 尺寸 |
| icon | TDLoadingIcon? | - | 图标,支持圆形、点状、菊花状 |
| icon | TDLoadingIcon? | TDLoadingIcon.circle | 图标,支持圆形、点状、菊花状 |
| iconColor | Color? | - | 图标颜色 |
| axis | Axis | Axis.vertical | 文案和图标相对方向 |
| text | String? | - | 文案 |
Expand Down
2 changes: 2 additions & 0 deletions tdesign-component/example/assets/api/navbar_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
| useBorderStyle | bool | false | 是否使用边框模式 |
| border | TDNavBarItemBorder? | - | 边框 |
| belowTitleWidget | Widget? | - | belowTitleWidget navbar 下方的widget |
| boxShadow | List<BoxShadow>? | - | 底部阴影 |
| flexibleSpace | Widget? | - | 固定背景 |

```
```
Expand Down
10 changes: 7 additions & 3 deletions tdesign-component/example/assets/api/picker_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
| pickerHeight | double | - | |
| pickerItemCount | int | - | 选择器List视窗中item个数,pickerHeight / pickerItemCount即item高度 |
| initialIndexes | List<int>? | - | 若为null表示全部从零开始 |
| rightText | String? | - | 右侧按钮文案 |
| leftText | String? | - | 左侧按钮文案 |
| leftTextStyle | TextStyle? | - | 自定义左侧文案样式 |
| rightTextStyle | TextStyle? | - | 自定义右侧文案样式 |
| centerTextStyle | TextStyle? | - | 自定义中间文案样式 |
Expand Down Expand Up @@ -42,6 +44,8 @@
| pickerHeight | double | 200 | |
| pickerItemCount | int | 5 | 选择器List视窗中item个数,pickerHeight / pickerItemCount即item高度 |
| customSelectWidget | Widget? | - | 自定义选择框样式 |
| rightText | String? | - | 右侧按钮文案 |
| leftText | String? | - | 左侧按钮文案 |
| leftTextStyle | TextStyle? | - | 自定义左侧文案样式 |
| rightTextStyle | TextStyle? | - | 自定义右侧文案样式 |
| centerTextStyle | TextStyle? | - | 自定义中间文案样式 |
Expand Down Expand Up @@ -75,6 +79,6 @@

| 名称 | 返回类型 | 参数 | 说明 |
| --- | --- | --- | --- |
| showDatePicker | | required null context, required String title, required DatePickerCallback? onConfirm, DatePickerCallback? onCancel, bool useYear, bool useMonth, bool useDay, bool useHour, bool useMinute, bool useSecond, bool useWeekDay, Color? barrierColor, List<int> dateStart, List<int>? dateEnd, List<int>? initialDate, String? rightText, String? leftText, Duration duration, double pickerHeight, int pickerItemCount, | 显示时间选择器 |
| showMultiPicker | | required null context, String? title, required MultiPickerCallback? onConfirm, MultiPickerCallback? onCancel, required List<List<String>> data, List<int>? initialIndexes, Duration duration, Color? barrierColor, double pickerHeight, int pickerItemCount, | 显示多级选择器 |
| showMultiLinkedPicker | | required null context, String? title, required MultiPickerCallback? onConfirm, MultiPickerCallback? onCancel, required Map data, required int columnNum, required List initialData, Duration duration, Color? barrierColor, double pickerHeight, int pickerItemCount, | 显示多级联动选择器 |
| showDatePicker | | required null context, required String title, required DatePickerCallback? onConfirm, DatePickerCallback? onCancel, bool useYear, bool useMonth, bool useDay, bool useHour, bool useMinute, bool useSecond, bool useWeekDay, Color? barrierColor, List<int> dateStart, List<int>? dateEnd, List<int>? initialDate, String? rightText, String? leftText, TextStyle? leftTextStyle, TextStyle? centerTextStyle, TextStyle? rightTextStyle, Color? titleDividerColor, Duration duration, double pickerHeight, int pickerItemCount, | 显示时间选择器 |
| showMultiPicker | | required null context, String? title, required MultiPickerCallback? onConfirm, MultiPickerCallback? onCancel, required List<List<String>> data, List<int>? initialIndexes, Duration duration, Color? barrierColor, double pickerHeight, String? rightText, String? leftText, TextStyle? leftTextStyle, TextStyle? centerTextStyle, TextStyle? rightTextStyle, Color? titleDividerColor, double? topPadding, int pickerItemCount, | 显示多级选择器 |
| showMultiLinkedPicker | | required null context, String? title, required MultiPickerCallback? onConfirm, MultiPickerCallback? onCancel, required Map data, required int columnNum, required List initialData, Duration duration, Color? barrierColor, String? rightText, String? leftText, TextStyle? leftTextStyle, TextStyle? centerTextStyle, TextStyle? rightTextStyle, double pickerHeight, Color? titleDividerColor, double? topPadding, int pickerItemCount, | 显示多级联动选择器 |
2 changes: 2 additions & 0 deletions tdesign-component/example/assets/api/popup_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
| modalLeft | double? | 0 | 弹出框左侧距离 |
| open | VoidCallback? | - | 打开前事件 |
| opened | VoidCallback? | - | 打开后事件 |
| close | VoidCallback? | - | 关闭前事件 |
| barrierClick | VoidCallback? | - | 蒙层点击事件,仅在[modalBarrierFull]为false时触发 |

```
```
Expand Down
Loading