init
This commit is contained in:
18
node_modules/@dcloudio/uni-h5/lib/app-plus/view-api.js
generated
vendored
Normal file
18
node_modules/@dcloudio/uni-h5/lib/app-plus/view-api.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
export {
|
||||
upx2px
|
||||
}
|
||||
from 'uni-core/service/api/base/upx2px'
|
||||
|
||||
export * from 'uni-platform/view/api'
|
||||
|
||||
export {
|
||||
getSystemInfoSync
|
||||
}
|
||||
from '../../src/platforms/h5/service/api/device/get-system-info'
|
||||
|
||||
export function canIUse (schema) {
|
||||
if (schema === 'css.var') {
|
||||
return window.CSS && window.CSS.supports && window.CSS.supports('--a:0')
|
||||
}
|
||||
return true
|
||||
}
|
||||
32
node_modules/@dcloudio/uni-h5/lib/app-plus/view.js
generated
vendored
Normal file
32
node_modules/@dcloudio/uni-h5/lib/app-plus/view.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
import Vue from 'vue'
|
||||
|
||||
import 'uni-platform/view/index.css'
|
||||
|
||||
import {
|
||||
definePage
|
||||
} from 'uni-platform/page-factory'
|
||||
|
||||
import {
|
||||
getCurrentPages
|
||||
} from 'uni-platform/view/framework/page'
|
||||
|
||||
import ViewPlugin from 'uni-platform/view/framework/plugins/index'
|
||||
|
||||
global.UniViewJSBridge = {
|
||||
subscribe: UniViewJSBridge.subscribe,
|
||||
publishHandler: UniViewJSBridge.publishHandler,
|
||||
subscribeHandler: UniViewJSBridge.subscribeHandler
|
||||
}
|
||||
|
||||
global.getCurrentPages = getCurrentPages
|
||||
|
||||
global.__definePage = definePage
|
||||
|
||||
global.Vue = Vue
|
||||
|
||||
Vue.use(ViewPlugin)
|
||||
|
||||
require('uni-components')
|
||||
|
||||
export * from './view-api.js'
|
||||
Reference in New Issue
Block a user