mali-applet-ui 1.0.79 → 1.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/store/events.js +9 -2
package/package.json
CHANGED
package/store/events.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
const events = {
|
|
2
2
|
state: {
|
|
3
|
-
|
|
3
|
+
// 全局临时事件参数,用于跨页面跳交互时临时通讯使用
|
|
4
|
+
eventData: null,
|
|
5
|
+
// 全局resize事件
|
|
6
|
+
globalResize: null
|
|
4
7
|
},
|
|
5
8
|
getters: {
|
|
6
|
-
eventData: (state) => state.eventData
|
|
9
|
+
eventData: (state) => state.eventData,
|
|
10
|
+
globalResize: (state) => state.globalResize
|
|
7
11
|
},
|
|
8
12
|
mutations: {
|
|
13
|
+
setEvent (state, evnt) {
|
|
14
|
+
state[`global${evnt.type.slice(0, 1).toUpperCase()}${evnt.type.slice(1)}`] = evnt
|
|
15
|
+
},
|
|
9
16
|
initEventData (state) {
|
|
10
17
|
state.eventData = null
|
|
11
18
|
},
|