🎨 战绩页面基本就这样了

This commit is contained in:
BTMuli
2023-06-14 13:04:51 +08:00
parent 65eae3422d
commit 09f0ff329e
4 changed files with 10 additions and 5 deletions

View File

@@ -10,6 +10,7 @@
{{ data.name }}
</div>
<div class="tur-hs-title">
<!-- canvas -->
<img :src="data.comfortIcon" alt="comfort">
{{ data.comfortName }}
</div>
@@ -39,7 +40,6 @@ interface TurHomeSubProps {
}
const props = defineProps<TurHomeSubProps>();
console.log(props.data);
</script>
<style lang="css" scoped>
.tur-hs-box {

View File

@@ -31,7 +31,8 @@ interface TurOverviewGridProps {
const props = defineProps<TurOverviewGridProps>();
const data = computed(() =>
JSON.parse(<string>props.modelValue) as TGApp.Sqlite.Record.Stats);
JSON.parse(<string>props.modelValue) as TGApp.Sqlite.Record.Stats,
);
</script>
<style lang="css" scoped>
.tur-og-box {

View File

@@ -53,7 +53,7 @@ onMounted(async () => {
await listenOnTheme();
});
async function listenOnTheme() {
async function listenOnTheme () {
await event.listen("readTheme", (e) => {
const theme = e.payload as string;
if (theme === "dark") {