mirror of https://github.com/abpframework/abp.git
14 changed files with 57 additions and 70 deletions
@ -1,16 +1,13 @@ |
|||
import { Component, Input } from '@angular/core'; |
|||
import { Component, HostBinding, Input } from '@angular/core'; |
|||
|
|||
@Component({ |
|||
selector: 'abp-card-body', |
|||
template: ` |
|||
<div [ngClass]="cardBodyClass" [ngStyle]="cardBodyStyle" > |
|||
<ng-content></ng-content> |
|||
</div>`,
|
|||
host: { |
|||
class: 'card-body', |
|||
} |
|||
template: ` <div [ngClass]="cardBodyClass" [ngStyle]="cardBodyStyle">
|
|||
<ng-content></ng-content> |
|||
</div>`,
|
|||
}) |
|||
export class CardBodyComponent { |
|||
@HostBinding('class') class = 'card-body'; |
|||
@Input() cardBodyClass: string; |
|||
@Input() cardBodyStyle: string; |
|||
} |
|||
|
|||
@ -1,19 +1,16 @@ |
|||
import { Component, Input } from '@angular/core'; |
|||
import { Component, HostBinding, Input } from '@angular/core'; |
|||
|
|||
@Component({ |
|||
selector: 'abp-card-footer', |
|||
template: ` |
|||
<div [ngStyle]="cardFooterStyle" [ngClass]="cardFooterClass" > |
|||
<ng-content ></ng-content> |
|||
<div [ngStyle]="cardFooterStyle" [ngClass]="cardFooterClass"> |
|||
<ng-content></ng-content> |
|||
</div> |
|||
`,
|
|||
styles: [], |
|||
host: { |
|||
class: 'card-footer', |
|||
} |
|||
}) |
|||
export class CardFooterComponent { |
|||
@HostBinding('class') class = 'card-footer'; |
|||
@Input() cardFooterStyle: string; |
|||
@Input() cardFooterClass: string; |
|||
|
|||
} |
|||
|
|||
@ -1,18 +1,16 @@ |
|||
import { Component, Input } from '@angular/core'; |
|||
import { Component, HostBinding, Input } from '@angular/core'; |
|||
|
|||
@Component({ |
|||
selector: 'abp-card-header', |
|||
template: ` |
|||
<div [ngClass]="cardHeaderClass" [ngStyle]="cardHeaderStyle"> |
|||
<ng-content ></ng-content> |
|||
<ng-content></ng-content> |
|||
</div> |
|||
`,
|
|||
styles: [], |
|||
host: { |
|||
class: 'card-header', |
|||
} |
|||
}) |
|||
export class CardHeaderComponent { |
|||
@HostBinding('class') class = 'card-header'; |
|||
@Input() cardHeaderClass: string; |
|||
@Input() cardHeaderStyle: string; |
|||
} |
|||
|
|||
@ -1,9 +1,8 @@ |
|||
import { Directive } from "@angular/core"; |
|||
import { Directive, HostBinding } from '@angular/core'; |
|||
|
|||
@Directive({ |
|||
selector: `abp-card-header, [abp-card-header], [abpCardHeader]`, |
|||
host: { |
|||
class: 'card-header', |
|||
}, |
|||
}) |
|||
export class CardHeader {} |
|||
export class CardHeaderDirective { |
|||
@HostBinding('class') class = 'card-header'; |
|||
} |
|||
|
|||
@ -1,9 +1,8 @@ |
|||
import { Directive } from "@angular/core"; |
|||
import { Directive, HostBinding } from '@angular/core'; |
|||
|
|||
@Directive({ |
|||
selector: `abp-card-img-top, [abp-card-img-top], [abpCardImgTop]`, |
|||
host: { |
|||
class: 'card-img-top', |
|||
}, |
|||
}) |
|||
export class CardImgTop {} |
|||
export class CardImgTopDirective { |
|||
@HostBinding('class') class = 'card-img-top'; |
|||
} |
|||
|
|||
@ -1,9 +1,8 @@ |
|||
import { Directive } from "@angular/core"; |
|||
import { Directive, HostBinding } from '@angular/core'; |
|||
|
|||
@Directive({ |
|||
selector: `abp-card-subtitle, [abp-card-subtitle], [abpCardSubtitle]`, |
|||
host: { |
|||
class: 'card-subtitle', |
|||
}, |
|||
}) |
|||
export class CardSubtitle {} |
|||
export class CardSubtitleDirective { |
|||
@HostBinding('class') class = 'card-subtitle'; |
|||
} |
|||
|
|||
@ -1,9 +1,8 @@ |
|||
import { Directive } from "@angular/core"; |
|||
import { Directive, HostBinding } from '@angular/core'; |
|||
|
|||
@Directive({ |
|||
selector: `abp-card-title, [abp-card-title], [abpCardTitle]`, |
|||
host: { |
|||
class: 'card-title', |
|||
}, |
|||
}) |
|||
export class CardTitle {} |
|||
export class CardTitleDirective { |
|||
@HostBinding('class') class = 'card-title'; |
|||
} |
|||
|
|||
Loading…
Reference in new issue