Skip to content

Commit 74ca03c

Browse files
Revert "ci(test-build): 恢复3.x 编译测试" (#908)
* Revert "ci(test-build): 恢复3.x 编译测试 (#901)" This reverts commit 792672b. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 1997dbf commit 74ca03c

35 files changed

Lines changed: 683 additions & 935 deletions

File tree

.github/workflows/test-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
flutter-version:
3131
- 3.16.9
3232
- 3.32.0
33-
- 3.x
33+
# 当前对于 3.4x.x 版本,AOP 有问题先忽略
34+
# - 3.x
3435
include:
3536
- platform: apk
3637
os: ubuntu-latest
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
## API
2+
### TDButtonStyle
3+
#### 默认构造方法
4+
5+
| 参数 | 类型 | 默认值 | 说明 |
6+
| --- | --- | --- | --- |
7+
| backgroundColor | Color? | - | 背景颜色 |
8+
| frameColor | Color? | - | 边框颜色 |
9+
| frameWidth | double? | - | 边框宽度 |
10+
| gradient | Gradient? | - | 渐变背景色 |
11+
| radius | BorderRadiusGeometry? | - | 自定义圆角 |
12+
| textColor | Color? | - | 文字颜色 |
13+
14+
15+
#### 工厂构造方法
16+
17+
| 名称 | 说明 |
18+
| --- | --- |
19+
| TDButtonStyle.generateFillStyleByTheme | 生成不同主题的填充按钮样式 |
20+
| TDButtonStyle.generateGhostStyleByTheme | 生成不同主题的幽灵按钮样式 |
21+
| TDButtonStyle.generateOutlineStyleByTheme | 生成不同主题的描边按钮样式 |
22+
| TDButtonStyle.generateTextStyleByTheme | 生成不同主题的文本按钮样式 |
23+
24+
```
25+
```
26+
227
### TDButton
328
#### 默认构造方法
429

@@ -29,28 +54,3 @@
2954
| theme | TDButtonTheme? | - | 主题 |
3055
| type | TDButtonType | TDButtonType.fill | 类型:填充,描边,文字 |
3156
| width | double? | - | 自定义宽度 |
32-
33-
```
34-
```
35-
36-
### TDButtonStyle
37-
#### 默认构造方法
38-
39-
| 参数 | 类型 | 默认值 | 说明 |
40-
| --- | --- | --- | --- |
41-
| backgroundColor | Color? | - | 背景颜色 |
42-
| frameColor | Color? | - | 边框颜色 |
43-
| frameWidth | double? | - | 边框宽度 |
44-
| gradient | Gradient? | - | 渐变背景色 |
45-
| radius | BorderRadiusGeometry? | - | 自定义圆角 |
46-
| textColor | Color? | - | 文字颜色 |
47-
48-
49-
#### 工厂构造方法
50-
51-
| 名称 | 说明 |
52-
| --- | --- |
53-
| TDButtonStyle.generateFillStyleByTheme | 生成不同主题的填充按钮样式 |
54-
| TDButtonStyle.generateGhostStyleByTheme | 生成不同主题的幽灵按钮样式 |
55-
| TDButtonStyle.generateOutlineStyleByTheme | 生成不同主题的描边按钮样式 |
56-
| TDButtonStyle.generateTextStyleByTheme | 生成不同主题的文本按钮样式 |

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

Lines changed: 20 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -13,65 +13,11 @@
1313
| onConfirm | void Function(List<int> value)? | - | 点击确认按钮时触发 |
1414
| top | double? | - | 距离顶部的距离 |
1515
| visible | bool? | - | 默认是否显示日历 |
16-
### TDCalendarDataSource
17-
```
18-
```
19-
20-
### TDCalendar
21-
#### 默认构造方法
22-
23-
| 参数 | 类型 | 默认值 | 说明 |
24-
| --- | --- | --- | --- |
25-
| anchorDate | DateTime? | - | 锚点日期 |
26-
| animateTo | bool? | false | 动画滚动到指定位置 |
27-
| cellHeight | double? | 60 | 日期高度 |
28-
| cellWidget | Widget? Function(BuildContext context, TDate tdate, DateSelectType selectType)? | - | 自定义日期单元格组件 |
29-
| dataSource | TDCalendarDataSource? | - | 外部数据源,用于提供农历转换等功能 |
30-
| dateType | TDCalendarDateType | TDCalendarDateType.solar | 日历类型:阳历或农历 |
31-
| displayFormat | String? | 'year month' | 年月显示格式,`year`表示年,`month`表示月,如`year month`表示年在前、月在后、中间隔一个空格 |
32-
| firstDayOfWeek | int? | 0 | 第一天从星期几开始,默认 0 = 周日 |
33-
| format | CalendarFormat? | - | 用于格式化日期的函数,可定义日期前后的显示内容和日期样式 |
34-
| height | double? | - | 高度 |
35-
| isTimeUnit | bool? | true | 是否显示时间单位 |
36-
| key | | - | |
37-
| maxDate | int? | - | 最大可选的日期(fromMillisecondsSinceEpoch),不传则默认半年后 |
38-
| minDate | int? | - | 最小可选的日期(fromMillisecondsSinceEpoch),不传则默认今天 |
39-
| monthTitleBuilder | Widget Function(BuildContext context, DateTime monthDate)? | - | 月标题构建器 |
40-
| monthTitleHeight | double? | 22 | 月标题高度 |
41-
| onCellClick | void Function(int value, DateSelectType type, TDate tdate)? | - | 点击日期时触发 |
42-
| onCellLongPress | void Function(int value, DateSelectType type, TDate tdate)? | - | 长安日期时触发 |
43-
| onChange | void Function(List<int> value)? | - | 选中值变化时触发 |
44-
| onHeaderClick | void Function(int index, String week)? | - | 点击周时触发 |
45-
| onMonthChange | ValueChanged<DateTime>? | - | 月份变化时触发 |
46-
| pickerHeight | double? | 178 | 时间选择器List的视窗高度 |
47-
| pickerItemCount | int? | 3 | 选择器List视窗中item个数,pickerHeight / pickerItemCount即item高度 |
48-
| showLunarInfo | bool | false | 阳历模式下是否显示农历信息作为副标题 |
49-
| style | TDCalendarStyle? | - | 自定义样式 |
50-
| timePickerModel | List<DatePickerModel>? | - | 自定义时间选择器 |
51-
| title | String? | - | 标题 |
52-
| titleWidget | Widget? | - | 标题组件 |
53-
| type | CalendarType? | CalendarType.single | 日历的选择类型,single = 单选;multiple = 多选;range = 区间选择 |
54-
| useSafeArea | bool? | true | 是否使用安全区域,默认true |
55-
| useTimePicker | bool? | false | 是否显示时间选择器 |
56-
| value | List<int>? | - | 当前选择的日期(fromMillisecondsSinceEpoch),不传则默认今天,当 type = single 时数组长度为1 |
57-
| width | double? | - | 宽度 |
5816

5917
```
6018
```
6119

62-
### TDLunarInfo
63-
#### 默认构造方法
64-
65-
| 参数 | 类型 | 默认值 | 说明 |
66-
| --- | --- | --- | --- |
67-
| day | int | - | 农历日期(数字,1-30) |
68-
| dayText | String | - | 日期文本(如:初七) |
69-
| isLeapMonth | bool | false | 是否是闰月 |
70-
| month | int | - | 农历月份(数字,1-12) |
71-
| monthText | String | - | 月份文本(如:三月、闰三月) |
72-
| year | int | - | 农历年份(数字) |
73-
| yearText | String | - | 年份文本(如:二〇二五) |
74-
20+
### TDCalendarDataSource
7521
```
7622
```
7723

@@ -112,6 +58,8 @@
11258
| animateTo | bool? | false | 动画滚动到指定位置 |
11359
| cellHeight | double? | 60 | 日期高度 |
11460
| cellWidget | Widget? Function(BuildContext context, TDate tdate, DateSelectType selectType)? | - | 自定义日期单元格组件 |
61+
| dataSource | TDCalendarDataSource? | - | 外部数据源,用于提供农历转换等功能 |
62+
| dateType | TDCalendarDateType | TDCalendarDateType.solar | 日历类型:阳历或农历 |
11563
| displayFormat | String? | 'year month' | 年月显示格式,`year`表示年,`month`表示月,如`year month`表示年在前、月在后、中间隔一个空格 |
11664
| firstDayOfWeek | int? | 0 | 第一天从星期几开始,默认 0 = 周日 |
11765
| format | CalendarFormat? | - | 用于格式化日期的函数,可定义日期前后的显示内容和日期样式 |
@@ -129,6 +77,7 @@
12977
| onMonthChange | ValueChanged<DateTime>? | - | 月份变化时触发 |
13078
| pickerHeight | double? | 178 | 时间选择器List的视窗高度 |
13179
| pickerItemCount | int? | 3 | 选择器List视窗中item个数,pickerHeight / pickerItemCount即item高度 |
80+
| showLunarInfo | bool | false | 阳历模式下是否显示农历信息作为副标题 |
13281
| style | TDCalendarStyle? | - | 自定义样式 |
13382
| timePickerModel | List<DatePickerModel>? | - | 自定义时间选择器 |
13483
| title | String? | - | 标题 |
@@ -138,3 +87,19 @@
13887
| useTimePicker | bool? | false | 是否显示时间选择器 |
13988
| value | List<int>? | - | 当前选择的日期(fromMillisecondsSinceEpoch),不传则默认今天,当 type = single 时数组长度为1 |
14089
| width | double? | - | 宽度 |
90+
91+
```
92+
```
93+
94+
### TDLunarInfo
95+
#### 默认构造方法
96+
97+
| 参数 | 类型 | 默认值 | 说明 |
98+
| --- | --- | --- | --- |
99+
| day | int | - | 农历日期(数字,1-30) |
100+
| dayText | String | - | 日期文本(如:初七) |
101+
| isLeapMonth | bool | false | 是否是闰月 |
102+
| month | int | - | 农历月份(数字,1-12) |
103+
| monthText | String | - | 月份文本(如:三月、闰三月) |
104+
| year | int | - | 农历年份(数字) |
105+
| yearText | String | - | 年份文本(如:二〇二五) |

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

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,40 @@
11
## API
2+
### TDCellStyle
3+
#### 简介
4+
单元格组件样式
5+
#### 默认构造方法
6+
7+
| 参数 | 类型 | 默认值 | 说明 |
8+
| --- | --- | --- | --- |
9+
| arrowColor | Color? | - | 箭头颜色 |
10+
| backgroundColor | Color? | - | 默认状态背景颜色 |
11+
| borderedColor | Color? | - | 单元格边框颜色 |
12+
| cardBorderRadius | BorderRadius? | - | 卡片模式边框圆角 |
13+
| cardPadding | EdgeInsets? | - | 卡片模式内边距 |
14+
| clickBackgroundColor | Color? | - | 点击状态背景颜色 |
15+
| context | BuildContext? | - | 传递context,会生成默认样式 |
16+
| descriptionStyle | TextStyle? | - | 内容描述文字样式 |
17+
| groupBorderedColor | Color? | - | 单元格组边框颜色 |
18+
| groupTitleStyle | TextStyle? | - | 单元组标题文字样式 |
19+
| leftIconColor | Color? | - | 左侧图标颜色 |
20+
| noteStyle | TextStyle? | - | 说明文字样式 |
21+
| padding | EdgeInsets? | - | 单元格内边距 |
22+
| requiredStyle | TextStyle? | - | 必填星号文字样式 |
23+
| rightIconColor | Color? | - | 右侧图标颜色 |
24+
| titleBackgroundColor | Color? | - | 单元格组标题背景颜色 |
25+
| titlePadding | EdgeInsets? | - | 单元格组标题内边距 |
26+
| titleStyle | TextStyle? | - | 标题文字样式 |
27+
28+
29+
#### 工厂构造方法
30+
31+
| 名称 | 说明 |
32+
| --- | --- |
33+
| TDCellStyle.cellStyle | 生成单元格默认样式 |
34+
35+
```
36+
```
37+
238
### TDCell
339
#### 简介
440
单元格组件
@@ -38,42 +74,6 @@
3874
```
3975
```
4076

41-
### TDCellStyle
42-
#### 简介
43-
单元格组件样式
44-
#### 默认构造方法
45-
46-
| 参数 | 类型 | 默认值 | 说明 |
47-
| --- | --- | --- | --- |
48-
| arrowColor | Color? | - | 箭头颜色 |
49-
| backgroundColor | Color? | - | 默认状态背景颜色 |
50-
| borderedColor | Color? | - | 单元格边框颜色 |
51-
| cardBorderRadius | BorderRadius? | - | 卡片模式边框圆角 |
52-
| cardPadding | EdgeInsets? | - | 卡片模式内边距 |
53-
| clickBackgroundColor | Color? | - | 点击状态背景颜色 |
54-
| context | BuildContext? | - | 传递context,会生成默认样式 |
55-
| descriptionStyle | TextStyle? | - | 内容描述文字样式 |
56-
| groupBorderedColor | Color? | - | 单元格组边框颜色 |
57-
| groupTitleStyle | TextStyle? | - | 单元组标题文字样式 |
58-
| leftIconColor | Color? | - | 左侧图标颜色 |
59-
| noteStyle | TextStyle? | - | 说明文字样式 |
60-
| padding | EdgeInsets? | - | 单元格内边距 |
61-
| requiredStyle | TextStyle? | - | 必填星号文字样式 |
62-
| rightIconColor | Color? | - | 右侧图标颜色 |
63-
| titleBackgroundColor | Color? | - | 单元格组标题背景颜色 |
64-
| titlePadding | EdgeInsets? | - | 单元格组标题内边距 |
65-
| titleStyle | TextStyle? | - | 标题文字样式 |
66-
67-
68-
#### 工厂构造方法
69-
70-
| 名称 | 说明 |
71-
| --- | --- |
72-
| TDCellStyle.cellStyle | 生成单元格默认样式 |
73-
74-
```
75-
```
76-
7777
### TDCellGroup
7878
#### 简介
7979
单元格组组件

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

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

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

0 commit comments

Comments
 (0)