This commit is contained in:
geek 2018-05-25 20:21:34 +09:00
parent e9bb57b893
commit e10eb54e1b
3 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<div class="ui-inputgroup">
<span style="margin-right: 18px">Start </span>
<span style="margin-right: 18px">{{title}} </span>
<input id="0" type="text" pInputText placeholder="127" maxlength="3" [(ngModel)]="first" value="{{first}}" (keyup)="onIpInput($event)">
<span class="ui-inputgroup-addon">.</span>
<input id="1" type="text" pInputText placeholder="0" maxlength="3" [(ngModel)]="second" value="{{second}}" (keyup)="onIpInput($event)">

View File

@ -18,7 +18,8 @@ export class IpInputComponent implements OnInit, AfterContentInit {
third: string;
fourth: string;
@Input() hostIp: string;
@Input() hostIp;
@Input() title;
@Output() inputIp = new EventEmitter();
constructor(

View File

@ -24,13 +24,13 @@
<input type="hidden" >
</div>
<div class="ui-g-12">
<of-ip-input [hostIp]="startHostIp" (inputIp)="onInputIP($event, 0)" ></of-ip-input>
<of-ip-input [hostIp]="startHostIp" (inputIp)="onInputIP($event, 0)" [title]="'Start'"></of-ip-input>
</div>
<div class="ui-g-12">
<of-ip-input [hostIp]="endHostIp" (inputIp)="onInputIP($event, 1)" ></of-ip-input>
<of-ip-input [hostIp]="endHostIp" (inputIp)="onInputIP($event, 1)" [title]="'End'"></of-ip-input>
</div>
<div class="ui-g-12 ui-bottom-space-20">
<of-ip-input [hostIp]="excludeHostIp" (inputIp)="onInputIP($event, 2)" ></of-ip-input>
<of-ip-input [hostIp]="excludeHostIp" (inputIp)="onInputIP($event, 2)" [title]="'Exclude'"></of-ip-input>
</div>
<div class="ui-g-12">
<label>Port type</label>