Skip to content

Commit

Permalink
feat(config-provider): add AutoCompleteConfig empty api
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Jan 8, 2025
1 parent 86911b0 commit 0dd79be
Show file tree
Hide file tree
Showing 14 changed files with 108 additions and 0 deletions.
Binary file modified db/TDesign.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,9 @@ name | type | default | description | required
collapseText | String | - | collapse text | N
copiedText | String | - | copied text | N
expandText | String | - | expand text | N

### AutoCompleteConfig

name | type | default | description | required
-- | -- | -- | -- | --
empty | String | - | \- | N
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,9 @@ titleText | Object | - | 空状态组件各类型的标题文本配置。TS 类
collapseText | String | - | 语言配置,“收起”描述文本 | N
copiedText | String | - | 语言配置,“复制成功”描述文本 | N
expandText | String | - | 语言配置,“展开”描述文本 | N

### AutoCompleteConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
empty | String | - | 语言配置,“暂无数据”描述文本 | N
8 changes: 8 additions & 0 deletions packages/products/tdesign-react/src/config-provider/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,14 @@ export interface TypographyConfig {
expandText?: string;
}

export interface AutoCompleteConfig {
/**
* 语言配置,“暂无数据”描述文本
* @default ''
*/
empty?: string;
}

export type AnimationType = 'ripple' | 'expand' | 'fade';

export type IconConfig = GlobalIconConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,9 @@ name | type | default | description | required
collapseText | String | - | collapse text | N
copiedText | String | - | copied text | N
expandText | String | - | expand text | N

### AutoCompleteConfig

name | type | default | description | required
-- | -- | -- | -- | --
empty | String | - | \- | N
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,9 @@ titleText | Object | - | 空状态组件各类型的标题文本配置。TS 类
collapseText | String | - | 语言配置,“收起”描述文本 | N
copiedText | String | - | 语言配置,“复制成功”描述文本 | N
expandText | String | - | 语言配置,“展开”描述文本 | N

### AutoCompleteConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
empty | String | - | 语言配置,“暂无数据”描述文本 | N
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,14 @@ export interface TypographyConfig {
expandText?: string;
}

export interface AutoCompleteConfig {
/**
* 语言配置,“暂无数据”描述文本
* @default ''
*/
empty?: string;
}

export type AnimationType = 'ripple' | 'expand' | 'fade';

export type IconConfig = GlobalIconConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,9 @@ name | type | default | description | required
collapseText | String | - | collapse text | N
copiedText | String | - | copied text | N
expandText | String | - | expand text | N

### AutoCompleteConfig

name | type | default | description | required
-- | -- | -- | -- | --
empty | String | - | \- | N
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,9 @@ titleText | Object | - | 空状态组件各类型的标题文本配置。TS 类
collapseText | String | - | 语言配置,“收起”描述文本 | N
copiedText | String | - | 语言配置,“复制成功”描述文本 | N
expandText | String | - | 语言配置,“展开”描述文本 | N

### AutoCompleteConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
empty | String | - | 语言配置,“暂无数据”描述文本 | N
8 changes: 8 additions & 0 deletions packages/products/tdesign-vue/src/config-provider/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,14 @@ export interface TypographyConfig {
expandText?: string;
}

export interface AutoCompleteConfig {
/**
* 语言配置,“暂无数据”描述文本
* @default ''
*/
empty?: string;
}

export type AnimationType = 'ripple' | 'expand' | 'fade';

export type IconConfig = GlobalIconConfig;
Expand Down
41 changes: 41 additions & 0 deletions packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -5778,6 +5778,47 @@
],
"field_type_text": []
},
{
"id": 1736330829,
"platform_framework": [
"1",
"2",
"4"
],
"component": "AutoCompleteConfig",
"field_category": 1,
"field_name": "empty",
"field_type": [
"1"
],
"field_default_value": "",
"field_enum": "",
"field_desc_zh": "语言配置,“暂无数据”描述文本",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
"create_time": "2025-01-08 10:07:09",
"update_time": "2025-01-08 10:07:09",
"event_output": null,
"custom_field_type": null,
"syntactic_sugar": null,
"readonly": 1,
"html_attribute": 0,
"trigger_elements": "",
"deprecated": 0,
"version": "",
"test_description": null,
"support_default_value": 0,
"field_category_text": "Props",
"platform_framework_text": [
"Vue(PC)",
"React(PC)",
"Angular(PC)"
],
"field_type_text": [
"String"
]
},
{
"id": 1466,
"platform_framework": [
Expand Down
1 change: 1 addition & 0 deletions packages/scripts/config/files-combine.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const GLOBAL_COMPONENTS_CONFIG = [
'RateConfig',
'EmptyConfig',
'TypographyConfig',
'AutoCompleteConfig',
].sort((a, b) => a.localeCompare(b) > 0);

const MESSAGE_LIST = [
Expand Down
5 changes: 5 additions & 0 deletions packages/scripts/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@
"value": "AutoComplete",
"label": "自动填充"
},
{
"value": "AutoCompleteConfig",
"label": "自动填充全局配置",
"type": "TS"
},
{
"value": "Avatar",
"label": "头像"
Expand Down
1 change: 1 addition & 0 deletions packages/server/controllers/ComponentApi/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ export const COMPONENTS_PC: Array<MapItem> = [
{ value: 'WatermarkText', label: '水印文字配置', type: 'TS' },
{ value: 'WatermarkImage', label: '水印图片配置', type: 'TS' },
{ value: 'TypographyConfig', label: '排版全局配置', type: 'TS' },
{ value: 'AutoCompleteConfig', label: '自动填充全局配置', type: 'TS' },
].sort((a, b) => a.value.localeCompare(b.value));

export const COMPONENTS_MOBILE: Array<MapItem> = [
Expand Down

0 comments on commit 0dd79be

Please sign in to comment.