docs: simplify page architecture and component guidance

Update the src documentation to emphasize building pages from route views,
composables, sections, and items instead of a dedicated pages layer.

Clarify the recommended data flow and new feature workflow so template users
start from views and only introduce page-driver composables when coordination
logic becomes complex.docs: simplify page architecture and component guidance

Update the src documentation to emphasize building pages from route views,
composables, sections, and items instead of a dedicated pages layer.

Clarify the recommended data flow and new feature workflow so template users
start from views and only introduce page-driver composables when coordination
logic becomes complex.
This commit is contained in:
skytek_xinliang
2026-05-27 11:50:40 +08:00
parent ad00f5c195
commit 7b99087cbb
25 changed files with 2797 additions and 3174 deletions
+4 -4
View File
@@ -1,15 +1,15 @@
<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import PageFunction from '@/components/pages/PageFunction.vue'
import type { FunctionPageModel } from '@/components/pages/PageFunction.vue'
const route = useRoute()
const pageModel = computed<FunctionPageModel>(() => ({
const pageModel = computed(() => ({
fncId: String(route.params.fncId ?? ''),
}))
</script>
<template>
<PageFunction :page="pageModel" />
<v-sheet height="100%" width="100%">
{{ pageModel.fncId }}
</v-sheet>
</template>