view.js 590 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1

fxy060608's avatar
init v3  
fxy060608 已提交
2 3
import Vue from 'vue'

fxy060608's avatar
fxy060608 已提交
4
import 'uni-platform/view/index.css'
fxy060608's avatar
init v3  
fxy060608 已提交
5 6 7

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

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

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

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

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

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

global.Vue = Vue

Vue.use(ViewPlugin)

require('uni-components')

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