export default {
  namespace: true,
  state: {
    // 页面配置
    config: { page: [] },
    // 事件编辑
    eventEditorContent: {},
    // 已选中的容器
    targetContainer: undefined
  },
  getters: {
    config: state => {
      return state.config
    },
    eventEditorContent: state => {
      return state.eventEditorContent
    },
    targetContainer: state => {
      return state.targetContainer
    }
  },
  mutations: {
    setConfig (state, newConfig) {
      state.config = newConfig
    },
    setEventEditorContent (state, newContent) {
      state.eventEditorContent = newContent
    },
    setTargetContainer (state, newVal) {
      state.targetContainer = newVal
    }
  }
}
