LaiTool/src/stores/image.ts
2024-08-03 12:46:12 +08:00

18 lines
342 B
TypeScript

import { defineStore } from "pinia";
export const useImageStore = defineStore('image', {
state: () => ({
dragTarget: null
}),
getters: {
GetDragTarget() {
return this.dragTarget;
}
},
actions: {
SetDragTarget(target) {
this.dragTarget = target;
}
}
});