Compare commits

..

1 Commits

Author SHA1 Message Date
AncTe
a8f16ed33d
Merge 2906b6ec79 into 820dc5bf4c 2025-06-19 07:17:01 +00:00

View File

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