This commit is contained in:
2025-09-14 00:21:54 +08:00
commit d40b3bbd62
766 changed files with 36275 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
.input {
margin: 15px auto;
width: 80%;
/* border-bottom: 1px solid black; */
}
.text {
margin: 15px auto;
width: 80%;
}

View File

@@ -0,0 +1,26 @@
Page({
onShareAppMessage() {
return {
title: 'lifecycle',
path: 'packageAPI/pages/lifecycle/lifecycle',
};
},
data: {
load: false,
show: false,
hide: false,
unload: false,
},
onLoad() {
xhs.showToast({ title: 'pageOnLoad' });
},
onShow() {
xhs.showToast({ title: 'pageOnShow' });
},
onHide() {
xhs.showToast({ title: 'pageOnHide' });
},
onUnload() {
xhs.showToast({ title: 'pageOnUnload' });
},
});

View File

@@ -0,0 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "lifecycle"
}

View File

@@ -0,0 +1,18 @@
<view class="container">
<view class="page-body">
<view class="page-section">
<view>
<text>load:{{load}}</text>
</view>
<view>
<text>show:{{show}}</text>
</view>
<view>
<text>hide:{{hide}}</text>
</view>
<view>
<text>unload:{{unload}}</text>
</view>
</view>
</view>
</view>