@hkyhy/marsun-components-core 0.1.69 → 0.1.73

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.
Files changed (47) hide show
  1. package/dist/components/Form/kneFormInfo.js +6 -6
  2. package/dist/components/Iam/client.d.ts +42 -0
  3. package/dist/components/Iam/index.d.ts +10 -0
  4. package/dist/components/Iam/pages/IamOrgPage.d.ts +8 -0
  5. package/dist/components/Iam/pages/IamOrgPage.js +45 -0
  6. package/dist/components/Iam/pages/IamOrgPage.js.map +1 -0
  7. package/dist/components/Iam/pages/IamRolesPage.d.ts +24 -0
  8. package/dist/components/Iam/pages/IamRolesPage.js +222 -0
  9. package/dist/components/Iam/pages/IamRolesPage.js.map +1 -0
  10. package/dist/components/Iam/pages/IamSharedGroupsPage.d.ts +6 -0
  11. package/dist/components/Iam/pages/IamSharedGroupsPage.js +207 -0
  12. package/dist/components/Iam/pages/IamSharedGroupsPage.js.map +1 -0
  13. package/dist/components/Iam/pages/IamUsersPage.d.ts +10 -0
  14. package/dist/components/Iam/pages/IamUsersPage.js +314 -0
  15. package/dist/components/Iam/pages/IamUsersPage.js.map +1 -0
  16. package/dist/components/Iam/types.d.ts +85 -0
  17. package/dist/components/Iam/utils/catalogToItems.d.ts +3 -0
  18. package/dist/components/Iam/utils/catalogToItems.js +17 -0
  19. package/dist/components/Iam/utils/catalogToItems.js.map +1 -0
  20. package/dist/components/Iam/utils/draftEffectivePermissions.d.ts +48 -0
  21. package/dist/components/Iam/utils/draftEffectivePermissions.js +42 -0
  22. package/dist/components/Iam/utils/draftEffectivePermissions.js.map +1 -0
  23. package/dist/components/Iam/utils/multiTagSelect.d.ts +15 -0
  24. package/dist/components/Iam/utils/multiTagSelect.js +21 -0
  25. package/dist/components/Iam/utils/multiTagSelect.js.map +1 -0
  26. package/dist/components/Iam/utils/roleDisplay.d.ts +13 -0
  27. package/dist/components/Iam/utils/roleDisplay.js +17 -0
  28. package/dist/components/Iam/utils/roleDisplay.js.map +1 -0
  29. package/dist/components/Layout/AgentAppShell/style.module.scss.js +20 -20
  30. package/dist/components/Layout/ModulePageShell/index.d.ts +5 -0
  31. package/dist/components/Layout/ModulePageShell/index.js +52 -29
  32. package/dist/components/Layout/ModulePageShell/index.js.map +1 -1
  33. package/dist/components/Layout/ModulePageShell/style.module.scss.js +6 -4
  34. package/dist/components/Layout/ModulePageShell/style.module.scss.js.map +1 -1
  35. package/dist/components/Layout/PageSpin/index.d.ts +2 -0
  36. package/dist/components/Layout/PageSpin/index.js +24 -6
  37. package/dist/components/Layout/PageSpin/index.js.map +1 -1
  38. package/dist/components/Layout/PageSpin/style.module.scss.js +2 -1
  39. package/dist/components/Layout/PageSpin/style.module.scss.js.map +1 -1
  40. package/dist/components/PermissionBindPanel/PermissionBindPanel.js +110 -98
  41. package/dist/components/PermissionBindPanel/PermissionBindPanel.js.map +1 -1
  42. package/dist/iam.d.ts +14 -0
  43. package/dist/iam.js +23 -0
  44. package/dist/iam.js.map +1 -0
  45. package/dist/marsun-components-core.css +1 -1
  46. package/dist/styles/global.css +1 -1
  47. package/package.json +5 -1
@@ -0,0 +1,21 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import r, { SEMANTIC_COLORS as a } from "../../Tag/SemanticTag.js";
3
+ const l = 2, c = {
4
+ maxTagCount: l,
5
+ maxTagPlaceholder: (e) => `+${e.length}`,
6
+ tagRender: ({ label: e, closable: o, onClose: t }) => /* @__PURE__ */ n(
7
+ r,
8
+ {
9
+ color: a.INFO,
10
+ closable: o,
11
+ onClose: t,
12
+ style: { marginInlineEnd: 4 },
13
+ children: e
14
+ }
15
+ )
16
+ };
17
+ export {
18
+ l as MULTI_TAG_SHOW_LENGTH,
19
+ c as multiTagSelectProps
20
+ };
21
+ //# sourceMappingURL=multiTagSelect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiTagSelect.js","sources":["../../../../src/components/Iam/utils/multiTagSelect.tsx"],"sourcesContent":["import { SEMANTIC_COLORS, SemanticTag } from '@/components/Tag';\nimport type { ReactNode } from 'react';\n\n/** 与 Assets 文件标签一致:最多展示 2 个,超出 +N */\nexport const MULTI_TAG_SHOW_LENGTH = 2;\n\ntype TagRenderProps = {\n label: ReactNode;\n closable: boolean;\n onClose: () => void;\n};\n\n/** Form/antd Select 多选:SemanticTag + maxTagCount 防重叠 */\nexport const multiTagSelectProps = {\n maxTagCount: MULTI_TAG_SHOW_LENGTH,\n maxTagPlaceholder: (omitted: unknown[]) => `+${omitted.length}`,\n tagRender: ({ label, closable, onClose }: TagRenderProps) => (\n <SemanticTag\n color={SEMANTIC_COLORS.INFO}\n closable={closable}\n onClose={onClose}\n style={{ marginInlineEnd: 4 }}\n >\n {label}\n </SemanticTag>\n ),\n};\n"],"names":["MULTI_TAG_SHOW_LENGTH","multiTagSelectProps","omitted","label","closable","onClose","jsx","SemanticTag","SEMANTIC_COLORS"],"mappings":";;AAIO,MAAMA,IAAwB,GASxBC,IAAsB;AAAA,EACjC,aAAaD;AAAA,EACb,mBAAmB,CAACE,MAAuB,IAAIA,EAAQ,MAAM;AAAA,EAC7D,WAAW,CAAC,EAAE,OAAAC,GAAO,UAAAC,GAAU,SAAAC,QAC7B,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAOC,EAAgB;AAAA,MACvB,UAAAJ;AAAA,MACA,SAAAC;AAAA,MACA,OAAO,EAAE,iBAAiB,EAAA;AAAA,MAEzB,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -0,0 +1,13 @@
1
+ /** 角色展示:优先中文名;code 仅 Tooltip */
2
+ export declare function roleDisplayName(r: {
3
+ name?: string | null;
4
+ code?: string | null;
5
+ }): string;
6
+ export declare function roleSelectOption(r: {
7
+ name?: string | null;
8
+ code?: string | null;
9
+ }): {
10
+ value: string;
11
+ label: string;
12
+ title: string;
13
+ };
@@ -0,0 +1,17 @@
1
+ function o(e) {
2
+ const t = (e.name || "").trim(), n = (e.code || "").trim();
3
+ return t || n || "—";
4
+ }
5
+ function c(e) {
6
+ const t = (e.code || "").trim();
7
+ return {
8
+ value: t,
9
+ label: o(e),
10
+ title: t ? `编码:${t}` : o(e)
11
+ };
12
+ }
13
+ export {
14
+ o as roleDisplayName,
15
+ c as roleSelectOption
16
+ };
17
+ //# sourceMappingURL=roleDisplay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roleDisplay.js","sources":["../../../../src/components/Iam/utils/roleDisplay.ts"],"sourcesContent":["/** 角色展示:优先中文名;code 仅 Tooltip */\n\nexport function roleDisplayName(r: { name?: string | null; code?: string | null }): string {\n const name = (r.name || '').trim();\n const code = (r.code || '').trim();\n return name || code || '—';\n}\n\nexport function roleSelectOption(r: { name?: string | null; code?: string | null }): {\n value: string;\n label: string;\n title: string;\n} {\n const code = (r.code || '').trim();\n return {\n value: code,\n label: roleDisplayName(r),\n title: code ? `编码:${code}` : roleDisplayName(r),\n };\n}\n"],"names":["roleDisplayName","r","name","code","roleSelectOption"],"mappings":"AAEO,SAASA,EAAgBC,GAA2D;AACzF,QAAMC,KAAQD,EAAE,QAAQ,IAAI,KAAA,GACtBE,KAAQF,EAAE,QAAQ,IAAI,KAAA;AAC5B,SAAOC,KAAQC,KAAQ;AACzB;AAEO,SAASC,EAAiBH,GAI/B;AACA,QAAME,KAAQF,EAAE,QAAQ,IAAI,KAAA;AAC5B,SAAO;AAAA,IACL,OAAOE;AAAA,IACP,OAAOH,EAAgBC,CAAC;AAAA,IACxB,OAAOE,IAAO,MAAMA,CAAI,KAAKH,EAAgBC,CAAC;AAAA,EAAA;AAElD;"}
@@ -1,24 +1,24 @@
1
1
  const e = {
2
- "agent-app-shell": "_agent-app-shell_q9nbx_1",
3
- "agent-app-frame": "_agent-app-frame_q9nbx_8",
4
- "agent-app-sider": "_agent-app-sider_q9nbx_17",
5
- "agent-sider-scroll": "_agent-sider-scroll_q9nbx_32",
6
- "agent-sider-brand": "_agent-sider-brand_q9nbx_37",
7
- "agent-sider-brand--collapsed": "_agent-sider-brand--collapsed_q9nbx_44",
8
- "agent-sider-logo": "_agent-sider-logo_q9nbx_50",
9
- "agent-sider-title": "_agent-sider-title_q9nbx_64",
10
- "agent-app-menu": "_agent-app-menu_q9nbx_75",
11
- "agent-app-main": "_agent-app-main_q9nbx_121",
12
- "agent-page-topbar": "_agent-page-topbar_q9nbx_134",
13
- "agent-page-topbar--scrolled": "_agent-page-topbar--scrolled_q9nbx_149",
14
- "agent-page-topbar--with-description": "_agent-page-topbar--with-description_q9nbx_154",
15
- "agent-page-topbar-leading": "_agent-page-topbar-leading_q9nbx_158",
16
- "agent-page-topbar-meta": "_agent-page-topbar-meta_q9nbx_166",
17
- "agent-page-topbar-title": "_agent-page-topbar-title_q9nbx_170",
18
- "agent-page-topbar-description": "_agent-page-topbar-description_q9nbx_179",
19
- "agent-sider-toggle": "_agent-sider-toggle_q9nbx_186",
20
- "agent-sider-toggle--collapsed": "_agent-sider-toggle--collapsed_q9nbx_218",
21
- "agent-page-topbar-actions": "_agent-page-topbar-actions_q9nbx_222"
2
+ "agent-app-shell": "_agent-app-shell_1w1ro_1",
3
+ "agent-app-frame": "_agent-app-frame_1w1ro_8",
4
+ "agent-app-sider": "_agent-app-sider_1w1ro_17",
5
+ "agent-sider-scroll": "_agent-sider-scroll_1w1ro_32",
6
+ "agent-sider-brand": "_agent-sider-brand_1w1ro_37",
7
+ "agent-sider-brand--collapsed": "_agent-sider-brand--collapsed_1w1ro_44",
8
+ "agent-sider-logo": "_agent-sider-logo_1w1ro_50",
9
+ "agent-sider-title": "_agent-sider-title_1w1ro_64",
10
+ "agent-app-menu": "_agent-app-menu_1w1ro_75",
11
+ "agent-app-main": "_agent-app-main_1w1ro_121",
12
+ "agent-page-topbar": "_agent-page-topbar_1w1ro_134",
13
+ "agent-page-topbar--scrolled": "_agent-page-topbar--scrolled_1w1ro_149",
14
+ "agent-page-topbar--with-description": "_agent-page-topbar--with-description_1w1ro_154",
15
+ "agent-page-topbar-leading": "_agent-page-topbar-leading_1w1ro_158",
16
+ "agent-page-topbar-meta": "_agent-page-topbar-meta_1w1ro_166",
17
+ "agent-page-topbar-title": "_agent-page-topbar-title_1w1ro_170",
18
+ "agent-page-topbar-description": "_agent-page-topbar-description_1w1ro_179",
19
+ "agent-sider-toggle": "_agent-sider-toggle_1w1ro_186",
20
+ "agent-sider-toggle--collapsed": "_agent-sider-toggle--collapsed_1w1ro_218",
21
+ "agent-page-topbar-actions": "_agent-page-topbar-actions_1w1ro_222"
22
22
  };
23
23
  export {
24
24
  e as default
@@ -13,6 +13,11 @@ export type ModulePageShellProps = {
13
13
  children?: ReactNode;
14
14
  className?: string;
15
15
  bodyClassName?: string;
16
+ /**
17
+ * true(默认):填满父级 flex 链并 clip,供页内嵌套滚动(沙盘/预警等)。
18
+ * false:高度随内容撑开,交给外层 VirtualScrollbar(IAM 列表等文档流页)。
19
+ */
20
+ fillHeight?: boolean;
16
21
  };
17
22
  declare const ModulePageShell: React.FC<ModulePageShellProps>;
18
23
  export default ModulePageShell;
@@ -1,36 +1,59 @@
1
- import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
- import l from "classnames";
3
- import { useEffect as b } from "react";
4
- import N from "../PageSpin/index.js";
5
- import o from "./style.module.scss.js";
6
- import { usePageShell as v } from "../PageShell/PageShellContext.js";
7
- const w = ({
8
- title: m,
9
- description: r,
10
- breadcrumb: s,
11
- toolbar: d,
12
- spinning: u = !1,
1
+ import { jsxs as b, jsx as l } from "react/jsx-runtime";
2
+ import o from "classnames";
3
+ import { useEffect as N } from "react";
4
+ import v from "../PageSpin/index.js";
5
+ import e from "./style.module.scss.js";
6
+ import { usePageShell as x } from "../PageShell/PageShellContext.js";
7
+ const B = ({
8
+ title: r,
9
+ description: s,
10
+ breadcrumb: d,
11
+ toolbar: u,
12
+ spinning: t = !1,
13
13
  syncPageMeta: n = !0,
14
- actions: i,
15
- children: p,
16
- className: t,
17
- bodyClassName: g
14
+ actions: p,
15
+ children: i,
16
+ className: g,
17
+ bodyClassName: c,
18
+ fillHeight: a = !0
18
19
  }) => {
19
- const { setPageMeta: a, pageLoading: c } = v(), f = !!(u || c);
20
- return b(() => {
20
+ const { setPageMeta: m, pageLoading: f } = x(), h = !!(t || f);
21
+ return N(() => {
21
22
  if (n)
22
- return a({
23
- title: m,
24
- description: r,
25
- actionItems: i
26
- }), () => a({});
27
- }, [m, r, i, n, a]), /* @__PURE__ */ h("div", { className: l("module-page-shell", o["module-page-shell"], t), children: [
28
- s ? /* @__PURE__ */ e("div", { className: l("module-page-breadcrumb", o["module-page-breadcrumb"]), children: s }) : null,
29
- d ? /* @__PURE__ */ e("div", { className: l("module-page-toolbar", o["module-page-toolbar"]), children: d }) : null,
30
- /* @__PURE__ */ e("div", { className: l("module-page-body", o["module-page-body"], g), children: /* @__PURE__ */ e(N, { spinning: f, children: p }) })
31
- ] });
23
+ return m({
24
+ title: r,
25
+ description: s,
26
+ actionItems: p
27
+ }), () => m({});
28
+ }, [r, s, p, n, m]), /* @__PURE__ */ b(
29
+ "div",
30
+ {
31
+ className: o(
32
+ "module-page-shell",
33
+ e["module-page-shell"],
34
+ a && e["module-page-shell--fill"],
35
+ g
36
+ ),
37
+ children: [
38
+ d ? /* @__PURE__ */ l("div", { className: o("module-page-breadcrumb", e["module-page-breadcrumb"]), children: d }) : null,
39
+ u ? /* @__PURE__ */ l("div", { className: o("module-page-toolbar", e["module-page-toolbar"]), children: u }) : null,
40
+ /* @__PURE__ */ l(
41
+ "div",
42
+ {
43
+ className: o(
44
+ "module-page-body",
45
+ e["module-page-body"],
46
+ a && e["module-page-body--fill"],
47
+ c
48
+ ),
49
+ children: /* @__PURE__ */ l(v, { spinning: h, naturalHeight: !a, children: i })
50
+ }
51
+ )
52
+ ]
53
+ }
54
+ );
32
55
  };
33
56
  export {
34
- w as default
57
+ B as default
35
58
  };
36
59
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Layout/ModulePageShell/index.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type { ReactNode } from 'react';\nimport { useEffect } from 'react';\nimport PageSpin from '../PageSpin';\nimport { usePageShell, type PageShellActionItem } from '../PageShell';\nimport styles from './style.module.scss';\n\nexport type ModulePageShellProps = {\n title?: string;\n description?: ReactNode;\n breadcrumb?: ReactNode;\n toolbar?: ReactNode;\n /** 页面级 loading,与 usePageShellLoading 注册的 ctx loading 合并 */\n spinning?: boolean;\n /** 是否同步 title/description/actions 到 PageShellProvider(App 顶栏),默认 true */\n syncPageMeta?: boolean;\n actions?: PageShellActionItem[];\n children?: ReactNode;\n className?: string;\n bodyClassName?: string;\n};\n\nconst ModulePageShell: React.FC<ModulePageShellProps> = ({\n title,\n description,\n breadcrumb,\n toolbar,\n spinning = false,\n syncPageMeta = true,\n actions,\n children,\n className,\n bodyClassName,\n}) => {\n const { setPageMeta, pageLoading: ctxLoading } = usePageShell();\n const showSpinning = Boolean(spinning || ctxLoading);\n\n useEffect(() => {\n if (!syncPageMeta) return;\n setPageMeta({\n title,\n description,\n actionItems: actions,\n });\n return () => setPageMeta({});\n }, [title, description, actions, syncPageMeta, setPageMeta]);\n\n return (\n <div className={classNames('module-page-shell', styles['module-page-shell'], className)}>\n {breadcrumb ? (\n <div className={classNames('module-page-breadcrumb', styles['module-page-breadcrumb'])}>\n {breadcrumb}\n </div>\n ) : null}\n\n {toolbar ? (\n <div className={classNames('module-page-toolbar', styles['module-page-toolbar'])}>\n {toolbar}\n </div>\n ) : null}\n\n <div className={classNames('module-page-body', styles['module-page-body'], bodyClassName)}>\n <PageSpin spinning={showSpinning}>{children}</PageSpin>\n </div>\n </div>\n );\n};\n\nexport default ModulePageShell;\n"],"names":["ModulePageShell","title","description","breadcrumb","toolbar","spinning","syncPageMeta","actions","children","className","bodyClassName","setPageMeta","ctxLoading","usePageShell","showSpinning","useEffect","jsxs","classNames","styles","jsx","PageSpin"],"mappings":";;;;;;AAsBA,MAAMA,IAAkD,CAAC;AAAA,EACvD,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,cAAAC,IAAe;AAAA,EACf,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,eAAAC;AACF,MAAM;AACJ,QAAM,EAAE,aAAAC,GAAa,aAAaC,EAAA,IAAeC,EAAA,GAC3CC,IAAe,GAAQT,KAAYO;AAEzC,SAAAG,EAAU,MAAM;AACd,QAAKT;AACL,aAAAK,EAAY;AAAA,QACV,OAAAV;AAAA,QACA,aAAAC;AAAA,QACA,aAAaK;AAAA,MAAA,CACd,GACM,MAAMI,EAAY,EAAE;AAAA,EAC7B,GAAG,CAACV,GAAOC,GAAaK,GAASD,GAAcK,CAAW,CAAC,GAGzD,gBAAAK,EAAC,SAAI,WAAWC,EAAW,qBAAqBC,EAAO,mBAAmB,GAAGT,CAAS,GACnF,UAAA;AAAA,IAAAN,IACC,gBAAAgB,EAAC,OAAA,EAAI,WAAWF,EAAW,0BAA0BC,EAAO,wBAAwB,CAAC,GAClF,UAAAf,EAAA,CACH,IACE;AAAA,IAEHC,IACC,gBAAAe,EAAC,OAAA,EAAI,WAAWF,EAAW,uBAAuBC,EAAO,qBAAqB,CAAC,GAC5E,UAAAd,EAAA,CACH,IACE;AAAA,IAEJ,gBAAAe,EAAC,OAAA,EAAI,WAAWF,EAAW,oBAAoBC,EAAO,kBAAkB,GAAGR,CAAa,GACtF,UAAA,gBAAAS,EAACC,GAAA,EAAS,UAAUN,GAAe,UAAAN,GAAS,EAAA,CAC9C;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Layout/ModulePageShell/index.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type { ReactNode } from 'react';\nimport { useEffect } from 'react';\nimport PageSpin from '../PageSpin';\nimport { usePageShell, type PageShellActionItem } from '../PageShell';\nimport styles from './style.module.scss';\n\nexport type ModulePageShellProps = {\n title?: string;\n description?: ReactNode;\n breadcrumb?: ReactNode;\n toolbar?: ReactNode;\n /** 页面级 loading,与 usePageShellLoading 注册的 ctx loading 合并 */\n spinning?: boolean;\n /** 是否同步 title/description/actions 到 PageShellProvider(App 顶栏),默认 true */\n syncPageMeta?: boolean;\n actions?: PageShellActionItem[];\n children?: ReactNode;\n className?: string;\n bodyClassName?: string;\n /**\n * true(默认):填满父级 flex 链并 clip,供页内嵌套滚动(沙盘/预警等)。\n * false:高度随内容撑开,交给外层 VirtualScrollbar(IAM 列表等文档流页)。\n */\n fillHeight?: boolean;\n};\n\nconst ModulePageShell: React.FC<ModulePageShellProps> = ({\n title,\n description,\n breadcrumb,\n toolbar,\n spinning = false,\n syncPageMeta = true,\n actions,\n children,\n className,\n bodyClassName,\n fillHeight = true,\n}) => {\n const { setPageMeta, pageLoading: ctxLoading } = usePageShell();\n const showSpinning = Boolean(spinning || ctxLoading);\n\n useEffect(() => {\n if (!syncPageMeta) return;\n setPageMeta({\n title,\n description,\n actionItems: actions,\n });\n return () => setPageMeta({});\n }, [title, description, actions, syncPageMeta, setPageMeta]);\n\n return (\n <div\n className={classNames(\n 'module-page-shell',\n styles['module-page-shell'],\n fillHeight && styles['module-page-shell--fill'],\n className,\n )}\n >\n {breadcrumb ? (\n <div className={classNames('module-page-breadcrumb', styles['module-page-breadcrumb'])}>\n {breadcrumb}\n </div>\n ) : null}\n\n {toolbar ? (\n <div className={classNames('module-page-toolbar', styles['module-page-toolbar'])}>\n {toolbar}\n </div>\n ) : null}\n\n <div\n className={classNames(\n 'module-page-body',\n styles['module-page-body'],\n fillHeight && styles['module-page-body--fill'],\n bodyClassName,\n )}\n >\n <PageSpin spinning={showSpinning} naturalHeight={!fillHeight}>\n {children}\n </PageSpin>\n </div>\n </div>\n );\n};\n\nexport default ModulePageShell;\n"],"names":["ModulePageShell","title","description","breadcrumb","toolbar","spinning","syncPageMeta","actions","children","className","bodyClassName","fillHeight","setPageMeta","ctxLoading","usePageShell","showSpinning","useEffect","jsxs","classNames","styles","jsx","PageSpin"],"mappings":";;;;;;AA2BA,MAAMA,IAAkD,CAAC;AAAA,EACvD,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,cAAAC,IAAe;AAAA,EACf,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,eAAAC;AAAA,EACA,YAAAC,IAAa;AACf,MAAM;AACJ,QAAM,EAAE,aAAAC,GAAa,aAAaC,EAAA,IAAeC,EAAA,GAC3CC,IAAe,GAAQV,KAAYQ;AAEzC,SAAAG,EAAU,MAAM;AACd,QAAKV;AACL,aAAAM,EAAY;AAAA,QACV,OAAAX;AAAA,QACA,aAAAC;AAAA,QACA,aAAaK;AAAA,MAAA,CACd,GACM,MAAMK,EAAY,EAAE;AAAA,EAC7B,GAAG,CAACX,GAAOC,GAAaK,GAASD,GAAcM,CAAW,CAAC,GAGzD,gBAAAK;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAC,EAAO,mBAAmB;AAAA,QAC1BR,KAAcQ,EAAO,yBAAyB;AAAA,QAC9CV;AAAA,MAAA;AAAA,MAGD,UAAA;AAAA,QAAAN,IACC,gBAAAiB,EAAC,OAAA,EAAI,WAAWF,EAAW,0BAA0BC,EAAO,wBAAwB,CAAC,GAClF,UAAAhB,EAAA,CACH,IACE;AAAA,QAEHC,IACC,gBAAAgB,EAAC,OAAA,EAAI,WAAWF,EAAW,uBAAuBC,EAAO,qBAAqB,CAAC,GAC5E,UAAAf,EAAA,CACH,IACE;AAAA,QAEJ,gBAAAgB;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWF;AAAA,cACT;AAAA,cACAC,EAAO,kBAAkB;AAAA,cACzBR,KAAcQ,EAAO,wBAAwB;AAAA,cAC7CT;AAAA,YAAA;AAAA,YAGF,4BAACW,GAAA,EAAS,UAAUN,GAAc,eAAe,CAACJ,GAC/C,UAAAH,EAAA,CACH;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,8 +1,10 @@
1
1
  const e = {
2
- "module-page-shell": "_module-page-shell_140iw_1",
3
- "module-page-breadcrumb": "_module-page-breadcrumb_140iw_10",
4
- "module-page-toolbar": "_module-page-toolbar_140iw_19",
5
- "module-page-body": "_module-page-body_140iw_26"
2
+ "module-page-shell": "_module-page-shell_tpdgq_1",
3
+ "module-page-shell--fill": "_module-page-shell--fill_tpdgq_7",
4
+ "module-page-breadcrumb": "_module-page-breadcrumb_tpdgq_12",
5
+ "module-page-toolbar": "_module-page-toolbar_tpdgq_21",
6
+ "module-page-body": "_module-page-body_tpdgq_28",
7
+ "module-page-body--fill": "_module-page-body--fill_tpdgq_34"
6
8
  };
7
9
  export {
8
10
  e as default
@@ -1 +1 @@
1
- {"version":3,"file":"style.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"style.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -3,6 +3,8 @@ export type PageSpinProps = {
3
3
  spinning: boolean;
4
4
  children: ReactNode;
5
5
  className?: string;
6
+ /** 高度随内容撑开(不抢 flex:1),配合 ModulePageShell fillHeight={false} */
7
+ naturalHeight?: boolean;
6
8
  };
7
9
  /** 模块页 body 区整页 Spin:参与 flex 高度链,遮罩 Filter + 主工作区 */
8
10
  declare const PageSpin: React.FC<PageSpinProps>;
@@ -1,9 +1,27 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { Spin as p } from "antd";
3
- import t from "classnames";
4
- import a from "./style.module.scss.js";
5
- const n = ({ spinning: o, children: s, className: m }) => /* @__PURE__ */ r(p, { spinning: o, classNames: { root: t(a["page-spin"], m) }, children: s });
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { Spin as t } from "antd";
3
+ import e from "classnames";
4
+ import s from "./style.module.scss.js";
5
+ const c = ({
6
+ spinning: a,
7
+ children: o,
8
+ className: p,
9
+ naturalHeight: r = !1
10
+ }) => /* @__PURE__ */ m(
11
+ t,
12
+ {
13
+ spinning: a,
14
+ classNames: {
15
+ root: e(
16
+ s["page-spin"],
17
+ r && s["page-spin--natural"],
18
+ p
19
+ )
20
+ },
21
+ children: o
22
+ }
23
+ );
6
24
  export {
7
- n as default
25
+ c as default
8
26
  };
9
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Layout/PageSpin/index.tsx"],"sourcesContent":["import { Spin } from 'antd';\nimport classNames from 'classnames';\nimport type { ReactNode } from 'react';\nimport styles from './style.module.scss';\n\nexport type PageSpinProps = {\n spinning: boolean;\n children: ReactNode;\n className?: string;\n};\n\n/** 模块页 body 区整页 Spin:参与 flex 高度链,遮罩 Filter + 主工作区 */\nconst PageSpin: React.FC<PageSpinProps> = ({ spinning, children, className }) => (\n <Spin spinning={spinning} classNames={{ root: classNames(styles['page-spin'], className) }}>\n {children}\n </Spin>\n);\n\nexport default PageSpin;\n"],"names":["PageSpin","spinning","children","className","Spin","classNames","styles"],"mappings":";;;;AAYA,MAAMA,IAAoC,CAAC,EAAE,UAAAC,GAAU,UAAAC,GAAU,WAAAC,0BAC9DC,GAAA,EAAK,UAAAH,GAAoB,YAAY,EAAE,MAAMI,EAAWC,EAAO,WAAW,GAAGH,CAAS,EAAA,GACpF,UAAAD,EAAA,CACH;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Layout/PageSpin/index.tsx"],"sourcesContent":["import { Spin } from 'antd';\nimport classNames from 'classnames';\nimport type { ReactNode } from 'react';\nimport styles from './style.module.scss';\n\nexport type PageSpinProps = {\n spinning: boolean;\n children: ReactNode;\n className?: string;\n /** 高度随内容撑开(不抢 flex:1),配合 ModulePageShell fillHeight={false} */\n naturalHeight?: boolean;\n};\n\n/** 模块页 body 区整页 Spin:参与 flex 高度链,遮罩 Filter + 主工作区 */\nconst PageSpin: React.FC<PageSpinProps> = ({\n spinning,\n children,\n className,\n naturalHeight = false,\n}) => (\n <Spin\n spinning={spinning}\n classNames={{\n root: classNames(\n styles['page-spin'],\n naturalHeight && styles['page-spin--natural'],\n className,\n ),\n }}\n >\n {children}\n </Spin>\n);\n\nexport default PageSpin;\n"],"names":["PageSpin","spinning","children","className","naturalHeight","jsx","Spin","classNames","styles"],"mappings":";;;;AAcA,MAAMA,IAAoC,CAAC;AAAA,EACzC,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,eAAAC,IAAgB;AAClB,MACE,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,UAAAL;AAAA,IACA,YAAY;AAAA,MACV,MAAMM;AAAA,QACJC,EAAO,WAAW;AAAA,QAClBJ,KAAiBI,EAAO,oBAAoB;AAAA,QAC5CL;AAAA,MAAA;AAAA,IACF;AAAA,IAGD,UAAAD;AAAA,EAAA;AACH;"}
@@ -1,5 +1,6 @@
1
1
  const p = {
2
- "page-spin": "_page-spin_p0vqm_1"
2
+ "page-spin": "_page-spin_scp8x_1",
3
+ "page-spin--natural": "_page-spin--natural_scp8x_7"
3
4
  };
4
5
  export {
5
6
  p as default
@@ -1 +1 @@
1
- {"version":3,"file":"style.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"style.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}