Skip to content

Commit 1956b91

Browse files
committed
fix(table): add missing global configuration properties for table
1 parent 8dbcb00 commit 1956b91

5 files changed

Lines changed: 33 additions & 7 deletions

File tree

db/TDesign.db

0 Bytes
Binary file not shown.

packages/products/tdesign-mobile-react/src/config-provider/config-provider.en-US.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,11 @@ newsAriaLabel | String | - | \- | N
158158
name | type | default | description | required
159159
-- | -- | -- | -- | --
160160
clearFilterResultButtonText | String | - | \- | N
161+
confirmText | String | - | \- | N
161162
empty | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
163+
filterIcon | TElement | undefined | Typescript: `TNode`[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
162164
hideSortTips | Boolean | false | hide sort tips | N
165+
resetText | String | - | \- | N
163166
searchResultText | String | - | \- | N
164167

165168
### UploadConfig

packages/products/tdesign-mobile-react/src/config-provider/config-provider.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,11 @@ newsAriaLabel | String | - | 语言配置,“有新的消息”描述文本 |
158158
名称 | 类型 | 默认值 | 描述 | 必传
159159
-- | -- | -- | -- | --
160160
clearFilterResultButtonText | String | - | 语言配置,过滤功能中,“清空筛选” 描述文本 | N
161+
confirmText | String | - | 语言配置,“确认” 描述文本 | N
161162
empty | TNode | - | 语言配置,“暂无数据” 描述文本。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
163+
filterIcon | TElement | undefined | 过滤图标,如果没有配置,会使用组件内置的默认图标。TS 类型:`TNode`[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
162164
hideSortTips | Boolean | false | 隐藏排序文本提示 | N
165+
resetText | String | - | 语言配置,“重置” 描述文本 | N
163166
searchResultText | String | - | 语言配置,过滤功能中,过滤条件和结果描述文本,示例:'搜索“{result}”,找到 {count} 条结果' | N
164167

165168
### UploadConfig

packages/products/tdesign-mobile-react/src/config-provider/type.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { FormErrorMessage } from '../form';
88
import { ImageProps } from '../image';
9-
import type { TNode } from '../common';
9+
import type { TNode, TElement } from '../common';
1010

1111
export interface TdConfigProviderProps {
1212
/**
@@ -374,15 +374,29 @@ export interface TableConfig {
374374
* @default ''
375375
*/
376376
clearFilterResultButtonText?: string;
377+
/**
378+
* 语言配置,“确认” 描述文本
379+
* @default ''
380+
*/
381+
confirmText?: string;
377382
/**
378383
* 语言配置,“暂无数据” 描述文本
379384
*/
380385
empty?: TNode;
386+
/**
387+
* 过滤图标,如果没有配置,会使用组件内置的默认图标
388+
*/
389+
filterIcon?: TElement;
381390
/**
382391
* 隐藏排序文本提示
383392
* @default false
384393
*/
385394
hideSortTips?: boolean;
395+
/**
396+
* 语言配置,“重置” 描述文本
397+
* @default ''
398+
*/
399+
resetText?: string;
386400
/**
387401
* 语言配置,过滤功能中,过滤条件和结果描述文本,示例:'搜索“{result}”,找到 {count} 条结果'
388402
* @default ''

packages/scripts/api.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130325,7 +130325,8 @@
130325130325
"id": 2512,
130326130326
"platform_framework": [
130327130327
"1",
130328-
"2"
130328+
"2",
130329+
"16"
130329130330
],
130330130331
"component": "TableConfig",
130331130332
"field_category": 1,
@@ -130354,7 +130355,8 @@
130354130355
"field_category_text": "Props",
130355130356
"platform_framework_text": [
130356130357
"Vue(PC)",
130357-
"React(PC)"
130358+
"React(PC)",
130359+
"React(Mobile)"
130358130360
],
130359130361
"field_type_text": [
130360130362
"String"
@@ -130448,7 +130450,8 @@
130448130450
"id": 2378,
130449130451
"platform_framework": [
130450130452
"1",
130451-
"2"
130453+
"2",
130454+
"16"
130452130455
],
130453130456
"component": "TableConfig",
130454130457
"field_category": 1,
@@ -130477,7 +130480,8 @@
130477130480
"field_category_text": "Props",
130478130481
"platform_framework_text": [
130479130482
"Vue(PC)",
130480-
"React(PC)"
130483+
"React(PC)",
130484+
"React(Mobile)"
130481130485
],
130482130486
"field_type_text": [
130483130487
"TNode"
@@ -130606,7 +130610,8 @@
130606130610
"id": 2511,
130607130611
"platform_framework": [
130608130612
"1",
130609-
"2"
130613+
"2",
130614+
"16"
130610130615
],
130611130616
"component": "TableConfig",
130612130617
"field_category": 1,
@@ -130635,7 +130640,8 @@
130635130640
"field_category_text": "Props",
130636130641
"platform_framework_text": [
130637130642
"Vue(PC)",
130638-
"React(PC)"
130643+
"React(PC)",
130644+
"React(Mobile)"
130639130645
],
130640130646
"field_type_text": [
130641130647
"String"

0 commit comments

Comments
 (0)