画布移植

This commit is contained in:
Aaron
2021-07-28 19:05:18 +08:00
parent 7bf0fa527d
commit ff3ddef12f
107 changed files with 12402 additions and 1 deletions

View File

@ -1,4 +1,9 @@
const getters = {
// 画布
terminal: state => state.container.terminal,
activeComponent: state => state.container.activeComponent,
componentsData: state => state.container.componentsData,
deployUploadApi: state => state.api.deployUploadApi,
databaseUploadApi: state => state.api.databaseUploadApi,
size: state => state.app.size,

View File

@ -0,0 +1,20 @@
const container = {
state: {
terminal: 3, // 画布选择的设备
activeComponent: {}, // 选中模板数据
componentsData: [] // 模板组件数据
},
mutations: {
SET_TERMINAL: (state, terminal) => {
state.terminal = terminal
},
SET_ACTIVECOMPONENT: (state, activeComponent) => {
state.activeComponent = activeComponent
},
SET_COMPONENTSDATA: (state, componentsData) => {
state.componentsData = componentsData
}
}
}
export default container