|
|
|
@ -19,9 +19,9 @@ import { ABP } from '@abp/ng.core';
|
|
|
|
|
[attr.type]="buttonType"
|
|
|
|
|
[ngClass]="buttonClass"
|
|
|
|
|
[disabled]="loading || disabled"
|
|
|
|
|
(click.stop)="abpClick.next($event)"
|
|
|
|
|
(focus)="abpFocus.next($event)"
|
|
|
|
|
(blur)="abpBlur.next($event)"
|
|
|
|
|
(click.stop)="click.next($event); abpClick.next($event)"
|
|
|
|
|
(focus)="focus.next($event); abpFocus.next($event)"
|
|
|
|
|
(blur)="blur.next($event); abpBlur.next($event)"
|
|
|
|
|
>
|
|
|
|
|
<i [ngClass]="icon" class="mr-1"></i><ng-content></ng-content>
|
|
|
|
|
</button>
|
|
|
|
@ -49,6 +49,14 @@ export class ButtonComponent implements OnInit {
|
|
|
|
|
@Input()
|
|
|
|
|
attributes: ABP.Dictionary<string>;
|
|
|
|
|
|
|
|
|
|
// tslint:disable
|
|
|
|
|
@Output() readonly click = new EventEmitter<MouseEvent>();
|
|
|
|
|
|
|
|
|
|
@Output() readonly focus = new EventEmitter<FocusEvent>();
|
|
|
|
|
|
|
|
|
|
@Output() readonly blur = new EventEmitter<FocusEvent>();
|
|
|
|
|
// tslint:enable
|
|
|
|
|
|
|
|
|
|
@Output() readonly abpClick = new EventEmitter<MouseEvent>();
|
|
|
|
|
|
|
|
|
|
@Output() readonly abpFocus = new EventEmitter<FocusEvent>();
|
|
|
|
|