提交 14f2d7af 编写于 作者: DCloud_Heavensoft's avatar DCloud_Heavensoft

Update theme-change.uvue

上级 77c415ae
<template>
<view class="uni-padding-wrap">
<view class="uni-common-mt item-box">
<text>osTheme:</text>
<text id="theme">{{ osTheme }}</text>
<template>
<view class="uni-padding-wrap">
<view class="uni-common-mt item-box">
<text>osTheme:</text>
<text id="theme">{{ osTheme }}</text>
</view>
<view class="uni-common-mt item-box">
<text>应用当前主题:</text>
......@@ -23,10 +23,10 @@
</radio>
</radio-group>
</view>
</view>
</template>
</view>
</template>
<script>
export default {
data() {
......@@ -91,17 +91,21 @@
//注销监听
uni.offAppThemeChange(this.appThemeChangeId)
uni.offOsThemeChange(this.osThemeChangeId)
uni.showToast({
"position":"bottom",
"title":"已停止监听主题切换"
})
}
}
</script>
<style>
.item-box {
display: flex;
flex-direction: row;
justify-content: space-between;
}
</script>
<style>
.item-box {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.uni-list-cell {
justify-content: flex-start;
}
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册