MyCenterTab.uvue 1.33 KB
<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>