LaiTool/src/stores/image.ts

18 lines
342 B
TypeScript
Raw Normal View History

2024-06-13 00:37:31 +08:00
import { defineStore } from "pinia";
export const useImageStore = defineStore('image', {
state: () => ({
dragTarget: null
}),
getters: {
GetDragTarget() {
return this.dragTarget;
}
},
actions: {
SetDragTarget(target) {
this.dragTarget = target;
}
}
});