Skip to content

Commit d6bdb0c

Browse files
RSS1102Luozf12345
andauthored
docs: sort api endpoints alphabetically (Tencent#766)
Co-authored-by: Luozf <[email protected]>
1 parent 2919e9b commit d6bdb0c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1114
-1093
lines changed

.github/workflows/preview-build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212

13+
- name: Configure Git to not use symlinks
14+
run: git config --global core.symlinks false
15+
1316
- uses: actions/checkout@v4
1417
with:
1518
submodules: recursive
19+
lfs: true
1620

1721

1822
- name: Set Node version
@@ -166,6 +170,13 @@ jobs:
166170
- name: demo tools build api md
167171
run: |
168172
cd $GITHUB_WORKSPACE/tdesign-component/demo_tool
173+
# Make sure binary files are not symlinks
174+
if [ -L ./bin/api_tool_linux ]; then
175+
echo "Error: api_tool_linux is a symlink. This may be a Git configuration issue."
176+
echo "Please check if Git LFS is properly configured or if the file should be a regular file."
177+
exit 1
178+
fi
179+
chmod +x ./bin/api_tool_linux
169180
sh all_build.sh
170181
171182
- name: Build site
237 KB
Binary file not shown.

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
| 参数 | 类型 | 默认值 | 说明 |
88
| --- | --- | --- | --- |
9-
| label | String | - | 标提 |
10-
| textStyle | TextStyle? | - | 标题样式 |
11-
| icon | Widget? | - | 图标 |
129
| badge | TDBadge? | - | 角标 |
1310
| disabled | bool | false | 是否禁用 |
14-
| iconSize | double? | - | 图标大小 |
1511
| group | String? | - | 分组,用于带描述多行滚动宫格 |
12+
| icon | Widget? | - | 图标 |
13+
| iconSize | double? | - | 图标大小 |
14+
| label | String | - | 标题 |
15+
| textStyle | TextStyle? | - | 标题样式 |
1616

1717
```
1818
```
@@ -23,32 +23,32 @@
2323

2424
| 参数 | 类型 | 默认值 | 说明 |
2525
| --- | --- | --- | --- |
26-
| context | BuildContext | context | 上下文 |
2726
| align | TDActionSheetAlign | TDActionSheetAlign.center | 对齐方式 |
28-
| cancelText | String | '取消' | 取消按钮的文本 |
27+
| cancelText | String? | - | 取消按钮的文本 |
28+
| closeOnOverlayClick | bool | true | 点击蒙层时是否关闭 |
29+
| context | BuildContext | context | 上下文 |
2930
| count | int | 8 | 每页显示的项目数 |
30-
| rows | int | 2 | 显示的行数 |
31+
| description | String? | - | 描述文本 |
3132
| itemHeight | double | 96.0 | 项目的行高 |
3233
| itemMinWidth | double | 80.0 | 项目的最小宽度 |
33-
| description | String? | - | 描述文本 |
3434
| items | List<TDActionSheetItem> | - | ActionSheet的项目列表 |
35-
| showCancel | bool | true | 是否显示取消按钮 |
36-
| showPagination | bool | false | 是否显示分页 |
37-
| scrollable | bool | false | 是否可以横向滚动 |
38-
| theme | TDActionSheetTheme | TDActionSheetTheme.list | 主题样式 |
39-
| visible | bool | false | 是否立即显示 |
4035
| onCancel | VoidCallback? | - | 取消按钮的回调函数 |
4136
| onClose | VoidCallback? | - | 关闭时的回调函数 |
4237
| onSelected | TDActionSheetItemCallback? | - | 选择项目时的回调函数 |
38+
| rows | int | 2 | 显示的行数 |
39+
| scrollable | bool | false | 是否可以横向滚动 |
40+
| showCancel | bool | true | 是否显示取消按钮 |
4341
| showOverlay | bool | true | 是否显示遮罩层 |
44-
| closeOnOverlayClick | bool | true | 点击蒙层时是否关闭 |
42+
| showPagination | bool | false | 是否显示分页 |
43+
| theme | TDActionSheetTheme | TDActionSheetTheme.list | 主题样式 |
4544
| useSafeArea | bool | true | 使用安全区域 |
45+
| visible | bool | false | 是否立即显示 |
4646

4747

4848
#### 静态方法
4949

5050
| 名称 | 返回类型 | 参数 | 说明 |
5151
| --- | --- | --- | --- |
52-
| 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, | 显示列表类型面板 |
53-
| 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, | 显示宫格类型面板 |
54-
| 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, | 显示分组类型面板 |
52+
| 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, | 显示宫格类型面板 |
53+
| 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, | 显示分组类型面板 |
54+
| 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, | 显示列表类型面板 |

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44

55
| 参数 | 类型 | 默认值 | 说明 |
66
| --- | --- | --- | --- |
7-
| key | | - | |
8-
| size | TDAvatarSize | TDAvatarSize.medium | 头像尺寸 |
9-
| type | TDAvatarType | TDAvatarType.normal | 头像类型 |
10-
| shape | TDAvatarShape | TDAvatarShape.circle | 头像形状 |
11-
| text | String? | - | 自定义文字 |
12-
| radius | double? | - | 自定义圆角 |
13-
| icon | IconData? | - | 自定义图标 |
14-
| avatarUrl | String? | - | 头像地址 |
15-
| avatarSize | double? | - | 自定义头像大小 |
16-
| avatarDisplayList | List<String>? | - | 带操作\展示的头像列表 |
17-
| displayText | String? | - | 纯展示类型末尾文字 |
18-
| onTap | Function()? | - | 操作点击事件 |
19-
| defaultUrl | String | '' | 默认图片(本地) |
7+
| avatarDisplayBorder | double | 2 | 带操作展示的头像描边宽度 |
8+
| avatarDisplayList | List<String>? | - | 带操作展示的头像列表 |
9+
| avatarDisplayListAsset | List<String>? | - | 带操作展示的头像列表(本地资源) |
2010
| avatarDisplayWidget | Widget? | - | 带操作头像自定义操作Widget |
21-
| avatarDisplayBorder | double | 2 | 带操作\展示的头像描边宽度 |
22-
| avatarDisplayListAsset | List<String>? | - | 带操作\展示的头像列表 (本地资源) |
11+
| avatarSize | double? | - | 自定义头像大小 |
12+
| avatarUrl | String? | - | 头像地址 |
2313
| backgroundColor | Color? | - | 自定义文案时背景色 |
14+
| defaultUrl | String | '' | 默认图片(本地) |
15+
| displayText | String? | - | 纯展示类型末尾文字 |
2416
| fit | BoxFit? | - | 自定义图片对齐方式 |
17+
| icon | IconData? | - | 自定义图标 |
18+
| key | | - | |
19+
| onTap | Function()? | - | 操作点击事件 |
20+
| radius | double? | - | 自定义圆角 |
21+
| shape | TDAvatarShape | TDAvatarShape.circle | 头像形状 |
22+
| size | TDAvatarSize | TDAvatarSize.medium | 头像尺寸 |
23+
| text | String? | - | 自定义文字 |
24+
| type | TDAvatarType | TDAvatarType.normal | 头像类型 |

tdesign-component/example/assets/api/back-top_api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
| 参数 | 类型 | 默认值 | 说明 |
66
| --- | --- | --- | --- |
7-
| key | | - | |
87
| controller | ScrollController? | - | 页面滚动的控制器 |
9-
| theme | TDBackTopTheme | TDBackTopTheme.light | 主题 |
10-
| style | TDBackTopStyle | TDBackTopStyle.circle | 样式,圆形和半圆 |
11-
| showText | bool | false | 是否展示文字 |
8+
| key | | - | |
129
| onClick | VoidCallback? | - | 按钮点击事件 |
10+
| showText | bool | false | 是否展示文字 |
11+
| style | TDBackTopStyle | TDBackTopStyle.circle | 样式,圆形和半圆 |
12+
| theme | TDBackTopTheme | TDBackTopTheme.light | 主题 |

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
| 参数 | 类型 | 默认值 | 说明 |
66
| --- | --- | --- | --- |
7-
| type | TDBadgeType | type | 红点样式 |
8-
| key | | - | |
7+
| border | TDBadgeBorder | TDBadgeBorder.large | 红点圆角大小 |
8+
| color | Color? | - | 红点颜色 |
99
| count | String? | - | 红点数量 |
10+
| key | | - | |
1011
| maxCount | String? | '99' | 最大红点数量 |
11-
| border | TDBadgeBorder | TDBadgeBorder.large | 红点圆角大小 |
12+
| message | String? | - | 消息内容 |
13+
| padding | EdgeInsetsGeometry? | - | 角标自定义padding |
14+
| showZero | bool | true | 值为0是否显示 |
1215
| size | TDBadgeSize | TDBadgeSize.small | 红点尺寸 |
13-
| color | Color? | - | 红点颜色 |
1416
| textColor | Color? | - | 文字颜色 |
15-
| message | String? | - | 消息内容 |
17+
| type | TDBadgeType | type | 红点样式 |
1618
| widthLarge | double | 32 | 角标大三角形宽 |
1719
| widthSmall | double | 12 | 角标小三角形宽 |
18-
| padding | EdgeInsetsGeometry? | - | 角标自定义padding |
19-
| showZero | bool | true | 值为0是否显示 |

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
| --- | --- | --- | --- |
77
| backgroundColor | Color? | - | 背景颜色 |
88
| frameColor | Color? | - | 边框颜色 |
9-
| textColor | Color? | - | 文字颜色 |
109
| frameWidth | double? | - | 边框宽度 |
1110
| radius | BorderRadiusGeometry? | - | 自定义圆角 |
11+
| textColor | Color? | - | 文字颜色 |
1212

1313

1414
#### 工厂构造方法
1515

1616
| 名称 | 说明 |
1717
| --- | --- |
1818
| TDButtonStyle.generateFillStyleByTheme | 生成不同主题的填充按钮样式 |
19+
| TDButtonStyle.generateGhostStyleByTheme | 生成不同主题的幽灵按钮样式 |
1920
| TDButtonStyle.generateOutlineStyleByTheme | 生成不同主题的描边按钮样式 |
2021
| TDButtonStyle.generateTextStyleByTheme | 生成不同主题的文本按钮样式 |
21-
| TDButtonStyle.generateGhostStyleByTheme | 生成不同主题的幽灵按钮样式 |
2222

2323
```
2424
```
@@ -27,27 +27,27 @@
2727

2828
| 参数 | 类型 | 默认值 | 说明 |
2929
| --- | --- | --- | --- |
30-
| key | | - | |
31-
| text | String? | - | 文本内容 |
32-
| size | TDButtonSize | TDButtonSize.medium | 尺寸 |
33-
| type | TDButtonType | TDButtonType.fill | 类型:填充,描边,文字 |
34-
| shape | TDButtonShape | TDButtonShape.rectangle | 形状:圆角,胶囊,方形,圆形,填充 |
35-
| theme | TDButtonTheme? | - | 主题 |
30+
| activeStyle | TDButtonStyle? | - | 自定义点击样式,有则优先用它,没有则根据 type 和 theme 选取 |
3631
| child | Widget? | - | 自控件 |
3732
| disabled | bool | false | 禁止点击 |
38-
| isBlock | bool | false | 是否为通栏按钮 |
39-
| style | TDButtonStyle? | - | 自定义样式,有则优先用它,没有则根据type和theme选取.如果设置了style,则activeStyle和disableStyle也应该设置 |
40-
| activeStyle | TDButtonStyle? | - | 自定义点击样式,有则优先用它,没有则根据type和theme选取 |
41-
| disableStyle | TDButtonStyle? | - | 自定义禁用样式,有则优先用它,没有则根据type和theme选取 |
42-
| textStyle | TextStyle? | - | 自定义可点击状态文本样式 |
33+
| disableStyle | TDButtonStyle? | - | 自定义禁用样式,有则优先用它,没有则根据 type 和 theme 选取 |
4334
| disableTextStyle | TextStyle? | - | 自定义不可点击状态文本样式 |
44-
| width | double? | - | 自定义宽度 |
4535
| height | double? | - | 自定义高度 |
46-
| onTap | TDButtonEvent? | - | 点击事件 |
4736
| icon | IconData? | - | 图标icon |
48-
| iconWidget | Widget? | - | 自定义图标icon控件 |
37+
| iconPosition | TDButtonIconPosition? | TDButtonIconPosition.left | 图标位置 |
4938
| iconTextSpacing | double? | - | 自定义图标与文本之间距离 |
39+
| iconWidget | Widget? | - | 自定义图标 icon 控件 |
40+
| isBlock | bool | false | 是否为通栏按钮 |
41+
| key | | - | |
42+
| margin | EdgeInsetsGeometry? | - | 自定义 margin |
5043
| onLongPress | TDButtonEvent? | - | 长按事件 |
51-
| margin | EdgeInsetsGeometry? | - | 自定义margin |
52-
| padding | EdgeInsetsGeometry? | - | 自定义padding |
53-
| iconPosition | TDButtonIconPosition? | TDButtonIconPosition.left | 图标位置 |
44+
| onTap | TDButtonEvent? | - | 点击事件 |
45+
| padding | EdgeInsetsGeometry? | - | 自定义 padding |
46+
| shape | TDButtonShape | TDButtonShape.rectangle | 形状:圆角,胶囊,方形,圆形,填充 |
47+
| size | TDButtonSize | TDButtonSize.medium | 尺寸 |
48+
| style | TDButtonStyle? | - | 自定义样式,有则优先用它,没有则根据 type 和 theme 选取。如果设置了 style,则 activeStyle 和 disableStyle 也应该设置 |
49+
| text | String? | - | 文本内容 |
50+
| textStyle | TextStyle? | - | 自定义可点击状态文本样式 |
51+
| theme | TDButtonTheme? | - | 主题 |
52+
| type | TDButtonType | TDButtonType.fill | 类型:填充,描边,文字 |
53+
| width | double? | - | 自定义宽度 |
Lines changed: 50 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
## API
2-
### TDCalendarPopup
2+
### TDCalendarStyle
33
#### 默认构造方法
44

55
| 参数 | 类型 | 默认值 | 说明 |
66
| --- | --- | --- | --- |
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? | - | 日历控件 |
7+
| cellDecoration | BoxDecoration? | - | 日期decoration |
8+
| cellPrefixStyle | TextStyle? | - | 日期前面的字符串的样式 |
9+
| cellStyle | TextStyle? | - | 日期样式 |
10+
| cellSuffixStyle | TextStyle? | - | 日期后面的字符串的样式 |
11+
| centreColor | Color? | - | 日期范围内背景样式 |
12+
| decoration | | - | |
13+
| monthTitleStyle | TextStyle? | - | body区域 年月文字样式 |
14+
| titleCloseColor | Color? | - | header区域 关闭图标的颜色 |
15+
| titleMaxLine | int? | - | header区域 [TDCalendar.title]的行数 |
16+
| titleStyle | TextStyle? | - | header区域 [TDCalendar.title]的样式 |
17+
| weekdayStyle | TextStyle? | - | header区域 周 文字样式 |
18+
19+
20+
#### 工厂构造方法
21+
22+
| 名称 | 说明 |
23+
| --- | --- |
24+
| TDCalendarStyle.cellStyle | 日期样式 |
25+
| TDCalendarStyle.generateStyle | 生成默认样式 |
1626

1727
```
1828
```
@@ -21,57 +31,48 @@
2131

2232
| 参数 | 类型 | 默认值 | 说明 |
2333
| --- | --- | --- | --- |
24-
| key | | - | |
34+
| animateTo | bool? | false | 动画滚动到指定位置 |
35+
| cellHeight | double? | 60 | 日期高度 |
36+
| cellWidget | Widget? Function(BuildContext context, TDate tdate, DateSelectType selectType)? | - | 自定义日期单元格组件 |
37+
| displayFormat | String? | 'year month' | 年月显示格式,`year`表示年,`month`表示月,如`year month`表示年在前、月在后、中间隔一个空格 |
2538
| firstDayOfWeek | int? | 0 | 第一天从星期几开始,默认 0 = 周日 |
2639
| format | CalendarFormat? | - | 用于格式化日期的函数,可定义日期前后的显示内容和日期样式 |
27-
| maxDate | int? | - | 最大可选的日期(fromMillisecondsSinceEpoch),不传则默认半年后 |
28-
| minDate | int? | - | 最小可选的日期(fromMillisecondsSinceEpoch),不传则默认今天 |
29-
| title | String? | - | 标题 |
30-
| titleWidget | Widget? | - | 标题组件 |
31-
| type | CalendarType? | CalendarType.single | 日历的选择类型,single = 单选;multiple = 多选; range = 区间选择 |
32-
| value | List<int>? | - | 当前选择的日期(fromMillisecondsSinceEpoch),不传则默认今天,当 type = single 时数组长度为1 |
33-
| displayFormat | String? | 'year month' | 年月显示格式,`year`表示年,`month`表示月,如`year month`表示年在前、月在后、中间隔一个空格 |
34-
| cellHeight | double? | 60 | 日期高度 |
3540
| height | double? | - | 高度 |
36-
| width | double? | - | 宽度 |
37-
| style | TDCalendarStyle? | - | 自定义样式 |
38-
| onChange | void Function(List<int> value)? | - | 选中值变化时触发 |
41+
| isTimeUnit | bool? | true | 是否显示时间单位 |
42+
| key | | - | |
43+
| maxDate | int? | - | 最大可选的日期(fromMillisecondsSinceEpoch),不传则默认半年后 |
44+
| minDate | int? | - | 最小可选的日期(fromMillisecondsSinceEpoch),不传则默认今天 |
45+
| monthTitleBuilder | Widget Function(BuildContext context, DateTime monthDate)? | - | 月标题构建器 |
46+
| monthTitleHeight | double? | 22 | 月标题高度 |
3947
| onCellClick | void Function(int value, DateSelectType type, TDate tdate)? | - | 点击日期时触发 |
4048
| onCellLongPress | void Function(int value, DateSelectType type, TDate tdate)? | - | 长安日期时触发 |
49+
| onChange | void Function(List<int> value)? | - | 选中值变化时触发 |
4150
| onHeaderClick | void Function(int index, String week)? | - | 点击周时触发 |
42-
| useTimePicker | bool? | false | 是否显示时间选择器 |
43-
| timePickerModel | List<DatePickerModel>? | - | 自定义时间选择器 |
44-
| monthTitleHeight | double? | 22 | 月标题高度 |
45-
| monthTitleBuilder | Widget Function(BuildContext context, DateTime monthDate)? | - | 月标题构建器 |
4651
| pickerHeight | double? | 178 | 时间选择器List的视窗高度 |
4752
| pickerItemCount | int? | 3 | 选择器List视窗中item个数,pickerHeight / pickerItemCount即item高度 |
48-
| isTimeUnit | bool? | true | 是否显示时间单位 |
49-
| animateTo | bool? | false | 动画滚动到指定位置 |
50-
| cellWidget | Widget? Function(BuildContext context, TDate tdate, DateSelectType selectType)? | - | 自定义日期单元格组件 |
53+
| style | TDCalendarStyle? | - | 自定义样式 |
54+
| timePickerModel | List<DatePickerModel>? | - | 自定义时间选择器 |
55+
| title | String? | - | 标题 |
56+
| titleWidget | Widget? | - | 标题组件 |
57+
| type | CalendarType? | CalendarType.single | 日历的选择类型,single = 单选;multiple = 多选;range = 区间选择 |
58+
| useSafeArea | bool? | true | 是否使用安全区域,默认true |
59+
| useTimePicker | bool? | false | 是否显示时间选择器 |
60+
| value | List<int>? | - | 当前选择的日期(fromMillisecondsSinceEpoch),不传则默认今天,当 type = single 时数组长度为1 |
61+
| width | double? | - | 宽度 |
5162

5263
```
5364
```
54-
### TDCalendarStyle
65+
### TDCalendarPopup
5566
#### 默认构造方法
5667

5768
| 参数 | 类型 | 默认值 | 说明 |
5869
| --- | --- | --- | --- |
59-
| decoration | | - | |
60-
| titleStyle | TextStyle? | - | header区域 [TDCalendar.title]的样式 |
61-
| titleMaxLine | int? | - | header区域 [TDCalendar.title]的行数 |
62-
| titleCloseColor | Color? | - | header区域 关闭图标的颜色 |
63-
| weekdayStyle | TextStyle? | - | header区域 周 文字样式 |
64-
| monthTitleStyle | TextStyle? | - | body区域 年月文字样式 |
65-
| cellStyle | TextStyle? | - | 日期样式 |
66-
| centreColor | Color? | - | 日期范围内背景样式 |
67-
| cellDecoration | BoxDecoration? | - | 日期decoration |
68-
| cellPrefixStyle | TextStyle? | - | 日期前面的字符串的样式 |
69-
| cellSuffixStyle | TextStyle? | - | 日期后面的字符串的样式 |
70-
71-
72-
#### 工厂构造方法
73-
74-
| 名称 | 说明 |
75-
| --- | --- |
76-
| TDCalendarStyle.generateStyle | 生成默认样式 |
77-
| TDCalendarStyle.cellStyle | 日期样式 |
70+
| autoClose | bool? | true | 自动关闭;在点击关闭按钮、确认按钮、遮罩层时自动关闭 |
71+
| builder | CalendarBuilder? | - | 控件构建器,优先级高于[child] |
72+
| child | TDCalendar? | - | 日历控件 |
73+
| confirmBtn | Widget? | - | 自定义确认按钮 |
74+
| context | BuildContext | context | 上下文 |
75+
| onClose | VoidCallback? | - | 关闭时触发 |
76+
| onConfirm | void Function(List<int> value)? | - | 点击确认按钮时触发 |
77+
| top | double? | - | 距离顶部的距离 |
78+
| visible | bool? | - | 默认是否显示日历 |

0 commit comments

Comments
 (0)