@robot-admin/layout 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,9 +1,15 @@
1
+ import { AllowedComponentProps } from 'vue';
1
2
  import { App } from 'vue';
2
3
  import { Component } from 'vue';
4
+ import { ComponentCustomProps } from 'vue';
5
+ import { ComponentOptionsBase } from 'vue';
3
6
  import { ComponentOptionsMixin } from 'vue';
4
7
  import { ComponentProvideOptions } from 'vue';
5
8
  import { ComputedRef } from 'vue';
9
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
6
10
  import { DefineComponent } from 'vue';
11
+ import { GlobalComponents } from 'vue';
12
+ import { GlobalDirectives } from 'vue';
7
13
  import { InjectionKey } from 'vue';
8
14
  import { MaybeRefOrGetter } from 'vue';
9
15
  import { PublicProps } from 'vue';
@@ -12,6 +18,7 @@ import { RouteLocationNormalizedLoaded } from 'vue-router';
12
18
  import { Store } from 'pinia';
13
19
  import { StoreDefinition } from 'pinia';
14
20
  import { VNode } from 'vue';
21
+ import { VNodeProps } from 'vue';
15
22
  import { WritableComputedRef } from 'vue';
16
23
 
17
24
  declare const __VLS_component: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -47,7 +54,7 @@ declare const __VLS_component_7: DefineComponent< {}, {}, {}, {}, {}, Compone
47
54
  declare const __VLS_component_8: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
48
55
 
49
56
  declare type __VLS_Props = {
50
- /** 抽屉宽度,保持 2.x 默认值 */
57
+ /** 抽屉宽度,默认 380px */
51
58
  width?: number;
52
59
  /** 显式设置 Store;优先级高于 setupLayout 注入和默认 Store */
53
60
  store?: SettingsStoreInstance;
@@ -984,11 +991,204 @@ showDivider: boolean;
984
991
  variant: "vertical" | "horizontal";
985
992
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
986
993
 
994
+ /** @deprecated 请使用 CardLayout;该别名计划在 4.0 移除。 */
995
+ export declare const C_CardLayout: {
996
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
997
+ P: {};
998
+ B: {};
999
+ D: {};
1000
+ C: {};
1001
+ M: {};
1002
+ Defaults: {};
1003
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1004
+ __isFragment?: never;
1005
+ __isTeleport?: never;
1006
+ __isSuspense?: never;
1007
+ } & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1008
+ $slots: {
1009
+ 'menu-trigger'?(_: {}): any;
1010
+ logo?(_: {}): any;
1011
+ 'header-extra'?(_: {}): any;
1012
+ 'tags-view'?(_: {}): any;
1013
+ 'drawer-menu'?(_: {}): any;
1014
+ footer?(_: {}): any;
1015
+ };
1016
+ });
1017
+
987
1018
  export declare const C_LayoutContainer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
988
1019
 
1020
+ /** @deprecated 请使用 MixLayout;该别名计划在 4.0 移除。 */
1021
+ export declare const C_MixLayout: {
1022
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
1023
+ P: {};
1024
+ B: {};
1025
+ D: {};
1026
+ C: {};
1027
+ M: {};
1028
+ Defaults: {};
1029
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1030
+ __isFragment?: never;
1031
+ __isTeleport?: never;
1032
+ __isSuspense?: never;
1033
+ } & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1034
+ $slots: {
1035
+ logo?(_: {}): any;
1036
+ header?(_: {}): any;
1037
+ footer?(_: {}): any;
1038
+ };
1039
+ });
1040
+
1041
+ /** @deprecated 请使用 MixTopLayout;该别名计划在 4.0 移除。 */
1042
+ export declare const C_MixTopLayout: {
1043
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
1044
+ P: {};
1045
+ B: {};
1046
+ D: {};
1047
+ C: {};
1048
+ M: {};
1049
+ Defaults: {};
1050
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1051
+ __isFragment?: never;
1052
+ __isTeleport?: never;
1053
+ __isSuspense?: never;
1054
+ } & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1055
+ $slots: {
1056
+ logo?(_: {}): any;
1057
+ brand?(_: {}): any;
1058
+ 'top-menu'?(_: {}): any;
1059
+ 'header-extra'?(_: {}): any;
1060
+ 'tags-view'?(_: {}): any;
1061
+ footer?(_: {}): any;
1062
+ };
1063
+ });
1064
+
1065
+ /** @deprecated 请使用 ReverseHorizontalMixLayout;该别名计划在 4.0 移除。 */
1066
+ export declare const C_ReverseHorizontalMixLayout: {
1067
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
1068
+ P: {};
1069
+ B: {};
1070
+ D: {};
1071
+ C: {};
1072
+ M: {};
1073
+ Defaults: {};
1074
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1075
+ __isFragment?: never;
1076
+ __isTeleport?: never;
1077
+ __isSuspense?: never;
1078
+ } & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1079
+ $slots: {
1080
+ logo?(_: {}): any;
1081
+ 'top-menu'?(_: {}): any;
1082
+ 'header-extra'?(_: {}): any;
1083
+ 'tags-view'?(_: {}): any;
1084
+ footer?(_: {}): any;
1085
+ };
1086
+ });
1087
+
1088
+ /** @deprecated 请使用 SideLayout;该别名计划在 4.0 移除。 */
1089
+ export declare const C_SideLayout: {
1090
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
1091
+ collapsed?: boolean;
1092
+ }> & Readonly<{
1093
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
1094
+ }>, {
1095
+ collapsed: ComputedRef<boolean>;
1096
+ toggleCollapse: () => void;
1097
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1098
+ "update:collapsed": (value: boolean) => any;
1099
+ }, PublicProps, {
1100
+ collapsed: boolean;
1101
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1102
+ P: {};
1103
+ B: {};
1104
+ D: {};
1105
+ C: {};
1106
+ M: {};
1107
+ Defaults: {};
1108
+ }, Readonly<{
1109
+ collapsed?: boolean;
1110
+ }> & Readonly<{
1111
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
1112
+ }>, {
1113
+ collapsed: ComputedRef<boolean>;
1114
+ toggleCollapse: () => void;
1115
+ }, {}, {}, {}, {
1116
+ collapsed: boolean;
1117
+ }>;
1118
+ __isFragment?: never;
1119
+ __isTeleport?: never;
1120
+ __isSuspense?: never;
1121
+ } & ComponentOptionsBase<Readonly<{
1122
+ collapsed?: boolean;
1123
+ }> & Readonly<{
1124
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
1125
+ }>, {
1126
+ collapsed: ComputedRef<boolean>;
1127
+ toggleCollapse: () => void;
1128
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1129
+ "update:collapsed": (value: boolean) => any;
1130
+ }, string, {
1131
+ collapsed: boolean;
1132
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1133
+ $slots: {
1134
+ logo?(_: {}): any;
1135
+ menu?(_: {
1136
+ collapsed: boolean;
1137
+ }): any;
1138
+ header?(_: {}): any;
1139
+ footer?(_: {}): any;
1140
+ };
1141
+ });
1142
+
1143
+ /** @deprecated 请使用 TopLayout;该别名计划在 4.0 移除。 */
1144
+ export declare const C_TopLayout: {
1145
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
1146
+ P: {};
1147
+ B: {};
1148
+ D: {};
1149
+ C: {};
1150
+ M: {};
1151
+ Defaults: {};
1152
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1153
+ __isFragment?: never;
1154
+ __isTeleport?: never;
1155
+ __isSuspense?: never;
1156
+ } & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1157
+ $slots: {
1158
+ logo?(_: {}): any;
1159
+ menu?(_: {}): any;
1160
+ 'header-extra'?(_: {}): any;
1161
+ 'tags-view'?(_: {}): any;
1162
+ footer?(_: {}): any;
1163
+ };
1164
+ });
1165
+
1166
+ export declare const CardLayout: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1167
+
989
1168
  /** Color swatches for color picker */
990
1169
  export declare const COLOR_SWATCHES: string[];
991
1170
 
1171
+ /**
1172
+ * 将最小宿主输入转换为完整 LayoutContext。
1173
+ *
1174
+ * 保留底层 LayoutContext 作为高级扩展协议,同时避免普通接入重复桥接 Store 字段。
1175
+ */
1176
+ export declare function createLayoutContext(options: CreateLayoutContextOptions): LayoutContext;
1177
+
1178
+ /** 创建标准布局上下文所需的最小宿主适配。 */
1179
+ export declare interface CreateLayoutContextOptions {
1180
+ /** 布局设置 Store,可使用默认 Store 或 createSettingsStore() 创建的实例。 */
1181
+ settings: SettingsStoreInstance;
1182
+ /** 宿主菜单;支持普通值、Ref、ComputedRef 或 getter。 */
1183
+ menus: MaybeRefOrGetter<MenuOptions[]>;
1184
+ /** 宿主暗色状态;支持普通值、Ref、ComputedRef 或 getter。 */
1185
+ isDark: MaybeRefOrGetter<boolean>;
1186
+ /** 品牌信息,未提供的字段使用包内安全默认值。 */
1187
+ brand?: LayoutBrandConfig;
1188
+ /** 布局内部用于渲染菜单图标的宿主组件。 */
1189
+ iconComponent?: Component;
1190
+ }
1191
+
992
1192
  /**
993
1193
  * 创建设置管理 Store
994
1194
  * @param options - 配置选项
@@ -1085,30 +1285,6 @@ updateThemeMode: (mode: ThemeMode) => Promise<void>;
1085
1285
  toggleCollapse: () => void;
1086
1286
  }, "syncCSSVariables" | "applyPreset" | "resetSettings" | "updateThemeMode" | "toggleCollapse">>;
1087
1287
 
1088
- declare const _default: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1089
- export { _default as C_SideLayout }
1090
- export { _default as SideLayout }
1091
-
1092
- declare const _default_2: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1093
- export { _default_2 as C_TopLayout }
1094
- export { _default_2 as TopLayout }
1095
-
1096
- declare const _default_3: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1097
- export { _default_3 as C_MixLayout }
1098
- export { _default_3 as MixLayout }
1099
-
1100
- declare const _default_4: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1101
- export { _default_4 as C_MixTopLayout }
1102
- export { _default_4 as MixTopLayout }
1103
-
1104
- declare const _default_5: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1105
- export { _default_5 as C_ReverseHorizontalMixLayout }
1106
- export { _default_5 as ReverseHorizontalMixLayout }
1107
-
1108
- declare const _default_6: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1109
- export { _default_6 as C_CardLayout }
1110
- export { _default_6 as CardLayout }
1111
-
1112
1288
  /**
1113
1289
  * 默认品牌配置
1114
1290
  */
@@ -1346,6 +1522,10 @@ export declare interface MenuTag {
1346
1522
 
1347
1523
  export declare const MenuTrigger: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1348
1524
 
1525
+ export declare const MixLayout: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1526
+
1527
+ export declare const MixTopLayout: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1528
+
1349
1529
  export declare const PRESET_COLORS: PresetColor[];
1350
1530
 
1351
1531
  /** 预设颜色。 */
@@ -1354,6 +1534,9 @@ export declare interface PresetColor {
1354
1534
  value: string;
1355
1535
  }
1356
1536
 
1537
+ /** 在组件 setup 中创建并提供标准布局上下文。 */
1538
+ export declare function provideLayout(options: CreateLayoutContextOptions): LayoutContext;
1539
+
1357
1540
  /** 在组件 setup 中提供布局上下文,避免消费方直接操作 InjectionKey。 */
1358
1541
  export declare function provideLayoutContext(context: LayoutContext): LayoutContext;
1359
1542
 
@@ -1361,6 +1544,8 @@ export declare const ResponsiveMenu: DefineComponent<__VLS_Props_8, {}, {}, {},
1361
1544
  containerRef: HTMLDivElement;
1362
1545
  }, HTMLDivElement>;
1363
1546
 
1547
+ export declare const ReverseHorizontalMixLayout: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1548
+
1364
1549
  /**
1365
1550
  * 一次性校验完整导入文件。此函数不修改任何响应式状态或浏览器 API,
1366
1551
  * 消费方可以在成功返回后再原子应用结果。
@@ -1529,6 +1714,8 @@ export declare function shouldCacheRoute(route: Pick<RouteLocationNormalizedLoad
1529
1714
  name: string;
1530
1715
  };
1531
1716
 
1717
+ export declare const SideLayout: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1718
+
1532
1719
  export declare const SideMenu: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1533
1720
  click: (item: MenuOptions) => any;
1534
1721
  }, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
@@ -1552,6 +1739,8 @@ export declare interface ThemePreset {
1552
1739
  settings?: Partial<Omit<SettingsState, "themeMode" | "layoutMode" | "primaryColor">>;
1553
1740
  }
1554
1741
 
1742
+ export declare const TopLayout: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1743
+
1555
1744
  export declare const TRANSITION_MAP: {
1556
1745
  readonly fade: "fade-transform";
1557
1746
  readonly slide: "fade-slide";
package/dist/index.d.ts CHANGED
@@ -1,9 +1,15 @@
1
+ import { AllowedComponentProps } from 'vue';
1
2
  import { App } from 'vue';
2
3
  import { Component } from 'vue';
4
+ import { ComponentCustomProps } from 'vue';
5
+ import { ComponentOptionsBase } from 'vue';
3
6
  import { ComponentOptionsMixin } from 'vue';
4
7
  import { ComponentProvideOptions } from 'vue';
5
8
  import { ComputedRef } from 'vue';
9
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
6
10
  import { DefineComponent } from 'vue';
11
+ import { GlobalComponents } from 'vue';
12
+ import { GlobalDirectives } from 'vue';
7
13
  import { InjectionKey } from 'vue';
8
14
  import { MaybeRefOrGetter } from 'vue';
9
15
  import { PublicProps } from 'vue';
@@ -12,6 +18,7 @@ import { RouteLocationNormalizedLoaded } from 'vue-router';
12
18
  import { Store } from 'pinia';
13
19
  import { StoreDefinition } from 'pinia';
14
20
  import { VNode } from 'vue';
21
+ import { VNodeProps } from 'vue';
15
22
  import { WritableComputedRef } from 'vue';
16
23
 
17
24
  declare const __VLS_component: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -47,7 +54,7 @@ declare const __VLS_component_7: DefineComponent< {}, {}, {}, {}, {}, Compone
47
54
  declare const __VLS_component_8: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
48
55
 
49
56
  declare type __VLS_Props = {
50
- /** 抽屉宽度,保持 2.x 默认值 */
57
+ /** 抽屉宽度,默认 380px */
51
58
  width?: number;
52
59
  /** 显式设置 Store;优先级高于 setupLayout 注入和默认 Store */
53
60
  store?: SettingsStoreInstance;
@@ -984,11 +991,204 @@ showDivider: boolean;
984
991
  variant: "vertical" | "horizontal";
985
992
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
986
993
 
994
+ /** @deprecated 请使用 CardLayout;该别名计划在 4.0 移除。 */
995
+ export declare const C_CardLayout: {
996
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
997
+ P: {};
998
+ B: {};
999
+ D: {};
1000
+ C: {};
1001
+ M: {};
1002
+ Defaults: {};
1003
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1004
+ __isFragment?: never;
1005
+ __isTeleport?: never;
1006
+ __isSuspense?: never;
1007
+ } & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1008
+ $slots: {
1009
+ 'menu-trigger'?(_: {}): any;
1010
+ logo?(_: {}): any;
1011
+ 'header-extra'?(_: {}): any;
1012
+ 'tags-view'?(_: {}): any;
1013
+ 'drawer-menu'?(_: {}): any;
1014
+ footer?(_: {}): any;
1015
+ };
1016
+ });
1017
+
987
1018
  export declare const C_LayoutContainer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
988
1019
 
1020
+ /** @deprecated 请使用 MixLayout;该别名计划在 4.0 移除。 */
1021
+ export declare const C_MixLayout: {
1022
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
1023
+ P: {};
1024
+ B: {};
1025
+ D: {};
1026
+ C: {};
1027
+ M: {};
1028
+ Defaults: {};
1029
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1030
+ __isFragment?: never;
1031
+ __isTeleport?: never;
1032
+ __isSuspense?: never;
1033
+ } & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1034
+ $slots: {
1035
+ logo?(_: {}): any;
1036
+ header?(_: {}): any;
1037
+ footer?(_: {}): any;
1038
+ };
1039
+ });
1040
+
1041
+ /** @deprecated 请使用 MixTopLayout;该别名计划在 4.0 移除。 */
1042
+ export declare const C_MixTopLayout: {
1043
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
1044
+ P: {};
1045
+ B: {};
1046
+ D: {};
1047
+ C: {};
1048
+ M: {};
1049
+ Defaults: {};
1050
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1051
+ __isFragment?: never;
1052
+ __isTeleport?: never;
1053
+ __isSuspense?: never;
1054
+ } & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1055
+ $slots: {
1056
+ logo?(_: {}): any;
1057
+ brand?(_: {}): any;
1058
+ 'top-menu'?(_: {}): any;
1059
+ 'header-extra'?(_: {}): any;
1060
+ 'tags-view'?(_: {}): any;
1061
+ footer?(_: {}): any;
1062
+ };
1063
+ });
1064
+
1065
+ /** @deprecated 请使用 ReverseHorizontalMixLayout;该别名计划在 4.0 移除。 */
1066
+ export declare const C_ReverseHorizontalMixLayout: {
1067
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
1068
+ P: {};
1069
+ B: {};
1070
+ D: {};
1071
+ C: {};
1072
+ M: {};
1073
+ Defaults: {};
1074
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1075
+ __isFragment?: never;
1076
+ __isTeleport?: never;
1077
+ __isSuspense?: never;
1078
+ } & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1079
+ $slots: {
1080
+ logo?(_: {}): any;
1081
+ 'top-menu'?(_: {}): any;
1082
+ 'header-extra'?(_: {}): any;
1083
+ 'tags-view'?(_: {}): any;
1084
+ footer?(_: {}): any;
1085
+ };
1086
+ });
1087
+
1088
+ /** @deprecated 请使用 SideLayout;该别名计划在 4.0 移除。 */
1089
+ export declare const C_SideLayout: {
1090
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
1091
+ collapsed?: boolean;
1092
+ }> & Readonly<{
1093
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
1094
+ }>, {
1095
+ collapsed: ComputedRef<boolean>;
1096
+ toggleCollapse: () => void;
1097
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1098
+ "update:collapsed": (value: boolean) => any;
1099
+ }, PublicProps, {
1100
+ collapsed: boolean;
1101
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1102
+ P: {};
1103
+ B: {};
1104
+ D: {};
1105
+ C: {};
1106
+ M: {};
1107
+ Defaults: {};
1108
+ }, Readonly<{
1109
+ collapsed?: boolean;
1110
+ }> & Readonly<{
1111
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
1112
+ }>, {
1113
+ collapsed: ComputedRef<boolean>;
1114
+ toggleCollapse: () => void;
1115
+ }, {}, {}, {}, {
1116
+ collapsed: boolean;
1117
+ }>;
1118
+ __isFragment?: never;
1119
+ __isTeleport?: never;
1120
+ __isSuspense?: never;
1121
+ } & ComponentOptionsBase<Readonly<{
1122
+ collapsed?: boolean;
1123
+ }> & Readonly<{
1124
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
1125
+ }>, {
1126
+ collapsed: ComputedRef<boolean>;
1127
+ toggleCollapse: () => void;
1128
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1129
+ "update:collapsed": (value: boolean) => any;
1130
+ }, string, {
1131
+ collapsed: boolean;
1132
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1133
+ $slots: {
1134
+ logo?(_: {}): any;
1135
+ menu?(_: {
1136
+ collapsed: boolean;
1137
+ }): any;
1138
+ header?(_: {}): any;
1139
+ footer?(_: {}): any;
1140
+ };
1141
+ });
1142
+
1143
+ /** @deprecated 请使用 TopLayout;该别名计划在 4.0 移除。 */
1144
+ export declare const C_TopLayout: {
1145
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
1146
+ P: {};
1147
+ B: {};
1148
+ D: {};
1149
+ C: {};
1150
+ M: {};
1151
+ Defaults: {};
1152
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1153
+ __isFragment?: never;
1154
+ __isTeleport?: never;
1155
+ __isSuspense?: never;
1156
+ } & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1157
+ $slots: {
1158
+ logo?(_: {}): any;
1159
+ menu?(_: {}): any;
1160
+ 'header-extra'?(_: {}): any;
1161
+ 'tags-view'?(_: {}): any;
1162
+ footer?(_: {}): any;
1163
+ };
1164
+ });
1165
+
1166
+ export declare const CardLayout: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1167
+
989
1168
  /** Color swatches for color picker */
990
1169
  export declare const COLOR_SWATCHES: string[];
991
1170
 
1171
+ /**
1172
+ * 将最小宿主输入转换为完整 LayoutContext。
1173
+ *
1174
+ * 保留底层 LayoutContext 作为高级扩展协议,同时避免普通接入重复桥接 Store 字段。
1175
+ */
1176
+ export declare function createLayoutContext(options: CreateLayoutContextOptions): LayoutContext;
1177
+
1178
+ /** 创建标准布局上下文所需的最小宿主适配。 */
1179
+ export declare interface CreateLayoutContextOptions {
1180
+ /** 布局设置 Store,可使用默认 Store 或 createSettingsStore() 创建的实例。 */
1181
+ settings: SettingsStoreInstance;
1182
+ /** 宿主菜单;支持普通值、Ref、ComputedRef 或 getter。 */
1183
+ menus: MaybeRefOrGetter<MenuOptions[]>;
1184
+ /** 宿主暗色状态;支持普通值、Ref、ComputedRef 或 getter。 */
1185
+ isDark: MaybeRefOrGetter<boolean>;
1186
+ /** 品牌信息,未提供的字段使用包内安全默认值。 */
1187
+ brand?: LayoutBrandConfig;
1188
+ /** 布局内部用于渲染菜单图标的宿主组件。 */
1189
+ iconComponent?: Component;
1190
+ }
1191
+
992
1192
  /**
993
1193
  * 创建设置管理 Store
994
1194
  * @param options - 配置选项
@@ -1085,30 +1285,6 @@ updateThemeMode: (mode: ThemeMode) => Promise<void>;
1085
1285
  toggleCollapse: () => void;
1086
1286
  }, "syncCSSVariables" | "applyPreset" | "resetSettings" | "updateThemeMode" | "toggleCollapse">>;
1087
1287
 
1088
- declare const _default: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1089
- export { _default as C_SideLayout }
1090
- export { _default as SideLayout }
1091
-
1092
- declare const _default_2: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1093
- export { _default_2 as C_TopLayout }
1094
- export { _default_2 as TopLayout }
1095
-
1096
- declare const _default_3: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1097
- export { _default_3 as C_MixLayout }
1098
- export { _default_3 as MixLayout }
1099
-
1100
- declare const _default_4: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1101
- export { _default_4 as C_MixTopLayout }
1102
- export { _default_4 as MixTopLayout }
1103
-
1104
- declare const _default_5: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1105
- export { _default_5 as C_ReverseHorizontalMixLayout }
1106
- export { _default_5 as ReverseHorizontalMixLayout }
1107
-
1108
- declare const _default_6: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1109
- export { _default_6 as C_CardLayout }
1110
- export { _default_6 as CardLayout }
1111
-
1112
1288
  /**
1113
1289
  * 默认品牌配置
1114
1290
  */
@@ -1346,6 +1522,10 @@ export declare interface MenuTag {
1346
1522
 
1347
1523
  export declare const MenuTrigger: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1348
1524
 
1525
+ export declare const MixLayout: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1526
+
1527
+ export declare const MixTopLayout: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1528
+
1349
1529
  export declare const PRESET_COLORS: PresetColor[];
1350
1530
 
1351
1531
  /** 预设颜色。 */
@@ -1354,6 +1534,9 @@ export declare interface PresetColor {
1354
1534
  value: string;
1355
1535
  }
1356
1536
 
1537
+ /** 在组件 setup 中创建并提供标准布局上下文。 */
1538
+ export declare function provideLayout(options: CreateLayoutContextOptions): LayoutContext;
1539
+
1357
1540
  /** 在组件 setup 中提供布局上下文,避免消费方直接操作 InjectionKey。 */
1358
1541
  export declare function provideLayoutContext(context: LayoutContext): LayoutContext;
1359
1542
 
@@ -1361,6 +1544,8 @@ export declare const ResponsiveMenu: DefineComponent<__VLS_Props_8, {}, {}, {},
1361
1544
  containerRef: HTMLDivElement;
1362
1545
  }, HTMLDivElement>;
1363
1546
 
1547
+ export declare const ReverseHorizontalMixLayout: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1548
+
1364
1549
  /**
1365
1550
  * 一次性校验完整导入文件。此函数不修改任何响应式状态或浏览器 API,
1366
1551
  * 消费方可以在成功返回后再原子应用结果。
@@ -1529,6 +1714,8 @@ export declare function shouldCacheRoute(route: Pick<RouteLocationNormalizedLoad
1529
1714
  name: string;
1530
1715
  };
1531
1716
 
1717
+ export declare const SideLayout: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1718
+
1532
1719
  export declare const SideMenu: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1533
1720
  click: (item: MenuOptions) => any;
1534
1721
  }, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
@@ -1552,6 +1739,8 @@ export declare interface ThemePreset {
1552
1739
  settings?: Partial<Omit<SettingsState, "themeMode" | "layoutMode" | "primaryColor">>;
1553
1740
  }
1554
1741
 
1742
+ export declare const TopLayout: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1743
+
1555
1744
  export declare const TRANSITION_MAP: {
1556
1745
  readonly fade: "fade-transform";
1557
1746
  readonly slide: "fade-slide";