feat(uploader): new picture uploader component

This commit is contained in:
nixa 2016-07-01 11:25:01 +03:00
parent 9af0e22650
commit d730430884
8 changed files with 240 additions and 1 deletions

View file

@ -7,16 +7,25 @@ import {BlockForm} from './components/blockForm';
import {HorizontalForm} from './components/horizontalForm';
import {BasicForm} from './components/basicForm';
import {WithoutLabelsForm} from './components/withoutLabelsForm';
import {BaPictureUploader} from '../../../../theme/components';
@Component({
selector: 'layouts',
encapsulation: ViewEncapsulation.None,
directives: [BaCard, InlineForm, BlockForm, HorizontalForm, BasicForm, WithoutLabelsForm],
directives: [BaCard, InlineForm, BlockForm, HorizontalForm, BasicForm, WithoutLabelsForm, BaPictureUploader],
styles: [],
template: require('./layouts.html'),
})
export class Layouts {
public defaultPicture = 'assets/img/theme/no-photo.png';
public profile:any = {
picture: 'assets/img/app/profile/Nasta.png'
};
public uploaderOptions:any = {
// url: 'http://website.com/upload'
};
constructor() {
}