Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley-0808 committed Nov 13, 2024
1 parent ceb674c commit e794123
Show file tree
Hide file tree
Showing 8 changed files with 51 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 @@ -70,6 +70,7 @@ name | type | default | description | required
-- | -- | -- | -- | --
attach | String / Function | 'body' | Typescript:`AttachNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
className | String | - | \- | N
style | String / Object | - | Typescript:`Styles`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
`Omit<DialogProps, 'attach'>` | \- | - | extends `Omit<DialogProps, 'attach'>` | N

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

### DialogInstance
Expand Down
4 changes: 4 additions & 0 deletions packages/products/tdesign-vue-next/src/dialog/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ export interface DialogOptions extends Omit<TdDialogProps, 'attach'> {
* @default ''
*/
className?: string;
/**
* 弹框 style 属性,输入 [CSSStyleDeclaration.cssText](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)
*/
style?: Styles;
}

export interface DialogInstance {
Expand Down
1 change: 1 addition & 0 deletions packages/products/tdesign-vue/src/dialog/dialog.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ name | type | default | description | required
-- | -- | -- | -- | --
attach | String / Function | 'body' | Typescript:`AttachNode`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
className | String | - | \- | N
style | String / Object | - | Typescript:`Styles`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
`Omit<DialogProps, 'attach'>` | \- | - | extends `Omit<DialogProps, 'attach'>` | N

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

### DialogInstance
Expand Down
4 changes: 4 additions & 0 deletions packages/products/tdesign-vue/src/dialog/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ export interface DialogOptions extends Omit<TdDialogProps, 'attach'> {
* @default ''
*/
className?: string;
/**
* 弹框 style 属性,输入 [CSSStyleDeclaration.cssText](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)
*/
style?: Styles;
}

export interface DialogInstance {
Expand Down
39 changes: 39 additions & 0 deletions packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -41373,6 +41373,45 @@
"Object"
]
},
{
"id": 1731475189,
"platform_framework": [
"1"
],
"component": "DialogOptions",
"field_category": 1,
"field_name": "style",
"field_type": [
"1",
"8"
],
"field_default_value": "",
"field_enum": "",
"field_desc_zh": "弹框 style 属性,输入 [CSSStyleDeclaration.cssText](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
"create_time": "2024-11-13 05:19:49",
"update_time": "2024-11-13 05:19:49",
"event_output": null,
"custom_field_type": "Styles",
"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)"
],
"field_type_text": [
"String",
"Object"
]
},
{
"id": 601,
"platform_framework": [
Expand Down

0 comments on commit e794123

Please sign in to comment.