feat(web): add Ant workspace tabs and harden page chrome
Persist workspace tabs in the app shell with Ant Design styling aligned to the desktop top bar, and fix tab bar layout flicker on select. Add shared PageHeader components, query helpers, and missing header state across CRM views; improve mobile shell layout and Vite HMR stability on Windows. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -30,13 +30,13 @@ import {
|
||||
Row as ARow,
|
||||
Select as ASelect,
|
||||
Space as ASpace,
|
||||
Tabs as ATabs,
|
||||
TabPane as ATabPane,
|
||||
Typography,
|
||||
} from 'ant-design-vue';
|
||||
import { CrmSkeleton, CrmSkeletonTable } from '@/components/skeleton';
|
||||
import { PageHeader } from '@/components/page';
|
||||
import { HistoryOutlined } from '@/icons/ant-bridge';
|
||||
|
||||
const { Title: ATypographyTitle, Text: ATypographyText } = Typography;
|
||||
const { Text: ATypographyText } = Typography;
|
||||
|
||||
type HistoryTab = 'creates' | 'edits' | 'deletes';
|
||||
|
||||
@@ -517,11 +517,14 @@ void loadActors();
|
||||
|
||||
<template>
|
||||
<a-flex vertical :gap="16">
|
||||
<a-typography-title :level="3" :style="{ margin: 0 }">تاریخچه کارها</a-typography-title>
|
||||
|
||||
<a-tabs :active-key="tab" @change="selectTab">
|
||||
<a-tab-pane v-for="item in TABS" :key="item.key" :tab="item.label" />
|
||||
</a-tabs>
|
||||
<PageHeader
|
||||
title="تاریخچه کارها"
|
||||
subtitle="موارد حذفشده و بایگانیشده و امکان بازگردانی"
|
||||
:icon="HistoryOutlined"
|
||||
:tabs="TABS.map((item) => ({ key: item.key, label: item.label }))"
|
||||
:active-tab="tab"
|
||||
@update:active-tab="(k) => selectTab(k ?? TABS[0]!.key)"
|
||||
/>
|
||||
|
||||
<a-alert v-if="okMsg" type="success" show-icon :message="okMsg" closable @close="okMsg = ''" />
|
||||
<a-alert v-if="error" type="error" show-icon :message="error" closable @close="error = ''" />
|
||||
|
||||
Reference in New Issue
Block a user