@gx-design-vue/pro-layout 0.1.0-alpha.7 → 0.1.0-alpha.8

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.
@@ -3,6 +3,8 @@ import * as _$vue from "vue";
3
3
  import { CSSProperties, PropType, SlotsType } from "vue";
4
4
  import { CustomRender } from "@gx-design-vue/pro-utils";
5
5
  import * as _$vue_jsx_runtime0 from "vue/jsx-runtime";
6
+ import { ConfigOptions } from "antdv-next/dist/message/interface";
7
+ import { NotificationConfig } from "antdv-next/dist/notification/interface";
6
8
 
7
9
  //#region src/components/AppPage/index.d.ts
8
10
  /**
@@ -23,6 +25,8 @@ declare const ProAppPage: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
23
25
  type: PropType<CustomRender>;
24
26
  default: any;
25
27
  };
28
+ message: PropType<ConfigOptions>;
29
+ notification: PropType<NotificationConfig>;
26
30
  }>, () => _$vue_jsx_runtime0.JSX.Element, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
27
31
  class: PropType<string>;
28
32
  style: PropType<CSSProperties>;
@@ -35,9 +39,11 @@ declare const ProAppPage: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
35
39
  type: PropType<CustomRender>;
36
40
  default: any;
37
41
  };
42
+ message: PropType<ConfigOptions>;
43
+ notification: PropType<NotificationConfig>;
38
44
  }>> & Readonly<{}>, {
39
- indicator: CustomRender;
40
45
  spinning: AppPageSpinning;
46
+ indicator: CustomRender;
41
47
  }, SlotsType<{
42
48
  default: () => any;
43
49
  indicator: () => any;
@@ -3,6 +3,7 @@ import style_default from "./style.js";
3
3
  import { computed, createVNode, defineComponent } from "vue";
4
4
  import { useProConfigContext } from "@gx-design-vue/pro-provider";
5
5
  import { classNames, getSlotVNode } from "@gx-design-vue/pro-utils";
6
+ import { App } from "antdv-next";
6
7
  import { useBaseConfig } from "antdv-next/config-provider/context";
7
8
  import useCSSVarCls from "antdv-next/config-provider/hooks/useCSSVarCls";
8
9
  import { GIcon } from "@gx-design-vue/icon";
@@ -43,7 +44,9 @@ const ProAppPage = /* @__PURE__ */ defineComponent({
43
44
  String
44
45
  ],
45
46
  default: void 0
46
- }
47
+ },
48
+ message: Object,
49
+ notification: Object
47
50
  },
48
51
  slots: Object,
49
52
  setup(props, { slots }) {
@@ -72,16 +75,18 @@ const ProAppPage = /* @__PURE__ */ defineComponent({
72
75
  backgroundColor: props.spinning?.blur ? void 0 : "unset",
73
76
  ...props.spinning?.style || {}
74
77
  }));
75
- return () => createVNode("div", {
78
+ return () => createVNode(App, {
76
79
  "class": rootClassNames.value,
77
- "style": props.style
78
- }, [createVNode(GScrollbar, {
80
+ "style": props.style,
81
+ "message": props.message,
82
+ "notification": props.notification
83
+ }, { default: () => [createVNode(GScrollbar, {
79
84
  "barStyle": SCROLLBAR_BAR_STYLE,
80
85
  "viewStyle": SCROLLBAR_VIEW_STYLE
81
86
  }, { default: () => [slots.default?.()] }), loading.value && createVNode("div", {
82
87
  "class": classNames(`${prefixCls.value}-blur`, hashId.value),
83
88
  "style": maskStyle.value
84
- }, [createVNode("div", { "class": `${prefixCls.value}-spin` }, [resolvedIndicator.value])])]);
89
+ }, [createVNode("div", { "class": `${prefixCls.value}-spin` }, [resolvedIndicator.value])])] });
85
90
  }
86
91
  });
87
92
  //#endregion
@@ -122,6 +122,7 @@ const ProPageContainer = /* @__PURE__ */ defineComponent((props, { slots, emit }
122
122
  const cardClass = regionClass("card");
123
123
  const cardNode = cardEnabled.value ? createVNode(Card, {
124
124
  "class": cardClass,
125
+ "classes": { body: regionClass("card-body") },
125
126
  "variant": cardConfig.value.variant ?? "borderless",
126
127
  "styles": cardConfig.value.bodyStyle ? { body: cardConfig.value.bodyStyle } : void 0,
127
128
  "style": props.proStyles?.card
@@ -71,7 +71,11 @@ const genPageContentStyle = (token) => {
71
71
  flex: 1,
72
72
  minHeight: 0,
73
73
  height: "100%",
74
- overflow: "hidden"
74
+ overflow: "hidden",
75
+ [`${componentCls}-card`]: {
76
+ display: "flex",
77
+ flexDirection: "column"
78
+ }
75
79
  },
76
80
  "&-content": {
77
81
  position: "relative",
@@ -93,7 +97,8 @@ const genPageContentStyle = (token) => {
93
97
  },
94
98
  "&-card": {
95
99
  flex: "1 1 auto",
96
- minHeight: 0
100
+ minHeight: 0,
101
+ overflow: "hidden"
97
102
  },
98
103
  "&-footer": {
99
104
  flexShrink: 0,
@@ -49,8 +49,8 @@ declare const GPageTransition: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
49
49
  default: string;
50
50
  };
51
51
  }>> & Readonly<{}>, {
52
- reverse: boolean;
53
52
  direction: string;
53
+ reverse: boolean;
54
54
  name: string;
55
55
  disabled: boolean;
56
56
  }, SlotsType<GPageTransitionSlots>, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
@@ -40,33 +40,33 @@ declare function useLayoutBase(props?: {
40
40
  openKeys: _$vue.ComputedRef<string[]>;
41
41
  proClasses: _$vue.ComputedRef<{
42
42
  content?: string;
43
- siderHeader?: string;
44
- siderFooter?: string;
45
- footer?: string;
46
- header?: string;
47
- breadcrumb?: string;
48
43
  root?: string;
44
+ header?: string;
49
45
  sider?: string;
50
46
  siderChildren?: string;
47
+ siderHeader?: string;
48
+ siderFooter?: string;
51
49
  logo?: string;
52
50
  logoImage?: string;
51
+ footer?: string;
53
52
  menu?: string;
54
53
  tabs?: string;
54
+ breadcrumb?: string;
55
55
  }>;
56
56
  proStyles: _$vue.ComputedRef<{
57
57
  content?: _$vue.CSSProperties;
58
- siderHeader?: _$vue.CSSProperties;
59
- siderFooter?: _$vue.CSSProperties;
60
- footer?: _$vue.CSSProperties;
61
- header?: _$vue.CSSProperties;
62
- breadcrumb?: _$vue.CSSProperties;
63
58
  root?: _$vue.CSSProperties;
59
+ header?: _$vue.CSSProperties;
64
60
  sider?: _$vue.CSSProperties;
65
61
  siderChildren?: _$vue.CSSProperties;
62
+ siderHeader?: _$vue.CSSProperties;
63
+ siderFooter?: _$vue.CSSProperties;
66
64
  logo?: _$vue.CSSProperties;
67
65
  logoImage?: _$vue.CSSProperties;
66
+ footer?: _$vue.CSSProperties;
68
67
  menu?: _$vue.CSSProperties;
69
68
  tabs?: _$vue.CSSProperties;
69
+ breadcrumb?: _$vue.CSSProperties;
70
70
  }>;
71
71
  breadcrumbRender: _$vue.Ref<(props: LayoutBreadcrumbSlotProps) => any, (props: LayoutBreadcrumbSlotProps) => any>;
72
72
  breadcrumbConfig: _$vue.ComputedRef<LayoutBreadcrumbConfig>;