|
@@ -2,7 +2,7 @@ import { LayoutType } from './LayoutType';
|
2
|
2
|
import { LayoutNode } from './LayoutTreeCrawler';
|
3
|
3
|
import {
|
4
|
4
|
Layout,
|
5
|
|
- TopTabs,
|
|
5
|
+ LayoutTopTabs,
|
6
|
6
|
LayoutComponent,
|
7
|
7
|
LayoutStack,
|
8
|
8
|
LayoutBottomTabs,
|
|
@@ -36,7 +36,7 @@ export class LayoutTreeParser {
|
36
|
36
|
throw new Error(`unknown LayoutType "${Object.keys(api)}"`);
|
37
|
37
|
}
|
38
|
38
|
|
39
|
|
- private topTabs(api: TopTabs): LayoutNode {
|
|
39
|
+ private topTabs(api: LayoutTopTabs): LayoutNode {
|
40
|
40
|
return {
|
41
|
41
|
id: api.id || this.uniqueIdProvider.generate(LayoutType.TopTabs),
|
42
|
42
|
type: LayoutType.TopTabs,
|
|
@@ -103,7 +103,11 @@ export class LayoutTreeParser {
|
103
|
103
|
return {
|
104
|
104
|
id: api.id || this.uniqueIdProvider.generate(LayoutType.Component),
|
105
|
105
|
type: LayoutType.Component,
|
106
|
|
- data: { name: api.name.toString(), options: api.options, passProps: api.passProps },
|
|
106
|
+ data: {
|
|
107
|
+ name: api.name.toString(),
|
|
108
|
+ options: api.options,
|
|
109
|
+ passProps: api.passProps
|
|
110
|
+ },
|
107
|
111
|
children: []
|
108
|
112
|
};
|
109
|
113
|
}
|
|
@@ -112,7 +116,11 @@ export class LayoutTreeParser {
|
112
|
116
|
return {
|
113
|
117
|
id: api.id || this.uniqueIdProvider.generate(LayoutType.ExternalComponent),
|
114
|
118
|
type: LayoutType.ExternalComponent,
|
115
|
|
- data: { name: api.name.toString(), options: api.options, passProps: api.passProps },
|
|
119
|
+ data: {
|
|
120
|
+ name: api.name.toString(),
|
|
121
|
+ options: api.options,
|
|
122
|
+ passProps: api.passProps
|
|
123
|
+ },
|
116
|
124
|
children: []
|
117
|
125
|
};
|
118
|
126
|
}
|