ing
This commit is contained in:
parent
e9bb57b893
commit
e10eb54e1b
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<div class="ui-inputgroup">
|
<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)">
|
<input id="0" type="text" pInputText placeholder="127" maxlength="3" [(ngModel)]="first" value="{{first}}" (keyup)="onIpInput($event)">
|
||||||
<span class="ui-inputgroup-addon">.</span>
|
<span class="ui-inputgroup-addon">.</span>
|
||||||
<input id="1" type="text" pInputText placeholder="0" maxlength="3" [(ngModel)]="second" value="{{second}}" (keyup)="onIpInput($event)">
|
<input id="1" type="text" pInputText placeholder="0" maxlength="3" [(ngModel)]="second" value="{{second}}" (keyup)="onIpInput($event)">
|
||||||
|
|
|
@ -18,7 +18,8 @@ export class IpInputComponent implements OnInit, AfterContentInit {
|
||||||
third: string;
|
third: string;
|
||||||
fourth: string;
|
fourth: string;
|
||||||
|
|
||||||
@Input() hostIp: string;
|
@Input() hostIp;
|
||||||
|
@Input() title;
|
||||||
@Output() inputIp = new EventEmitter();
|
@Output() inputIp = new EventEmitter();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
|
|
@ -24,13 +24,13 @@
|
||||||
<input type="hidden" >
|
<input type="hidden" >
|
||||||
</div>
|
</div>
|
||||||
<div class="ui-g-12">
|
<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>
|
||||||
<div class="ui-g-12">
|
<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>
|
||||||
<div class="ui-g-12 ui-bottom-space-20">
|
<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>
|
||||||
<div class="ui-g-12">
|
<div class="ui-g-12">
|
||||||
<label>Port type</label>
|
<label>Port type</label>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user