| | |
| | | :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)" |
| | | @keydown="onInputKeydown($event, index)" |
| | | @input="onInput($event, index)" |
| | | @blur="onInputBlur()" |
| | | @paste="onPaste($event, index)" |
| | | /> |
| | | <i v-show="index != segments.length - 1">.</i> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | /* global document*/ |
| | | /** |
| | | /** |
| | | * get the cursor position of the element |
| | | * @param {Element} el the element |
| | | * @return {Integer} the position fo the cursor |