From 38143e0725c9177f1da1d08d1ef78403a603a056 Mon Sep 17 00:00:00 2001 From: HaixingOoO <974758671@qq.com> Date: Sat, 7 Dec 2024 13:53:26 +0800 Subject: [PATCH] feat(ConfigProvider): attach support drawer --- db/TDesign.db | Bin 1003520 -> 1003520 bytes .../config-provider/config-provider.en-US.md | 3 +-- .../src/config-provider/config-provider.md | 3 +-- .../tdesign-react/src/config-provider/type.ts | 2 +- .../config-provider/config-provider.en-US.md | 3 +-- .../src/config-provider/config-provider.md | 3 +-- .../src/config-provider/type.ts | 2 +- .../config-provider/config-provider.en-US.md | 3 +-- .../src/config-provider/config-provider.md | 3 +-- .../tdesign-vue/src/config-provider/type.ts | 2 +- packages/scripts/api.json | 2 +- 11 files changed, 10 insertions(+), 16 deletions(-) diff --git a/db/TDesign.db b/db/TDesign.db index 73b8c8a941bb70d31a8bcb231e3432dda2a3089a..675d9a773efb8fd0487777f551a9acd9a3a7a84f 100644 GIT binary patch delta 201 zcmZozVB4_3c7ilx^h6nF#^}a`)&$1Z1g6#m=GFw3)&$np1h&=$_SOWB)&$Ph1g_Qu z?$!jJ)&$PmXh5Z`4BwHryDwdxt z-psR^-ZJS=HdOG}X^fj=CB?#M$|=dn%geyP!E0>H(8Ss3fhpP;J6&6gzkK=*Eq+b0 nl%mA))FOK;1;>(-#N-UW{FGE{h1%^?6!;rCw?ES2ms14*Sm`$H delta 166 zcmV;X09pTlpgn+~J&+p#S&3;1BGA&g>>` `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; message?: AttachNode; popup?: AttachNode; dialog?: AttachNode; }`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.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 calendar | Object | - | Calendar global configs。Typescript:`CalendarConfig` | N cascader | Object | - | Cascader global configs。Typescript:`CascaderConfig` | N classPrefix | String | t | \- | 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 b7169c5f1..c50b8756a 100644 --- a/packages/products/tdesign-react/src/config-provider/config-provider.md +++ b/packages/products/tdesign-react/src/config-provider/config-provider.md @@ -1,7 +1,6 @@ :: BASE_DOC :: ## API - ### GlobalConfigProvider 名称 | 类型 | 默认值 | 描述 | 必传 @@ -9,7 +8,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; message?: AttachNode; popup?: AttachNode; dialog?: AttachNode; }`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.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 calendar | Object | - | 日历组件全局配置。TS 类型:`CalendarConfig` | N cascader | Object | - | 级联选择器全局配置。TS 类型:`CascaderConfig` | N classPrefix | String | t | CSS 类名前缀 | N diff --git a/packages/products/tdesign-react/src/config-provider/type.ts b/packages/products/tdesign-react/src/config-provider/type.ts index 2a7844280..7bc3452f3 100644 --- a/packages/products/tdesign-react/src/config-provider/type.ts +++ b/packages/products/tdesign-react/src/config-provider/type.ts @@ -28,7 +28,7 @@ export interface GlobalConfigProvider { /** * null */ - attach?: AttachNode | { imageViewer?: AttachNode; message?: AttachNode; popup?: AttachNode; dialog?: AttachNode }; + attach?: AttachNode | { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode }; /** * 日历组件全局配置 */ diff --git a/packages/products/tdesign-vue-next/src/config-provider/config-provider.en-US.md b/packages/products/tdesign-vue-next/src/config-provider/config-provider.en-US.md index eac52ab7e..3dcfd7a26 100644 --- a/packages/products/tdesign-vue-next/src/config-provider/config-provider.en-US.md +++ b/packages/products/tdesign-vue-next/src/config-provider/config-provider.en-US.md @@ -1,7 +1,6 @@ :: BASE_DOC :: ## API - ### GlobalConfigProvider name | type | default | description | required @@ -9,7 +8,7 @@ name | type | default | description | required alert | Object | - | Alert global configs。Typescript:`AlertConfig` | N anchor | Object | - | Anchor global configs。Typescript:`AnchorConfig` | N animation | Object | - | Typescript:`Partial>>` `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; message?: AttachNode; popup?: AttachNode; dialog?: AttachNode; }`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.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 calendar | Object | - | Calendar global configs。Typescript:`CalendarConfig` | N cascader | Object | - | Cascader global configs。Typescript:`CascaderConfig` | N classPrefix | String | t | \- | 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 9d2b0b5a4..9789a82ec 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 @@ -1,7 +1,6 @@ :: BASE_DOC :: ## API - ### GlobalConfigProvider 名称 | 类型 | 默认值 | 描述 | 必传 @@ -9,7 +8,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; message?: AttachNode; popup?: AttachNode; dialog?: AttachNode; }`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.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 calendar | Object | - | 日历组件全局配置。TS 类型:`CalendarConfig` | N cascader | Object | - | 级联选择器全局配置。TS 类型:`CascaderConfig` | N classPrefix | String | t | CSS 类名前缀 | 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 47b06acdd..597f63e98 100644 --- a/packages/products/tdesign-vue-next/src/config-provider/type.ts +++ b/packages/products/tdesign-vue-next/src/config-provider/type.ts @@ -28,7 +28,7 @@ export interface GlobalConfigProvider { /** * null */ - attach?: AttachNode | { imageViewer?: AttachNode; message?: AttachNode; popup?: AttachNode; dialog?: AttachNode }; + attach?: AttachNode | { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode }; /** * 日历组件全局配置 */ diff --git a/packages/products/tdesign-vue/src/config-provider/config-provider.en-US.md b/packages/products/tdesign-vue/src/config-provider/config-provider.en-US.md index ca69cfdd4..2fecc6d80 100644 --- a/packages/products/tdesign-vue/src/config-provider/config-provider.en-US.md +++ b/packages/products/tdesign-vue/src/config-provider/config-provider.en-US.md @@ -1,7 +1,6 @@ :: BASE_DOC :: ## API - ### GlobalConfigProvider name | type | default | description | required @@ -9,7 +8,7 @@ name | type | default | description | required alert | Object | - | Alert global configs。Typescript:`AlertConfig` | N anchor | Object | - | Anchor global configs。Typescript:`AnchorConfig` | N animation | Object | - | Typescript:`Partial>>` `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; message?: AttachNode; popup?: AttachNode; dialog?: AttachNode; }`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.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 calendar | Object | - | Calendar global configs。Typescript:`CalendarConfig` | N cascader | Object | - | Cascader global configs。Typescript:`CascaderConfig` | N classPrefix | String | t | \- | 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 ffdb3ac53..fcbe4b356 100644 --- a/packages/products/tdesign-vue/src/config-provider/config-provider.md +++ b/packages/products/tdesign-vue/src/config-provider/config-provider.md @@ -1,7 +1,6 @@ :: BASE_DOC :: ## API - ### GlobalConfigProvider 名称 | 类型 | 默认值 | 描述 | 必传 @@ -9,7 +8,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; message?: AttachNode; popup?: AttachNode; dialog?: AttachNode; }`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.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 calendar | Object | - | 日历组件全局配置。TS 类型:`CalendarConfig` | N cascader | Object | - | 级联选择器全局配置。TS 类型:`CascaderConfig` | N classPrefix | String | t | CSS 类名前缀 | N diff --git a/packages/products/tdesign-vue/src/config-provider/type.ts b/packages/products/tdesign-vue/src/config-provider/type.ts index 6555016a9..23ea74e12 100644 --- a/packages/products/tdesign-vue/src/config-provider/type.ts +++ b/packages/products/tdesign-vue/src/config-provider/type.ts @@ -28,7 +28,7 @@ export interface GlobalConfigProvider { /** * null */ - attach?: AttachNode | { imageViewer?: AttachNode; message?: AttachNode; popup?: AttachNode; dialog?: AttachNode }; + attach?: AttachNode | { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode }; /** * 日历组件全局配置 */ diff --git a/packages/scripts/api.json b/packages/scripts/api.json index 2ac4e016f..9928f1f1a 100644 --- a/packages/scripts/api.json +++ b/packages/scripts/api.json @@ -53640,7 +53640,7 @@ "create_time": "2024-07-19 08:36:21", "update_time": "2024-07-19 08:36:21", "event_output": null, - "custom_field_type": "AttachNode | { imageViewer?: AttachNode; message?: AttachNode; popup?: AttachNode; dialog?: AttachNode; }", + "custom_field_type": "AttachNode | { imageViewer?: AttachNode; popup?: AttachNode; dialog?: AttachNode; drawer?: AttachNode; }", "syntactic_sugar": null, "readonly": 1, "html_attribute": 0,