Skip to content

Commit 726ded3

Browse files
authored
fix(module:cron-expression): clear ul & li default style (#7715)
1 parent 3a638af commit 726ded3

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

components/cron-expression/cron-expression.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ import { CronChangeType, CronType, NzCronExpressionSize, TimeType } from './typi
7676
<nz-collapse-panel [nzHeader]="nextDate">
7777
<ng-container *ngIf="validateForm.valid">
7878
<ul class="ant-cron-expression-preview-date">
79-
<li style="margin: 0" *ngFor="let dateItem of nextTimeList">
79+
<li *ngFor="let dateItem of nextTimeList">
8080
{{ dateItem | date: 'YYYY-MM-dd HH:mm:ss' }}
8181
</li>
8282
<li><a (click)="loadMorePreview()">···</a></li>

components/cron-expression/cron-expression.module.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
44
*/
55

6-
import { ScrollingModule } from '@angular/cdk/scrolling';
76
import { CommonModule } from '@angular/common';
87
import { NgModule } from '@angular/core';
98
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
@@ -28,8 +27,7 @@ import { NzCronExpressionComponent } from './cron-expression.component';
2827
NzFormModule,
2928
NzInputModule,
3029
NzIconModule,
31-
FormsModule,
32-
ScrollingModule
30+
FormsModule
3331
],
3432
exports: [NzCronExpressionComponent]
3533
})

components/cron-expression/style/index.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@
9393
&-preview-date {
9494
overflow-y: scroll;
9595
height: 132px;
96+
margin: 0;
97+
padding: 0;
98+
li {
99+
list-style: none;
100+
margin: 0;
101+
padding: 0;
102+
}
96103
}
97104

98105
&-error {

0 commit comments

Comments
 (0)