import { Component } from '@angular/core';
import { G2CardModule } from '@yelon/chart/card';
import { TrendModule } from '@yelon/chart/trend';
import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
@Component({
  selector: 'chart-card-style1',
  template: `
    <g2-card
      [title]="'销售额'"
      [bordered]="true"
      [total]="'¥ 126,560.00'"
      footer="日访问量 12,423"
      contentHeight="46"
      [action]="action"
    >
      <ng-template #action>
        <nz-icon nz-tooltip nzTooltipTitle="指标说明" nzType="info-circle" />
      </ng-template>
      周同比
      <trend flag="up" style="margin: 0 16px 0 8px; color: rgba(0,0,0,.85)">12%</trend>
      日环比
      <trend flag="down" style="margin: 0 0 0 8px; color: rgba(0,0,0,.85)">11%</trend>
    </g2-card>
  `,
  imports: [G2CardModule, NzTooltipModule, TrendModule]
})
export class ChartCardStyle1Component {}