mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
style: Alert.ErrorBoundary overflow style (#40033)
This commit is contained in:
parent
7d77f3173d
commit
46d733447a
@ -34,7 +34,13 @@ class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundarySta
|
||||
const errorDescription = typeof description === 'undefined' ? componentStack : description;
|
||||
if (error) {
|
||||
return (
|
||||
<Alert type="error" message={errorMessage} description={<pre>{errorDescription}</pre>} />
|
||||
<Alert
|
||||
type="error"
|
||||
message={errorMessage}
|
||||
description={
|
||||
<pre style={{ fontSize: '0.9em', overflowX: 'auto' }}>{errorDescription}</pre>
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return children;
|
||||
|
Loading…
Reference in New Issue
Block a user