修改错别字

This commit is contained in:
fofolee 2022-05-03 10:09:56 +08:00
parent 39730c9446
commit 07f6c93079

View File

@ -19,7 +19,7 @@
:active="index === currentIndex" :active="index === currentIndex"
:style="{ :style="{
height: itemHeight + 'px', height: itemHeight + 'px',
paddingRight: shortCurtWidth + 'px', paddingRight: shortCutWidth + 'px',
}" }"
> >
<q-item-section v-if="isText"> <q-item-section v-if="isText">
@ -43,7 +43,7 @@
</template> </template>
</q-virtual-scroll> </q-virtual-scroll>
<div <div
:style="{ top: 0, bottom: 0, width: shortCurtWidth + 'px' }" :style="{ top: 0, bottom: 0, width: shortCutWidth + 'px' }"
class="fixed-right" class="fixed-right"
> >
<div <div
@ -77,7 +77,7 @@ export default {
currentIndex: 0, currentIndex: 0,
itemHeight: 50, itemHeight: 50,
lazyItemSize: 50, lazyItemSize: 50,
shortCurtWidth: 50, shortCutWidth: 50,
searchWords: "", searchWords: "",
lastTimeStamp: null, lastTimeStamp: null,
}; };
@ -155,7 +155,7 @@ export default {
this.lastTimeStamp = e.timeStamp; this.lastTimeStamp = e.timeStamp;
}, },
shuortCurtHandle(e) { shortCutHandle(e) {
e.preventDefault(); e.preventDefault();
if (!(this.$q.platform.is.mac ? e.metaKey : e.altKey) || isNaN(e.key)) if (!(this.$q.platform.is.mac ? e.metaKey : e.altKey) || isNaN(e.key))
return; return;
@ -180,7 +180,7 @@ export default {
clear() { clear() {
utools.removeSubInput(); utools.removeSubInput();
document.removeEventListener("keydown", this.changeItemIndex); document.removeEventListener("keydown", this.changeItemIndex);
document.removeEventListener("keydown", this.shuortCurtHandle); document.removeEventListener("keydown", this.shortCutHandle);
document.removeEventListener("mousewheel", this.changeItemIndex, { document.removeEventListener("mousewheel", this.changeItemIndex, {
passive: false, passive: false,
}); });
@ -189,7 +189,7 @@ export default {
addListeners() { addListeners() {
document.addEventListener("keydown", this.changeItemIndex); document.addEventListener("keydown", this.changeItemIndex);
document.addEventListener("keydown", this.shuortCurtHandle); document.addEventListener("keydown", this.shortCutHandle);
document.addEventListener("mousewheel", this.changeItemIndex, { document.addEventListener("mousewheel", this.changeItemIndex, {
passive: false, passive: false,
}); });