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

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

......@@ -228,7 +228,11 @@ TODOS.forEach(function (name) {
todoApis[name] = createTodoApi(name);
});
function requireNativePlugin (pluginName) {
function requireNativePlugin (pluginName) {
/* eslint-disable no-undef */
if (typeof weex !== 'undefined') {
return weex.requireModule(pluginName)
}
/* eslint-disable no-undef */
return __requireNativePlugin__(pluginName)
}
......
{
"name": "@dcloudio/uni-app-plus",
"version": "0.0.204",
"version": "0.0.205",
"description": "uni-app app-plus",
"main": "dist/index.js",
"scripts": {
......
......@@ -690,9 +690,9 @@ if (typeof Proxy !== 'undefined') {
if (extraApi[name]) {
return promisify(name, extraApi[name])
}
}
if (todoApis[name]) {
return promisify(name, todoApis[name])
if (todoApis[name]) {
return promisify(name, todoApis[name])
}
}
if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
return
......@@ -703,11 +703,10 @@ if (typeof Proxy !== 'undefined') {
} else {
uni.upx2px = upx2px;
Object.keys(todoApis).forEach(name => {
uni[name] = promisify(name, todoApis[name]);
});
{
Object.keys(todoApis).forEach(name => {
uni[name] = promisify(name, todoApis[name]);
});
Object.keys(extraApi).forEach(name => {
uni[name] = promisify(name, todoApis[name]);
});
......
{
"name": "@dcloudio/uni-mp-weixin",
"version": "0.0.914",
"version": "0.0.915",
"description": "uni-app mp-weixin",
"main": "dist/index.js",
"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 */
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.
先完成此消息的编辑!
想要评论请 注册