BaPanel to BaCard rename.

This commit is contained in:
smartapant 2016-05-02 15:46:27 +03:00
parent 4001b2fdf5
commit d7b7f14eea
9 changed files with 20 additions and 20 deletions

View file

@ -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')

View file

@ -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>

View 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;
}

View file

@ -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>

View file

@ -0,0 +1 @@
export * from './baCard.component';

View file

@ -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;
}

View file

@ -1 +0,0 @@
export * from './baPanel.component';

View file

@ -1,4 +1,4 @@
export * from './pageTop';
export * from './msgCenter';
export * from './sidebar';
export * from './baPanel';
export * from './baCard';