refactor(login): compose page from focused login components
Split the login page into smaller reusable components for branding, toolbar, header, form, announcements, and mobile layout behavior. This keeps the view responsible for orchestration while moving UI sections into focused components. Update page creation docs to reflect the simplified flow where views render sections/items directly and composables coordinate store/service access when needed.refactor(login): compose page from focused login components Split the login page into smaller reusable components for branding, toolbar, header, form, announcements, and mobile layout behavior. This keeps the view responsible for orchestration while moving UI sections into focused components. Update page creation docs to reflect the simplified flow where views render sections/items directly and composables coordinate store/service access when needed.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<!-- Page component 組合 PageMaint 外殼、主檔表格、子檔區與 dialog;流程狀態集中在本頁 script。 -->
|
||||
<page-maint
|
||||
<!-- Page component 組合 MaintShell 外殼、主檔表格、子檔區與 dialog;流程狀態集中在本頁 script。 -->
|
||||
<maint-shell
|
||||
:search-panel-open="searchPanelOpen"
|
||||
:title="pageModel.title"
|
||||
@create="openAddDialog"
|
||||
@toggle-search="searchPanelOpen = !searchPanelOpen"
|
||||
>
|
||||
<!-- 搜尋欄位放在 PageMaint 的 search-fields slot,讓外殼固定、欄位由頁面決定。 -->
|
||||
<!-- 搜尋欄位放在 MaintShell 的 search-fields slot,讓外殼固定、欄位由頁面決定。 -->
|
||||
<template #search-fields>
|
||||
<v-col cols="12" md="2">
|
||||
<div id="search-student-id-label" class="text-body-2 text-medium-emphasis pl-2">學號</div>
|
||||
@@ -173,7 +173,7 @@
|
||||
</template>
|
||||
</v-data-table>
|
||||
</template>
|
||||
</page-maint>
|
||||
</maint-shell>
|
||||
|
||||
<!-- 主從式維護視窗 -->
|
||||
<!-- 說明:包含主檔 (學生資料) 與明細檔 (學期成績) 的維護介面 -->
|
||||
@@ -498,7 +498,7 @@ import DetailSimpleList from '@/components/maint/master-detail/DetailSimpleList.
|
||||
import MasterFileFormFields from '@/components/maint/MasterFileFormFields.vue'
|
||||
import MntDialogCard from '@/components/maint/MntDialogCard.vue'
|
||||
import MntRecordNavToolbar from '@/components/maint/MntRecordNavToolbar.vue'
|
||||
import PageMaint from '@/components/PageMaint.vue'
|
||||
import MaintShell from '@/components/MaintShell.vue'
|
||||
import { useMaintenanceCrudFlow } from '@/composables/maint/useMaintenanceCrudFlow'
|
||||
import { useStudentMaintenanceForm } from '@/composables/maint/useStudentMaintenanceForm'
|
||||
import { type CourseRecord, type SemesterRecord, useSemesterStore } from '@/stores/semesters'
|
||||
|
||||
Reference in New Issue
Block a user