You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/products/tdesign-mobile-react/src/config-provider/config-provider.en-US.md
+26-22Lines changed: 26 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,27 +6,28 @@
6
6
7
7
name | type | default | description | required
8
8
-- | -- | -- | -- | --
9
-
globalConfig | Object | - | global config。Typescript:`GlobalConfigProvider` | N
9
+
globalConfig | Object | - | global config。Typescript: `GlobalConfigProvider` | N
10
10
11
11
### GlobalConfigProvider
12
12
13
13
name | type | default | description | required
14
14
-- | -- | -- | -- | --
15
-
actionSheet | Object | - | ActionSheet global configs。Typescript:`ActionSheetConfig` | N
16
-
calendar | Object | - | Calendar global configs。Typescript:`CalendarConfig` | N
17
-
cascader | Object | - | Cascader global configs。Typescript:`CascaderConfig` | N
15
+
actionSheet | Object | - | ActionSheet global configs。Typescript: `ActionSheetConfig` | N
16
+
calendar | Object | - | Calendar global configs。Typescript: `CalendarConfig` | N
17
+
cascader | Object | - | Cascader global configs。Typescript: `CascaderConfig` | N
18
18
classPrefix | String | t | \- | N
19
-
dateTimePicker | Object | - | DateTimePicker global configs。Typescript:`DateTimePickerConfig` | N
20
-
dropdownMenu | Object | - | DropdownMenu global configs。Typescript:`DropdownMenuConfig` | N
21
-
guide | Object | - | Guide global configs。Typescript:`GuideConfig` | N
22
-
list | Object | - | List global configs。Typescript:`ListConfig` | N
23
-
picker | Object | - | Picker global configs。Typescript:`PickerConfig` | N
24
-
pullDownRefresh | Object | - | PullDownRefresh global configs。Typescript:`PullDownRefreshConfig` | N
25
-
qrcode | Object | - | QRCode global configs。Typescript:`QRCodeConfig` | N
26
-
rate | Object | - | Rate global configs。Typescript:`RateConfig` | N
27
-
tabBar | Object | - | TabBar global configs。Typescript:`TabBarConfig` | N
28
-
table | Object | - | Table global configs。Typescript:`TableConfig` | N
29
-
upload | Object | - | Upload global configs。Typescript:`UploadConfig` | N
19
+
dateTimePicker | Object | - | DateTimePicker global configs。Typescript: `DateTimePickerConfig` | N
20
+
dropdownMenu | Object | - | DropdownMenu global configs。Typescript: `DropdownMenuConfig` | N
21
+
form | Object | - | Form global configs。Typescript: `FormConfig` | N
22
+
guide | Object | - | Guide global configs。Typescript: `GuideConfig` | N
23
+
list | Object | - | List global configs。Typescript: `ListConfig` | N
24
+
picker | Object | - | Picker global configs。Typescript: `PickerConfig` | N
25
+
pullDownRefresh | Object | - | PullDownRefresh global configs。Typescript: `PullDownRefreshConfig` | N
26
+
qrcode | Object | - | QRCode global configs。Typescript: `QRCodeConfig` | N
27
+
rate | Object | - | Rate global configs。Typescript: `RateConfig` | N
28
+
tabBar | Object | - | TabBar global configs。Typescript: `TabBarConfig` | N
29
+
table | Object | - | Table global configs。Typescript: `TableConfig` | N
30
+
upload | Object | - | Upload global configs。Typescript: `UploadConfig` | N
30
31
31
32
### ActionSheetConfig
32
33
@@ -40,9 +41,9 @@ name | type | default | description | required
40
41
-- | -- | -- | -- | --
41
42
confirm | String | - | confirm text | N
42
43
monthTitle | String | - | \- | N
43
-
months | Array | - | Typescript:`string[]` | N
44
+
months | Array | - | Typescript: `string[]` | N
44
45
title | String | - | \- | N
45
-
weekdays | Array | - | Typescript:`string[]` | N
46
+
weekdays | Array | - | Typescript: `string[]` | N
46
47
47
48
### CascaderConfig
48
49
@@ -78,7 +79,7 @@ reset | String | - | reset text | N
78
79
name | type | default | description | required
79
80
-- | -- | -- | -- | --
80
81
colonText | String | - | colon on the right of label ":" | N
81
-
errorMessage | Object | - | Typescript:`FormErrorMessage`,[Form API Documents](./form?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/config-provider/type.ts) | N
82
+
errorMessage | Object | - | Typescript: `FormErrorMessage`,[Form API Documents](./form?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/config-provider/type.ts) | N
82
83
requiredMark | Boolean | true | \- | N
83
84
requiredMarkPosition | String | left | Display position of required symbols。options: left/right | N
84
85
@@ -97,7 +98,7 @@ name | type | default | description | required
97
98
-- | -- | -- | -- | --
98
99
errorText | String | - | loading text, default value is "Error" | N
99
100
loadingText | String | - | loading text, default value is "loading" | N
100
-
replaceImageSrc | Function | - | replace all `src` attribute of images。Typescript:`(params: ImageProps) => string`,[Image API Documents](./image?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/config-provider/type.ts) | N
101
+
replaceImageSrc | Function | - | replace all `src` attribute of images。Typescript: `(params: ImageProps) => string`,[Image API Documents](./image?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/config-provider/type.ts) | N
101
102
102
103
### InputConfig
103
104
@@ -126,7 +127,7 @@ confirm | String | - | confirm text | N
126
127
127
128
name | type | default | description | required
128
129
-- | -- | -- | -- | --
129
-
loadingTexts | Array | - | Typescript:`string[]` | N
130
+
loadingTexts | Array | - | Typescript: `string[]` | N
footerSummary | TNode | - | footer summary content。Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
18
18
height | String / Number | - | table height | N
19
19
loading | TNode | undefined | loading state table。Typescript: `boolean \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
20
+
loadingMode | String | pull-refresh | Data Loading Mode。options: pull-refresh/pagination | N
20
21
loadingProps | Object | - | Typescript: `Partial<LoadingProps>`,[Loading API Documents](./loading?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/table/type.ts) | N
21
22
maxHeight | String / Number | - | table max height | N
22
-
pagination | Object | - | you can use all props of pagination component with paginationProps。Typescript: `PaginationProps`,[Pagination API Documents](./pagination?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/table/type.ts) | N
23
+
pagination | Object | - | you can use all props of pagination component with paginationProps。Typescript: `PaginationProps` `interface PaginationProps { current?: number; defaultCurrent?: number; disabled?: boolean; foldedMaxPageBtn?: number; maxPageBtn?: number; pageEllipsisMode?: 'mid' \| 'both-ends'; pageSize?: number; defaultPageSize?: number; pageSizeOptions?: Array<number \| { label: string; value: number }>; showFirstAndLastPageBtn?: boolean; showJumper?: boolean; showPageNumber?: boolean; showPageSize?: boolean; showPreviousAndNextBtn?: boolean; size?: 'small' \| 'medium'; theme?: 'default' \| 'simple'; total?: number; totalContent?: TNode; onChange?: (pageInfo: PageInfo) => void; onCurrentChange?: (current: number, pageInfo: PageInfo) => void; onPageSizeChange?: (pageSize: number, pageInfo: PageInfo) => void; }` `interface PageInfo { current: number; previous: number; pageSize: number }`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/table/type.ts) | N
23
24
rowAttributes | Object / Array / Function | - | `0.17.0`。`tr` attributes。Typescript: `TableRowAttributes<T>``type TableRowAttributes<T> = HTMLElementAttributes \| ((params: { row: T; rowIndex: number; type: 'body' \| 'foot' }) => HTMLElementAttributes) \| Array<TableRowAttributes<T>>`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/table/type.ts) | N
tableLayout | String | fixed | table-layout css properties, [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout). set value to be `fixed` on `resizable=true` please。options: auto/fixed | N
defaultFilterValue | Object | - | filter value。uncontrolled property。Typescript: `FilterValue``type FilterValue = { [key: string]: any }`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/table/type.ts) | N
81
83
hideSortTips | Boolean | - | hide sort tips | N
82
84
indeterminateSelectedRowKeys | Array | - | indeterminate selected row keys, row key is from data[rowKey]。Typescript: `Array<string \| number>` | N
83
-
loadingMode | String | pull-refresh | Data Loading Mode。options: pull-refresh/pagination | N
84
85
multipleSort | Boolean | false | support multiple column fields sort | N
85
86
reserveSelectedRowOnPaginate | Boolean | true | Controls whether selected rows are retained across pagination. When enabled, selections persist across all pages, allowing batch operations on multi-page data. If set to `false`, selections are confined to the current page and do not extend to other pages. | N
86
87
selectOnRowClick | Boolean | - | select row data on row click | N
0 commit comments