Skip to content

Commit 3dbc2dc

Browse files
authored
Merge pull request #533 from Tencent/develop
Develop
2 parents 9612640 + 356331b commit 3dbc2dc

File tree

31 files changed

+981
-828
lines changed

31 files changed

+981
-828
lines changed

tdesign-component/CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
## 🌈 0.1.9 `2025-03-31`
2+
3+
### 🚀 Features
4+
- `TDProgress`: Added `Progress` component @CORCTON ([#307](https://github.com/Tencent/tdesign-flutter/pull/307))
5+
- `TDMessage`: Added `Message` (Global Prompt) component @chendingya ([#316](https://github.com/Tencent/tdesign-flutter/pull/316))
6+
- `TDSkeleton`: Added `Skeleton` component @Ezer015 ([#317](https://github.com/Tencent/tdesign-flutter/pull/317))
7+
- `TDFooter`: Added `Footer` component @chendingya ([#224](https://github.com/Tencent/tdesign-flutter/pull/224))
8+
- `TDPopover`: Added `Popover` (Popup Bubble) component @ccXxx1aoBai ([#435](https://github.com/Tencent/tdesign-flutter/pull/435))
9+
- `TDSwitch`: Added custom "ON/OFF" font size support @shinyina ([#217](https://github.com/Tencent/tdesign-flutter/pull/217))
10+
- `TDDatePicker`: Added `filterItems` parameter for custom display options and `itemBuilder` for custom item rendering @hkaikai ([#426](https://github.com/Tencent/tdesign-flutter/pull/426))
11+
- `TDDrawer`: Created `TDDrawerWidget` component compatible with Scaffold's drawer property @hkaikai ([#445](https://github.com/Tencent/tdesign-flutter/pull/445))
12+
- `TDTable`: Custom columns now return current row number @ccXxx1aoBai ([#457](https://github.com/Tencent/tdesign-flutter/pull/457))
13+
- `TDUpload`: Added width/height settings and quick replacement configuration support @HubuHito ([#462](https://github.com/Tencent/tdesign-flutter/pull/462))
14+
- `TDButton`: Added icon position property @epoll-j ([#463](https://github.com/Tencent/tdesign-flutter/pull/463))
15+
- `TDDropdownMenu`: Supported single-select mode (`multiple == false`) with multi-column display (`optionsColumns > 1`) @hkaikai ([#502](https://github.com/Tencent/tdesign-flutter/pull/502))
16+
- `TDActionSheet`: Added Action Sheet component @hkaikai ([#485](https://github.com/Tencent/tdesign-flutter/pull/485))
17+
- `TDPicker`: Added `customSelectWidget` parameter @epoll-j ([#495](https://github.com/Tencent/tdesign-flutter/pull/495))
18+
- `TDSlider`: Added track color modification parameter @epoll-j ([#506](https://github.com/Tencent/tdesign-flutter/pull/506))
19+
- `TDCalendar`: Added animated scrolling to selected value position @hkaikai ([#509](https://github.com/Tencent/tdesign-flutter/pull/509))
20+
- `TDStep`: Added `CustomContent` parameter for Step content customization @Jzow ([#452](https://github.com/Tencent/tdesign-flutter/pull/452))
21+
- `TDTag`: Added `fixedWidth` parameter and fixed `TextOverflow.ellipsis` title overflow issue @Jzow ([#496](https://github.com/Tencent/tdesign-flutter/pull/496))
22+
- `TDPopup`: Added edge drag control for bottom panel @Jzow ([#514](https://github.com/Tencent/tdesign-flutter/pull/514))
23+
- `TDBadge`: Added capped numeric value setting for Badge @chendingya ([#302](https://github.com/Tencent/tdesign-flutter/pull/302))
24+
- `TDToast`: Added multi-line text support for icon-type toasts @ccXxx1aoBai ([#481](https://github.com/Tencent/tdesign-flutter/pull/481))
25+
26+
### 🐞 Bug Fixes
27+
- `TDRefreshHeader`: Upgraded Easy Refresh to latest version, improved compatibility between v2/v3 syntax @hkaikai ([#438](https://github.com/Tencent/tdesign-flutter/pull/438))
28+
- `TDCell`: Fixed unresponsive click in blank area without default style; Improved default style construction and demo usage @hkaikai ([#448](https://github.com/Tencent/tdesign-flutter/pull/448))
29+
- `TDTable`: Fixed empty data image display issue @ccXxx1aoBai ([#451](https://github.com/Tencent/tdesign-flutter/pull/451))
30+
- `TDTabBar`: Added `labelStyle` and `unselectedLabelStyle` support for custom font sizes @hkaikai ([#453](https://github.com/Tencent/tdesign-flutter/pull/453))
31+
- `TDCalendar`: Fixed positioning issue when scrolling to last month @hkaikai ([#449](https://github.com/Tencent/tdesign-flutter/pull/449))
32+
- `TDBottomTabBar`: Fixed background color setting for capsule type @epoll-j ([#497](https://github.com/Tencent/tdesign-flutter/pull/497))
33+
- `TDCalendar`: Added localization for confirm button @hkaikai ([#505](https://github.com/Tencent/tdesign-flutter/pull/505))
34+
- `TDUpload`: Added `onMaxLimitReached` callback to handle file limit overflow @Jzow ([#474](https://github.com/Tencent/tdesign-flutter/pull/474))
35+
- `TDInput`: Added `_getTextWidth` function and click event to fix incomplete text display @Jzow ([#475](https://github.com/Tencent/tdesign-flutter/pull/475))
36+
- `TDImage`: Removed mandatory custom width/height constraints (default 72px) for layout auto-calculation @Jzow ([#499](https://github.com/Tencent/tdesign-flutter/pull/499))
37+
- `TDConfirmDialog`: Added layout constraints and dynamic max-height calculation with scroll support @Jzow ([#510](https://github.com/Tencent/tdesign-flutter/pull/510))
38+
- `TDDrawer`: Added `_deleteRouter()` call in close function to force clear routes @Jzow ([#512](https://github.com/Tencent/tdesign-flutter/pull/512))
39+
- `TDText`: Fixed text alignment issue in HarmonyOS 3.22 @duleigiser ([#437](https://github.com/Tencent/tdesign-flutter/pull/437))
40+
- `TDAlertDialog`: Fixed button style not filling width @lvjs ([#460](https://github.com/Tencent/tdesign-flutter/pull/460))
41+
42+
### 🚧 Others
43+
- `TDSlider`: Demo code splitting @iamitis ([#245](https://github.com/Tencent/tdesign-flutter/pull/245))
44+
- Added release date to "About Us" page @iamitis ([#304](https://github.com/Tencent/tdesign-flutter/pull/304))
45+
- `Doc`: Updated README English version, added License file and Issue Doc templates @Jzow ([#458](https://github.com/Tencent/tdesign-flutter/pull/458))
46+
47+
48+
149
## 🌈 0.1.8 `2024-12-30`
250
### 🚀 Features
351
- `TDUpload`: Added Upload component @TingShine ([#405](https://github.com/Tencent/tdesign-flutter/pull/405))
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
11
## API
2-
### TDButtonStyle
3-
#### 默认构造方法
4-
5-
| 参数 | 类型 | 默认值 | 说明 |
6-
| --- | --- | --- | --- |
7-
| backgroundColor | Color? | - | 背景颜色 |
8-
| frameColor | Color? | - | 边框颜色 |
9-
| textColor | Color? | - | 文字颜色 |
10-
| frameWidth | double? | - | 边框宽度 |
11-
| radius | BorderRadiusGeometry? | - | 自定义圆角 |
12-
13-
14-
#### 工厂构造方法
15-
16-
| 名称 | 说明 |
17-
| --- | --- |
18-
| TDButtonStyle.generateFillStyleByTheme | 生成不同主题的填充按钮样式 |
19-
| TDButtonStyle.generateOutlineStyleByTheme | 生成不同主题的描边按钮样式 |
20-
| TDButtonStyle.generateTextStyleByTheme | 生成不同主题的文本按钮样式 |
21-
| TDButtonStyle.generateGhostStyleByTheme | 生成不同主题的幽灵按钮样式 |
22-
23-
```
24-
```
25-
### TDButton
2+
### TDButton
263
#### 默认构造方法
274

285
| 参数 | 类型 | 默认值 | 说明 |
@@ -51,3 +28,26 @@
5128
| margin | EdgeInsetsGeometry? | - | 自定义margin |
5229
| padding | EdgeInsetsGeometry? | - | 自定义padding |
5330
| iconPosition | TDButtonIconPosition? | TDButtonIconPosition.left | 图标位置 |
31+
32+
```
33+
```
34+
### TDButtonStyle
35+
#### 默认构造方法
36+
37+
| 参数 | 类型 | 默认值 | 说明 |
38+
| --- | --- | --- | --- |
39+
| backgroundColor | Color? | - | 背景颜色 |
40+
| frameColor | Color? | - | 边框颜色 |
41+
| textColor | Color? | - | 文字颜色 |
42+
| frameWidth | double? | - | 边框宽度 |
43+
| radius | BorderRadiusGeometry? | - | 自定义圆角 |
44+
45+
46+
#### 工厂构造方法
47+
48+
| 名称 | 说明 |
49+
| --- | --- |
50+
| TDButtonStyle.generateFillStyleByTheme | 生成不同主题的填充按钮样式 |
51+
| TDButtonStyle.generateOutlineStyleByTheme | 生成不同主题的描边按钮样式 |
52+
| TDButtonStyle.generateTextStyleByTheme | 生成不同主题的文本按钮样式 |
53+
| TDButtonStyle.generateGhostStyleByTheme | 生成不同主题的幽灵按钮样式 |

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

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
## API
2-
### TDCalendar
2+
### TDCalendarStyle
3+
#### 默认构造方法
4+
5+
| 参数 | 类型 | 默认值 | 说明 |
6+
| --- | --- | --- | --- |
7+
| decoration | | - | |
8+
| titleStyle | TextStyle? | - | header区域 [TDCalendar.title]的样式 |
9+
| titleMaxLine | int? | - | header区域 [TDCalendar.title]的行数 |
10+
| titleCloseColor | Color? | - | header区域 关闭图标的颜色 |
11+
| weekdayStyle | TextStyle? | - | header区域 周 文字样式 |
12+
| monthTitleStyle | TextStyle? | - | body区域 年月文字样式 |
13+
| cellStyle | TextStyle? | - | 日期样式 |
14+
| centreColor | Color? | - | 日期范围内背景样式 |
15+
| cellDecoration | BoxDecoration? | - | 日期decoration |
16+
| cellPrefixStyle | TextStyle? | - | 日期前面的字符串的样式 |
17+
| cellSuffixStyle | TextStyle? | - | 日期后面的字符串的样式 |
18+
19+
20+
#### 工厂构造方法
21+
22+
| 名称 | 说明 |
23+
| --- | --- |
24+
| TDCalendarStyle.generateStyle | 生成默认样式 |
25+
| TDCalendarStyle.cellStyle | 日期样式 |
26+
27+
```
28+
```
29+
### TDCalendar
330
#### 默认构造方法
431

532
| 参数 | 类型 | 默认值 | 说明 |
@@ -47,30 +74,3 @@
4774
| onConfirm | void Function(List<int> value)? | - | 点击确认按钮时触发 |
4875
| builder | CalendarBuilder? | - | 控件构建器,优先级高于[child] |
4976
| child | TDCalendar? | - | 日历控件 |
50-
51-
```
52-
```
53-
### TDCalendarStyle
54-
#### 默认构造方法
55-
56-
| 参数 | 类型 | 默认值 | 说明 |
57-
| --- | --- | --- | --- |
58-
| decoration | | - | |
59-
| titleStyle | TextStyle? | - | header区域 [TDCalendar.title]的样式 |
60-
| titleMaxLine | int? | - | header区域 [TDCalendar.title]的行数 |
61-
| titleCloseColor | Color? | - | header区域 关闭图标的颜色 |
62-
| weekdayStyle | TextStyle? | - | header区域 周 文字样式 |
63-
| monthTitleStyle | TextStyle? | - | body区域 年月文字样式 |
64-
| cellStyle | TextStyle? | - | 日期样式 |
65-
| centreColor | Color? | - | 日期范围内背景样式 |
66-
| cellDecoration | BoxDecoration? | - | 日期decoration |
67-
| cellPrefixStyle | TextStyle? | - | 日期前面的字符串的样式 |
68-
| cellSuffixStyle | TextStyle? | - | 日期后面的字符串的样式 |
69-
70-
71-
#### 工厂构造方法
72-
73-
| 名称 | 说明 |
74-
| --- | --- |
75-
| TDCalendarStyle.generateStyle | 生成默认样式 |
76-
| TDCalendarStyle.cellStyle | 日期样式 |

tdesign-component/example/assets/api/date-time-picker_api.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
## API
2-
### TDDatePicker
2+
### TDPicker
3+
4+
#### 静态方法
5+
6+
| 名称 | 返回类型 | 参数 | 说明 |
7+
| --- | --- | --- | --- |
8+
| 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, Widget? customSelectWidget, Duration duration, double pickerHeight, bool isTimeUnit, Function(int wheelIndex, int index)? onSelectedItemChanged, int pickerItemCount, List<int> Function(DateTypeKey key, List<int> nums)? filterItems, ItemBuilderType? itemBuilder, | 显示时间选择器 |
9+
| 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, Widget? customSelectWidget, ItemBuilderType? itemBuilder, | 显示多级选择器 |
10+
| 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, Widget? customSelectWidget, double? topPadding, int pickerItemCount, | 显示多级联动选择器 |
11+
12+
```
13+
```
14+
### TDDatePicker
315
#### 默认构造方法
416

517
| 参数 | 类型 | 默认值 | 说明 |
@@ -29,15 +41,3 @@
2941
| onSelectedItemChanged | void Function(int wheelIndex, int index)? | - | 选择器选中项改变回调 |
3042
| itemBuilder | ItemBuilderType? | - | 自定义item构建 |
3143
| key | | - | |
32-
33-
```
34-
```
35-
### TDPicker
36-
37-
#### 静态方法
38-
39-
| 名称 | 返回类型 | 参数 | 说明 |
40-
| --- | --- | --- | --- |
41-
| 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, Widget? customSelectWidget, Duration duration, double pickerHeight, bool isTimeUnit, Function(int wheelIndex, int index)? onSelectedItemChanged, int pickerItemCount, List<int> Function(DateTypeKey key, List<int> nums)? filterItems, ItemBuilderType? itemBuilder, | 显示时间选择器 |
42-
| 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, Widget? customSelectWidget, ItemBuilderType? itemBuilder, | 显示多级选择器 |
43-
| 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, Widget? customSelectWidget, double? topPadding, int pickerItemCount, | 显示多级联动选择器 |

0 commit comments

Comments
 (0)