@cloud-app-dev/vidc 2.0.0-alpha.5 → 2.0.0-alpha.6

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.
@@ -112,12 +112,12 @@ function LoaderApp(_ref) {
112
112
  }, [appProps.currentId, appProps.tabId, appProps.updateTime]);
113
113
  return /*#__PURE__*/React.createElement("main", {
114
114
  ref: domRef,
115
- className: "loaded-app-layout ".concat(appConfig.name, "-").concat(id),
115
+ className: "loaded-app-layout ".concat(appConfig.routerPrefix, "-").concat(id),
116
116
  style: style
117
117
  }, /*#__PURE__*/React.createElement("style", {
118
118
  ref: styleRef
119
119
  }), /*#__PURE__*/React.createElement("div", {
120
- id: appConfig.name,
120
+ id: appConfig.routerPrefix,
121
121
  style: {
122
122
  width: '100%',
123
123
  height: '100%'
@@ -2,20 +2,15 @@ export var getMicroConfig = function getMicroConfig() {
2
2
  var appConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3
3
  var appProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4
4
  var container = arguments.length > 2 ? arguments[2] : undefined;
5
- var name = appConfig.name,
5
+ var routerPrefix = appConfig.routerPrefix,
6
6
  resource = appConfig.resource;
7
-
8
- if (!name) {
9
- return null;
10
- }
11
-
12
7
  var microAppEntry = {
13
8
  scripts: [resource[0]],
14
9
  styles: [resource[1]],
15
- html: "<div id=\"".concat(name, "\" style=\"height:100%\"></div>")
10
+ html: "<div id=\"".concat(routerPrefix, "\" style=\"height:100%\"></div>")
16
11
  };
17
12
  return {
18
- name: name,
13
+ name: routerPrefix,
19
14
  container: container,
20
15
  props: appProps,
21
16
  entry: microAppEntry
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "2.0.0-alpha.5",
5
+ "version": "2.0.0-alpha.6",
6
6
  "scripts": {
7
7
  "start": "dumi dev",
8
8
  "docs:build": "dumi build",