🎨 Optimize preset theme code

This commit is contained in:
2025-10-20 21:58:37 +08:00
parent 9a15df01ee
commit aa8139884b
26 changed files with 245 additions and 465 deletions

View File

@@ -1,13 +1,15 @@
<script setup lang="ts">
defineProps<{
title: string;
title?: string;
}>();
</script>
<template>
<div class="setting-section">
<div class="section-header">
<h2 class="section-title">{{ title }}</h2>
<h2 class="section-title">
<slot name="title">{{ title }}</slot>
</h2>
<div class="section-title-right">
<slot name="title-right"></slot>
</div>