mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
4621bd9f5e
* feat: Alert support id and ref * test: add test case * chore: adjust ts def --------- Co-authored-by: 二货机器人 <smith3816@gmail.com>
15 lines
335 B
TypeScript
15 lines
335 B
TypeScript
import InternalAlert from './Alert';
|
|
import ErrorBoundary from './ErrorBoundary';
|
|
|
|
export type { AlertProps } from './Alert';
|
|
|
|
type CompoundedComponent = typeof InternalAlert & {
|
|
ErrorBoundary: typeof ErrorBoundary;
|
|
};
|
|
|
|
const Alert = InternalAlert as CompoundedComponent;
|
|
|
|
Alert.ErrorBoundary = ErrorBoundary;
|
|
|
|
export default Alert;
|