Fixed eslint issue on Password

pull/12/head
mertsincan 2019-05-03 13:00:49 +03:00
parent 41d8be4bbb
commit 57b5d60274
1 changed files with 7 additions and 5 deletions

View File

@ -78,6 +78,8 @@ export default {
}, },
computed: { computed: {
listeners() { listeners() {
let vm = this;
return { return {
...this.$listeners, ...this.$listeners,
input: event => this.$emit('input', event.target.value), input: event => this.$emit('input', event.target.value),
@ -87,8 +89,8 @@ export default {
this.createPanel(); this.createPanel();
} }
this.panel.style.zIndex = String(DomHandler.generateZIndex()); vm.panel.style.zIndex = String(DomHandler.generateZIndex());
this.panel.style.display = 'block'; vm.panel.style.display = 'block';
setTimeout(() => { setTimeout(() => {
DomHandler.addClass(this.panel, 'p-input-overlay-visible'); DomHandler.addClass(this.panel, 'p-input-overlay-visible');
DomHandler.removeClass(this.panel, 'p-input-overlay-hidden'); DomHandler.removeClass(this.panel, 'p-input-overlay-hidden');
@ -104,7 +106,7 @@ export default {
DomHandler.removeClass(this.panel, 'p-input-overlay-visible'); DomHandler.removeClass(this.panel, 'p-input-overlay-visible');
setTimeout(() => { setTimeout(() => {
this.panel.style.display = 'none'; vm.panel.style.display = 'none';
DomHandler.removeClass(this.panel, 'p-input-overlay-hidden'); DomHandler.removeClass(this.panel, 'p-input-overlay-hidden');
}, 150); }, 150);
} }
@ -138,8 +140,8 @@ export default {
} }
} }
this.meter.style.backgroundPosition = meterPos; vm.meter.style.backgroundPosition = meterPos;
this.info.textContent = label; vm.info.textContent = label;
} }
this.$emit('keyup', event); this.$emit('keyup', event);