Skip to content

Commit

Permalink
fix(template): update justify-content: end; to flex-end
Browse files Browse the repository at this point in the history
  • Loading branch information
why520crazy committed Sep 28, 2022
1 parent 2412574 commit 7d0cee7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ export class ContentViewerComponent extends ContentRenderer implements OnInit, O
element.childNodes as any
]);
const examplePortal = new ComponentPortal(componentClass, this.viewContainerRef);
const exampleViewerRef = portalHost.attach(examplePortal, replace);
const exampleViewerRef = portalHost.attach<any>(examplePortal, replace);
// 循环设置属性
for (const attributeKey in element.attributes) {
if (Object.prototype.hasOwnProperty.call(element.attributes, attributeKey)) {
const attribute = element.attributes[attributeKey];
// eslint-disable-next-line dot-notation
const setAttributeFn: (qualifiedName: string, value: string) => void = exampleViewerRef.instance['setAttribute'];
if (setAttributeFn) {
setAttributeFn.call(exampleViewerRef.instance, attribute.nodeName, element.getAttribute(attribute.nodeName));
setAttributeFn.call(exampleViewerRef.instance, attribute.nodeName, element.getAttribute(attribute.nodeName) || '');
} else {
exampleViewerRef.instance[attribute.nodeName] = element.getAttribute(attribute.nodeName);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/template/src/styles/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
display: flex;
align-items: center;
flex: auto;
justify-content: end;
justify-content: flex-end;

.search-container {
flex: auto;
Expand Down

0 comments on commit 7d0cee7

Please sign in to comment.