Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified db/TDesign.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,28 @@

name | type | default | description | required
-- | -- | -- | -- | --
globalConfig | Object | - | global config。Typescript`GlobalConfigProvider` | N
globalConfig | Object | - | global config。Typescript: `GlobalConfigProvider` | N

### GlobalConfigProvider

name | type | default | description | required
-- | -- | -- | -- | --
actionSheet | Object | - | ActionSheet global configs。Typescript`ActionSheetConfig` | N
calendar | Object | - | Calendar global configs。Typescript`CalendarConfig` | N
cascader | Object | - | Cascader global configs。Typescript`CascaderConfig` | N
actionSheet | Object | - | ActionSheet global configs。Typescript: `ActionSheetConfig` | N
calendar | Object | - | Calendar global configs。Typescript: `CalendarConfig` | N
cascader | Object | - | Cascader global configs。Typescript: `CascaderConfig` | N
classPrefix | String | t | \- | N
dateTimePicker | Object | - | DateTimePicker global configs。Typescript:`DateTimePickerConfig` | N
dropdownMenu | Object | - | DropdownMenu global configs。Typescript:`DropdownMenuConfig` | N
guide | Object | - | Guide global configs。Typescript:`GuideConfig` | N
list | Object | - | List global configs。Typescript:`ListConfig` | N
picker | Object | - | Picker global configs。Typescript:`PickerConfig` | N
pullDownRefresh | Object | - | PullDownRefresh global configs。Typescript:`PullDownRefreshConfig` | N
qrcode | Object | - | QRCode global configs。Typescript:`QRCodeConfig` | N
rate | Object | - | Rate global configs。Typescript:`RateConfig` | N
tabBar | Object | - | TabBar global configs。Typescript:`TabBarConfig` | N
table | Object | - | Table global configs。Typescript:`TableConfig` | N
upload | Object | - | Upload global configs。Typescript:`UploadConfig` | N
dateTimePicker | Object | - | DateTimePicker global configs。Typescript: `DateTimePickerConfig` | N
dropdownMenu | Object | - | DropdownMenu global configs。Typescript: `DropdownMenuConfig` | N
form | Object | - | Form global configs。Typescript: `FormConfig` | N
guide | Object | - | Guide global configs。Typescript: `GuideConfig` | N
list | Object | - | List global configs。Typescript: `ListConfig` | N
picker | Object | - | Picker global configs。Typescript: `PickerConfig` | N
pullDownRefresh | Object | - | PullDownRefresh global configs。Typescript: `PullDownRefreshConfig` | N
qrcode | Object | - | QRCode global configs。Typescript: `QRCodeConfig` | N
rate | Object | - | Rate global configs。Typescript: `RateConfig` | N
tabBar | Object | - | TabBar global configs。Typescript: `TabBarConfig` | N
table | Object | - | Table global configs。Typescript: `TableConfig` | N
upload | Object | - | Upload global configs。Typescript: `UploadConfig` | N

### ActionSheetConfig

Expand All @@ -40,9 +41,9 @@ name | type | default | description | required
-- | -- | -- | -- | --
confirm | String | - | confirm text | N
monthTitle | String | - | \- | N
months | Array | - | Typescript`string[]` | N
months | Array | - | Typescript: `string[]` | N
title | String | - | \- | N
weekdays | Array | - | Typescript`string[]` | N
weekdays | Array | - | Typescript: `string[]` | N

### CascaderConfig

Expand Down Expand Up @@ -78,7 +79,7 @@ reset | String | - | reset text | N
name | type | default | description | required
-- | -- | -- | -- | --
colonText | String | - | colon on the right of label ":" | N
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
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
requiredMark | Boolean | true | \- | N
requiredMarkPosition | String | left | Display position of required symbols。options: left/right | N

Expand All @@ -97,7 +98,7 @@ name | type | default | description | required
-- | -- | -- | -- | --
errorText | String | - | loading text, default value is "Error" | N
loadingText | String | - | loading text, default value is "loading" | N
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
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

### InputConfig

Expand Down Expand Up @@ -126,7 +127,7 @@ confirm | String | - | confirm text | N

name | type | default | description | required
-- | -- | -- | -- | --
loadingTexts | Array | - | Typescript`string[]` | N
loadingTexts | Array | - | Typescript: `string[]` | N

### QRCodeConfig

Expand Down Expand Up @@ -156,13 +157,19 @@ newsAriaLabel | String | - | \- | N

name | type | default | description | required
-- | -- | -- | -- | --
empty | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
clearFilterResultButtonText | String | - | \- | N
confirmText | String | - | \- | N
empty | TNode | - | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
filterIcon | TElement | undefined | Typescript: `TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
hideSortTips | Boolean | false | hide sort tips | N
resetText | String | - | \- | N
searchResultText | String | - | \- | N

### UploadConfig

name | type | default | description | required
-- | -- | -- | -- | --
progress | Object | - | Typescript`UploadConfigProgress` | N
progress | Object | - | Typescript: `UploadConfigProgress` | N

### UploadConfigProgress

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ cascader | Object | - | 级联选择器全局配置。TS 类型:`CascaderConfi
classPrefix | String | t | CSS 类名前缀 | N
dateTimePicker | Object | - | 时间选择器全局配置。TS 类型:`DateTimePickerConfig` | N
dropdownMenu | Object | - | 下拉菜单全局配置。TS 类型:`DropdownMenuConfig` | N
form | Object | - | 表单组件全局配置。TS 类型:`FormConfig` | N
guide | Object | - | 引导全局配置。TS 类型:`GuideConfig` | N
list | Object | - | 列表组件全局配置。TS 类型:`ListConfig` | N
picker | Object | - | 选择器全局配置。TS 类型:`PickerConfig` | N
Expand Down Expand Up @@ -156,7 +157,13 @@ newsAriaLabel | String | - | 语言配置,“有新的消息”描述文本 |

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
clearFilterResultButtonText | String | - | 语言配置,过滤功能中,“清空筛选” 描述文本 | N
confirmText | String | - | 语言配置,“确认” 描述文本 | N
empty | TNode | - | 语言配置,“暂无数据” 描述文本。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
filterIcon | TElement | undefined | 过滤图标,如果没有配置,会使用组件内置的默认图标。TS 类型:`TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
hideSortTips | Boolean | false | 隐藏排序文本提示 | N
resetText | String | - | 语言配置,“重置” 描述文本 | N
searchResultText | String | - | 语言配置,过滤功能中,过滤条件和结果描述文本,示例:'搜索“{result}”,找到 {count} 条结果' | N

### UploadConfig

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { FormErrorMessage } from '../form';
import { ImageProps } from '../image';
import { TNode } from '../common';
import type { TNode, TElement } from '../common';

export interface TdConfigProviderProps {
/**
Expand Down Expand Up @@ -41,6 +41,10 @@ export interface GlobalConfigProvider {
* 下拉菜单全局配置
*/
dropdownMenu?: DropdownMenuConfig;
/**
* 表单组件全局配置
*/
form?: FormConfig;
/**
* 引导全局配置
*/
Expand Down Expand Up @@ -365,10 +369,39 @@ export interface TabBarConfig {
}

export interface TableConfig {
/**
* 语言配置,过滤功能中,“清空筛选” 描述文本
* @default ''
*/
clearFilterResultButtonText?: string;
/**
* 语言配置,“确认” 描述文本
* @default ''
*/
confirmText?: string;
/**
* 语言配置,“暂无数据” 描述文本
*/
empty?: TNode;
/**
* 过滤图标,如果没有配置,会使用组件内置的默认图标
*/
filterIcon?: TElement;
/**
* 隐藏排序文本提示
* @default false
*/
hideSortTips?: boolean;
/**
* 语言配置,“重置” 描述文本
* @default ''
*/
resetText?: string;
/**
* 语言配置,过滤功能中,过滤条件和结果描述文本,示例:'搜索“{result}”,找到 {count} 条结果'
* @default ''
*/
searchResultText?: string;
}

export interface UploadConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,37 @@
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */

import { TdBaseTableProps } from './type';
import { TdBaseTableProps, TdPrimaryTableProps } from './type';

export const baseTableDefaultProps: TdBaseTableProps = {
bordered: false,
columns: [],
data: [],
empty: '',
loading: undefined,
loadingMode: 'pull-refresh',
rowKey: 'id',
showHeader: true,
stripe: false,
tableLayout: 'fixed',
verticalAlign: 'middle',
};

export const primaryTableDefaultProps: Pick<
TdPrimaryTableProps,
| 'columns'
| 'expandIcon'
| 'defaultExpandedRowKeys'
| 'multipleSort'
| 'reserveSelectedRowOnPaginate'
| 'defaultSelectedRowKeys'
| 'showSortColumnBgColor'
> = {
columns: [],
expandIcon: true,
defaultExpandedRowKeys: [],
multipleSort: false,
reserveSelectedRowOnPaginate: true,
defaultSelectedRowKeys: [],
showSortColumnBgColor: false,
};
Loading