Skip to content

Commit

Permalink
fix(module:popconfirm): update type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ng-nest-moon committed May 31, 2021
1 parent 6f03086 commit 8a3da4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/ng-nest/ui/popconfirm/popconfirm.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
[placement]="placement"
[trigger]="trigger"
[width]="width"
[visible]="visible"
(visibleChange)="visible = $event"
[(visible)]="visible"
>
<ng-content></ng-content>
</div>
Expand Down
4 changes: 2 additions & 2 deletions lib/ng-nest/ui/popconfirm/popconfirm.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Renderer2, ElementRef, ChangeDetectorRef, Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
import { XPopconfirmProperty, XPopconfirmPrefix } from './popconfirm.property';
import { XConfigService } from '@ng-nest/ui/core';
import { XBoolean, XConfigService } from '@ng-nest/ui/core';
import { Subject } from 'rxjs';
import { XI18nService, XI18nPopconfirm } from '@ng-nest/ui/i18n';
import { map, takeUntil } from 'rxjs/operators';
Expand All @@ -13,7 +13,7 @@ import { map, takeUntil } from 'rxjs/operators';
changeDetection: ChangeDetectionStrategy.OnPush
})
export class XPopconfirmComponent extends XPopconfirmProperty {
visible!: boolean;
visible!: XBoolean;
locale: XI18nPopconfirm = {};

private _unSubject = new Subject<void>();
Expand Down
4 changes: 2 additions & 2 deletions lib/ng-nest/ui/popconfirm/popconfirm.property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export class XPopconfirmProperty extends XProperty {
* @zh_CN 标题,支持自定义模板
* @en_US Title, support custom template
*/
@Input() title?: XTemplate;
@Input() title!: XTemplate;
/**
* @zh_CN 内容,支持自定义模板
* @en_US Content, support custom templates
*/
@Input() content?: XTemplate;
@Input() content!: XTemplate;
/**
* @zh_CN 弹出的位置
* @en_US Pop-up position
Expand Down

0 comments on commit 8a3da4c

Please sign in to comment.