chore:修正存档界面按键监听事件的命名

This commit is contained in:
ShakeFlower 2025-06-19 18:37:29 +08:00
parent 2906b6ec79
commit 1f6cbea3ac

View File

@ -128,23 +128,23 @@ export const Save = defineComponent<SaveProps, SaveEmits, keyof SaveEmits>(
emitSave(pageCap * currPage + pickIndex.value);
})
.realize('exit', exit)
.realize('save_exit', exit)
.realize('@save_exit', exit)
.realize(
'save_pageUp',
'@save_pageUp',
() => {
pageRef.value?.movePage(1);
},
{ type: 'down-repeat' }
)
.realize(
'save_pageDown',
'@save_pageDown',
() => {
pageRef.value?.movePage(-1);
},
{ type: 'down-repeat' }
)
.realize(
'save_up',
'@save_up',
() => {
if (pickIndex.value >= row) pickIndex.value -= column;
else {
@ -155,7 +155,7 @@ export const Save = defineComponent<SaveProps, SaveEmits, keyof SaveEmits>(
{ type: 'down-repeat' }
)
.realize(
'save_down',
'@save_down',
() => {
if (pickIndex.value <= pageCap - row)
pickIndex.value += column;
@ -167,7 +167,7 @@ export const Save = defineComponent<SaveProps, SaveEmits, keyof SaveEmits>(
{ type: 'down-repeat' }
)
.realize(
'save_left',
'@save_left',
() => {
if (pickIndex.value > 0) pickIndex.value--;
else {
@ -178,7 +178,7 @@ export const Save = defineComponent<SaveProps, SaveEmits, keyof SaveEmits>(
{ type: 'down-repeat' }
)
.realize(
'save_right',
'@save_right',
() => {
if (pickIndex.value < pageCap) pickIndex.value++;
else {