@next-core/brick-kit 2.92.0 → 2.93.1

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.
package/CHANGELOG.md CHANGED
@@ -3,189 +3,140 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [2.92.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.2...@next-core/brick-kit@2.92.0) (2021-12-06)
6
+ ## [2.93.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.93.0...@next-core/brick-kit@2.93.1) (2021-12-23)
7
7
 
8
+ **Note:** Version bump only for package @next-core/brick-kit
8
9
 
9
- ### Features
10
10
 
11
- * expose http code ([#1227](https://github.com/easyops-cn/next-core/issues/1227)) ([9e22deb](https://github.com/easyops-cn/next-core/commit/9e22deb2dc27b7d907bb782790fa4a59960ccc82))
12
11
 
13
12
 
14
13
 
14
+ # [2.93.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.2...@next-core/brick-kit@2.93.0) (2021-12-17)
15
15
 
16
16
 
17
- ## [2.91.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.1...@next-core/brick-kit@2.91.2) (2021-12-05)
17
+ ### Features
18
18
 
19
+ * add new constant BASE_URL in evaluations ([80451fe](https://github.com/easyops-cn/next-core/commit/80451fe3c9e6f80488e207f6c164db2ace7191ac))
19
20
 
20
- ### Bug Fixes
21
21
 
22
- * add icons field ([7415b3f](https://github.com/easyops-cn/next-core/commit/7415b3ffaafe109c3bd555878a1d5ab2cd117183))
23
22
 
24
23
 
25
24
 
25
+ ## [2.92.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.1...@next-core/brick-kit@2.92.2) (2021-12-15)
26
26
 
27
+ ### Bug Fixes
27
28
 
28
- ## [2.91.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.0...@next-core/brick-kit@2.91.1) (2021-12-03)
29
+ - pass data through tpl in useBrick ([3b6538c](https://github.com/easyops-cn/next-core/commit/3b6538cd37b8267f6a279f3b14c3a2fdefcb2ba9))
29
30
 
31
+ ## [2.92.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.0...@next-core/brick-kit@2.92.1) (2021-12-06)
30
32
 
31
33
  ### Bug Fixes
32
34
 
33
- * fix page tracker ([dbf1d00](https://github.com/easyops-cn/next-core/commit/dbf1d003cd2e60ad18471e403c5dc9c9690b30fa))
35
+ - fix empty image ([f941e83](https://github.com/easyops-cn/next-core/commit/f941e835cf42b4a0a94418004c19b0c37b3d24e0))
34
36
 
37
+ # [2.92.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.2...@next-core/brick-kit@2.92.0) (2021-12-06)
35
38
 
39
+ ### Features
36
40
 
41
+ - expose http code ([#1227](https://github.com/easyops-cn/next-core/issues/1227)) ([9e22deb](https://github.com/easyops-cn/next-core/commit/9e22deb2dc27b7d907bb782790fa4a59960ccc82))
37
42
 
43
+ ## [2.91.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.1...@next-core/brick-kit@2.91.2) (2021-12-05)
38
44
 
39
- # [2.91.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.2...@next-core/brick-kit@2.91.0) (2021-12-03)
45
+ ### Bug Fixes
40
46
 
47
+ - add icons field ([7415b3f](https://github.com/easyops-cn/next-core/commit/7415b3ffaafe109c3bd555878a1d5ab2cd117183))
41
48
 
42
- ### Features
49
+ ## [2.91.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.0...@next-core/brick-kit@2.91.1) (2021-12-03)
43
50
 
44
- * support isAdmin ([f160156](https://github.com/easyops-cn/next-core/commit/f1601567b59c9f4a27aa130dc3e2e327c84c35db))
51
+ ### Bug Fixes
45
52
 
53
+ - fix page tracker ([dbf1d00](https://github.com/easyops-cn/next-core/commit/dbf1d003cd2e60ad18471e403c5dc9c9690b30fa))
46
54
 
55
+ # [2.91.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.2...@next-core/brick-kit@2.91.0) (2021-12-03)
47
56
 
57
+ ### Features
48
58
 
59
+ - support isAdmin ([f160156](https://github.com/easyops-cn/next-core/commit/f1601567b59c9f4a27aa130dc3e2e327c84c35db))
49
60
 
50
61
  ## [2.90.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.1...@next-core/brick-kit@2.90.2) (2021-12-01)
51
62
 
52
-
53
63
  ### Bug Fixes
54
64
 
55
- * remove flags ([ed7f66b](https://github.com/easyops-cn/next-core/commit/ed7f66b40c5be427171ec5fc8817eee64c499f60))
56
-
57
-
58
-
59
-
65
+ - remove flags ([ed7f66b](https://github.com/easyops-cn/next-core/commit/ed7f66b40c5be427171ec5fc8817eee64c499f60))
60
66
 
61
67
  ## [2.90.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.0...@next-core/brick-kit@2.90.1) (2021-11-29)
62
68
 
63
69
  **Note:** Version bump only for package @next-core/brick-kit
64
70
 
65
-
66
-
67
-
68
-
69
71
  # [2.90.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.2...@next-core/brick-kit@2.90.0) (2021-11-26)
70
72
 
71
-
72
73
  ### Bug Fixes
73
74
 
74
- * fix a regression of caching resolves ([e9cd56d](https://github.com/easyops-cn/next-core/commit/e9cd56d882d0a13ee1cb13c4ed752a15f2c15bfd))
75
-
75
+ - fix a regression of caching resolves ([e9cd56d](https://github.com/easyops-cn/next-core/commit/e9cd56d882d0a13ee1cb13c4ed752a15f2c15bfd))
76
76
 
77
77
  ### Features
78
78
 
79
- * support i18n in storyboard functions ([5891932](https://github.com/easyops-cn/next-core/commit/589193250f22735b20e93d32c807896f4ae0932b))
80
- * support i18n in widgets ([6020545](https://github.com/easyops-cn/next-core/commit/60205457fedbc7c000bb60b1e97729e3151be33d))
81
- * support img in widgets ([f19ad53](https://github.com/easyops-cn/next-core/commit/f19ad5329b95c71e612f4be0ffa57b5a3d9ec570))
82
-
83
-
84
-
85
-
79
+ - support i18n in storyboard functions ([5891932](https://github.com/easyops-cn/next-core/commit/589193250f22735b20e93d32c807896f4ae0932b))
80
+ - support i18n in widgets ([6020545](https://github.com/easyops-cn/next-core/commit/60205457fedbc7c000bb60b1e97729e3151be33d))
81
+ - support img in widgets ([f19ad53](https://github.com/easyops-cn/next-core/commit/f19ad5329b95c71e612f4be0ffa57b5a3d9ec570))
86
82
 
87
83
  ## [2.89.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.1...@next-core/brick-kit@2.89.2) (2021-11-25)
88
84
 
89
-
90
85
  ### Bug Fixes
91
86
 
92
- * get stroyboard v2 ([602d086](https://github.com/easyops-cn/next-core/commit/602d0860fc6c7c9e5ffc116ff023addb0f57efe1))
93
-
94
-
95
-
96
-
87
+ - get stroyboard v2 ([602d086](https://github.com/easyops-cn/next-core/commit/602d0860fc6c7c9e5ffc116ff023addb0f57efe1))
97
88
 
98
89
  ## [2.89.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.0...@next-core/brick-kit@2.89.1) (2021-11-25)
99
90
 
100
-
101
91
  ### Bug Fixes
102
92
 
103
- * bootsrtrap 增加开关控制 ([360b913](https://github.com/easyops-cn/next-core/commit/360b913f324f10ac79b1d637ec598583a89a61da))
104
-
105
-
106
-
107
-
93
+ - bootsrtrap 增加开关控制 ([360b913](https://github.com/easyops-cn/next-core/commit/360b913f324f10ac79b1d637ec598583a89a61da))
108
94
 
109
95
  # [2.89.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.88.1...@next-core/brick-kit@2.89.0) (2021-11-25)
110
96
 
111
-
112
97
  ### Bug Fixes
113
98
 
114
- * refine storyboard function ([90c42c1](https://github.com/easyops-cn/next-core/commit/90c42c1f49a7d7e8297d424bd02a3957787fb8e3))
115
-
99
+ - refine storyboard function ([90c42c1](https://github.com/easyops-cn/next-core/commit/90c42c1f49a7d7e8297d424bd02a3957787fb8e3))
116
100
 
117
101
  ### Features
118
102
 
119
- * use global noCurrentApp as default ([4e18163](https://github.com/easyops-cn/next-core/commit/4e18163eeefa24cb022cb9b936746c9e7ad80e70))
120
-
121
-
122
-
123
-
103
+ - use global noCurrentApp as default ([4e18163](https://github.com/easyops-cn/next-core/commit/4e18163eeefa24cb022cb9b936746c9e7ad80e70))
124
104
 
125
105
  ## [2.88.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.88.0...@next-core/brick-kit@2.88.1) (2021-11-25)
126
106
 
127
-
128
107
  ### Bug Fixes
129
108
 
130
- * app 字段合并 boostrap 接口详情的 app 信息 ([2dffa41](https://github.com/easyops-cn/next-core/commit/2dffa41e020e92994c6275a62977128b0a7a4bad))
131
- * use boostreap v2 api ([e1fbf03](https://github.com/easyops-cn/next-core/commit/e1fbf0366e29b28f823915bda4707368910c013e))
132
-
133
-
134
-
135
-
109
+ - app 字段合并 boostrap 接口详情的 app 信息 ([2dffa41](https://github.com/easyops-cn/next-core/commit/2dffa41e020e92994c6275a62977128b0a7a4bad))
110
+ - use boostreap v2 api ([e1fbf03](https://github.com/easyops-cn/next-core/commit/e1fbf0366e29b28f823915bda4707368910c013e))
136
111
 
137
112
  # [2.88.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.87.0...@next-core/brick-kit@2.88.0) (2021-11-23)
138
113
 
139
-
140
114
  ### Features
141
115
 
142
- * **Router:** set noCurrentApp default value ([8d5efe1](https://github.com/easyops-cn/next-core/commit/8d5efe14230b72ede0a87eeacf8881433b1e4829))
143
-
144
-
145
-
146
-
116
+ - **Router:** set noCurrentApp default value ([8d5efe1](https://github.com/easyops-cn/next-core/commit/8d5efe14230b72ede0a87eeacf8881433b1e4829))
147
117
 
148
118
  # [2.87.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.86.1...@next-core/brick-kit@2.87.0) (2021-11-23)
149
119
 
150
-
151
120
  ### Features
152
121
 
153
- * **locationContext:** add noCurrentApp ([8efc245](https://github.com/easyops-cn/next-core/commit/8efc245513f8e9ebf0aadcabfedd15647333d318))
154
-
155
-
156
-
157
-
122
+ - **locationContext:** add noCurrentApp ([8efc245](https://github.com/easyops-cn/next-core/commit/8efc245513f8e9ebf0aadcabfedd15647333d318))
158
123
 
159
124
  ## [2.86.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.86.0...@next-core/brick-kit@2.86.1) (2021-11-23)
160
125
 
161
126
  **Note:** Version bump only for package @next-core/brick-kit
162
127
 
163
-
164
-
165
-
166
-
167
128
  # [2.86.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.85.0...@next-core/brick-kit@2.86.0) (2021-11-18)
168
129
 
169
-
170
130
  ### Features
171
131
 
172
- * use a single build for standalone apps ([cb5db11](https://github.com/easyops-cn/next-core/commit/cb5db11829952fedfa9cf3898de3e62cfe647a16))
173
-
174
-
175
-
176
-
132
+ - use a single build for standalone apps ([cb5db11](https://github.com/easyops-cn/next-core/commit/cb5db11829952fedfa9cf3898de3e62cfe647a16))
177
133
 
178
134
  # [2.85.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.84.2...@next-core/brick-kit@2.85.0) (2021-11-18)
179
135
 
180
-
181
136
  ### Features
182
137
 
183
- * fetch conf in standalone micro-apps ([6175855](https://github.com/easyops-cn/next-core/commit/61758554f23ca685cd29f01130e46805c7674433))
184
- * support getting images by static files ([c23d88a](https://github.com/easyops-cn/next-core/commit/c23d88aa70f5009453a1d3c58e7f4a0d6249c719))
185
-
186
-
187
-
188
-
138
+ - fetch conf in standalone micro-apps ([6175855](https://github.com/easyops-cn/next-core/commit/61758554f23ca685cd29f01130e46805c7674433))
139
+ - support getting images by static files ([c23d88a](https://github.com/easyops-cn/next-core/commit/c23d88aa70f5009453a1d3c58e7f4a0d6249c719))
189
140
 
190
141
  ## [2.84.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.84.1...@next-core/brick-kit@2.84.2) (2021-11-12)
191
142
 
@@ -1848,6 +1848,10 @@
1848
1848
  globalVariables.MISC = getRuntime().getMiscSettings();
1849
1849
  }
1850
1850
 
1851
+ if (attemptToVisitGlobals.has("BASE_URL")) {
1852
+ globalVariables.BASE_URL = getBasePath().replace(/\/$/, "");
1853
+ }
1854
+
1851
1855
  try {
1852
1856
  var result = brickUtils.cook(precooked.expression, precooked.source, {
1853
1857
  globalVariables: supply(precooked.attemptToVisitGlobals, globalVariables)
@@ -6096,14 +6100,6 @@
6096
6100
 
6097
6101
  _defineProperty__default["default"](this, "loadingBar", void 0);
6098
6102
 
6099
- _defineProperty__default["default"](this, "navBar", void 0);
6100
-
6101
- _defineProperty__default["default"](this, "sideBar", void 0);
6102
-
6103
- _defineProperty__default["default"](this, "footer", void 0);
6104
-
6105
- _defineProperty__default["default"](this, "breadcrumb", void 0);
6106
-
6107
6103
  _defineProperty__default["default"](this, "router", void 0);
6108
6104
 
6109
6105
  _defineProperty__default["default"](this, "currentApp", void 0);
@@ -6120,8 +6116,6 @@
6120
6116
 
6121
6117
  _defineProperty__default["default"](this, "currentLayout", void 0);
6122
6118
 
6123
- _defineProperty__default["default"](this, "enableUiV8", false);
6124
-
6125
6119
  _defineProperty__default["default"](this, "allUserMapPromise", Promise.resolve(new Map()));
6126
6120
 
6127
6121
  _defineProperty__default["default"](this, "allMagicBrickConfigMapPromise", Promise.resolve(new Map()));
@@ -6148,20 +6142,13 @@
6148
6142
  throw new Error("No storyboard were found.");
6149
6143
  }
6150
6144
 
6151
- _this.setUiVersion();
6152
-
6153
6145
  if (isLoggedIn()) {
6154
6146
  _this.loadSharedData();
6155
6147
  }
6156
6148
 
6157
6149
  _this.menuBar = new MenuBar(_this, "menuBar");
6158
6150
  _this.appBar = new AppBar(_this, "appBar");
6159
- _this.loadingBar = new BaseBar(_this, "loadingBar"); // Todo(nlicro): 这里需要新写对应的NavBar...
6160
-
6161
- _this.navBar = new BaseBar(_this, "navBar");
6162
- _this.sideBar = new BaseBar(_this, "sideBar");
6163
- _this.breadcrumb = new BaseBar(_this, "breadcrumb");
6164
- _this.footer = new BaseBar(_this, "footer");
6151
+ _this.loadingBar = new BaseBar(_this, "loadingBar");
6165
6152
  _this.router = new Router(_this);
6166
6153
  initAnalytics();
6167
6154
  yield _this.router.bootstrap();
@@ -6189,13 +6176,7 @@
6189
6176
  loadingBar: "business-website.loading-bar",
6190
6177
  pageNotFound: "business-website.page-not-found",
6191
6178
  pageError: "business-website.page-error"
6192
- } : _objectSpread__default["default"](_objectSpread__default["default"]({}, _this2.enableUiV8 ? {
6193
- loadingBar: _this2.bootstrapData.navbar.loadingBar,
6194
- navBar: "frame-bricks.nav-bar",
6195
- sideBar: "frame-bricks.side-bar",
6196
- breadcrumb: null,
6197
- footer: null
6198
- } : _this2.bootstrapData.navbar), {}, {
6179
+ } : _objectSpread__default["default"](_objectSpread__default["default"]({}, _this2.bootstrapData.navbar), {}, {
6199
6180
  pageNotFound: "basic-bricks.page-not-found",
6200
6181
  pageError: "basic-bricks.page-error"
6201
6182
  });
@@ -6210,7 +6191,7 @@
6210
6191
 
6211
6192
  yield Promise.all([_this2.menuBar.bootstrap(_this2.presetBricks.menuBar, {
6212
6193
  testid: "brick-next-menu-bar"
6213
- }), _this2.appBar.bootstrap(_this2.presetBricks.appBar), _this2.navBar.bootstrap(_this2.presetBricks.navBar), _this2.sideBar.bootstrap(_this2.presetBricks.sideBar), _this2.footer.bootstrap(_this2.presetBricks.footer), _this2.breadcrumb.bootstrap(_this2.presetBricks.breadcrumb), _this2.loadingBar.bootstrap(_this2.presetBricks.loadingBar)]);
6194
+ }), _this2.appBar.bootstrap(_this2.presetBricks.appBar), _this2.loadingBar.bootstrap(_this2.presetBricks.loadingBar)]);
6214
6195
  })();
6215
6196
  }
6216
6197
 
@@ -6762,16 +6743,6 @@
6762
6743
  })();
6763
6744
  }
6764
6745
 
6765
- setUiVersion() {
6766
- // get from localStorage fot test
6767
- // this.enableUiV8 = this.getFeatureFlags()["ui-v8"];
6768
- this.enableUiV8 = !!localStorage.getItem("test-ui-v8");
6769
-
6770
- if (this.enableUiV8) {
6771
- document.documentElement.dataset.ui = "v8";
6772
- }
6773
- }
6774
-
6775
6746
  } // Since `@next-dll/editor-bricks-helper` depends on `@next-dll/react-dnd`,
6776
6747
  // always load react-dnd before loading editor-bricks-helper.
6777
6748
 
@@ -6976,8 +6947,6 @@
6976
6947
 
6977
6948
  /** @internal */
6978
6949
 
6979
- /** @internal */
6980
-
6981
6950
  /**
6982
6951
  * 应用的 Storyboard 配置。
6983
6952
  */
@@ -9444,33 +9413,30 @@
9444
9413
  if (barsHidden || getRuntimeMisc().isInIframeOfLegacyConsole) {
9445
9414
  _this3.kernel.toggleBars(false);
9446
9415
  } else if (_this3.kernel.currentLayout === "console") {
9447
- /* istanbul ignore next */
9448
- if (!_this3.kernel.enableUiV8) {
9449
- var _menuBar$menu, _menuBar$menu2;
9450
-
9451
- yield constructMenu(menuBar, _this3.locationContext.getCurrentContext(), _this3.kernel);
9416
+ var _menuBar$menu, _menuBar$menu2;
9452
9417
 
9453
- if (shouldBeDefaultCollapsed((_menuBar$menu = menuBar.menu) === null || _menuBar$menu === void 0 ? void 0 : _menuBar$menu.defaultCollapsed, (_menuBar$menu2 = menuBar.menu) === null || _menuBar$menu2 === void 0 ? void 0 : _menuBar$menu2.defaultCollapsedBreakpoint)) {
9454
- _this3.kernel.menuBar.collapse(true);
9418
+ yield constructMenu(menuBar, _this3.locationContext.getCurrentContext(), _this3.kernel);
9455
9419
 
9456
- _this3.defaultCollapsed = true;
9457
- } else {
9458
- if (_this3.defaultCollapsed) {
9459
- _this3.kernel.menuBar.collapse(false);
9460
- }
9420
+ if (shouldBeDefaultCollapsed((_menuBar$menu = menuBar.menu) === null || _menuBar$menu === void 0 ? void 0 : _menuBar$menu.defaultCollapsed, (_menuBar$menu2 = menuBar.menu) === null || _menuBar$menu2 === void 0 ? void 0 : _menuBar$menu2.defaultCollapsedBreakpoint)) {
9421
+ _this3.kernel.menuBar.collapse(true);
9461
9422
 
9462
- _this3.defaultCollapsed = false;
9423
+ _this3.defaultCollapsed = true;
9424
+ } else {
9425
+ if (_this3.defaultCollapsed) {
9426
+ _this3.kernel.menuBar.collapse(false);
9463
9427
  }
9464
9428
 
9465
- if (actualLegacy === "iframe") {
9466
- // Do not modify breadcrumb in iframe mode,
9467
- // it will be *popped* from iframe automatically.
9468
- delete appBar.breadcrumb;
9469
- }
9429
+ _this3.defaultCollapsed = false;
9430
+ }
9470
9431
 
9471
- mountStaticNode(_this3.kernel.menuBar.element, menuBar);
9472
- mountStaticNode(_this3.kernel.appBar.element, appBar);
9432
+ if (actualLegacy === "iframe") {
9433
+ // Do not modify breadcrumb in iframe mode,
9434
+ // it will be *popped* from iframe automatically.
9435
+ delete appBar.breadcrumb;
9473
9436
  }
9437
+
9438
+ mountStaticNode(_this3.kernel.menuBar.element, menuBar);
9439
+ mountStaticNode(_this3.kernel.appBar.element, appBar);
9474
9440
  }
9475
9441
 
9476
9442
  _this3.kernel.toggleLegacyIframe(actualLegacy === "iframe");
@@ -10164,7 +10130,7 @@
10164
10130
  return /*#__PURE__*/React__default["default"].createElement(SingleBrickAsComponent, {
10165
10131
  key: index,
10166
10132
  useBrick: item,
10167
- data: brick.properties
10133
+ data: data
10168
10134
  });
10169
10135
  }));
10170
10136
  } else {
@@ -10384,7 +10350,7 @@
10384
10350
  return /*#__PURE__*/React__default["default"].createElement(SingleBrickAsComponent, {
10385
10351
  key: index,
10386
10352
  useBrick: item,
10387
- data: brick.properties
10353
+ data: data
10388
10354
  });
10389
10355
  }));
10390
10356
  } else {
@@ -10796,24 +10762,31 @@
10796
10762
  };
10797
10763
  var defaultLocale = localeValues;
10798
10764
 
10799
- var emptyImage = "../EasyopsEmpty/empty-image.397ff6359f4066d8.png";
10765
+ var emptyImage = "empty-image.397ff6359f4066d8.png";
10800
10766
 
10801
10767
  /**
10802
10768
  * 用于展示空数据的 React 组件。
10803
10769
  */
10804
10770
  function EasyopsEmpty(props) {
10805
10771
  var illustration = React.useMemo(() => props.illustration && illustrations.getIllustration(props.illustration), [props.illustration]);
10806
- var image = props.illustration ? illustration : emptyImage;
10772
+ var image = props.illustration ? illustration : getImageUrl(emptyImage);
10807
10773
  return /*#__PURE__*/React__default["default"].createElement(antd.Empty, {
10808
10774
  image: image,
10809
10775
  imageStyle: props.imageStyle,
10810
10776
  description: props.description
10811
10777
  });
10812
10778
  }
10779
+
10780
+ function getImageUrl(url) {
10781
+ var _window$CORE_ROOT;
10782
+
10783
+ return "".concat((_window$CORE_ROOT = window.CORE_ROOT) !== null && _window$CORE_ROOT !== void 0 ? _window$CORE_ROOT : "", "assets/").concat(url);
10784
+ }
10813
10785
  /**
10814
10786
  * 调用后获得一个默认的展示空数据的 React 组件。
10815
10787
  */
10816
10788
 
10789
+
10817
10790
  function renderEasyopsEmpty() {
10818
10791
  return /*#__PURE__*/React__default["default"].createElement(EasyopsEmpty, null);
10819
10792
  }