myprint-design
Version:
操作简单,组件丰富的一站式打印解决方案打印设计器
25 lines (21 loc) • 448 B
JavaScript
var pinia = require('pinia');
const dragDataStore = pinia.defineStore("myPrintDragData", {
state: () => {
return {
data: {
dragIng: false,
start: { x: 0, y: 0 },
end: { x: 0, y: 0 }
}
};
},
actions: {
set(type, element) {
this.data.element = element;
this.data.type = type;
}
}
});
exports.dragDataStore = dragDataStore;
//# sourceMappingURL=dragStore.js.map
;