提交 8ec89527 编写于 作者: Q qiang

Merge branch 'dev' of github.com:dcloudio/uni-app into dev

...@@ -229,6 +229,10 @@ TODOS.forEach(function (name) { ...@@ -229,6 +229,10 @@ TODOS.forEach(function (name) {
}); });
function requireNativePlugin (pluginName) { function requireNativePlugin (pluginName) {
/* eslint-disable no-undef */
if (typeof weex !== 'undefined') {
return weex.requireModule(pluginName)
}
/* eslint-disable no-undef */ /* eslint-disable no-undef */
return __requireNativePlugin__(pluginName) return __requireNativePlugin__(pluginName)
} }
......
{ {
"name": "@dcloudio/uni-app-plus", "name": "@dcloudio/uni-app-plus",
"version": "0.0.204", "version": "0.0.205",
"description": "uni-app app-plus", "description": "uni-app app-plus",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -690,10 +690,10 @@ if (typeof Proxy !== 'undefined') { ...@@ -690,10 +690,10 @@ if (typeof Proxy !== 'undefined') {
if (extraApi[name]) { if (extraApi[name]) {
return promisify(name, extraApi[name]) return promisify(name, extraApi[name])
} }
}
if (todoApis[name]) { if (todoApis[name]) {
return promisify(name, todoApis[name]) return promisify(name, todoApis[name])
} }
}
if (!hasOwn(wx, name) && !hasOwn(protocols, name)) { if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
return return
} }
...@@ -703,11 +703,10 @@ if (typeof Proxy !== 'undefined') { ...@@ -703,11 +703,10 @@ if (typeof Proxy !== 'undefined') {
} else { } else {
uni.upx2px = upx2px; uni.upx2px = upx2px;
{
Object.keys(todoApis).forEach(name => { Object.keys(todoApis).forEach(name => {
uni[name] = promisify(name, todoApis[name]); uni[name] = promisify(name, todoApis[name]);
}); });
{
Object.keys(extraApi).forEach(name => { Object.keys(extraApi).forEach(name => {
uni[name] = promisify(name, todoApis[name]); uni[name] = promisify(name, todoApis[name]);
}); });
......
{ {
"name": "@dcloudio/uni-mp-weixin", "name": "@dcloudio/uni-mp-weixin",
"version": "0.0.914", "version": "0.0.915",
"description": "uni-app mp-weixin", "description": "uni-app mp-weixin",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
export function requireNativePlugin (pluginName) { export function requireNativePlugin (pluginName) {
/* eslint-disable no-undef */
if (typeof weex !== 'undefined') {
return weex.requireModule(pluginName)
}
/* eslint-disable no-undef */ /* eslint-disable no-undef */
return __requireNativePlugin__(pluginName) return __requireNativePlugin__(pluginName)
} }
export default function requireNativePlugin (pluginName) {
/* eslint-disable no-undef */
return __requireNativePlugin__(pluginName)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册