Skip to content

Commit

Permalink
fix(module:cron-expression): clear ul & li default style (#7715)
Browse files Browse the repository at this point in the history
  • Loading branch information
OriginRing authored Nov 15, 2022
1 parent 3a638af commit 726ded3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/cron-expression/cron-expression.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import { CronChangeType, CronType, NzCronExpressionSize, TimeType } from './typi
<nz-collapse-panel [nzHeader]="nextDate">
<ng-container *ngIf="validateForm.valid">
<ul class="ant-cron-expression-preview-date">
<li style="margin: 0" *ngFor="let dateItem of nextTimeList">
<li *ngFor="let dateItem of nextTimeList">
{{ dateItem | date: 'YYYY-MM-dd HH:mm:ss' }}
</li>
<li><a (click)="loadMorePreview()">···</a></li>
Expand Down
4 changes: 1 addition & 3 deletions components/cron-expression/cron-expression.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/

import { ScrollingModule } from '@angular/cdk/scrolling';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
Expand All @@ -28,8 +27,7 @@ import { NzCronExpressionComponent } from './cron-expression.component';
NzFormModule,
NzInputModule,
NzIconModule,
FormsModule,
ScrollingModule
FormsModule
],
exports: [NzCronExpressionComponent]
})
Expand Down
7 changes: 7 additions & 0 deletions components/cron-expression/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@
&-preview-date {
overflow-y: scroll;
height: 132px;
margin: 0;
padding: 0;
li {
list-style: none;
margin: 0;
padding: 0;
}
}

&-error {
Expand Down

0 comments on commit 726ded3

Please sign in to comment.