Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update type file #252

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const dialogDefaultProps: TdDialogProps = {
destroyOnClose: false,
draggable: false,
footer: true,
forceRender: false,
header: true,
mode: 'modal',
placement: 'top',
Expand Down
5 changes: 5 additions & 0 deletions packages/products/tdesign-react/src/dialog/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ export interface TdDialogProps {
* @default true
*/
footer?: TNode;
/**
* 是否强制渲染Dialog
* @default false
*/
forceRender?: boolean;
/**
* 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 string 则直接显示值,值类型为 Function 表示自定义头部内容
* @default true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const drawerDefaultProps: TdDrawerProps = {
closeOnOverlayClick: undefined,
destroyOnClose: false,
footer: true,
forceRender: false,
header: true,
mode: 'overlay',
placement: 'right',
Expand Down
5 changes: 5 additions & 0 deletions packages/products/tdesign-react/src/drawer/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ export interface TdDrawerProps {
* @default true
*/
footer?: TNode;
/**
* 是否强制渲染Drawer
* @default false
*/
forceRender?: boolean;
/**
* 头部内容。值为 true 显示空白头部,值为 false 不显示头部,值类型为 string 则直接显示值,值类型为 TNode 表示自定义头部内容
* @default true
Expand Down
Loading