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

npm run build:runtime

上级 87b9e5b6
...@@ -231,7 +231,7 @@ const promiseInterceptor = { ...@@ -231,7 +231,7 @@ const promiseInterceptor = {
}; };
const SYNC_API_RE = const SYNC_API_RE =
/^\$|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/; /^\$|restoreGlobal|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
...@@ -245,7 +245,7 @@ function isSyncApi (name) { ...@@ -245,7 +245,7 @@ function isSyncApi (name) {
} }
function isCallbackApi (name) { function isCallbackApi (name) {
return CALLBACK_API_RE.test(name) return CALLBACK_API_RE.test(name) && name !== 'onPush'
} }
function handlePromise (promise) { function handlePromise (promise) {
...@@ -1287,11 +1287,13 @@ function parseBaseComponent (vueComponentOptions, { ...@@ -1287,11 +1287,13 @@ function parseBaseComponent (vueComponentOptions, {
} = {}) { } = {}) {
let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions); let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions);
const componentOptions = { const options = {
options: {
multipleSlots: true, multipleSlots: true,
addGlobalClass: true addGlobalClass: true
}, };
const componentOptions = {
options,
data: initData(vueOptions, Vue.prototype), data: initData(vueOptions, Vue.prototype),
behaviors: initBehaviors(vueOptions, initBehavior), behaviors: initBehaviors(vueOptions, initBehavior),
properties: initProperties(vueOptions.props, false, vueOptions.__file), properties: initProperties(vueOptions.props, false, vueOptions.__file),
......
...@@ -231,7 +231,7 @@ const promiseInterceptor = { ...@@ -231,7 +231,7 @@ const promiseInterceptor = {
}; };
const SYNC_API_RE = const SYNC_API_RE =
/^\$|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/; /^\$|restoreGlobal|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
...@@ -245,7 +245,7 @@ function isSyncApi (name) { ...@@ -245,7 +245,7 @@ function isSyncApi (name) {
} }
function isCallbackApi (name) { function isCallbackApi (name) {
return CALLBACK_API_RE.test(name) return CALLBACK_API_RE.test(name) && name !== 'onPush'
} }
function handlePromise (promise) { function handlePromise (promise) {
......
...@@ -231,7 +231,7 @@ const promiseInterceptor = { ...@@ -231,7 +231,7 @@ const promiseInterceptor = {
}; };
const SYNC_API_RE = const SYNC_API_RE =
/^\$|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/; /^\$|restoreGlobal|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
...@@ -245,7 +245,7 @@ function isSyncApi (name) { ...@@ -245,7 +245,7 @@ function isSyncApi (name) {
} }
function isCallbackApi (name) { function isCallbackApi (name) {
return CALLBACK_API_RE.test(name) return CALLBACK_API_RE.test(name) && name !== 'onPush'
} }
function handlePromise (promise) { function handlePromise (promise) {
...@@ -1420,11 +1420,13 @@ function parseBaseComponent (vueComponentOptions, { ...@@ -1420,11 +1420,13 @@ function parseBaseComponent (vueComponentOptions, {
} = {}) { } = {}) {
let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions); let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions);
const componentOptions = { const options = {
options: {
multipleSlots: true, multipleSlots: true,
addGlobalClass: true addGlobalClass: true
}, };
const componentOptions = {
options,
data: initData(vueOptions, Vue.prototype), data: initData(vueOptions, Vue.prototype),
behaviors: initBehaviors(vueOptions, initBehavior), behaviors: initBehaviors(vueOptions, initBehavior),
properties: initProperties(vueOptions.props, false, vueOptions.__file), properties: initProperties(vueOptions.props, false, vueOptions.__file),
......
...@@ -231,7 +231,7 @@ const promiseInterceptor = { ...@@ -231,7 +231,7 @@ const promiseInterceptor = {
}; };
const SYNC_API_RE = const SYNC_API_RE =
/^\$|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/; /^\$|restoreGlobal|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
...@@ -245,7 +245,7 @@ function isSyncApi (name) { ...@@ -245,7 +245,7 @@ function isSyncApi (name) {
} }
function isCallbackApi (name) { function isCallbackApi (name) {
return CALLBACK_API_RE.test(name) return CALLBACK_API_RE.test(name) && name !== 'onPush'
} }
function handlePromise (promise) { function handlePromise (promise) {
...@@ -1334,11 +1334,13 @@ function parseBaseComponent (vueComponentOptions, { ...@@ -1334,11 +1334,13 @@ function parseBaseComponent (vueComponentOptions, {
} = {}) { } = {}) {
let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions); let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions);
const componentOptions = { const options = {
options: {
multipleSlots: true, multipleSlots: true,
addGlobalClass: true addGlobalClass: true
}, };
const componentOptions = {
options,
data: initData(vueOptions, Vue.prototype), data: initData(vueOptions, Vue.prototype),
behaviors: initBehaviors(vueOptions, initBehavior), behaviors: initBehaviors(vueOptions, initBehavior),
properties: initProperties(vueOptions.props, false, vueOptions.__file), properties: initProperties(vueOptions.props, false, vueOptions.__file),
......
{ {
"name": "@dcloudio/uni-mp-qq", "name": "@dcloudio/uni-mp-qq",
"version": "3.0.0-alpha-24020191018029", "version": "3.0.0-alpha-24020191018038",
"description": "uni-app mp-qq", "description": "uni-app mp-qq",
"main": "dist/index.js", "main": "dist/index.js",
"repository": { "repository": {
......
...@@ -231,7 +231,7 @@ const promiseInterceptor = { ...@@ -231,7 +231,7 @@ const promiseInterceptor = {
}; };
const SYNC_API_RE = const SYNC_API_RE =
/^\$|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/; /^\$|restoreGlobal|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
...@@ -245,7 +245,7 @@ function isSyncApi (name) { ...@@ -245,7 +245,7 @@ function isSyncApi (name) {
} }
function isCallbackApi (name) { function isCallbackApi (name) {
return CALLBACK_API_RE.test(name) return CALLBACK_API_RE.test(name) && name !== 'onPush'
} }
function handlePromise (promise) { function handlePromise (promise) {
...@@ -1511,11 +1511,13 @@ function parseBaseComponent (vueComponentOptions, { ...@@ -1511,11 +1511,13 @@ function parseBaseComponent (vueComponentOptions, {
} = {}) { } = {}) {
let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions); let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions);
const componentOptions = { const options = {
options: {
multipleSlots: true, multipleSlots: true,
addGlobalClass: true addGlobalClass: true
}, };
const componentOptions = {
options,
data: initData(vueOptions, Vue.prototype), data: initData(vueOptions, Vue.prototype),
behaviors: initBehaviors(vueOptions, initBehavior), behaviors: initBehaviors(vueOptions, initBehavior),
properties: initProperties(vueOptions.props, false, vueOptions.__file), properties: initProperties(vueOptions.props, false, vueOptions.__file),
......
...@@ -231,7 +231,7 @@ const promiseInterceptor = { ...@@ -231,7 +231,7 @@ const promiseInterceptor = {
}; };
const SYNC_API_RE = const SYNC_API_RE =
/^\$|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/; /^\$|restoreGlobal|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/;
const CONTEXT_API_RE = /^create|Manager$/; const CONTEXT_API_RE = /^create|Manager$/;
...@@ -245,7 +245,7 @@ function isSyncApi (name) { ...@@ -245,7 +245,7 @@ function isSyncApi (name) {
} }
function isCallbackApi (name) { function isCallbackApi (name) {
return CALLBACK_API_RE.test(name) return CALLBACK_API_RE.test(name) && name !== 'onPush'
} }
function handlePromise (promise) { function handlePromise (promise) {
...@@ -1275,11 +1275,20 @@ function parseBaseComponent (vueComponentOptions, { ...@@ -1275,11 +1275,20 @@ function parseBaseComponent (vueComponentOptions, {
} = {}) { } = {}) {
let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions); let [VueComponent, vueOptions] = initVueComponent(Vue, vueComponentOptions);
const componentOptions = { const options = {
options: {
multipleSlots: true, multipleSlots: true,
addGlobalClass: true addGlobalClass: true
}, };
{
// 微信multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
if (vueOptions['mp-weixin'] && vueOptions['mp-weixin']['options']) {
Object.assign(options, vueOptions['mp-weixin']['options']);
}
}
const componentOptions = {
options,
data: initData(vueOptions, Vue.prototype), data: initData(vueOptions, Vue.prototype),
behaviors: initBehaviors(vueOptions, initBehavior), behaviors: initBehaviors(vueOptions, initBehavior),
properties: initProperties(vueOptions.props, false, vueOptions.__file), properties: initProperties(vueOptions.props, false, vueOptions.__file),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册