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',
}"
>
{{ button.key }}
{{ button.type === "Fire" ? "Fire" : button.key }}
</div>
</template>
</div>

View File

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

View File

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