Skip to content

Commit

Permalink
chore: update type file (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Apr 1, 2024
1 parent 5ed9665 commit 359e012
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/products/tdesign-react/src/dialog/defaultProps.ts
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
1 change: 1 addition & 0 deletions packages/products/tdesign-react/src/drawer/defaultProps.ts
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

0 comments on commit 359e012

Please sign in to comment.