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/package.json +1 -1
- package/src/_qiankun/communicator.js +152 -0
- package/src/_qiankun/eventBus.js +55 -0
- package/src/_qiankun/index.js +7 -5
- package/src/assets/css/element-variables.scss +1 -1
- package/src/components/ProFilterView/index.vue +8 -1
- package/src/components/ShowColumn/index.vue +1 -1
- package/src/components/TablePro/index.vue +1 -1
- package/src/components/TableProOperateColumn/OperateBtns.vue +68 -2
- package/src/components/ViewToggle/index.vue +73 -13
- package/src/components/v3/TablePro/index.vue +48 -7
- package/src/index.js +39 -1
- package/style/index.css +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
- package/src/components/TableProOperateColumn/OperateBtns_copy.vue +0 -141
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
|
}
|