Skip to content

Commit

Permalink
Merge 8b9acf6 into c4c4566
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Hon authored Dec 16, 2020
2 parents c4c4566 + 8b9acf6 commit a67b5b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/src/components/alert/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const Alert: React.FC<AlertProps> = (props: AlertProps) => {
icon,
type = 'info',
size = 'middle',
style,
} = props;

const getIcon = () => {
Expand All @@ -43,6 +44,7 @@ const Alert: React.FC<AlertProps> = (props: AlertProps) => {
return (
<div>
<div
style={style}
className={classnames(
prefixCls,
size === 'small' ? `${prefixCls}-small` : '',
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/components/alert/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ export interface AlertProps {
关闭时触发的回调函数
*/
onClose?: () => void;
/**
外层样式
*/
style?: React.CSSProperties;
}

0 comments on commit a67b5b3

Please sign in to comment.