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
44
45
46
47
48
49
50
| import {
| uni
| } from 'uni-core/service/uni'
| import EventChannel from 'uni-helpers/EventChannel'
| import {
| invokeCallbackHandler,
| removeCallbackHandler
| } from 'uni-helpers/api'
|
| import {
| publishHandler
| } from 'uni-platform/service/publish-handler'
|
| import {
| wx
| } from './wx'
|
| import {
| definePage
| } from '../page-factory'
|
| import {
| getApp,
| registerApp
| } from './framework/app'
|
| import {
| registerPage,
| getCurrentPages
| } from './framework/page'
|
| import vuePlugin from './framework/plugins'
|
| // 挂靠在uni上,暂不做全局导出
| uni.__$wx__ = wx
|
| UniServiceJSBridge.publishHandler = publishHandler
| UniServiceJSBridge.invokeCallbackHandler = invokeCallbackHandler
| UniServiceJSBridge.removeCallbackHandler = removeCallbackHandler
|
| export default {
| __vuePlugin: vuePlugin,
| __definePage: definePage,
| __registerApp: registerApp,
| __registerPage: registerPage,
| uni,
| getApp,
| getCurrentPages,
| EventChannel
| }
|
|