| | |
| | | <template> |
| | | <div class="ip-input-container"> |
| | | <div class="ip-segment" v-for="(segment, index) in segments" :key="index"> |
| | | <input |
| | | type="text" |
| | | maxlength="3" |
| | | class="ip-segment-input" |
| | | :value="segment" |
| | | :placeholder="placeholder" |
| | | :disabled="disabled" |
| | | v-on:keydown="onInputKeydown($event, index)" |
| | | v-on:input="onInput($event, index)" |
| | | v-on:blur="onInputBlur()" |
| | | v-on:paste="onPaste($event, index)" |
| | | /> |
| | | <input type="text" maxlength="3" class="ip-segment-input" :value="segment" :placeholder="placeholder"
|
| | | :disabled="disabled" v-on:keydown="onInputKeydown($event, index)" v-on:input="onInput($event, index)"
|
| | | v-on:blur="onInputBlur()" v-on:paste="onPaste($event, index)" />
|
| | | <i v-show="index != segments.length - 1">.</i> |
| | | </div> |
| | | </div> |
| | |
| | | /* max-width: 360px; */
|
| | | display: flex; |
| | | } |
| | |
|
| | | .ip-segment { |
| | | width: 25%;
|
| | | height: 32px;
|
| | | line-height: normal;
|
| | | display: flex;
|
| | | justify-content: left; |
| | |
|
| | | input { |
| | | width: auto;
|
| | | height: 32px;
|
| | |
| | | background-color: aliceblue; |
| | | background-color: transparent; |
| | | } |
| | |
|
| | | i { |
| | | display: inline-block;
|
| | | font-size: 20px;
|