Skip to content

Commit e5e7d9c

Browse files
committed
sync style
1 parent ceb674c commit e5e7d9c

File tree

8 files changed

+51
-0
lines changed

8 files changed

+51
-0
lines changed

db/TDesign.db

0 Bytes
Binary file not shown.

packages/products/tdesign-vue-next/src/dialog/dialog.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ name | type | default | description | required
7070
-- | -- | -- | -- | --
7171
attach | String / Function | 'body' | Typescript:`AttachNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
7272
className | String | - | \- | N
73+
style | String / Object | - | Typescript:`string \| Styles`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
7374
`Omit<DialogProps, 'attach'>` | \- | - | extends `Omit<DialogProps, 'attach'>` | N
7475

7576
### DialogInstance

packages/products/tdesign-vue-next/src/dialog/dialog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ overlay-click | `(context: { e: MouseEvent })` | 如果蒙层存在,点击蒙
7070
-- | -- | -- | -- | --
7171
attach | String / Function | 'body' | 对话框挂载的节点。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body。TS 类型:`AttachNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
7272
className | String | - | 弹框类名,示例:'t-class-dialog-first t-class-dialog-second' | N
73+
style | String / Object | - | 弹框 style 属性,输入 [CSSStyleDeclaration.cssText](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)。TS 类型:`string \| Styles`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
7374
`Omit<DialogProps, 'attach'>` | \- | - | 继承 `Omit<DialogProps, 'attach'>` 中的全部属性 | N
7475

7576
### DialogInstance

packages/products/tdesign-vue-next/src/dialog/type.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ export interface DialogOptions extends Omit<TdDialogProps, 'attach'> {
193193
* @default ''
194194
*/
195195
className?: string;
196+
/**
197+
* 弹框 style 属性,输入 [CSSStyleDeclaration.cssText](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)
198+
*/
199+
style?: string | Styles;
196200
}
197201

198202
export interface DialogInstance {

packages/products/tdesign-vue/src/dialog/dialog.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ name | type | default | description | required
7070
-- | -- | -- | -- | --
7171
attach | String / Function | 'body' | Typescript:`AttachNode`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
7272
className | String | - | \- | N
73+
style | String / Object | - | Typescript:`string \| Styles`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
7374
`Omit<DialogProps, 'attach'>` | \- | - | extends `Omit<DialogProps, 'attach'>` | N
7475

7576
### DialogInstance

packages/products/tdesign-vue/src/dialog/dialog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ overlay-click | `(context: { e: MouseEvent })` | 如果蒙层存在,点击蒙
7070
-- | -- | -- | -- | --
7171
attach | String / Function | 'body' | 对话框挂载的节点。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body。TS 类型:`AttachNode`[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
7272
className | String | - | 弹框类名,示例:'t-class-dialog-first t-class-dialog-second' | N
73+
style | String / Object | - | 弹框 style 属性,输入 [CSSStyleDeclaration.cssText](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)。TS 类型:`string \| Styles`[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
7374
`Omit<DialogProps, 'attach'>` | \- | - | 继承 `Omit<DialogProps, 'attach'>` 中的全部属性 | N
7475

7576
### DialogInstance

packages/products/tdesign-vue/src/dialog/type.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ export interface DialogOptions extends Omit<TdDialogProps, 'attach'> {
193193
* @default ''
194194
*/
195195
className?: string;
196+
/**
197+
* 弹框 style 属性,输入 [CSSStyleDeclaration.cssText](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)
198+
*/
199+
style?: string | Styles;
196200
}
197201

198202
export interface DialogInstance {

packages/scripts/api.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41373,6 +41373,45 @@
4137341373
"Object"
4137441374
]
4137541375
},
41376+
{
41377+
"id": 1731475189,
41378+
"platform_framework": [
41379+
"1"
41380+
],
41381+
"component": "DialogOptions",
41382+
"field_category": 1,
41383+
"field_name": "style",
41384+
"field_type": [
41385+
"1",
41386+
"8"
41387+
],
41388+
"field_default_value": "",
41389+
"field_enum": "",
41390+
"field_desc_zh": "弹框 style 属性,输入 [CSSStyleDeclaration.cssText](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)",
41391+
"field_desc_en": null,
41392+
"field_required": 0,
41393+
"event_input": "",
41394+
"create_time": "2024-11-13 05:19:49",
41395+
"update_time": "2024-11-13 05:19:49",
41396+
"event_output": null,
41397+
"custom_field_type": "string | Styles",
41398+
"syntactic_sugar": null,
41399+
"readonly": 1,
41400+
"html_attribute": 0,
41401+
"trigger_elements": "",
41402+
"deprecated": 0,
41403+
"version": "",
41404+
"test_description": null,
41405+
"support_default_value": 0,
41406+
"field_category_text": "Props",
41407+
"platform_framework_text": [
41408+
"Vue(PC)"
41409+
],
41410+
"field_type_text": [
41411+
"String",
41412+
"Object"
41413+
]
41414+
},
4137641415
{
4137741416
"id": 601,
4137841417
"platform_framework": [

0 commit comments

Comments
 (0)