Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Nov 29, 2024
1 parent b0ed732 commit 8af53ee
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 89 deletions.
2 changes: 1 addition & 1 deletion packages/uni-mp-harmony
Submodule uni-mp-harmony updated from 31960e to fbbd35
44 changes: 23 additions & 21 deletions packages/uni-mp-lark/dist/uni.mp.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -869,14 +869,36 @@ function initLifetimes$1({ mocks, isPage, initRelation, vueOptions, }) {
initRelation(this, relationOptions);
}
}
function ready() {
if (process.env.UNI_DEBUG) {
console.log('uni-app:[' + Date.now() + '][' + (this.is || this.route) + ']ready');
}
if (this.$vm) {
if (isPage(this)) {
if (this.pageinstance) {
this.__webviewId__ = this.pageinstance.__pageId__;
}
{
this.$vm.$callCreatedHook();
}
nextSetDataTick(this, () => {
this.$vm.$callHook('mounted');
this.$vm.$callHook(ON_READY);
});
}
}
else {
this.is && console.warn(this.is + ' is not ready');
}
}
function detached() {
if (this.$vm) {
pruneComponentPropsCache(this.$vm.$.uid);
$destroyComponent(this.$vm);
}
}
{
return { attached, detached };
return { attached, ready, detached };
}
}

Expand Down Expand Up @@ -978,26 +1000,6 @@ var parseComponentOptions = /*#__PURE__*/Object.freeze({

function initLifetimes(lifetimesOptions) {
return extend(initLifetimes$1(lifetimesOptions), {
ready() {
if (process.env.UNI_DEBUG) {
console.log('uni-app:[' + Date.now() + '][' + (this.is || this.route) + ']ready');
}
if (this.$vm) {
if (lifetimesOptions.isPage(this)) {
if (this.pageinstance) {
this.__webviewId__ = this.pageinstance.__pageId__;
}
this.$vm.$callCreatedHook();
nextSetDataTick(this, () => {
this.$vm.$callHook('mounted');
this.$vm.$callHook(ON_READY);
});
}
}
else {
this.is && console.warn(this.is + ' is not ready');
}
},
detached() {
this.$vm && $destroyComponent(this.$vm);
// 清理
Expand Down
43 changes: 23 additions & 20 deletions packages/uni-mp-toutiao/dist-x/uni.mp.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,28 @@ function initLifetimes$1({ mocks, isPage, initRelation, vueOptions, }) {
initRelation(this, relationOptions);
}
}
function ready() {
if (process.env.UNI_DEBUG) {
console.log('uni-app:[' + Date.now() + '][' + (this.is || this.route) + ']ready');
}
if (this.$vm) {
if (isPage(this)) {
if (this.pageinstance) {
this.__webviewId__ = this.pageinstance.__pageId__;
}
{
this.$vm.$callCreatedHook();
}
nextSetDataTick(this, () => {
this.$vm.$callHook('mounted');
this.$vm.$callHook(ON_READY);
});
}
}
else {
this.is && console.warn(this.is + ' is not ready');
}
}
function detached() {
if (this.$vm) {
pruneComponentPropsCache(this.$vm.$.uid);
Expand All @@ -1632,6 +1654,7 @@ function initLifetimes$1({ mocks, isPage, initRelation, vueOptions, }) {
component = components[0];
}
},
ready,
detached,
};
}
Expand Down Expand Up @@ -1734,26 +1757,6 @@ var parseComponentOptions = /*#__PURE__*/Object.freeze({

function initLifetimes(lifetimesOptions) {
return extend(initLifetimes$1(lifetimesOptions), {
ready() {
if (process.env.UNI_DEBUG) {
console.log('uni-app:[' + Date.now() + '][' + (this.is || this.route) + ']ready');
}
if (this.$vm) {
if (lifetimesOptions.isPage(this)) {
if (this.pageinstance) {
this.__webviewId__ = this.pageinstance.__pageId__;
}
this.$vm.$callCreatedHook();
nextSetDataTick(this, () => {
this.$vm.$callHook('mounted');
this.$vm.$callHook(ON_READY);
});
}
}
else {
this.is && console.warn(this.is + ' is not ready');
}
},
detached() {
this.$vm && $destroyComponent(this.$vm);
// 清理
Expand Down
43 changes: 23 additions & 20 deletions packages/uni-mp-toutiao/dist/uni.mp.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,28 @@ function initLifetimes$1({ mocks, isPage, initRelation, vueOptions, }) {
initRelation(this, relationOptions);
}
}
function ready() {
if (process.env.UNI_DEBUG) {
console.log('uni-app:[' + Date.now() + '][' + (this.is || this.route) + ']ready');
}
if (this.$vm) {
if (isPage(this)) {
if (this.pageinstance) {
this.__webviewId__ = this.pageinstance.__pageId__;
}
{
this.$vm.$callCreatedHook();
}
nextSetDataTick(this, () => {
this.$vm.$callHook('mounted');
this.$vm.$callHook(ON_READY);
});
}
}
else {
this.is && console.warn(this.is + ' is not ready');
}
}
function detached() {
if (this.$vm) {
pruneComponentPropsCache(this.$vm.$.uid);
Expand All @@ -910,6 +932,7 @@ function initLifetimes$1({ mocks, isPage, initRelation, vueOptions, }) {
component = components[0];
}
},
ready,
detached,
};
}
Expand Down Expand Up @@ -1012,26 +1035,6 @@ var parseComponentOptions = /*#__PURE__*/Object.freeze({

function initLifetimes(lifetimesOptions) {
return extend(initLifetimes$1(lifetimesOptions), {
ready() {
if (process.env.UNI_DEBUG) {
console.log('uni-app:[' + Date.now() + '][' + (this.is || this.route) + ']ready');
}
if (this.$vm) {
if (lifetimesOptions.isPage(this)) {
if (this.pageinstance) {
this.__webviewId__ = this.pageinstance.__pageId__;
}
this.$vm.$callCreatedHook();
nextSetDataTick(this, () => {
this.$vm.$callHook('mounted');
this.$vm.$callHook(ON_READY);
});
}
}
else {
this.is && console.warn(this.is + ' is not ready');
}
},
detached() {
this.$vm && $destroyComponent(this.$vm);
// 清理
Expand Down
53 changes: 26 additions & 27 deletions packages/uni-quickapp-webview/dist/uni.mp.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -860,14 +860,39 @@ function initLifetimes$1({ mocks, isPage, initRelation, vueOptions, }) {
initFormField(this.$vm);
}
}
function ready() {
if (process.env.UNI_DEBUG) {
console.log('uni-app:[' + Date.now() + '][' + (this.is || this.route) + ']ready');
}
if (this.$vm) {
if (isPage(this)) {
if (this.pageinstance) {
this.__webviewId__ = this.pageinstance.__pageId__;
}
nextSetDataTick(this, () => {
this.$vm.$callHook('mounted');
this.$vm.$callHook(ON_READY);
});
}
else {
{
this.$vm.$callHook('mounted');
this.$vm.$callHook(ON_READY);
}
}
}
else {
this.is && console.warn(this.is + ' is not ready');
}
}
function detached() {
if (this.$vm) {
pruneComponentPropsCache(this.$vm.$.uid);
$destroyComponent(this.$vm);
}
}
{
return { attached, detached };
return { attached, ready, detached };
}
}

Expand All @@ -878,32 +903,6 @@ function parse(componentOptions, { handleLink }) {

function initLifetimes(lifetimesOptions) {
return extend(initLifetimes$1(lifetimesOptions), {
ready() {
if (process.env.UNI_DEBUG) {
console.log('uni-app:[' + Date.now() + '][' + (this.is || this.route) + ']ready');
}
if (this.$vm) {
if (lifetimesOptions.isPage(this)) {
if (this.pageinstance) {
this.__webviewId__ = this.pageinstance.__pageId__;
}
this.$vm.$callCreatedHook();
nextSetDataTick(this, () => {
this.$vm.$callHook('mounted');
this.$vm.$callHook(ON_READY);
});
}
else {
{
this.$vm.$callHook('mounted');
this.$vm.$callHook(ON_READY);
}
}
}
else {
this.is && console.warn(this.is + ' is not ready');
}
},
detached() {
this.$vm && $destroyComponent(this.$vm);
// 清理
Expand Down

0 comments on commit 8af53ee

Please sign in to comment.