Skip to content

Commit

Permalink
fix(Dialog): height type can be either number or string (alibaba-fusi…
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe authored Mar 18, 2022
1 parent c057724 commit 174a971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dialog/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default class Dialog extends Component {
/**
* 对话框的高度样式属性
*/
height: PropTypes.string,
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
/**
* 开启 v2 版本弹窗
*/
Expand Down
2 changes: 1 addition & 1 deletion types/dialog/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export interface DialogProps extends HTMLAttributesWeak, CommonProps {
/**
* 对话框的高度样式属性
*/
height?: string;
height?: string | number;
popupContainer?: string | HTMLElement | ((target: HTMLElement) => HTMLElement);
/**
* 开启 v2 版本弹窗
Expand Down

0 comments on commit 174a971

Please sign in to comment.