diff --git a/db/TDesign.db b/db/TDesign.db index 85f9d061..5b4d1b13 100644 Binary files a/db/TDesign.db and b/db/TDesign.db differ diff --git a/packages/products/tdesign-react/src/auto-complete/auto-complete.en-US.md b/packages/products/tdesign-react/src/auto-complete/auto-complete.en-US.md index 09e0a354..9bbacb2e 100644 --- a/packages/products/tdesign-react/src/auto-complete/auto-complete.en-US.md +++ b/packages/products/tdesign-react/src/auto-complete/auto-complete.en-US.md @@ -13,6 +13,7 @@ borderless | Boolean | false | \- | N children | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N clearable | Boolean | - | \- | N disabled | Boolean | undefined | \- | N +empty | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N filter | Function | - | Typescript:`(filterWords: string, option: T) => boolean \| Promise` | N filterable | Boolean | true | \- | N highlightKeyword | Boolean | true | \- | N diff --git a/packages/products/tdesign-react/src/auto-complete/auto-complete.md b/packages/products/tdesign-react/src/auto-complete/auto-complete.md index c4791d73..7565f0a3 100644 --- a/packages/products/tdesign-react/src/auto-complete/auto-complete.md +++ b/packages/products/tdesign-react/src/auto-complete/auto-complete.md @@ -13,6 +13,7 @@ borderless | Boolean | false | 无边框模式 | N children | TNode | - | 触发显示联想词下拉框的元素,同 `triggerElement`。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N clearable | Boolean | - | 是否允许清空 | N disabled | Boolean | undefined | 是否禁用 | N +empty | TNode | - | 当下拉联想词列表为空时显示的内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N filter | Function | - | 自定义过滤规则,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。参数 `filterWords` 表示搜索词,`option`表示单个选项内容,返回值为 `true` 保留该选项,返回值为 `false` 则隐藏该选项。使用该方法时无需设置 `filterable`。TS 类型:`(filterWords: string, option: T) => boolean \| Promise` | N filterable | Boolean | true | 是否根据输入内容过滤联想词。默认过滤规则不区分大小写,全文本任意位置匹配。如果默认搜索规则不符合业务需求,可以更为使用 `filter` 自定义过滤规则。部分场景下输入关键词和下拉联想词完全不同,此时可以设置为 `false` | N highlightKeyword | Boolean | true | 是否高亮联想词中和输入值的相同部分 | N diff --git a/packages/products/tdesign-react/src/auto-complete/type.ts b/packages/products/tdesign-react/src/auto-complete/type.ts index 996b5a49..32aacdc9 100644 --- a/packages/products/tdesign-react/src/auto-complete/type.ts +++ b/packages/products/tdesign-react/src/auto-complete/type.ts @@ -32,6 +32,10 @@ export interface TdAutoCompleteProps>>` `type AnimationType = 'ripple' \| 'expand' \| 'fade'`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/config-provider/type.ts) | N attach | String / Object / Function | - | Typescript:`AttachNode \| { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode; }`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +autoComplete | Object | - | AutoComplete global configs。Typescript:`AutoCompleteConfig` | N calendar | Object | - | Calendar global configs。Typescript:`CalendarConfig` | N cascader | Object | - | Cascader global configs。Typescript:`CascaderConfig` | N classPrefix | String | t | \- | N @@ -354,3 +355,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 diff --git a/packages/products/tdesign-react/src/config-provider/config-provider.md b/packages/products/tdesign-react/src/config-provider/config-provider.md index c50b8756..ee6bb9bf 100644 --- a/packages/products/tdesign-react/src/config-provider/config-provider.md +++ b/packages/products/tdesign-react/src/config-provider/config-provider.md @@ -9,6 +9,7 @@ alert | Object | - | 警告全局配置。TS 类型:`AlertConfig` | N anchor | Object | - | 锚点全局配置。TS 类型:`AnchorConfig` | N animation | Object | - | 动画效果控制,`ripple` 指波纹动画, `expand` 指展开动画,`fade` 指渐变动画。默认为 `{ include: ['ripple','expand','fade'], exclude: [] }`。TS 类型:`Partial>>` `type AnimationType = 'ripple' \| 'expand' \| 'fade'`。[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/config-provider/type.ts) | N attach | String / Object / Function | - | TS 类型:`AttachNode \| { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode; }`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +autoComplete | Object | - | 自动填充组件全局配置。TS 类型:`AutoCompleteConfig` | N calendar | Object | - | 日历组件全局配置。TS 类型:`CalendarConfig` | N cascader | Object | - | 级联选择器全局配置。TS 类型:`CascaderConfig` | N classPrefix | String | t | CSS 类名前缀 | N @@ -354,3 +355,9 @@ titleText | Object | - | 空状态组件各类型的标题文本配置。TS 类 collapseText | String | - | 语言配置,“收起”描述文本 | N copiedText | String | - | 语言配置,“复制成功”描述文本 | N expandText | String | - | 语言配置,“展开”描述文本 | N + +### AutoCompleteConfig + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +empty | String | - | 语言配置,“暂无数据”描述文本 | N diff --git a/packages/products/tdesign-react/src/config-provider/type.ts b/packages/products/tdesign-react/src/config-provider/type.ts index 7bc3452f..9cfa7217 100644 --- a/packages/products/tdesign-react/src/config-provider/type.ts +++ b/packages/products/tdesign-react/src/config-provider/type.ts @@ -29,6 +29,10 @@ export interface GlobalConfigProvider { * null */ attach?: AttachNode | { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode }; + /** + * 自动填充组件全局配置 + */ + autoComplete?: AutoCompleteConfig; /** * 日历组件全局配置 */ @@ -960,6 +964,14 @@ export interface TypographyConfig { expandText?: string; } +export interface AutoCompleteConfig { + /** + * 语言配置,“暂无数据”描述文本 + * @default '' + */ + empty?: string; +} + export type AnimationType = 'ripple' | 'expand' | 'fade'; export type IconConfig = GlobalIconConfig; diff --git a/packages/products/tdesign-vue-next/src/auto-complete/auto-complete.en-US.md b/packages/products/tdesign-vue-next/src/auto-complete/auto-complete.en-US.md index ce0cc96e..e4b01ba6 100644 --- a/packages/products/tdesign-vue-next/src/auto-complete/auto-complete.en-US.md +++ b/packages/products/tdesign-vue-next/src/auto-complete/auto-complete.en-US.md @@ -11,6 +11,7 @@ borderless | Boolean | false | \- | N clearable | Boolean | - | \- | N default | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N disabled | Boolean | undefined | \- | N +empty | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N filter | Function | - | Typescript:`(filterWords: string, option: T) => boolean \| Promise` | N filterable | Boolean | true | \- | N highlightKeyword | Boolean | true | \- | N diff --git a/packages/products/tdesign-vue-next/src/auto-complete/auto-complete.md b/packages/products/tdesign-vue-next/src/auto-complete/auto-complete.md index e426315e..ecdad5b6 100644 --- a/packages/products/tdesign-vue-next/src/auto-complete/auto-complete.md +++ b/packages/products/tdesign-vue-next/src/auto-complete/auto-complete.md @@ -11,6 +11,7 @@ borderless | Boolean | false | 无边框模式 | N clearable | Boolean | - | 是否允许清空 | N default | String / Slot / Function | - | 触发显示联想词下拉框的元素,同 `triggerElement`。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N disabled | Boolean | undefined | 是否禁用 | N +empty | String / Slot / Function | - | 当下拉联想词列表为空时显示的内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N filter | Function | - | 自定义过滤规则,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。参数 `filterWords` 表示搜索词,`option`表示单个选项内容,返回值为 `true` 保留该选项,返回值为 `false` 则隐藏该选项。使用该方法时无需设置 `filterable`。TS 类型:`(filterWords: string, option: T) => boolean \| Promise` | N filterable | Boolean | true | 是否根据输入内容过滤联想词。默认过滤规则不区分大小写,全文本任意位置匹配。如果默认搜索规则不符合业务需求,可以更为使用 `filter` 自定义过滤规则。部分场景下输入关键词和下拉联想词完全不同,此时可以设置为 `false` | N highlightKeyword | Boolean | true | 是否高亮联想词中和输入值的相同部分 | N diff --git a/packages/products/tdesign-vue-next/src/auto-complete/props.ts b/packages/products/tdesign-vue-next/src/auto-complete/props.ts index fec2ab61..785f135e 100644 --- a/packages/products/tdesign-vue-next/src/auto-complete/props.ts +++ b/packages/products/tdesign-vue-next/src/auto-complete/props.ts @@ -23,6 +23,10 @@ export default { type: Boolean, default: undefined, }, + /** 当下拉联想词列表为空时显示的内容 */ + empty: { + type: [String, Function] as PropType, + }, /** 自定义过滤规则,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。参数 `filterWords` 表示搜索词,`option`表示单个选项内容,返回值为 `true` 保留该选项,返回值为 `false` 则隐藏该选项。使用该方法时无需设置 `filterable` */ filter: { type: Function as PropType, diff --git a/packages/products/tdesign-vue-next/src/auto-complete/type.ts b/packages/products/tdesign-vue-next/src/auto-complete/type.ts index e37255d6..835342cf 100644 --- a/packages/products/tdesign-vue-next/src/auto-complete/type.ts +++ b/packages/products/tdesign-vue-next/src/auto-complete/type.ts @@ -31,6 +31,10 @@ export interface TdAutoCompleteProps>>` `type AnimationType = 'ripple' \| 'expand' \| 'fade'`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/config-provider/type.ts) | N attach | String / Object / Function | - | Typescript:`AttachNode \| { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode; }`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +autoComplete | Object | - | AutoComplete global configs。Typescript:`AutoCompleteConfig` | N calendar | Object | - | Calendar global configs。Typescript:`CalendarConfig` | N cascader | Object | - | Cascader global configs。Typescript:`CascaderConfig` | N classPrefix | String | t | \- | N @@ -354,3 +355,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 diff --git a/packages/products/tdesign-vue-next/src/config-provider/config-provider.md b/packages/products/tdesign-vue-next/src/config-provider/config-provider.md index 9789a82e..f1427653 100644 --- a/packages/products/tdesign-vue-next/src/config-provider/config-provider.md +++ b/packages/products/tdesign-vue-next/src/config-provider/config-provider.md @@ -9,6 +9,7 @@ alert | Object | - | 警告全局配置。TS 类型:`AlertConfig` | N anchor | Object | - | 锚点全局配置。TS 类型:`AnchorConfig` | N animation | Object | - | 动画效果控制,`ripple` 指波纹动画, `expand` 指展开动画,`fade` 指渐变动画。默认为 `{ include: ['ripple','expand','fade'], exclude: [] }`。TS 类型:`Partial>>` `type AnimationType = 'ripple' \| 'expand' \| 'fade'`。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/config-provider/type.ts) | N attach | String / Object / Function | - | TS 类型:`AttachNode \| { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode; }`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +autoComplete | Object | - | 自动填充组件全局配置。TS 类型:`AutoCompleteConfig` | N calendar | Object | - | 日历组件全局配置。TS 类型:`CalendarConfig` | N cascader | Object | - | 级联选择器全局配置。TS 类型:`CascaderConfig` | N classPrefix | String | t | CSS 类名前缀 | N @@ -354,3 +355,9 @@ titleText | Object | - | 空状态组件各类型的标题文本配置。TS 类 collapseText | String | - | 语言配置,“收起”描述文本 | N copiedText | String | - | 语言配置,“复制成功”描述文本 | N expandText | String | - | 语言配置,“展开”描述文本 | N + +### AutoCompleteConfig + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +empty | String | - | 语言配置,“暂无数据”描述文本 | N diff --git a/packages/products/tdesign-vue-next/src/config-provider/type.ts b/packages/products/tdesign-vue-next/src/config-provider/type.ts index 597f63e9..909eee71 100644 --- a/packages/products/tdesign-vue-next/src/config-provider/type.ts +++ b/packages/products/tdesign-vue-next/src/config-provider/type.ts @@ -29,6 +29,10 @@ export interface GlobalConfigProvider { * null */ attach?: AttachNode | { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode }; + /** + * 自动填充组件全局配置 + */ + autoComplete?: AutoCompleteConfig; /** * 日历组件全局配置 */ @@ -960,6 +964,14 @@ export interface TypographyConfig { expandText?: string; } +export interface AutoCompleteConfig { + /** + * 语言配置,“暂无数据”描述文本 + * @default '' + */ + empty?: string; +} + export type AnimationType = 'ripple' | 'expand' | 'fade'; export type IconConfig = GlobalIconConfig; diff --git a/packages/products/tdesign-vue/src/auto-complete/auto-complete.en-US.md b/packages/products/tdesign-vue/src/auto-complete/auto-complete.en-US.md index 9b49df69..b24628d5 100644 --- a/packages/products/tdesign-vue/src/auto-complete/auto-complete.en-US.md +++ b/packages/products/tdesign-vue/src/auto-complete/auto-complete.en-US.md @@ -11,6 +11,7 @@ borderless | Boolean | false | \- | N clearable | Boolean | - | \- | N default | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N disabled | Boolean | undefined | \- | N +empty | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N filter | Function | - | Typescript:`(filterWords: string, option: T) => boolean \| Promise` | N filterable | Boolean | true | \- | N highlightKeyword | Boolean | true | \- | N diff --git a/packages/products/tdesign-vue/src/auto-complete/auto-complete.md b/packages/products/tdesign-vue/src/auto-complete/auto-complete.md index bcbb416b..05a28990 100644 --- a/packages/products/tdesign-vue/src/auto-complete/auto-complete.md +++ b/packages/products/tdesign-vue/src/auto-complete/auto-complete.md @@ -11,6 +11,7 @@ borderless | Boolean | false | 无边框模式 | N clearable | Boolean | - | 是否允许清空 | N default | String / Slot / Function | - | 触发显示联想词下拉框的元素,同 `triggerElement`。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N disabled | Boolean | undefined | 是否禁用 | N +empty | String / Slot / Function | - | 当下拉联想词列表为空时显示的内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N filter | Function | - | 自定义过滤规则,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。参数 `filterWords` 表示搜索词,`option`表示单个选项内容,返回值为 `true` 保留该选项,返回值为 `false` 则隐藏该选项。使用该方法时无需设置 `filterable`。TS 类型:`(filterWords: string, option: T) => boolean \| Promise` | N filterable | Boolean | true | 是否根据输入内容过滤联想词。默认过滤规则不区分大小写,全文本任意位置匹配。如果默认搜索规则不符合业务需求,可以更为使用 `filter` 自定义过滤规则。部分场景下输入关键词和下拉联想词完全不同,此时可以设置为 `false` | N highlightKeyword | Boolean | true | 是否高亮联想词中和输入值的相同部分 | N diff --git a/packages/products/tdesign-vue/src/auto-complete/props.ts b/packages/products/tdesign-vue/src/auto-complete/props.ts index 467fa446..4fb63f70 100644 --- a/packages/products/tdesign-vue/src/auto-complete/props.ts +++ b/packages/products/tdesign-vue/src/auto-complete/props.ts @@ -23,6 +23,10 @@ export default { type: Boolean, default: undefined, }, + /** 当下拉联想词列表为空时显示的内容 */ + empty: { + type: [String, Function] as PropType, + }, /** 自定义过滤规则,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。参数 `filterWords` 表示搜索词,`option`表示单个选项内容,返回值为 `true` 保留该选项,返回值为 `false` 则隐藏该选项。使用该方法时无需设置 `filterable` */ filter: { type: Function as PropType, diff --git a/packages/products/tdesign-vue/src/auto-complete/type.ts b/packages/products/tdesign-vue/src/auto-complete/type.ts index d7eb4869..c1bd5418 100644 --- a/packages/products/tdesign-vue/src/auto-complete/type.ts +++ b/packages/products/tdesign-vue/src/auto-complete/type.ts @@ -31,6 +31,10 @@ export interface TdAutoCompleteProps>>` `type AnimationType = 'ripple' \| 'expand' \| 'fade'`。[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/config-provider/type.ts) | N attach | String / Object / Function | - | Typescript:`AttachNode \| { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode; }`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +autoComplete | Object | - | AutoComplete global configs。Typescript:`AutoCompleteConfig` | N calendar | Object | - | Calendar global configs。Typescript:`CalendarConfig` | N cascader | Object | - | Cascader global configs。Typescript:`CascaderConfig` | N classPrefix | String | t | \- | N @@ -354,3 +355,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 diff --git a/packages/products/tdesign-vue/src/config-provider/config-provider.md b/packages/products/tdesign-vue/src/config-provider/config-provider.md index fcbe4b35..24097eaa 100644 --- a/packages/products/tdesign-vue/src/config-provider/config-provider.md +++ b/packages/products/tdesign-vue/src/config-provider/config-provider.md @@ -9,6 +9,7 @@ alert | Object | - | 警告全局配置。TS 类型:`AlertConfig` | N anchor | Object | - | 锚点全局配置。TS 类型:`AnchorConfig` | N animation | Object | - | 动画效果控制,`ripple` 指波纹动画, `expand` 指展开动画,`fade` 指渐变动画。默认为 `{ include: ['ripple','expand','fade'], exclude: [] }`。TS 类型:`Partial>>` `type AnimationType = 'ripple' \| 'expand' \| 'fade'`。[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/config-provider/type.ts) | N attach | String / Object / Function | - | TS 类型:`AttachNode \| { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode; }`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +autoComplete | Object | - | 自动填充组件全局配置。TS 类型:`AutoCompleteConfig` | N calendar | Object | - | 日历组件全局配置。TS 类型:`CalendarConfig` | N cascader | Object | - | 级联选择器全局配置。TS 类型:`CascaderConfig` | N classPrefix | String | t | CSS 类名前缀 | N @@ -354,3 +355,9 @@ titleText | Object | - | 空状态组件各类型的标题文本配置。TS 类 collapseText | String | - | 语言配置,“收起”描述文本 | N copiedText | String | - | 语言配置,“复制成功”描述文本 | N expandText | String | - | 语言配置,“展开”描述文本 | N + +### AutoCompleteConfig + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +empty | String | - | 语言配置,“暂无数据”描述文本 | N diff --git a/packages/products/tdesign-vue/src/config-provider/type.ts b/packages/products/tdesign-vue/src/config-provider/type.ts index 23ea74e1..462e2e4b 100644 --- a/packages/products/tdesign-vue/src/config-provider/type.ts +++ b/packages/products/tdesign-vue/src/config-provider/type.ts @@ -29,6 +29,10 @@ export interface GlobalConfigProvider { * null */ attach?: AttachNode | { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode }; + /** + * 自动填充组件全局配置 + */ + autoComplete?: AutoCompleteConfig; /** * 日历组件全局配置 */ @@ -960,6 +964,14 @@ export interface TypographyConfig { expandText?: string; } +export interface AutoCompleteConfig { + /** + * 语言配置,“暂无数据”描述文本 + * @default '' + */ + empty?: string; +} + export type AnimationType = 'ripple' | 'expand' | 'fade'; export type IconConfig = GlobalIconConfig; diff --git a/packages/scripts/api.json b/packages/scripts/api.json index 127c3f7d..eb77ec73 100644 --- a/packages/scripts/api.json +++ b/packages/scripts/api.json @@ -4781,6 +4781,49 @@ "Boolean" ] }, + { + "id": 1736344917, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "AutoComplete", + "field_category": 1, + "field_name": "empty", + "field_type": [ + "1", + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "当下拉联想词列表为空时显示的内容", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-01-08 14:01:57", + "update_time": "2025-01-08 14:01:57", + "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", + "TNode" + ] + }, { "id": 3158, "platform_framework": [ @@ -5778,6 +5821,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": [ @@ -53340,6 +53424,47 @@ "Function" ] }, + { + "id": 1736340408, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "GlobalConfigProvider", + "field_category": 1, + "field_name": "autoComplete", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "自动填充组件全局配置", + "field_desc_en": "AutoComplete global configs", + "field_required": 0, + "event_input": "", + "create_time": "2025-01-08 12:46:48", + "update_time": "2025-01-08 12:46:48", + "event_output": null, + "custom_field_type": "AutoCompleteConfig", + "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": [ + "Object" + ] + }, { "id": 1873, "platform_framework": [ diff --git a/packages/scripts/config/files-combine.js b/packages/scripts/config/files-combine.js index aa3bac97..7e3ba8f6 100644 --- a/packages/scripts/config/files-combine.js +++ b/packages/scripts/config/files-combine.js @@ -38,6 +38,7 @@ const GLOBAL_COMPONENTS_CONFIG = [ 'RateConfig', 'EmptyConfig', 'TypographyConfig', + 'AutoCompleteConfig', ].sort((a, b) => a.localeCompare(b) > 0); const MESSAGE_LIST = [ diff --git a/packages/scripts/map.json b/packages/scripts/map.json index 6a485602..394d28bf 100644 --- a/packages/scripts/map.json +++ b/packages/scripts/map.json @@ -299,6 +299,11 @@ "value": "AutoComplete", "label": "自动填充" }, + { + "value": "AutoCompleteConfig", + "label": "自动填充全局配置", + "type": "TS" + }, { "value": "Avatar", "label": "头像" diff --git a/packages/server/controllers/ComponentApi/const.ts b/packages/server/controllers/ComponentApi/const.ts index 4f865d14..fb9f8bcd 100644 --- a/packages/server/controllers/ComponentApi/const.ts +++ b/packages/server/controllers/ComponentApi/const.ts @@ -341,6 +341,7 @@ export const COMPONENTS_PC: Array = [ { 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 = [