simple-boot-front 1.0.106 → 1.0.107
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/SimpleBootFront.js +6 -5
- package/package.json +1 -1
package/SimpleBootFront.js
CHANGED
@@ -162,7 +162,7 @@ var SimpleBootFront = (function (_super) {
|
|
162
162
|
SimpleBootFront.prototype.getComponentInnerHtml = function (targetObj, id) {
|
163
163
|
var _a, _b;
|
164
164
|
var component = (0, Component_1.getComponent)(targetObj);
|
165
|
-
var styles = RawSet_1.RawSet.
|
165
|
+
var styles = RawSet_1.RawSet.generateStyleTransform((_a = component === null || component === void 0 ? void 0 : component.styles) !== null && _a !== void 0 ? _a : [], id);
|
166
166
|
var template = ((_b = component === null || component === void 0 ? void 0 : component.template) !== null && _b !== void 0 ? _b : '');
|
167
167
|
return styles + template;
|
168
168
|
};
|
@@ -203,13 +203,14 @@ var SimpleBootFront = (function (_super) {
|
|
203
203
|
}
|
204
204
|
};
|
205
205
|
SimpleBootFront.prototype.writeRootRouter = function () {
|
206
|
-
var _a, _b, _c;
|
207
206
|
var routerAtomic = new SimAtomic_1.SimAtomic(this.rootRouter, this.getSimstanceManager());
|
208
207
|
var target = this.option.window.document.querySelector(this.option.selector);
|
209
208
|
if (target && routerAtomic.value) {
|
210
|
-
var
|
211
|
-
var
|
212
|
-
target.
|
209
|
+
var id = 'root-router';
|
210
|
+
var startEndPoint = RawSet_1.RawSet.createStartEndPoint(id, RawSet_1.RawSetType.TARGET_ELEMENT, this.domRenderConfig);
|
211
|
+
target.appendChild(startEndPoint.start);
|
212
|
+
target.insertAdjacentHTML('beforeend', this.getComponentInnerHtml(this.rootRouter, id));
|
213
|
+
target.appendChild(startEndPoint.end);
|
213
214
|
}
|
214
215
|
return routerAtomic;
|
215
216
|
};
|