@lark-apaas/fullstack-rspack-preset 1.0.8-alpha.log.4 → 1.0.8-alpha.log.5

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.
@@ -16,11 +16,11 @@ function ErrorContainer(document, root, errorTitle) {
16
16
  // 创建图片元素
17
17
  const img = document.createElement('img');
18
18
  img.src =
19
- 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/template/render_error.svg';
19
+ 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/template/illustration_empty_negative_error.svg';
20
20
  img.alt = 'Error';
21
21
  // 图片占位
22
- img.width = 200;
23
- img.height = 200;
22
+ img.width = 100;
23
+ img.height = 100;
24
24
  img.className = 'overlay-error-image';
25
25
  content.appendChild(img);
26
26
  // 创建标题元素
@@ -67,7 +67,7 @@ function RootStyle(document, root) {
67
67
 
68
68
  .overlay-error-image {
69
69
  margin-bottom: 12px; /* mb-3 */
70
- width: 200px; /* w-[200px] */
70
+ width: 100px; /* w-[100px] */
71
71
  height: auto;
72
72
  }
73
73
 
@@ -236,7 +236,7 @@ function render() {
236
236
  // 发送运行错误
237
237
  logError(['Uncaught Render Error', ...currentRuntimeErrors]);
238
238
  // 叠加全部报错,将报错信息发送到妙搭
239
- ErrorContainer(rootDocument, root, '哎呀,出错了');
239
+ ErrorContainer(rootDocument, root, '页面出错了,请联系管理员');
240
240
  }
241
241
  });
242
242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-rspack-preset",
3
- "version": "1.0.8-alpha.log.4",
3
+ "version": "1.0.8-alpha.log.5",
4
4
  "files": [
5
5
  "lib",
6
6
  "preset.config.js"