add app-shell, master-detail, pane-transition

This commit is contained in:
Timi
2026-11-02 21:46:30 +08:00
parent 107a3086ba
commit 8f6b8c1eff
32 changed files with 2631 additions and 55 deletions
+28
View File
@@ -1,6 +1,10 @@
/** 导出所有组件 */
import RootLayout from "./root-layout";
import PageTransition from "./page-transition";
import AppShell from "./app-shell";
import MasterDetail from "./master-detail";
import MasterDetailPage from "./master-detail-page";
import PaneTransition from "./pane-transition";
import DurationPicker from "./duration-picker";
import CodeEditor from "./code-editor";
import TiptapEditor from "./tiptap-editor";
@@ -23,6 +27,10 @@ import {
export default [
RootLayout,
PageTransition,
AppShell,
MasterDetail,
MasterDetailPage,
PaneTransition,
DurationPicker,
CodeEditor,
TiptapEditor,
@@ -44,6 +52,10 @@ export default [
export {
RootLayout,
PageTransition,
AppShell,
MasterDetail,
MasterDetailPage,
PaneTransition,
DurationPicker,
CodeEditor,
TiptapEditor,
@@ -62,6 +74,22 @@ export {
AiChatThinking
};
export { createLayoutContext, provideLayout, useLayout } from "./app-shell";
export { useExpandToMaster, useMasterDetail, useMasterDetailPane, usePane } from "../composables/use-master-detail";
export type { ExpandToMasterOptions, PaneContext, PaneDirection, UseMasterDetailOptions, UseMasterDetailPaneOptions, UseMasterDetailPaneReturn, UseMasterDetailReturn } from "../composables/use-master-detail";
export type {
AppShellItem,
AppShellLayoutOptions,
AppShellMode,
AppShellProps,
AppShellValue,
LayoutContext
} from "./app-shell";
export type { MasterDetailProps } from "./master-detail";
export type { MasterDetailPageProps } from "./master-detail-page";
export {
AiChatHttpError,
AiChatStreamError,