提交 567b4aa0 编写于 作者: fxy060608's avatar fxy060608

build uni runtime

上级 06c97d74
...@@ -1221,7 +1221,7 @@ canIUses.forEach(canIUseApi => { ...@@ -1221,7 +1221,7 @@ canIUses.forEach(canIUseApi => {
let uni = {}; let uni = {};
if (typeof Proxy !== 'undefined') { if (typeof Proxy !== 'undefined' && "app-plus" !== 'app-plus') {
uni = new Proxy({}, { uni = new Proxy({}, {
get (target, name) { get (target, name) {
if (name === 'upx2px') { if (name === 'upx2px') {
...@@ -1258,11 +1258,12 @@ if (typeof Proxy !== 'undefined') { ...@@ -1258,11 +1258,12 @@ if (typeof Proxy !== 'undefined') {
} }
{ {
if (typeof global !== 'undefined') { if (typeof global !== 'undefined') {
global.uni = uni;
global.UniEmitter = eventApi; global.UniEmitter = eventApi;
} }
} }
wx.createApp = createApp; wx.createApp = createApp;
wx.createPage = createPage; wx.createPage = createPage;
wx.createComponent = createComponent; wx.createComponent = createComponent;
......
{ {
"name": "@dcloudio/uni-app-plus", "name": "@dcloudio/uni-app-plus",
"version": "0.0.246", "version": "0.0.247",
"description": "uni-app app-plus", "description": "uni-app app-plus",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -1793,7 +1793,7 @@ canIUses.forEach(canIUseApi => { ...@@ -1793,7 +1793,7 @@ canIUses.forEach(canIUseApi => {
let uni = {}; let uni = {};
if (typeof Proxy !== 'undefined') { if (typeof Proxy !== 'undefined' && "mp-alipay" !== 'app-plus') {
uni = new Proxy({}, { uni = new Proxy({}, {
get (target, name) { get (target, name) {
if (name === 'upx2px') { if (name === 'upx2px') {
...@@ -1845,7 +1845,7 @@ if (typeof Proxy !== 'undefined') { ...@@ -1845,7 +1845,7 @@ if (typeof Proxy !== 'undefined') {
} }
}); });
} }
my.createApp = createApp; my.createApp = createApp;
my.createPage = createPage; my.createPage = createPage;
my.createComponent = createComponent; my.createComponent = createComponent;
......
{ {
"name": "@dcloudio/uni-mp-alipay", "name": "@dcloudio/uni-mp-alipay",
"version": "0.0.820", "version": "0.0.821",
"description": "uni-app mp-alipay", "description": "uni-app mp-alipay",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -1376,7 +1376,7 @@ canIUses.forEach(canIUseApi => { ...@@ -1376,7 +1376,7 @@ canIUses.forEach(canIUseApi => {
let uni = {}; let uni = {};
if (typeof Proxy !== 'undefined') { if (typeof Proxy !== 'undefined' && "mp-baidu" !== 'app-plus') {
uni = new Proxy({}, { uni = new Proxy({}, {
get (target, name) { get (target, name) {
if (name === 'upx2px') { if (name === 'upx2px') {
...@@ -1428,7 +1428,7 @@ if (typeof Proxy !== 'undefined') { ...@@ -1428,7 +1428,7 @@ if (typeof Proxy !== 'undefined') {
} }
}); });
} }
swan.createApp = createApp; swan.createApp = createApp;
swan.createPage = createPage; swan.createPage = createPage;
swan.createComponent = createComponent; swan.createComponent = createComponent;
......
{ {
"name": "@dcloudio/uni-mp-baidu", "name": "@dcloudio/uni-mp-baidu",
"version": "0.0.848", "version": "0.0.849",
"description": "uni-app mp-baidu", "description": "uni-app mp-baidu",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -1260,7 +1260,7 @@ canIUses.forEach(canIUseApi => { ...@@ -1260,7 +1260,7 @@ canIUses.forEach(canIUseApi => {
let uni = {}; let uni = {};
if (typeof Proxy !== 'undefined') { if (typeof Proxy !== 'undefined' && "mp-qq" !== 'app-plus') {
uni = new Proxy({}, { uni = new Proxy({}, {
get (target, name) { get (target, name) {
if (name === 'upx2px') { if (name === 'upx2px') {
...@@ -1312,7 +1312,7 @@ if (typeof Proxy !== 'undefined') { ...@@ -1312,7 +1312,7 @@ if (typeof Proxy !== 'undefined') {
} }
}); });
} }
wx.createApp = createApp; wx.createApp = createApp;
wx.createPage = createPage; wx.createPage = createPage;
wx.createComponent = createComponent; wx.createComponent = createComponent;
......
{ {
"name": "@dcloudio/uni-mp-qq", "name": "@dcloudio/uni-mp-qq",
"version": "0.0.104", "version": "0.0.105",
"description": "uni-app mp-qq", "description": "uni-app mp-qq",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -1439,7 +1439,7 @@ canIUses.forEach(canIUseApi => { ...@@ -1439,7 +1439,7 @@ canIUses.forEach(canIUseApi => {
let uni = {}; let uni = {};
if (typeof Proxy !== 'undefined') { if (typeof Proxy !== 'undefined' && "mp-toutiao" !== 'app-plus') {
uni = new Proxy({}, { uni = new Proxy({}, {
get (target, name) { get (target, name) {
if (name === 'upx2px') { if (name === 'upx2px') {
...@@ -1491,7 +1491,7 @@ if (typeof Proxy !== 'undefined') { ...@@ -1491,7 +1491,7 @@ if (typeof Proxy !== 'undefined') {
} }
}); });
} }
tt.createApp = createApp; tt.createApp = createApp;
tt.createPage = createPage; tt.createPage = createPage;
tt.createComponent = createComponent; tt.createComponent = createComponent;
......
{ {
"name": "@dcloudio/uni-mp-toutiao", "name": "@dcloudio/uni-mp-toutiao",
"version": "0.0.344", "version": "0.0.345",
"description": "uni-app mp-toutiao", "description": "uni-app mp-toutiao",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -1191,7 +1191,7 @@ canIUses.forEach(canIUseApi => { ...@@ -1191,7 +1191,7 @@ canIUses.forEach(canIUseApi => {
let uni = {}; let uni = {};
if (typeof Proxy !== 'undefined') { if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
uni = new Proxy({}, { uni = new Proxy({}, {
get (target, name) { get (target, name) {
if (name === 'upx2px') { if (name === 'upx2px') {
...@@ -1243,7 +1243,7 @@ if (typeof Proxy !== 'undefined') { ...@@ -1243,7 +1243,7 @@ if (typeof Proxy !== 'undefined') {
} }
}); });
} }
wx.createApp = createApp; wx.createApp = createApp;
wx.createPage = createPage; wx.createPage = createPage;
wx.createComponent = createComponent; wx.createComponent = createComponent;
......
{ {
"name": "@dcloudio/uni-mp-weixin", "name": "@dcloudio/uni-mp-weixin",
"version": "0.0.965", "version": "0.0.966",
"description": "uni-app mp-weixin", "description": "uni-app mp-weixin",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册