ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
49 lines (45 loc) • 951 B
Markdown
order: 0
title: 演示
browser: 400
基本页脚。
```ts
import { Component } from '@angular/core';
import { GlobalFooterLink } from '@ohayo/components/global-footer';
@Component({
selector: 'components-global-footer-basic',
template: `
<div style="height: 280px;"></div>
<global-footer [links]="links">
Copyright<i nz-icon nzType="copyright" class="mx-sm"></i>2019<a href="//github.com/cipchk" target="_blank" class="mx-sm">卡色</a>出品
</global-footer>
`,
styles: [
`
:host {
display: block;
}
`,
],
})
export class DemoComponent {
links: GlobalFooterLink[] = [
{
title: '帮助',
href: 'https://ohayojp.com/',
blankTarget: true,
},
{
title: 'Github',
href: 'https://github.com/ohayojp',
blankTarget: true,
},
{
title: '预览',
href: 'https://ohayojp.surge.sh/',
blankTarget: true,
},
];
}
```