Skip to content

Commit 7bbc3ae

Browse files
Merge pull request #675 from Tencent/release/0.2.3
修改版本号为0.2.3
2 parents ef27927 + 396fd46 commit 7bbc3ae

File tree

37 files changed

+755
-730
lines changed

37 files changed

+755
-730
lines changed

tdesign-component/CHANGELOG.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1-
## 🌈 0.2.1 `2025-06-13`
2-
1+
## 🌈 0.2.3 `2025-07-09`
32
### 🚀 Features
3+
- `TDPicker`: Supports prioritizing the retention of cascaded option values when switching @epoll-j ([#666](https://github.com/Tencent/tdesign-flutter/pull/666))
4+
- `TDTable`: Supports default row selection @ccXxx1aoBai ([#665](https://github.com/Tencent/tdesign-flutter/pull/665))
5+
- `TDCalendar`: Adds custom date cell functionality @epoll-j ([#667](https://github.com/Tencent/tdesign-flutter/pull/667))
6+
- `TDForm`: Adds Form component @shizhe2018 @SimonWuZY ([#620](https://github.com/Tencent/tdesign-flutter/pull/620))
7+
- `TDTable`: Separates TDTableCol attribute configuration and empty data configuration @ccXxx1aoBai ([#665](https://github.com/Tencent/tdesign-flutter/pull/665))
8+
9+
### 🐞 Bug Fixes
10+
- `TDTable`: Fixes the issue with unselected icon display in table headers and the selection state problem under disabled conditions @ccXxx1aoBai ([#665](https://github.com/Tencent/tdesign-flutter/pull/665))
11+
- `TDTable`: Fixes the empty data issue in tables @ccXxx1aoBai ([#671](https://github.com/Tencent/tdesign-flutter/pull/671))
12+
- `TDDialog`: Fixes the issue where dialogs block the keyboard @jflin19990707 ([#669](https://github.com/Tencent/tdesign-flutter/pull/669))
13+
- `TDCollapse`: Updates the demo page name for collapse @jflin19990707 ([#670](https://github.com/Tencent/tdesign-flutter/pull/670))
14+
- `TDDropdownMenu`: Fixes the incorrect popup position calculation in nested routing scenarios @hcanyz ([#648](https://github.com/Tencent/tdesign-flutter/pull/648))
415

16+
17+
## 🌈 0.2.2 `2025-06-13`
18+
### 🚀 Features
519
- `TDTable`: Added support for row selection and custom row height. @ccXxx1aoBai ([#594](https://github.com/Tencent/tdesign-flutter/pull/594))
620
- `TDTreeSelect`: Added partial multi-selection support. @epoll-j ([#587](https://github.com/Tencent/tdesign-flutter/pull/587))
721
- `TDCell`: Added support for custom height and bottom divider. @ccXxx1aoBai ([#611](https://github.com/Tencent/tdesign-flutter/pull/611))
@@ -11,7 +25,6 @@
1125
- `TDAvatar`: Added custom BoxFit parameter. @shizhe2018 ([#633](https://github.com/Tencent/tdesign-flutter/pull/633))
1226

1327
### 🐞 Bug Fixes
14-
1528
- `TDDatePicker`: Fixed minute-level time display issue and optimized hour/minute/second range calculation logic. @epoll-j ([#585](https://github.com/Tencent/tdesign-flutter/pull/585))
1629
- `TDSearchBar`: Added onTapOutside callback support. @cyjaysong ([#608](https://github.com/Tencent/tdesign-flutter/pull/608))
1730
- `TDDropdownMenu`: Added support for modifying selected icon color. @jflin19990707 ([#631](https://github.com/Tencent/tdesign-flutter/pull/631))

tdesign-component/example/assets/api/action-sheet_api.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
## API
2-
### TDActionSheetItem
3-
#### 简介
4-
动作面板项目
5-
#### 默认构造方法
6-
7-
| 参数 | 类型 | 默认值 | 说明 |
8-
| --- | --- | --- | --- |
9-
| label | String | - | 标提 |
10-
| textStyle | TextStyle? | - | 标题样式 |
11-
| icon | Widget? | - | 图标 |
12-
| badge | TDBadge? | - | 角标 |
13-
| disabled | bool | false | 是否禁用 |
14-
| iconSize | double? | - | 图标大小 |
15-
| group | String? | - | 分组,用于带描述多行滚动宫格 |
16-
17-
```
18-
```
19-
### TDActionSheet
2+
### TDActionSheet
203
#### 简介
214
动作面板
225
#### 默认构造方法
@@ -52,3 +35,20 @@
5235
| showListActionSheet | | required BuildContext context, required List<TDActionSheetItem> items, TDActionSheetAlign align, String cancelText, bool showCancel, VoidCallback? onCancel, TDActionSheetItemCallback? onSelected, bool showOverlay, bool closeOnOverlayClick, VoidCallback? onClose, bool useSafeArea, | 显示列表类型面板 |
5336
| showGridActionSheet | | required BuildContext context, required List<TDActionSheetItem> items, TDActionSheetAlign align, String cancelText, bool showCancel, TDActionSheetItemCallback? onSelected, bool showOverlay, bool closeOnOverlayClick, int count, int rows, double itemHeight, double itemMinWidth, bool scrollable, bool showPagination, VoidCallback? onCancel, String? description, VoidCallback? onClose, bool useSafeArea, | 显示宫格类型面板 |
5437
| showGroupActionSheet | | required BuildContext context, required List<TDActionSheetItem> items, TDActionSheetAlign align, String cancelText, bool showCancel, TDActionSheetItemCallback? onSelected, bool showOverlay, bool closeOnOverlayClick, double itemHeight, double itemMinWidth, VoidCallback? onCancel, VoidCallback? onClose, bool useSafeArea, | 显示分组类型面板 |
38+
39+
```
40+
```
41+
### TDActionSheetItem
42+
#### 简介
43+
动作面板项目
44+
#### 默认构造方法
45+
46+
| 参数 | 类型 | 默认值 | 说明 |
47+
| --- | --- | --- | --- |
48+
| label | String | - | 标提 |
49+
| textStyle | TextStyle? | - | 标题样式 |
50+
| icon | Widget? | - | 图标 |
51+
| badge | TDBadge? | - | 角标 |
52+
| disabled | bool | false | 是否禁用 |
53+
| iconSize | double? | - | 图标大小 |
54+
| group | String? | - | 分组,用于带描述多行滚动宫格 |

tdesign-component/example/assets/api/calendar_api.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
## API
2-
### TDCalendarStyle
2+
### TDCalendarPopup
3+
#### 默认构造方法
4+
5+
| 参数 | 类型 | 默认值 | 说明 |
6+
| --- | --- | --- | --- |
7+
| context | BuildContext | context | 上下文 |
8+
| top | double? | - | 距离顶部的距离 |
9+
| autoClose | bool? | true | 自动关闭;在点击关闭按钮、确认按钮、遮罩层时自动关闭 |
10+
| confirmBtn | Widget? | - | 自定义确认按钮 |
11+
| visible | bool? | - | 默认是否显示日历 |
12+
| onClose | VoidCallback? | - | 关闭时触发 |
13+
| onConfirm | void Function(List<int> value)? | - | 点击确认按钮时触发 |
14+
| builder | CalendarBuilder? | - | 控件构建器,优先级高于[child] |
15+
| child | TDCalendar? | - | 日历控件 |
16+
17+
```
18+
```
19+
### TDCalendarStyle
320
#### 默认构造方法
421

522
| 参数 | 类型 | 默认值 | 说明 |
@@ -58,20 +75,3 @@
5875
| isTimeUnit | bool? | true | 是否显示时间单位 |
5976
| animateTo | bool? | false | 动画滚动到指定位置 |
6077
| cellWidget | Widget? Function(BuildContext context, TDate tdate, DateSelectType selectType)? | - | 自定义日期单元格组件 |
61-
62-
```
63-
```
64-
### TDCalendarPopup
65-
#### 默认构造方法
66-
67-
| 参数 | 类型 | 默认值 | 说明 |
68-
| --- | --- | --- | --- |
69-
| context | BuildContext | context | 上下文 |
70-
| top | double? | - | 距离顶部的距离 |
71-
| autoClose | bool? | true | 自动关闭;在点击关闭按钮、确认按钮、遮罩层时自动关闭 |
72-
| confirmBtn | Widget? | - | 自定义确认按钮 |
73-
| visible | bool? | - | 默认是否显示日历 |
74-
| onClose | VoidCallback? | - | 关闭时触发 |
75-
| onConfirm | void Function(List<int> value)? | - | 点击确认按钮时触发 |
76-
| builder | CalendarBuilder? | - | 控件构建器,优先级高于[child] |
77-
| child | TDCalendar? | - | 日历控件 |

tdesign-component/example/assets/api/cell_api.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
## API
2-
### TDCellStyle
2+
### TDCellGroup
3+
#### 简介
4+
单元格组组件
5+
#### 默认构造方法
6+
7+
| 参数 | 类型 | 默认值 | 说明 |
8+
| --- | --- | --- | --- |
9+
| key | | - | |
10+
| bordered | bool? | false | 是否显示组边框 |
11+
| theme | TDCellGroupTheme? | TDCellGroupTheme.defaultTheme | 单元格组风格。可选项:default/card |
12+
| title | String? | - | 单元格组标题 |
13+
| cells | List<TDCell> | - | 单元格列表 |
14+
| builder | CellBuilder? | - | cell构建器,可自定义cell父组件,如Dismissible |
15+
| style | TDCellStyle? | - | 自定义样式 |
16+
| titleWidget | Widget? | - | 单元格组标题组件 |
17+
| scrollable | bool? | false | 可滚动 |
18+
| isShowLastBordered | bool? | false | 是否显示最后一个cell的下边框 |
19+
20+
```
21+
```
22+
### TDCellStyle
323
#### 简介
424
单元格组件样式
525
#### 默认构造方法
@@ -67,23 +87,3 @@
6787
| imageCircle | double? | 50 | 主图圆角,默认50(圆形) |
6888
| showBottomBorder | bool? | false | 是否显示下边框(建议TDCellGroup组件下false,避免与bordered重叠) |
6989
| height | double? | - | 高度 |
70-
71-
```
72-
```
73-
### TDCellGroup
74-
#### 简介
75-
单元格组组件
76-
#### 默认构造方法
77-
78-
| 参数 | 类型 | 默认值 | 说明 |
79-
| --- | --- | --- | --- |
80-
| key | | - | |
81-
| bordered | bool? | false | 是否显示组边框 |
82-
| theme | TDCellGroupTheme? | TDCellGroupTheme.defaultTheme | 单元格组风格。可选项:default/card |
83-
| title | String? | - | 单元格组标题 |
84-
| cells | List<TDCell> | - | 单元格列表 |
85-
| builder | CellBuilder? | - | cell构建器,可自定义cell父组件,如Dismissible |
86-
| style | TDCellStyle? | - | 自定义样式 |
87-
| titleWidget | Widget? | - | 单元格组标题组件 |
88-
| scrollable | bool? | false | 可滚动 |
89-
| isShowLastBordered | bool? | false | 是否显示最后一个cell的下边框 |

tdesign-component/example/assets/api/dialog_api.md

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,47 @@
11
## API
2-
### TDImageDialog
2+
### TDAlertDialog
33
#### 默认构造方法
44

55
| 参数 | 类型 | 默认值 | 说明 |
66
| --- | --- | --- | --- |
77
| key | | - | |
8-
| image | Image | - | 图片 |
9-
| imagePosition | TDDialogImagePosition? | TDDialogImagePosition.top | 图片位置 |
108
| backgroundColor | Color | Colors.white | 背景颜色 |
119
| radius | double | 12.0 | 圆角 |
1210
| title | String? | - | 标题 |
1311
| titleColor | Color | const Color(0xE6000000) | 标题颜色 |
14-
| titleAlignment | AlignmentGeometry? | - | 标题对齐模式 |
15-
| contentWidget | Widget? | - | 内容Widget |
1612
| content | String? | - | 内容 |
1713
| contentColor | Color? | - | 内容颜色 |
14+
| titleAlignment | AlignmentGeometry? | - | 标题对齐模式 |
15+
| contentWidget | Widget? | - | 内容Widget |
16+
| contentMaxHeight | double | 0 | 内容的最大高度,默认为0,也就是不限制高度 |
1817
| leftBtn | TDDialogButtonOptions? | - | 左侧按钮配置 |
1918
| rightBtn | TDDialogButtonOptions? | - | 右侧按钮配置 |
19+
| leftBtnAction | Function()? | - | 左侧按钮默认点击 |
20+
| rightBtnAction | Function()? | - | 右侧按钮默认点击 |
2021
| showCloseButton | bool? | - | 显示右上角关闭按钮 |
21-
| padding | EdgeInsets? | - | 内容内边距 |
22+
| buttonStyle | | TDDialogButtonStyle.normal | |
23+
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
2224
| buttonWidget | Widget? | - | 自定义按钮 |
2325

24-
```
25-
```
26-
### TDDialogButtonOptions
27-
#### 默认构造方法
2826

29-
| 参数 | 类型 | 默认值 | 说明 |
30-
| --- | --- | --- | --- |
31-
| title | String | - | 标题内容 |
32-
| action | Function()? | - | 点击操作 |
33-
| titleColor | Color? | - | 标题颜色 |
34-
| titleSize | double? | - | 字体大小 |
35-
| style | TDButtonStyle? | - | 按钮样式 |
36-
| type | TDButtonType? | - | 按钮类型 |
37-
| theme | TDButtonTheme? | - | 按钮类型 |
38-
| height | double? | - | 按钮高度 |
39-
| fontWeight | FontWeight? | - | 字体粗细 |
27+
#### 工厂构造方法
28+
29+
| 名称 | 说明 |
30+
| --- | --- |
31+
| TDAlertDialog.vertical | 纵向按钮排列的对话框
32+
33+
[buttons]参数是必须的,纵向按钮默认样式都是[TDButtonTheme.primary] |
4034

4135
```
4236
```
43-
### TDConfirmDialog
37+
### TDImageDialog
4438
#### 默认构造方法
4539

4640
| 参数 | 类型 | 默认值 | 说明 |
4741
| --- | --- | --- | --- |
4842
| key | | - | |
49-
| action | Function()? | - | 点击 |
43+
| image | Image | - | 图片 |
44+
| imagePosition | TDDialogImagePosition? | TDDialogImagePosition.top | 图片位置 |
5045
| backgroundColor | Color | Colors.white | 背景颜色 |
5146
| radius | double | 12.0 | 圆角 |
5247
| title | String? | - | 标题 |
@@ -55,12 +50,10 @@
5550
| contentWidget | Widget? | - | 内容Widget |
5651
| content | String? | - | 内容 |
5752
| contentColor | Color? | - | 内容颜色 |
58-
| contentMaxHeight | double | 0 | 内容的最大高度,默认为0,也就是不限制高度 |
59-
| buttonText | String? | - | 按钮文字 |
60-
| buttonTextColor | Color? | - | 按钮文字颜色 |
61-
| buttonStyle | TDDialogButtonStyle | TDDialogButtonStyle.normal | 按钮样式 |
62-
| showCloseButton | bool? | - | 右上角关闭按钮 |
63-
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
53+
| leftBtn | TDDialogButtonOptions? | - | 左侧按钮配置 |
54+
| rightBtn | TDDialogButtonOptions? | - | 右侧按钮配置 |
55+
| showCloseButton | bool? | - | 显示右上角关闭按钮 |
56+
| padding | EdgeInsets? | - | 内容内边距 |
6457
| buttonWidget | Widget? | - | 自定义按钮 |
6558

6659
```
@@ -88,41 +81,6 @@
8881
| buttonWidget | Widget? | - | 自定义按钮 |
8982
| customInputWidget | Widget? | - | 自定义输入框 |
9083

91-
```
92-
```
93-
### TDAlertDialog
94-
#### 默认构造方法
95-
96-
| 参数 | 类型 | 默认值 | 说明 |
97-
| --- | --- | --- | --- |
98-
| key | | - | |
99-
| backgroundColor | Color | Colors.white | 背景颜色 |
100-
| radius | double | 12.0 | 圆角 |
101-
| title | String? | - | 标题 |
102-
| titleColor | Color | const Color(0xE6000000) | 标题颜色 |
103-
| content | String? | - | 内容 |
104-
| contentColor | Color? | - | 内容颜色 |
105-
| titleAlignment | AlignmentGeometry? | - | 标题对齐模式 |
106-
| contentWidget | Widget? | - | 内容Widget |
107-
| contentMaxHeight | double | 0 | 内容的最大高度,默认为0,也就是不限制高度 |
108-
| leftBtn | TDDialogButtonOptions? | - | 左侧按钮配置 |
109-
| rightBtn | TDDialogButtonOptions? | - | 右侧按钮配置 |
110-
| leftBtnAction | Function()? | - | 左侧按钮默认点击 |
111-
| rightBtnAction | Function()? | - | 右侧按钮默认点击 |
112-
| showCloseButton | bool? | - | 显示右上角关闭按钮 |
113-
| buttonStyle | | TDDialogButtonStyle.normal | |
114-
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
115-
| buttonWidget | Widget? | - | 自定义按钮 |
116-
117-
118-
#### 工厂构造方法
119-
120-
| 名称 | 说明 |
121-
| --- | --- |
122-
| TDAlertDialog.vertical | 纵向按钮排列的对话框
123-
124-
[buttons]参数是必须的,纵向按钮默认样式都是[TDButtonTheme.primary] |
125-
12684
```
12785
```
12886
### TDDialogScaffold
@@ -216,3 +174,45 @@
216174
| height | double? | 40.0 | 按钮高度 |
217175
| width | double? | - | 按钮宽度 |
218176
| isBlock | bool | true | 按钮高度 |
177+
178+
```
179+
```
180+
### TDConfirmDialog
181+
#### 默认构造方法
182+
183+
| 参数 | 类型 | 默认值 | 说明 |
184+
| --- | --- | --- | --- |
185+
| key | | - | |
186+
| action | Function()? | - | 点击 |
187+
| backgroundColor | Color | Colors.white | 背景颜色 |
188+
| radius | double | 12.0 | 圆角 |
189+
| title | String? | - | 标题 |
190+
| titleColor | Color | const Color(0xE6000000) | 标题颜色 |
191+
| titleAlignment | AlignmentGeometry? | - | 标题对齐模式 |
192+
| contentWidget | Widget? | - | 内容Widget |
193+
| content | String? | - | 内容 |
194+
| contentColor | Color? | - | 内容颜色 |
195+
| contentMaxHeight | double | 0 | 内容的最大高度,默认为0,也就是不限制高度 |
196+
| buttonText | String? | - | 按钮文字 |
197+
| buttonTextColor | Color? | - | 按钮文字颜色 |
198+
| buttonStyle | TDDialogButtonStyle | TDDialogButtonStyle.normal | 按钮样式 |
199+
| showCloseButton | bool? | - | 右上角关闭按钮 |
200+
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
201+
| buttonWidget | Widget? | - | 自定义按钮 |
202+
203+
```
204+
```
205+
### TDDialogButtonOptions
206+
#### 默认构造方法
207+
208+
| 参数 | 类型 | 默认值 | 说明 |
209+
| --- | --- | --- | --- |
210+
| title | String | - | 标题内容 |
211+
| action | Function()? | - | 点击操作 |
212+
| titleColor | Color? | - | 标题颜色 |
213+
| titleSize | double? | - | 字体大小 |
214+
| style | TDButtonStyle? | - | 按钮样式 |
215+
| type | TDButtonType? | - | 按钮类型 |
216+
| theme | TDButtonTheme? | - | 按钮类型 |
217+
| height | double? | - | 按钮高度 |
218+
| fontWeight | FontWeight? | - | 字体粗细 |

0 commit comments

Comments
 (0)