18 lines
342 B
TypeScript
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|