fixing adn docing

This commit is contained in:
skytek_xinliang
2026-06-01 14:44:39 +08:00
parent 7b0cfe4448
commit f61432ad8a
17 changed files with 25 additions and 41 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
- `layouts/`App Shell 層的 layout 元件。詳見 `src/components/layouts/GUIDE.md`
- `base/`:真正跨頁共用的基礎元件。詳見 `src/components/base/GUIDE.md`
`MaintShell.vue` 是 maintenance 頁面的通用外殼元件,放在 `src/components/` 頂層
`MaintShell.vue` 是 maintenance 頁面的通用外殼元件,放在 `src/components/maint/`
## 規則
@@ -1,7 +1,6 @@
<script setup lang="ts">
interface Props {
title: string
backLabel?: string
error?: string
loading?: boolean
message?: string
@@ -10,7 +9,6 @@ interface Props {
}
withDefaults(defineProps<Props>(), {
backLabel: '返回',
resetLabel: '清除',
submitLabel: '存檔',
})
@@ -50,7 +48,6 @@ const emit = defineEmits<{
{{ submitLabel }}
</v-btn>
<v-btn type="button" variant="tonal" @click="emit('reset')">{{ resetLabel }}</v-btn>
<v-btn type="button" variant="text" @click="emit('back')">{{ backLabel }}</v-btn>
</v-row>
</v-card>
</v-container>
+1 -7
View File
@@ -6,9 +6,7 @@ interface Props {
loading?: boolean
}
withDefaults(defineProps<Props>(), {
backLabel: '返回',
})
withDefaults(defineProps<Props>(), {})
const emit = defineEmits<{
search: []
@@ -38,9 +36,5 @@ const emit = defineEmits<{
</v-card>
<slot name="sections" />
<v-row class="pa-4">
<v-btn variant="tonal" @click="emit('back')">{{ backLabel }}</v-btn>
</v-row>
</v-container>
</template>