Skip to content

Commit d3a3000

Browse files
committed
Merge branch 'release/0.2.4' of https://github.com/Tencent/tdesign-flutter into release/0.2.4
2 parents 6b89819 + f296b11 commit d3a3000

38 files changed

Lines changed: 854 additions & 839 deletions

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? | - | 分组,用于带描述多行滚动宫格 |
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,32 +1,5 @@
11
## API
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
2+
### TDCalendar
303
#### 默认构造方法
314

325
| 参数 | 类型 | 默认值 | 说明 |
@@ -59,6 +32,33 @@
5932
| animateTo | bool? | false | 动画滚动到指定位置 |
6033
| cellWidget | Widget? Function(BuildContext context, TDate tdate, DateSelectType selectType)? | - | 自定义日期单元格组件 |
6134

35+
```
36+
```
37+
### TDCalendarStyle
38+
#### 默认构造方法
39+
40+
| 参数 | 类型 | 默认值 | 说明 |
41+
| --- | --- | --- | --- |
42+
| decoration | | - | |
43+
| titleStyle | TextStyle? | - | header区域 [TDCalendar.title]的样式 |
44+
| titleMaxLine | int? | - | header区域 [TDCalendar.title]的行数 |
45+
| titleCloseColor | Color? | - | header区域 关闭图标的颜色 |
46+
| weekdayStyle | TextStyle? | - | header区域 周 文字样式 |
47+
| monthTitleStyle | TextStyle? | - | body区域 年月文字样式 |
48+
| cellStyle | TextStyle? | - | 日期样式 |
49+
| centreColor | Color? | - | 日期范围内背景样式 |
50+
| cellDecoration | BoxDecoration? | - | 日期decoration |
51+
| cellPrefixStyle | TextStyle? | - | 日期前面的字符串的样式 |
52+
| cellSuffixStyle | TextStyle? | - | 日期后面的字符串的样式 |
53+
54+
55+
#### 工厂构造方法
56+
57+
| 名称 | 说明 |
58+
| --- | --- |
59+
| TDCalendarStyle.generateStyle | 生成默认样式 |
60+
| TDCalendarStyle.cellStyle | 日期样式 |
61+
6262
```
6363
```
6464
### TDCalendarPopup

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/checkbox_api.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
## API
2-
### TDCheckbox
2+
### TDCheckboxGroup
3+
#### 默认构造方法
4+
5+
| 参数 | 类型 | 默认值 | 说明 |
6+
| --- | --- | --- | --- |
7+
| child | | - | |
8+
| key | | - | |
9+
| onChangeGroup | OnGroupChange? | - | 状态变化监听器 |
10+
| controller | TDCheckboxGroupController? | - | 可以通过控制器操作勾选状态 |
11+
| checkedIds | List<String>? | - | 勾选的CheckBox id列表 |
12+
| maxChecked | int? | - | 最多可以勾选多少 |
13+
| titleMaxLine | int? | - | CheckBox标题的行数 |
14+
| customContentBuilder | ContentBuilder? | - | CheckBox完全自定义内容 |
15+
| contentDirection | TDContentDirection? | - | 文字相对icon的方位 |
16+
| style | TDCheckboxStyle? | - | CheckBox复选框样式:圆形或方形 |
17+
| spacing | double? | - | CheckBoxicon和文字的距离 |
18+
| customIconBuilder | IconBuilder? | - | 自定义选择icon的样式 |
19+
| onOverloadChecked | VoidCallback? | - | 超过最大可勾选的个数 |
20+
21+
```
22+
```
23+
### TDCheckbox
324
#### 默认构造方法
425

526
| 参数 | 类型 | 默认值 | 说明 |
@@ -31,24 +52,3 @@
3152
| subTitleColor | Color? | - | 副标题文字颜色 |
3253
| checkBoxLeftSpace | double? | - | 选项框左侧间距 |
3354
| customSpace | EdgeInsetsGeometry? | - | 自定义组件间距 |
34-
35-
```
36-
```
37-
### TDCheckboxGroup
38-
#### 默认构造方法
39-
40-
| 参数 | 类型 | 默认值 | 说明 |
41-
| --- | --- | --- | --- |
42-
| child | | - | |
43-
| key | | - | |
44-
| onChangeGroup | OnGroupChange? | - | 状态变化监听器 |
45-
| controller | TDCheckboxGroupController? | - | 可以通过控制器操作勾选状态 |
46-
| checkedIds | List<String>? | - | 勾选的CheckBox id列表 |
47-
| maxChecked | int? | - | 最多可以勾选多少 |
48-
| titleMaxLine | int? | - | CheckBox标题的行数 |
49-
| customContentBuilder | ContentBuilder? | - | CheckBox完全自定义内容 |
50-
| contentDirection | TDContentDirection? | - | 文字相对icon的方位 |
51-
| style | TDCheckboxStyle? | - | CheckBox复选框样式:圆形或方形 |
52-
| spacing | double? | - | CheckBoxicon和文字的距离 |
53-
| customIconBuilder | IconBuilder? | - | 自定义选择icon的样式 |
54-
| onOverloadChecked | VoidCallback? | - | 超过最大可勾选的个数 |

0 commit comments

Comments
 (0)