x-star-design 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -100,6 +100,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
100
100
|
}, {
|
|
101
101
|
key: "render",
|
|
102
102
|
value: function render() {
|
|
103
|
+
var _this2 = this;
|
|
103
104
|
var _this$props2 = this.props,
|
|
104
105
|
fallback = _this$props2.fallback,
|
|
105
106
|
FallbackComponent = _this$props2.FallbackComponent,
|
|
@@ -107,7 +108,8 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
107
108
|
fallbackRender = _this$props2$fallback === void 0 ? function (props) {
|
|
108
109
|
// fallback 组件的渲染函数 ErrorPage需要自己定义该组件
|
|
109
110
|
return /*#__PURE__*/React.createElement(ErrorPage, {
|
|
110
|
-
onReset: props.resetErrorBoundary
|
|
111
|
+
onReset: props.resetErrorBoundary,
|
|
112
|
+
homeLink: _this2.props.homeLink
|
|
111
113
|
});
|
|
112
114
|
} : _this$props2$fallback;
|
|
113
115
|
var error = this.state.error;
|
package/dist/styles/index.css
CHANGED
|
@@ -433,6 +433,7 @@
|
|
|
433
433
|
position: relative;
|
|
434
434
|
width: 100vw;
|
|
435
435
|
height: calc(87vh - 64px);
|
|
436
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
436
437
|
}
|
|
437
438
|
.x-star-design-errorPage .hello {
|
|
438
439
|
position: absolute;
|
|
@@ -499,3 +500,17 @@
|
|
|
499
500
|
justify-content: space-between;
|
|
500
501
|
width: 50%;
|
|
501
502
|
}
|
|
503
|
+
.x-star-design-errorPage .content a {
|
|
504
|
+
color: #1890ff;
|
|
505
|
+
text-decoration: none;
|
|
506
|
+
background-color: transparent;
|
|
507
|
+
outline: none;
|
|
508
|
+
cursor: pointer;
|
|
509
|
+
transition: color 0.3s;
|
|
510
|
+
touch-action: manipulation;
|
|
511
|
+
}
|
|
512
|
+
.x-star-design-errorPage .content a:hover {
|
|
513
|
+
text-decoration: none;
|
|
514
|
+
outline: 0;
|
|
515
|
+
color: #40a9ff;
|
|
516
|
+
}
|