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

build uni runtime(mp) add onShow

上级 0f3bb2fe
......@@ -781,7 +781,8 @@ function handleEvent (event) {
});
}
const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
......
{
"name": "@dcloudio/uni-app-plus",
"version": "0.0.233",
"version": "0.0.234",
"description": "uni-app app-plus",
"main": "dist/index.js",
"scripts": {
......
......@@ -1091,7 +1091,8 @@ function handleEvent (event) {
});
}
const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
......@@ -1297,7 +1298,6 @@ function initChildVues (mpInstance) {
initChildVues(childMPInstance);
console.log(childMPInstance.is, 'mounted');
childMPInstance.$vm._isMounted = true;
childMPInstance.$vm.__call_hook('mounted');
childMPInstance.$vm.__call_hook('onReady');
......@@ -1451,7 +1451,6 @@ function parsePage (vuePageOptions) {
},
onReady () {
initChildVues(this);
console.log(this.route, 'mounted');
this.$vm._isMounted = true;
this.$vm.__call_hook('mounted');
this.$vm.__call_hook('onReady');
......@@ -1520,7 +1519,6 @@ function initVm (VueComponent) {
initChildVues(this);
console.log(this.is, 'mounted');
this.$vm._isMounted = true;
this.$vm.__call_hook('mounted');
this.$vm.__call_hook('onReady');
......
{
"name": "@dcloudio/uni-mp-alipay",
"version": "0.0.804",
"version": "0.0.805",
"description": "uni-app mp-alipay",
"main": "dist/index.js",
"scripts": {
......
......@@ -908,7 +908,8 @@ function handleEvent (event) {
});
}
const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
......
{
"name": "@dcloudio/uni-mp-baidu",
"version": "0.0.831",
"version": "0.0.832",
"description": "uni-app mp-baidu",
"main": "dist/index.js",
"scripts": {
......
......@@ -927,7 +927,8 @@ function handleEvent (event) {
});
}
const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
......
{
"name": "@dcloudio/uni-mp-toutiao",
"version": "0.0.329",
"version": "0.0.330",
"description": "uni-app mp-toutiao",
"main": "dist/index.js",
"scripts": {
......
......@@ -784,7 +784,8 @@ function handleEvent (event) {
});
}
const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
......
{
"name": "@dcloudio/uni-mp-weixin",
"version": "0.0.953",
"version": "0.0.954",
"description": "uni-app mp-weixin",
"main": "dist/index.js",
"scripts": {
......
......@@ -64,7 +64,6 @@ function initVm (VueComponent) {
initChildVues(this)
console.log(this.is, 'mounted')
this.$vm._isMounted = true
this.$vm.__call_hook('mounted')
this.$vm.__call_hook('onReady')
......
......@@ -54,7 +54,6 @@ export default function parsePage (vuePageOptions) {
},
onReady () {
initChildVues(this)
console.log(this.route, 'mounted')
this.$vm._isMounted = true
this.$vm.__call_hook('mounted')
this.$vm.__call_hook('onReady')
......
......@@ -69,7 +69,6 @@ export function initChildVues (mpInstance) {
initChildVues(childMPInstance)
console.log(childMPInstance.is, 'mounted')
childMPInstance.$vm._isMounted = true
childMPInstance.$vm.__call_hook('mounted')
childMPInstance.$vm.__call_hook('onReady')
......
......@@ -5,7 +5,8 @@ import {
initMocks
} from 'uni-wrapper/util'
const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册