Browse Source

Merge pull request #24155 from abpframework/auto-merge/rel-10-0/4123

Merge branch dev with rel-10.0
pull/24169/head
Ma Liming 11 months ago
committed by GitHub
parent
commit
6752845b3f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 26
      npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts

26
npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts

@ -1,17 +1,17 @@
/* eslint-disable @angular-eslint/no-output-native */ /* eslint-disable @angular-eslint/no-output-native */
import { import {
Component, Component,
ElementRef, ElementRef,
EventEmitter, EventEmitter,
Input, Input,
OnInit, OnInit,
Output, Output,
Renderer2, Renderer2,
ViewChild, ViewChild,
inject inject,
} from '@angular/core'; } from '@angular/core';
import { NgClass } from '@angular/common'; import { CommonModule } from '@angular/common';
import { ABP } from '@abp/ng.core'; import { ABP, StopPropagationDirective } from '@abp/ng.core';
@Component({ @Component({
selector: 'abp-button', selector: 'abp-button',
@ -30,7 +30,7 @@ import { ABP } from '@abp/ng.core';
<i [ngClass]="icon" class="me-1" aria-hidden="true"></i><ng-content></ng-content> <i [ngClass]="icon" class="me-1" aria-hidden="true"></i><ng-content></ng-content>
</button> </button>
`, `,
imports: [NgClass], imports: [CommonModule, StopPropagationDirective],
}) })
export class ButtonComponent implements OnInit { export class ButtonComponent implements OnInit {
private renderer = inject(Renderer2); private renderer = inject(Renderer2);

Loading…
Cancel
Save