diff --git a/src/app/pages/login/login-form/login-form.component.ts b/src/app/pages/login/login-form/login-form.component.ts index 194b7a8e..3b6916c0 100644 --- a/src/app/pages/login/login-form/login-form.component.ts +++ b/src/app/pages/login/login-form/login-form.component.ts @@ -86,6 +86,7 @@ export class LoginFormComponent implements OnInit { 源码地址:在这里 `, { + nzPlacement: 'top', nzDuration: 0 } ); diff --git a/src/app/pages/page-demo/task/task-list-panel/task-list-panel.component.html b/src/app/pages/page-demo/task/task-list-panel/task-list-panel.component.html index f940377c..b3c969a3 100644 --- a/src/app/pages/page-demo/task/task-list-panel/task-list-panel.component.html +++ b/src/app/pages/page-demo/task/task-list-panel/task-list-panel.component.html @@ -1,7 +1,7 @@ - A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world. + 我还在紧张开发中。。。嘻嘻 diff --git a/src/app/shared/biz-components/icon-sel/icon-sel.component.html b/src/app/shared/biz-components/icon-sel/icon-sel.component.html index 17455b6b..ee47b4fb 100644 --- a/src/app/shared/biz-components/icon-sel/icon-sel.component.html +++ b/src/app/shared/biz-components/icon-sel/icon-sel.component.html @@ -6,7 +6,7 @@ nzTheme="outline" [nzPopoverContent]="contentTemplate" [nzPopoverTitle]="searchTitle" - [nzType]="seletedIcon || 'appstore'" + [nzType]="selectedIcon || 'appstore'" [(nzPopoverVisible)]="visible" > diff --git a/src/app/shared/biz-components/icon-sel/icon-sel.component.ts b/src/app/shared/biz-components/icon-sel/icon-sel.component.ts index 8b8ff8e9..68eef319 100644 --- a/src/app/shared/biz-components/icon-sel/icon-sel.component.ts +++ b/src/app/shared/biz-components/icon-sel/icon-sel.component.ts @@ -30,7 +30,7 @@ export class IconSelComponent implements OnInit, AfterViewInit { @Input({ transform: booleanAttribute }) visible = false; // 做图标搜索防抖 private searchText$ = new Subject(); - seletedIcon = ''; + selectedIcon = ''; @Output() readonly selIcon = new EventEmitter(); // 分页信息 pageObj = { @@ -58,11 +58,10 @@ export class IconSelComponent implements OnInit, AfterViewInit { } selIconFn(item: IconItem): void { - this.seletedIcon = item.icon; - this.sourceIconsArray.forEach(icon => (icon.isChecked = false)); - this.iconsStrShowArray.forEach(icon => (icon.isChecked = false)); - this.iconsStrAllArray.forEach(icon => (icon.isChecked = false)); - + this.selectedIcon = item.icon; + [this.sourceIconsArray, this.iconsStrShowArray, this.iconsStrAllArray].forEach(item => { + item.forEach(icon => (icon.isChecked = false)); + }); item.isChecked = true; this.selIcon.emit(item.icon); } diff --git a/src/app/shared/biz-components/password-strength-meter/psm-progress-bar.directive.ts b/src/app/shared/biz-components/password-strength-meter/psm-progress-bar.directive.ts index 9628dff6..111346f9 100644 --- a/src/app/shared/biz-components/password-strength-meter/psm-progress-bar.directive.ts +++ b/src/app/shared/biz-components/password-strength-meter/psm-progress-bar.directive.ts @@ -31,7 +31,7 @@ export class PSMProgressBarDirective implements OnChanges { this.progressBar = this.el.nativeElement; } - ngOnChanges(changes: SimpleChanges) { + ngOnChanges(changes: SimpleChanges): void { if (changes['numberOfProgressBarItems']) { this.setProgressBarItems(); } @@ -39,7 +39,7 @@ export class PSMProgressBarDirective implements OnChanges { this.setProgressBar(); } - setProgressBarItems() { + setProgressBarItems(): void { const progressBarItemContainer = this.progressBar.querySelector('.psm__progress-bar-items'); const width = 100 / this.numberOfProgressBarItems!; @@ -57,7 +57,7 @@ export class PSMProgressBarDirective implements OnChanges { }); } - setProgressBar() { + setProgressBar(): void { const progressBarOverlayWidth = this.getFillMeterWidth(this.passwordStrength as number); const progressBarOverlayWidthInPx = `${progressBarOverlayWidth}%`; @@ -87,7 +87,7 @@ export class PSMProgressBarDirective implements OnChanges { return roundedStrengthInPercentage; } - getMeterFillColor(progressLevel: number) { + getMeterFillColor(progressLevel: number): string { if (!progressLevel || progressLevel <= 0 || (progressLevel > this.colors.length && progressLevel > this.defaultColors.length)) { return this.colors[0] ? this.colors[0] : this.defaultColors[0]; }
A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.
我还在紧张开发中。。。嘻嘻