Skip to content

Commit 892a299

Browse files
authored
Merge pull request alibaba#89 from arleyGuoLei/main
fix: remove plugin-code-editor ErrorBoundary css-module
2 parents 7f42514 + 60e5076 commit 892a299

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

packages/plugin-code-editor/src/components/ErrorBoundary/ErrorBoundary.less

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
.container {
2-
min-width: 300px;
3-
}
4-
.actions {
1+
.plugin-code-editor-errorBoundary-actions {
52
margin: 12px auto;
63
width: fit-content;
74
text-align: center;

packages/plugin-code-editor/src/components/ErrorBoundary/ErrorBoundary.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component, ErrorInfo, Suspense } from 'react';
22
import { Loading, Message, Button } from '@alifd/next';
33

4-
import styles from './ErrorBoundary.less';
4+
import './ErrorBoundary.less';
55

66
interface ErrorBoundaryProps {
77
onCatch?: (error: Error, info: ErrorInfo) => void;
@@ -41,7 +41,7 @@ export class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundarySt
4141
return (
4242
<Message title="出错了~" type="error">
4343
<p>详细错误: {errorInfo || '未知原因'}</p>
44-
<div className={styles.actions}>
44+
<div className="plugin-code-editor-errorBoundary-actions">
4545
<Button onClick={this._handleReset} size="small">
4646
重试
4747
</Button>

0 commit comments

Comments
 (0)