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:
@@ -1,12 +1,12 @@
|
||||
# Maintenance Views Guide
|
||||
|
||||
`views/maint` 是維護頁 demo。所有檔案都應是薄 route entry,實際 UI 與流程分別放在 `components/pages`、`components/sections`、`components/items` 與 `composables/page-drivers`。
|
||||
`views/maint` 是維護頁 demo。所有檔案都是自含的 route entry,UI 與流程直接在 view 中組合 `PageMaint`、`components/sections`、`components/items` 與 composable。
|
||||
|
||||
## 目前範本
|
||||
|
||||
- `SingleRecord.vue`:單主檔 CRUD + dialog。
|
||||
- `SingleRecord.vue`:單主檔 CRUD + dialog(使用 page driver composable)。
|
||||
- `EditableGrid.vue`:可編輯表格。
|
||||
- `MasterDetailA.vue`:主檔 + 側邊明細 panel。
|
||||
- `MasterDetailA.vue`:主檔 + 側邊明細 panel(使用 page driver composable)。
|
||||
- `MasterDetailB.vue`:主檔 + collapse / full-height 明細。
|
||||
- `MasterDetailC.vue`:主檔 + 簡化明細清單。
|
||||
|
||||
@@ -15,8 +15,6 @@
|
||||
複製維護頁時同步調整:
|
||||
|
||||
- `router/routes.ts` 的 `path`、`name`、`component`、`meta.layout`
|
||||
- page driver 名稱與 import
|
||||
- page component 名稱與 import
|
||||
- 頁面標題、查詢欄位、表格欄位、form 型別、驗證規則
|
||||
- store、service、model、語系、menu/favorites/breadcrumb 相關資料
|
||||
|
||||
|
||||
Reference in New Issue
Block a user