forked from vincentzyc/form-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.js
More file actions
43 lines (38 loc) · 689 Bytes
/
common.js
File metadata and controls
43 lines (38 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const state = {
pageData: {
list: [],
title: "云忆网络",
statsCode: "",
theme: "theme1",
style: {
backgroundColor: "#fff",
backgroundImage: "",
}
},
selectWg: [],
configTab: 'page',
wgCollapse: "base"
}
// const actions = {
// }
// const getters = {
// selectTheme: state => state.selectTheme
// }
const mutations = {
setPageData(state, payload) {
state.pageData = payload;
},
setSelectWg(state, payload) {
state.selectWg = payload;
},
setConfigTab(state, payload) {
state.configTab = payload;
},
setWgCollapse(state, payload) {
state.wgCollapse = payload;
}
}
export default {
state,
mutations
}