MyCenterTab.uvue
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
<view class="home-frame-container scene-shell-root"
>
<view class="my-center-wrap">
<MyCenterMain :user-info="resolvedUserInfo" />
</view>
</view>
</template>
<script setup lang="uts">
import { computed } from "vue";
// import { cssClassRef, useResolutionConfig } from "@/services/adapter";
// import { layoutService } from "@/services/LayoutService.uts";
import MyCenterMain from "@/pages/person/MyCenterMain.uvue";
const props = defineProps<{
userInfo?: null | UTSJSONObject
}>();
// useResolutionConfig();
// const adapterClass = computed((): string => {
// const cls = cssClassRef.value;
// return cls != null ? (cls as string) : "";
// });
// const modeClass = computed((): string => {
// const modeRef = layoutService.getCurrentMode();
// const m = modeRef.value;
// return m == "portrait" ? "mode-portrait" : "mode-landscape";
// });
// const resolutionClass = computed((): string => {
// const bucket = layoutService.getResolutionBucket();
// return `res-${bucket}`;
// });
const resolvedUserInfo = computed((): UTSJSONObject => {
const u = props.userInfo;
return u != null ? u : ({} as UTSJSONObject);
});
</script>
<style scoped lang="scss">
@import "../styles/common.scss";
.my-center-wrap {
flex: 1;
width: 100%;
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
}
</style>