n20-common-lib 3.1.0 → 3.1.2

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/src/index.js CHANGED
@@ -160,6 +160,26 @@ import fitlers from './fitlers'
160
160
  /** 修正ElementUI的问题 */
161
161
  import monitor from './utils/monitor.js'
162
162
  import repairEl from './utils/repairElementUI'
163
+
164
+ /** qiankun 微前端通讯 */
165
+ import {
166
+ initCommunication,
167
+ destroyCommunication,
168
+ setGlobalState,
169
+ postToMain,
170
+ onMainStateChange,
171
+ offMainStateChange,
172
+ getMainState,
173
+ sendToChild,
174
+ onChildMessage,
175
+ isQiankunEnvironment,
176
+ $on,
177
+ $off,
178
+ $emit,
179
+ $once
180
+ } from './_qiankun/communicator'
181
+ import PM from './_qiankun/postMessage.js'
182
+
163
183
  const components = [
164
184
  ProFilterView,
165
185
  DynamicFieldTable,
@@ -440,5 +460,23 @@ export {
440
460
  type,
441
461
  version,
442
462
  watermark,
443
- accountFormat
463
+ accountFormat,
464
+ // qiankun Vuex module
465
+ PM,
466
+ // qiankun 通讯函数
467
+ initCommunication,
468
+ destroyCommunication,
469
+ setGlobalState,
470
+ postToMain,
471
+ onMainStateChange,
472
+ offMainStateChange,
473
+ getMainState,
474
+ sendToChild,
475
+ onChildMessage,
476
+ isQiankunEnvironment,
477
+ // 事件总线
478
+ $on,
479
+ $off,
480
+ $emit,
481
+ $once
444
482
  }