view.js 585 字节
Newer Older
fxy060608's avatar
init v3  
fxy060608 已提交
1 2 3 4 5 6
import Vue from 'vue'

import 'uni-core/view/index.css'

import {
  definePage
fxy060608's avatar
fxy060608 已提交
7
} from 'uni-platform/page-factory'
fxy060608's avatar
init v3  
fxy060608 已提交
8 9

import {
fxy060608's avatar
fxy060608 已提交
10 11
  getCurrentPages
} from 'uni-platform/view/framework/page'
fxy060608's avatar
init v3  
fxy060608 已提交
12 13 14 15 16 17 18

import ViewPlugin from 'uni-platform/view/framework/plugins/index'

global.UniViewJSBridge = {
  publishHandler: UniViewJSBridge.publishHandler,
  subscribeHandler: UniViewJSBridge.subscribeHandler
}
fxy060608's avatar
fxy060608 已提交
19 20

global.getCurrentPages = getCurrentPages
fxy060608's avatar
init v3  
fxy060608 已提交
21

fxy060608's avatar
fxy060608 已提交
22
global.__definePage = definePage
fxy060608's avatar
init v3  
fxy060608 已提交
23 24 25 26 27 28 29 30

global.Vue = Vue

Vue.use(ViewPlugin)

require('uni-components')

export * from './view-api.js'