Commit e1b2e3ae authored by wangqinghua's avatar wangqinghua

update

parent c768a812
......@@ -30,7 +30,7 @@
<nz-form-label [nzSpan]="7" nzRequired nzFor="fontSize">字体大小</nz-form-label>
<nz-form-control [nzSpan]="12">
<nz-select nzPlaceHolder="请选择字体大小" formControlName="fontSize">
<nz-option nzLabel="8" nzValue="8"></nz-option>
<nz-option *ngFor="let item of fontSizeList" [nzLabel]="item" [nzValue]="item"></nz-option>
</nz-select>
<nz-form-explain *ngIf="validateForm.get('fontSize').dirty && validateForm.get('fontSize').errors">请输入分组名称</nz-form-explain>
</nz-form-control>
......
......@@ -19,6 +19,7 @@ export class CheckComponent implements OnInit {
nodes;
nodeList;
selectId;
fontSizeList = ['8','9','10','11','12','13','14','16','18','20','28','36','48','72'];
constructor(private fb:FormBuilder,private topologySer:TopologyService,
private message:NzMessageService) {
......@@ -32,7 +33,7 @@ export class CheckComponent implements OnInit {
initForm(){
this.validateForm = this.fb.group({
name:['',[Validators.required]],
fontSize:['',[Validators.required]],
fontSize:['12',[Validators.required]],
})
}
......
......@@ -301,7 +301,7 @@
<span class="tips">{{topoType}}</span>
<div class="checkList">
<p *ngFor="let item of checkJson">
{{item.name}}
<span [style.fontSize]="item.fontSize +'px'">{{item.name}}</span>
</p>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment