Skip to content

Commit

Permalink
build uni runtime(mp) add onShow
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed May 17, 2019
1 parent 0f3bb2f commit 95384fa
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 17 deletions.
3 changes: 2 additions & 1 deletion packages/uni-app-plus/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,8 @@ function handleEvent (event) {
});
}

const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-app-plus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-app-plus",
"version": "0.0.233",
"version": "0.0.234",
"description": "uni-app app-plus",
"main": "dist/index.js",
"scripts": {
Expand Down
6 changes: 2 additions & 4 deletions packages/uni-mp-alipay/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,8 @@ function handleEvent (event) {
});
}

const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-mp-alipay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-mp-alipay",
"version": "0.0.804",
"version": "0.0.805",
"description": "uni-app mp-alipay",
"main": "dist/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion packages/uni-mp-baidu/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,8 @@ function handleEvent (event) {
});
}

const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-mp-baidu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-mp-baidu",
"version": "0.0.831",
"version": "0.0.832",
"description": "uni-app mp-baidu",
"main": "dist/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion packages/uni-mp-toutiao/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,8 @@ function handleEvent (event) {
});
}

const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-mp-toutiao/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-mp-toutiao",
"version": "0.0.329",
"version": "0.0.330",
"description": "uni-app mp-toutiao",
"main": "dist/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion packages/uni-mp-weixin/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,8 @@ function handleEvent (event) {
});
}

const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-mp-weixin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-mp-weixin",
"version": "0.0.953",
"version": "0.0.954",
"description": "uni-app mp-weixin",
"main": "dist/index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 0 additions & 1 deletion src/platforms/mp-alipay/runtime/wrapper/page-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 0 additions & 1 deletion src/platforms/mp-alipay/runtime/wrapper/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 2 additions & 1 deletion src/platforms/mp-weixin/runtime/wrapper/app-base-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {
initMocks
} from 'uni-wrapper/util'

const hooks = [
const hooks = [
'onShow',
'onHide',
'onError',
'onPageNotFound'
Expand Down

0 comments on commit 95384fa

Please sign in to comment.