Skip to content

Commit 0534b9c

Browse files
committed
sync style
1 parent ceb674c commit 0534b9c

File tree

8 files changed

+45
-452
lines changed

8 files changed

+45
-452
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: 1 addition & 226 deletions
Original file line numberDiff line numberDiff line change
@@ -4,229 +4,4 @@
44
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
55
* */
66

7-
import { ButtonProps } from '../button';
8-
import { TNode, Styles, AttachNode } from '../common';
9-
10-
export interface TdDialogProps {
11-
/**
12-
* 对话框挂载的节点。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body
13-
*/
14-
attach?: AttachNode;
15-
/**
16-
* 对话框内容
17-
*/
18-
body?: string | TNode;
19-
/**
20-
* 取消按钮,可自定义。值为 null 则不显示取消按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制取消事件
21-
*/
22-
cancelBtn?: string | ButtonProps | TNode | null;
23-
/**
24-
* 关闭按钮,可以自定义。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string 则直接显示值,如:“关闭”。值类型为 TNode,则表示呈现自定义按钮示例
25-
* @default true
26-
*/
27-
closeBtn?: string | boolean | TNode;
28-
/**
29-
* 按下 ESC 时是否触发对话框关闭事件
30-
*/
31-
closeOnEscKeydown?: boolean;
32-
/**
33-
* 点击蒙层时是否触发关闭事件
34-
* @default false
35-
*/
36-
closeOnOverlayClick?: boolean;
37-
/**
38-
* 确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制确认事件
39-
*/
40-
confirmBtn?: string | ButtonProps | TNode | null;
41-
/**
42-
* 确认按钮加载状态
43-
*/
44-
confirmLoading?: boolean;
45-
/**
46-
* 是否在按下回车键时,触发确认事件
47-
*/
48-
confirmOnEnter?: boolean;
49-
/**
50-
* 对话框内容,同 body
51-
*/
52-
default?: string | TNode;
53-
/**
54-
* 是否在关闭弹框的时候销毁子元素
55-
* @default false
56-
*/
57-
destroyOnClose?: boolean;
58-
/**
59-
* 弹框元素类名,示例:'t-class-dialog-first t-class-dialog-second'
60-
* @default ''
61-
*/
62-
dialogClassName?: string;
63-
/**
64-
* 作用于对话框本身的样式
65-
*/
66-
dialogStyle?: Styles;
67-
/**
68-
* 对话框是否可以拖拽(仅在非模态对话框时有效)
69-
* @default false
70-
*/
71-
draggable?: boolean;
72-
/**
73-
* 底部操作栏,默认会有“确认”和“取消”两个按钮。值为 true 显示默认操作按钮,值为 false 不显示任何内容,值类型为 Function 表示自定义底部内容
74-
* @default true
75-
*/
76-
footer?: boolean | TNode;
77-
/**
78-
* 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 string 则直接显示值,值类型为 Function 表示自定义头部内容
79-
* @default true
80-
*/
81-
header?: string | boolean | TNode;
82-
/**
83-
* 对话框类型,有 3 种:模态对话框、非模态对话框、全屏对话框。弹出「模态对话框」时,只能操作对话框里面的内容,不能操作其他内容。弹出「非模态对话框」时,则可以操作页面内所有内容。「普通对话框」是指没有脱离文档流的对话框,可以在这个基础上开发更多的插件
84-
* @default modal
85-
*/
86-
mode?: 'modal' | 'modeless' | 'full-screen';
87-
/**
88-
* 对话框位置,内置两种:垂直水平居中显示 和 靠近顶部(top:20%)显示。默认情况,为避免贴顶或贴底,顶部和底部距离最小为 `48px`,可通过调整 `top` 覆盖默认大小
89-
* @default top
90-
*/
91-
placement?: 'top' | 'center';
92-
/**
93-
* 防止滚动穿透
94-
* @default true
95-
*/
96-
preventScrollThrough?: boolean;
97-
/**
98-
* 仅在挂载元素中显示抽屉,默认在浏览器可视区域显示。父元素需要有定位属性,如:position: relative
99-
* @default false
100-
*/
101-
showInAttachedElement?: boolean;
102-
/**
103-
* 是否显示遮罩层
104-
* @default true
105-
*/
106-
showOverlay?: boolean;
107-
/**
108-
* 对话框风格
109-
* @default default
110-
*/
111-
theme?: 'default' | 'info' | 'warning' | 'danger' | 'success';
112-
/**
113-
* 用于弹框具体窗口顶部的距离,优先级大于 placement
114-
*/
115-
top?: string | number;
116-
/**
117-
* 控制对话框是否显示
118-
*/
119-
visible?: boolean;
120-
/**
121-
* 对话框宽度,示例:320, '500px', '80%'
122-
*/
123-
width?: string | number;
124-
/**
125-
* 对话框层级,Web 侧样式默认为 2500,移动端和小程序样式默认为 1500
126-
*/
127-
zIndex?: number;
128-
/**
129-
* 对话框执行消失动画效果前触发
130-
*/
131-
onBeforeClose?: () => void;
132-
/**
133-
* 对话框执行弹出动画效果前触发
134-
*/
135-
onBeforeOpen?: () => void;
136-
/**
137-
* 如果“取消”按钮存在,则点击“取消”按钮时触发,同时触发关闭事件
138-
*/
139-
onCancel?: (context: { e: MouseEvent }) => void;
140-
/**
141-
* 关闭事件,点击取消按钮、点击关闭按钮、点击蒙层、按下 ESC 等场景下触发
142-
*/
143-
onClose?: (context: DialogCloseContext) => void;
144-
/**
145-
* 点击右上角关闭按钮时触发
146-
*/
147-
onCloseBtnClick?: (context: { e: MouseEvent }) => void;
148-
/**
149-
* 对话框消失动画效果结束后触发
150-
*/
151-
onClosed?: () => void;
152-
/**
153-
* 如果“确认”按钮存在,则点击“确认”按钮时触发,或者键盘按下回车键时触发
154-
*/
155-
onConfirm?: (context: { e: MouseEvent | KeyboardEvent }) => void;
156-
/**
157-
* 按下 ESC 时触发事件
158-
*/
159-
onEscKeydown?: (context: { e: KeyboardEvent }) => void;
160-
/**
161-
* 对话框弹出动画效果结束后触发
162-
*/
163-
onOpened?: () => void;
164-
/**
165-
* 如果蒙层存在,点击蒙层时触发
166-
*/
167-
onOverlayClick?: (context: { e: MouseEvent }) => void;
168-
}
169-
170-
export interface TdDialogCardProps
171-
extends Pick<
172-
TdDialogProps,
173-
| 'body'
174-
| 'cancelBtn'
175-
| 'closeBtn'
176-
| 'confirmBtn'
177-
| 'footer'
178-
| 'header'
179-
| 'theme'
180-
| 'onCancel'
181-
| 'onCloseBtnClick'
182-
| 'onConfirm'
183-
> {}
184-
185-
export interface DialogOptions extends Omit<TdDialogProps, 'attach'> {
186-
/**
187-
* 对话框挂载的节点。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body
188-
* @default 'body'
189-
*/
190-
attach?: AttachNode;
191-
/**
192-
* 弹框类名,示例:'t-class-dialog-first t-class-dialog-second'
193-
* @default ''
194-
*/
195-
className?: string;
196-
}
197-
198-
export interface DialogInstance {
199-
/**
200-
* 销毁弹框
201-
*/
202-
destroy: () => void;
203-
/**
204-
* 隐藏弹框
205-
*/
206-
hide: () => void;
207-
/**
208-
* 设置确认按钮加载状态
209-
*/
210-
setConfirmLoading: (loading: boolean) => void;
211-
/**
212-
* 显示弹框
213-
*/
214-
show: () => void;
215-
/**
216-
* 更新弹框内容
217-
*/
218-
update: (props: DialogOptions) => void;
219-
}
220-
221-
export type DialogEventSource = 'esc' | 'close-btn' | 'cancel' | 'overlay';
222-
223-
export interface DialogCloseContext {
224-
trigger: DialogEventSource;
225-
e: MouseEvent | KeyboardEvent;
226-
}
227-
228-
export type DialogMethod = (options?: DialogOptions) => DialogInstance;
229-
230-
export type DialogConfirmMethod = (options?: DialogOptions) => DialogInstance;
231-
232-
export type DialogAlertMethod = (options?: Omit<DialogOptions, 'cancelBtn'>) => DialogInstance;
7+
[object Object]

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

0 commit comments

Comments
 (0)