Skip to content

Commit 7f3b1a6

Browse files
jflin19990707jackjflingithub-actions[bot]Luozf12345
authored
修改版本为0.2.5 (#735)
* 修改版本为0.2.5 * chore: changelog's changes * 流水线提交生成代码 --------- Co-authored-by: jackjflin <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Luozf12345 <[email protected]>
1 parent 61547b6 commit 7f3b1a6

File tree

29 files changed

+637
-1281
lines changed

29 files changed

+637
-1281
lines changed

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
## API
2-
### TDActionSheet
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
320
#### 简介
421
动作面板
522
#### 默认构造方法
@@ -35,20 +52,3 @@
3552
| 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, | 显示列表类型面板 |
3653
| 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, | 显示宫格类型面板 |
3754
| 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: 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
| 参数 | 类型 | 默认值 | 说明 |
@@ -32,33 +59,6 @@
3259
| animateTo | bool? | false | 动画滚动到指定位置 |
3360
| cellWidget | Widget? Function(BuildContext context, TDate tdate, DateSelectType selectType)? | - | 自定义日期单元格组件 |
3461

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,25 +1,5 @@
11
## API
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
2+
### TDCellStyle
233
#### 简介
244
单元格组件样式
255
#### 默认构造方法
@@ -52,6 +32,26 @@
5232
| --- | --- |
5333
| TDCellStyle.cellStyle | 生成单元格默认样式 |
5434

35+
```
36+
```
37+
### TDCellGroup
38+
#### 简介
39+
单元格组组件
40+
#### 默认构造方法
41+
42+
| 参数 | 类型 | 默认值 | 说明 |
43+
| --- | --- | --- | --- |
44+
| key | | - | |
45+
| bordered | bool? | false | 是否显示组边框 |
46+
| theme | TDCellGroupTheme? | TDCellGroupTheme.defaultTheme | 单元格组风格。可选项:default/card |
47+
| title | String? | - | 单元格组标题 |
48+
| cells | List<TDCell> | - | 单元格列表 |
49+
| builder | CellBuilder? | - | cell构建器,可自定义cell父组件,如Dismissible |
50+
| style | TDCellStyle? | - | 自定义样式 |
51+
| titleWidget | Widget? | - | 单元格组标题组件 |
52+
| scrollable | bool? | false | 可滚动 |
53+
| isShowLastBordered | bool? | false | 是否显示最后一个cell的下边框 |
54+
5555
```
5656
```
5757
### TDCell

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

Lines changed: 98 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,5 @@
11
## API
2-
### TDImageDialog
3-
#### 默认构造方法
4-
5-
| 参数 | 类型 | 默认值 | 说明 |
6-
| --- | --- | --- | --- |
7-
| key | | - | |
8-
| image | Image | - | 图片 |
9-
| imagePosition | TDDialogImagePosition? | TDDialogImagePosition.top | 图片位置 |
10-
| backgroundColor | Color | Colors.white | 背景颜色 |
11-
| radius | double | 12.0 | 圆角 |
12-
| title | String? | - | 标题 |
13-
| titleColor | Color | const Color(0xE6000000) | 标题颜色 |
14-
| titleAlignment | AlignmentGeometry? | - | 标题对齐模式 |
15-
| contentWidget | Widget? | - | 内容Widget |
16-
| content | String? | - | 内容 |
17-
| contentColor | Color? | - | 内容颜色 |
18-
| leftBtn | TDDialogButtonOptions? | - | 左侧按钮配置 |
19-
| rightBtn | TDDialogButtonOptions? | - | 右侧按钮配置 |
20-
| showCloseButton | bool? | - | 显示右上角关闭按钮 |
21-
| padding | EdgeInsets? | - | 内容内边距 |
22-
| buttonWidget | Widget? | - | 自定义按钮 |
23-
24-
```
25-
```
26-
### TDAlertDialog
27-
#### 默认构造方法
28-
29-
| 参数 | 类型 | 默认值 | 说明 |
30-
| --- | --- | --- | --- |
31-
| key | | - | |
32-
| backgroundColor | Color | Colors.white | 背景颜色 |
33-
| radius | double | 12.0 | 圆角 |
34-
| title | String? | - | 标题 |
35-
| titleColor | Color | const Color(0xE6000000) | 标题颜色 |
36-
| content | String? | - | 内容 |
37-
| contentColor | Color? | - | 内容颜色 |
38-
| titleAlignment | AlignmentGeometry? | - | 标题对齐模式 |
39-
| contentWidget | Widget? | - | 内容Widget |
40-
| contentMaxHeight | double | 0 | 内容的最大高度,默认为0,也就是不限制高度 |
41-
| leftBtn | TDDialogButtonOptions? | - | 左侧按钮配置 |
42-
| rightBtn | TDDialogButtonOptions? | - | 右侧按钮配置 |
43-
| leftBtnAction | Function()? | - | 左侧按钮默认点击 |
44-
| rightBtnAction | Function()? | - | 右侧按钮默认点击 |
45-
| showCloseButton | bool? | - | 显示右上角关闭按钮 |
46-
| buttonStyle | | TDDialogButtonStyle.normal | |
47-
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
48-
| buttonWidget | Widget? | - | 自定义按钮 |
49-
50-
51-
#### 工厂构造方法
52-
53-
| 名称 | 说明 |
54-
| --- | --- |
55-
| TDAlertDialog.vertical | 纵向按钮排列的对话框
56-
57-
[buttons]参数是必须的,纵向按钮默认样式都是[TDButtonTheme.primary] |
58-
59-
```
60-
```
61-
### TDConfirmDialog
62-
#### 默认构造方法
63-
64-
| 参数 | 类型 | 默认值 | 说明 |
65-
| --- | --- | --- | --- |
66-
| key | | - | |
67-
| action | Function()? | - | 点击 |
68-
| backgroundColor | Color | Colors.white | 背景颜色 |
69-
| radius | double | 12.0 | 圆角 |
70-
| title | String? | - | 标题 |
71-
| titleColor | Color | const Color(0xE6000000) | 标题颜色 |
72-
| titleAlignment | AlignmentGeometry? | - | 标题对齐模式 |
73-
| contentWidget | Widget? | - | 内容Widget |
74-
| content | String? | - | 内容 |
75-
| contentColor | Color? | - | 内容颜色 |
76-
| contentMaxHeight | double | 0 | 内容的最大高度,默认为0,也就是不限制高度 |
77-
| buttonText | String? | - | 按钮文字 |
78-
| buttonTextColor | Color? | - | 按钮文字颜色 |
79-
| buttonStyle | TDDialogButtonStyle | TDDialogButtonStyle.normal | 按钮样式 |
80-
| showCloseButton | bool? | - | 右上角关闭按钮 |
81-
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
82-
| buttonWidget | Widget? | - | 自定义按钮 |
83-
84-
```
85-
```
86-
### TDDialogScaffold
2+
### TDDialogScaffold
873
#### 默认构造方法
884

895
| 参数 | 类型 | 默认值 | 说明 |
@@ -92,6 +8,7 @@
928
| body | Widget | - | Dialog主体 |
939
| showCloseButton | bool? | - | 显示右上角关闭按钮 |
9410
| backgroundColor | Color | Colors.white | 背景色 |
11+
| width | double? | - | 弹窗宽度 |
9512
| radius | double | 12.0 | 圆角 |
9613

9714
```
@@ -177,20 +94,89 @@
17794

17895
```
17996
```
180-
### TDDialogButtonOptions
97+
### TDAlertDialog
18198
#### 默认构造方法
18299

183100
| 参数 | 类型 | 默认值 | 说明 |
184101
| --- | --- | --- | --- |
185-
| title | String | - | 标题内容 |
186-
| action | Function()? | - | 点击操作 |
187-
| titleColor | Color? | - | 标题颜色 |
188-
| titleSize | double? | - | 字体大小 |
189-
| style | TDButtonStyle? | - | 按钮样式 |
190-
| type | TDButtonType? | - | 按钮类型 |
191-
| theme | TDButtonTheme? | - | 按钮类型 |
192-
| height | double? | - | 按钮高度 |
193-
| fontWeight | FontWeight? | - | 字体粗细 |
102+
| key | | - | |
103+
| backgroundColor | Color | Colors.white | 背景颜色 |
104+
| radius | double | 12.0 | 圆角 |
105+
| title | String? | - | 标题 |
106+
| titleColor | Color | const Color(0xE6000000) | 标题颜色 |
107+
| content | String? | - | 内容 |
108+
| contentColor | Color? | - | 内容颜色 |
109+
| titleAlignment | AlignmentGeometry? | - | 标题对齐模式 |
110+
| contentWidget | Widget? | - | 内容Widget |
111+
| contentMaxHeight | double | 0 | 内容的最大高度,默认为0,也就是不限制高度 |
112+
| leftBtn | TDDialogButtonOptions? | - | 左侧按钮配置 |
113+
| rightBtn | TDDialogButtonOptions? | - | 右侧按钮配置 |
114+
| leftBtnAction | Function()? | - | 左侧按钮默认点击 |
115+
| rightBtnAction | Function()? | - | 右侧按钮默认点击 |
116+
| showCloseButton | bool? | - | 显示右上角关闭按钮 |
117+
| buttonStyle | | TDDialogButtonStyle.normal | |
118+
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
119+
| buttonWidget | Widget? | - | 自定义按钮 |
120+
121+
122+
#### 工厂构造方法
123+
124+
| 名称 | 说明 |
125+
| --- | --- |
126+
| TDAlertDialog.vertical | 纵向按钮排列的对话框
127+
128+
[buttons]参数是必须的,纵向按钮默认样式都是[TDButtonTheme.primary] |
129+
130+
```
131+
```
132+
### TDConfirmDialog
133+
#### 默认构造方法
134+
135+
| 参数 | 类型 | 默认值 | 说明 |
136+
| --- | --- | --- | --- |
137+
| key | | - | |
138+
| action | Function()? | - | 点击 |
139+
| backgroundColor | Color | Colors.white | 背景颜色 |
140+
| radius | double | 12.0 | 圆角 |
141+
| title | String? | - | 标题 |
142+
| titleColor | Color | const Color(0xE6000000) | 标题颜色 |
143+
| titleAlignment | AlignmentGeometry? | - | 标题对齐模式 |
144+
| contentWidget | Widget? | - | 内容Widget |
145+
| content | String? | - | 内容 |
146+
| contentColor | Color? | - | 内容颜色 |
147+
| contentMaxHeight | double | 0 | 内容的最大高度,默认为0,也就是不限制高度 |
148+
| buttonText | String? | - | 按钮文字 |
149+
| buttonTextColor | Color? | - | 按钮文字颜色 |
150+
| buttonStyle | TDDialogButtonStyle | TDDialogButtonStyle.normal | 按钮样式 |
151+
| showCloseButton | bool? | - | 右上角关闭按钮 |
152+
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
153+
| buttonWidget | Widget? | - | 自定义按钮 |
154+
| width | | - | |
155+
| buttonStyleCustom | TDButtonStyle? | - | 按钮自定义样式属性,背景色、边框... |
156+
157+
```
158+
```
159+
### TDImageDialog
160+
#### 默认构造方法
161+
162+
| 参数 | 类型 | 默认值 | 说明 |
163+
| --- | --- | --- | --- |
164+
| key | | - | |
165+
| image | Image | - | 图片 |
166+
| imagePosition | TDDialogImagePosition? | TDDialogImagePosition.top | 图片位置 |
167+
| backgroundColor | Color | Colors.white | 背景颜色 |
168+
| radius | double | 12.0 | 圆角 |
169+
| title | String? | - | 标题 |
170+
| titleColor | Color | const Color(0xE6000000) | 标题颜色 |
171+
| titleAlignment | AlignmentGeometry? | - | 标题对齐模式 |
172+
| contentWidget | Widget? | - | 内容Widget |
173+
| content | String? | - | 内容 |
174+
| contentColor | Color? | - | 内容颜色 |
175+
| leftBtn | TDDialogButtonOptions? | - | 左侧按钮配置 |
176+
| rightBtn | TDDialogButtonOptions? | - | 右侧按钮配置 |
177+
| showCloseButton | bool? | - | 显示右上角关闭按钮 |
178+
| padding | EdgeInsets? | - | 内容内边距 |
179+
| buttonWidget | Widget? | - | 自定义按钮 |
194180

195181
```
196182
```
@@ -216,3 +202,20 @@
216202
| padding | EdgeInsets? | const EdgeInsets.fromLTRB(24, 32, 24, 0) | 内容内边距 |
217203
| buttonWidget | Widget? | - | 自定义按钮 |
218204
| customInputWidget | Widget? | - | 自定义输入框 |
205+
206+
```
207+
```
208+
### TDDialogButtonOptions
209+
#### 默认构造方法
210+
211+
| 参数 | 类型 | 默认值 | 说明 |
212+
| --- | --- | --- | --- |
213+
| title | String | - | 标题内容 |
214+
| action | Function()? | - | 点击操作 |
215+
| titleColor | Color? | - | 标题颜色 |
216+
| titleSize | double? | - | 字体大小 |
217+
| style | TDButtonStyle? | - | 按钮样式 |
218+
| type | TDButtonType? | - | 按钮类型 |
219+
| theme | TDButtonTheme? | - | 按钮类型 |
220+
| height | double? | - | 按钮高度 |
221+
| fontWeight | FontWeight? | - | 字体粗细 |

0 commit comments

Comments
 (0)