You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
402 B
TypeScript
22 lines
402 B
TypeScript
import { defineStore } from 'pinia';
|
|
import { IPositionCenter } from './types';
|
|
/**
|
|
* 配置文件
|
|
*/
|
|
export const useConfigStore = defineStore('config-store', {
|
|
state: (): IPositionCenter => {
|
|
return {
|
|
svg: {
|
|
background_color: '#fff',
|
|
scale: 1,
|
|
position_center: {
|
|
x: -295,
|
|
y: -95
|
|
}
|
|
}
|
|
};
|
|
},
|
|
getters: {},
|
|
actions: {}
|
|
});
|