mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-11 03:58:50 +01:00
BaPanel to BaCard rename.
This commit is contained in:
parent
4001b2fdf5
commit
d7b7f14eea
9 changed files with 20 additions and 20 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||
|
||||
import {PopularApp} from './popularApp';
|
||||
import {BaPanel} from '../../theme';
|
||||
import {BaCard} from '../../theme';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'dashboard',
|
||||
pipes: [],
|
||||
directives: [PopularApp, BaPanel],
|
||||
directives: [PopularApp, BaCard],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
styles: [require('./dashboard.scss')],
|
||||
template: require('./dashboard.html')
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<div class="row">
|
||||
<div class="col-xlg-9 col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="row">
|
||||
<ba-panel class="col-xlg-4 col-lg-12 col-md-12 col-sm-5 col-xs-12"
|
||||
baPanelClass="popular-app medium-panel">
|
||||
<ba-card class="col-xlg-4 col-lg-12 col-md-12 col-sm-5 col-xs-12"
|
||||
baCardClass="popular-app medium-card">
|
||||
<popular-app></popular-app>
|
||||
</ba-panel>
|
||||
</ba-card>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
12
src/app/theme/baCard/baCard.component.ts
Normal file
12
src/app/theme/baCard/baCard.component.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import {Component, ViewEncapsulation, Input} from 'angular2/core';
|
||||
|
||||
@Component({
|
||||
selector: 'ba-card',
|
||||
styles: [require('./baCard.scss')],
|
||||
template: require('./baCard.html'),
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class BaCard {
|
||||
@Input() title:String;
|
||||
@Input() baCardClass:String;
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<div class="card {{panelType}} {{baPanelClass || ''}}" zoom-in ba-panel-blur>
|
||||
<div class="card {{cardType}} {{baCardClass || ''}}" zoom-in ba-panel-blur>
|
||||
<div *ngIf="title" class="card-header clearfix">
|
||||
<h3 class="card-title">{{title}}</h3>
|
||||
</div>
|
||||
1
src/app/theme/baCard/index.ts
Normal file
1
src/app/theme/baCard/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from './baCard.component';
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
import {Component, ViewEncapsulation, Input} from 'angular2/core';
|
||||
|
||||
@Component({
|
||||
selector: 'ba-panel',
|
||||
styles: [require('./baPanel.scss')],
|
||||
template: require('./baPanel.html'),
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class BaPanel {
|
||||
@Input() title:String;
|
||||
@Input() baPanelClass:String;
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
export * from './baPanel.component';
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
export * from './pageTop';
|
||||
export * from './msgCenter';
|
||||
export * from './sidebar';
|
||||
export * from './baPanel';
|
||||
export * from './baCard';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue