label-print-design
Version:
操作简单,组件丰富的一站式打印解决方案打印设计器
27 lines (23 loc) • 508 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 }
}
};
},
// 也可以这样定义
// state: () => ({ count: 0 })
actions: {
set(type, element) {
this.data.element = element;
this.data.type = type;
}
}
});
exports.dragDataStore = dragDataStore;
//# sourceMappingURL=dragStore.js.map