fix(KeyBoard): display bugs

This commit is contained in:
AkiChase 2024-05-19 10:46:08 +08:00
parent fd790b029f
commit 396639d752
3 changed files with 8 additions and 3 deletions

View File

@ -336,7 +336,7 @@ async function checkUpdate() {
top: button.posY - 14 + 'px', top: button.posY - 14 + 'px',
}" }"
> >
{{ button.key }} {{ button.type === "Fire" ? "Fire" : button.key }}
</div> </div>
</template> </template>
</div> </div>

View File

@ -267,7 +267,7 @@ function showSetting() {
<NInput <NInput
type="textarea" type="textarea"
style="flex-grow: 1" style="flex-grow: 1"
placeholder="$t('pages.KeyBoard.KeyCommon.macroModal.placeholder')" :placeholder="$t('pages.KeyBoard.KeyCommon.macroModal.placeholder')"
v-model:value="editedMacroRaw.down" v-model:value="editedMacroRaw.down"
@update:value="macroEditedFlag = true" @update:value="macroEditedFlag = true"
round round

View File

@ -84,6 +84,11 @@ function showSetting() {
settingPosY.value = Math.min(keyMapping.value.posY - 40, maxHeight); settingPosY.value = Math.min(keyMapping.value.posY - 40, maxHeight);
keyboardStore.showButtonSettingFlag = true; keyboardStore.showButtonSettingFlag = true;
} }
function changeDragSetting() {
keyMapping.value.drag = !keyMapping.value.drag;
keyboardStore.edited = true;
}
</script> </script>
<template> <template>
@ -143,7 +148,7 @@ function showSetting() {
> >
<NH4 prefix="bar">{{ $t("pages.KeyBoard.KeyFire.fire") }}</NH4> <NH4 prefix="bar">{{ $t("pages.KeyBoard.KeyFire.fire") }}</NH4>
<NCheckbox <NCheckbox
@click="keyMapping.drag = !keyMapping.drag" @click="changeDragSetting"
:checked="keyMapping.drag" :checked="keyMapping.drag"
style="margin-bottom: 20px" style="margin-bottom: 20px"
>{{ $t("pages.KeyBoard.KeyFire.drag") }}</NCheckbox >{{ $t("pages.KeyBoard.KeyFire.drag") }}</NCheckbox