@manohub/ui 1.2.9 → 1.2.11

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.
@@ -203,7 +203,7 @@ export declare const Button: import("vue").DefineComponent<import("vue").Extract
203
203
  }>> & Readonly<{}>, {
204
204
  block: boolean;
205
205
  size: ControlSize;
206
- icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
206
+ icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
207
207
  menu: boolean;
208
208
  caret: boolean;
209
209
  disabled: boolean;
@@ -214,7 +214,7 @@ export declare const Button: import("vue").DefineComponent<import("vue").Extract
214
214
  variant: ButtonVariant;
215
215
  shape: ButtonShape;
216
216
  danger: boolean;
217
- trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
217
+ trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
218
218
  href: string;
219
219
  target: string;
220
220
  popoverTarget: string;
@@ -358,7 +358,7 @@ export declare const ButtonCompound: {
358
358
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
359
359
  block: boolean;
360
360
  size: ControlSize;
361
- icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
361
+ icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
362
362
  menu: boolean;
363
363
  caret: boolean;
364
364
  disabled: boolean;
@@ -369,7 +369,7 @@ export declare const ButtonCompound: {
369
369
  variant: ButtonVariant;
370
370
  shape: ButtonShape;
371
371
  danger: boolean;
372
- trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
372
+ trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
373
373
  href: string;
374
374
  target: string;
375
375
  popoverTarget: string;
@@ -470,7 +470,7 @@ export declare const ButtonCompound: {
470
470
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
471
471
  block: boolean;
472
472
  size: ControlSize;
473
- icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
473
+ icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
474
474
  menu: boolean;
475
475
  caret: boolean;
476
476
  disabled: boolean;
@@ -481,7 +481,7 @@ export declare const ButtonCompound: {
481
481
  variant: ButtonVariant;
482
482
  shape: ButtonShape;
483
483
  danger: boolean;
484
- trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
484
+ trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
485
485
  href: string;
486
486
  target: string;
487
487
  popoverTarget: string;
@@ -576,7 +576,7 @@ export declare const ButtonCompound: {
576
576
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
577
577
  block: boolean;
578
578
  size: ControlSize;
579
- icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
579
+ icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
580
580
  menu: boolean;
581
581
  caret: boolean;
582
582
  disabled: boolean;
@@ -587,7 +587,7 @@ export declare const ButtonCompound: {
587
587
  variant: ButtonVariant;
588
588
  shape: ButtonShape;
589
589
  danger: boolean;
590
- trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
590
+ trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
591
591
  href: string;
592
592
  target: string;
593
593
  popoverTarget: string;
@@ -25,6 +25,12 @@ export type DialogTone = 'info' | 'success' | 'warning' | 'error';
25
25
  * | 给 `okText` / `onOk` | 内建底栏:`[取消] [确定]`,按钮就是本包 `Button` |
26
26
  * | `:show-footer="false"` | 不渲染底栏(纯提示 / 只有关闭位) |
27
27
  *
28
+ * ## 全屏(`fullscreenable` / `v-model:fullscreen`)
29
+ *
30
+ * 尺寸归本件:全屏档 = 视口减 32(四周各留 16),消费方只开关,不按视口折算宽度、不写 `calc()`。
31
+ * 页头位够用就传 `fullscreenable`;触发点在内容区时用 `v-model:fullscreen` 从外面驱动。
32
+ * Esc 在全屏时**先退全屏**(视图态),再按才走关闭。
33
+ *
28
34
  * 用法见 `docs/demos/dialog/`(每个维度一份可运行样例;文档页 `docs/components/dialog.md`)。
29
35
  */
30
36
  export declare const Dialog: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -130,8 +136,30 @@ export declare const Dialog: import("vue").DefineComponent<import("vue").Extract
130
136
  type: PropType<() => void>;
131
137
  default: undefined;
132
138
  };
139
+ /**
140
+ * 是否在页头提供「全屏 / 退出全屏」按钮(关闭位左边)。
141
+ *
142
+ * <p>尺寸归本件:全屏档是「视口减 32」(四周各留 16),消费方不用再按视口折算宽度、
143
+ * 也不用写 `calc()` / `min()`。</p>
144
+ *
145
+ * <p>触发点要在内容区(如编辑器动作列)时**不传本 prop**,改用 `v-model:fullscreen`
146
+ * 从外部驱动,尺寸仍由本件管。</p>
147
+ */
148
+ fullscreenable: {
149
+ type: BooleanConstructor;
150
+ default: boolean;
151
+ };
152
+ /**
153
+ * 受控全屏态(`v-model:fullscreen`)。不传 = 本件自持(非受控),
154
+ * 传了就以外部为准:点按钮只上报 `update:fullscreen`,不自己翻。
155
+ */
156
+ fullscreen: {
157
+ type: PropType<boolean | undefined>;
158
+ default: undefined;
159
+ };
133
160
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
134
161
  'update:open': (value: boolean) => true;
162
+ 'update:fullscreen': (value: boolean) => true;
135
163
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
136
164
  /** 受控开合 */
137
165
  open: {
@@ -235,8 +263,30 @@ export declare const Dialog: import("vue").DefineComponent<import("vue").Extract
235
263
  type: PropType<() => void>;
236
264
  default: undefined;
237
265
  };
266
+ /**
267
+ * 是否在页头提供「全屏 / 退出全屏」按钮(关闭位左边)。
268
+ *
269
+ * <p>尺寸归本件:全屏档是「视口减 32」(四周各留 16),消费方不用再按视口折算宽度、
270
+ * 也不用写 `calc()` / `min()`。</p>
271
+ *
272
+ * <p>触发点要在内容区(如编辑器动作列)时**不传本 prop**,改用 `v-model:fullscreen`
273
+ * 从外部驱动,尺寸仍由本件管。</p>
274
+ */
275
+ fullscreenable: {
276
+ type: BooleanConstructor;
277
+ default: boolean;
278
+ };
279
+ /**
280
+ * 受控全屏态(`v-model:fullscreen`)。不传 = 本件自持(非受控),
281
+ * 传了就以外部为准:点按钮只上报 `update:fullscreen`,不自己翻。
282
+ */
283
+ fullscreen: {
284
+ type: PropType<boolean | undefined>;
285
+ default: undefined;
286
+ };
238
287
  }>> & Readonly<{
239
288
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
289
+ "onUpdate:fullscreen"?: ((value: boolean) => any) | undefined;
240
290
  }>, {
241
291
  open: boolean;
242
292
  title: string;
@@ -256,6 +306,8 @@ export declare const Dialog: import("vue").DefineComponent<import("vue").Extract
256
306
  confirmLoading: boolean;
257
307
  showFooter: boolean | undefined;
258
308
  onOk: () => unknown;
309
+ fullscreenable: boolean;
310
+ fullscreen: boolean | undefined;
259
311
  }, SlotsType<{
260
312
  default?: () => VNodeChild;
261
313
  title?: () => VNodeChild;
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, watch, onMounted, onBeforeUnmount, computed, createVNode } from "vue";
1
+ import { defineComponent, ref, computed, watch, onMounted, onBeforeUnmount, createVNode } from "vue";
2
2
  import { Icon } from "@manohub/icon";
3
3
  import { Button } from "../button/index.js";
4
4
  import { useOverlayScrollbar } from "../scrollbar/index.js";
@@ -113,10 +113,32 @@ const Dialog = /* @__PURE__ */ defineComponent({
113
113
  onClose: {
114
114
  type: Function,
115
115
  default: void 0
116
+ },
117
+ /**
118
+ * 是否在页头提供「全屏 / 退出全屏」按钮(关闭位左边)。
119
+ *
120
+ * <p>尺寸归本件:全屏档是「视口减 32」(四周各留 16),消费方不用再按视口折算宽度、
121
+ * 也不用写 `calc()` / `min()`。</p>
122
+ *
123
+ * <p>触发点要在内容区(如编辑器动作列)时**不传本 prop**,改用 `v-model:fullscreen`
124
+ * 从外部驱动,尺寸仍由本件管。</p>
125
+ */
126
+ fullscreenable: {
127
+ type: Boolean,
128
+ default: false
129
+ },
130
+ /**
131
+ * 受控全屏态(`v-model:fullscreen`)。不传 = 本件自持(非受控),
132
+ * 传了就以外部为准:点按钮只上报 `update:fullscreen`,不自己翻。
133
+ */
134
+ fullscreen: {
135
+ type: Boolean,
136
+ default: void 0
116
137
  }
117
138
  },
118
139
  emits: {
119
- "update:open": (value) => true
140
+ "update:open": (value) => true,
141
+ "update:fullscreen": (value) => true
120
142
  },
121
143
  slots: Object,
122
144
  setup(props, {
@@ -128,6 +150,12 @@ const Dialog = /* @__PURE__ */ defineComponent({
128
150
  const scrollRef = ref(null);
129
151
  const scrollbar = useOverlayScrollbar(scrollRef);
130
152
  const innerLoading = ref(false);
153
+ const innerFullscreen = ref(false);
154
+ const isFullscreen = computed(() => props.fullscreen ?? innerFullscreen.value);
155
+ const setFullscreen = (value) => {
156
+ if (props.fullscreen === void 0) innerFullscreen.value = value;
157
+ emit("update:fullscreen", value);
158
+ };
131
159
  const requestClose = (kind = "close") => {
132
160
  if (kind === "cancel") props.onCancel?.();
133
161
  props.onClose?.();
@@ -160,6 +188,7 @@ const Dialog = /* @__PURE__ */ defineComponent({
160
188
  const loading = computed(() => props.confirmLoading || innerLoading.value);
161
189
  const showBuiltinFooter = computed(() => props.showFooter ?? props.onOk !== void 0);
162
190
  const widthStyle = computed(() => {
191
+ if (isFullscreen.value) return void 0;
163
192
  if (props.panelWidth) return {
164
193
  width: props.panelWidth,
165
194
  maxWidth: "calc(100vw - 32px)"
@@ -172,14 +201,14 @@ const Dialog = /* @__PURE__ */ defineComponent({
172
201
  }
173
202
  return void 0;
174
203
  });
175
- const widthClass = computed(() => typeof props.width === "string" && props.width !== "md" ? `mh-dialog--${props.width}` : "");
176
- const heightStyle = computed(() => props.panelHeight ? {
204
+ const widthClass = computed(() => !isFullscreen.value && typeof props.width === "string" && props.width !== "md" ? `mh-dialog--${props.width}` : "");
205
+ const heightStyle = computed(() => !isFullscreen.value && props.panelHeight ? {
177
206
  height: props.panelHeight,
178
207
  maxHeight: "calc(100vh - 32px)"
179
208
  } : void 0);
180
209
  return () => createVNode("dialog", {
181
210
  "ref": dialogRef,
182
- "class": ["mh-popup", "mh-dialog", widthClass.value, props.tone ? `mh-dialog--${props.tone}` : "", attrs.class].filter(Boolean).join(" "),
211
+ "class": ["mh-popup", "mh-dialog", widthClass.value, isFullscreen.value ? "mh-dialog--fullscreen" : "", props.tone ? `mh-dialog--${props.tone}` : "", attrs.class].filter(Boolean).join(" "),
183
212
  "style": {
184
213
  ...widthStyle.value,
185
214
  ...heightStyle.value,
@@ -187,6 +216,10 @@ const Dialog = /* @__PURE__ */ defineComponent({
187
216
  },
188
217
  "onCancel": (event) => {
189
218
  event.preventDefault();
219
+ if (isFullscreen.value) {
220
+ setFullscreen(false);
221
+ return;
222
+ }
190
223
  if (!props.keyboard) return;
191
224
  requestClose("cancel");
192
225
  },
@@ -195,14 +228,23 @@ const Dialog = /* @__PURE__ */ defineComponent({
195
228
  requestClose("close");
196
229
  }
197
230
  }
198
- }, [props.title || slots.title || props.closable || props.tone ? createVNode("div", {
231
+ }, [props.title || slots.title || props.closable || props.tone || props.fullscreenable ? createVNode("div", {
199
232
  "class": "mh-dialog__header"
200
233
  }, [props.tone ? createVNode(Icon, {
201
234
  "name": TONE_ICON[props.tone],
202
235
  "class": "mh-dialog__tone-icon"
203
236
  }, null) : null, createVNode("span", {
204
237
  "class": "mh-dialog__title"
205
- }, [slots.title ? slots.title() : props.title]), props.closable ? createVNode("button", {
238
+ }, [slots.title ? slots.title() : props.title]), props.fullscreenable ? createVNode("button", {
239
+ "type": "button",
240
+ "class": "mh-dialog__fullscreen",
241
+ "aria-label": isFullscreen.value ? "退出全屏" : "全屏",
242
+ "aria-pressed": isFullscreen.value,
243
+ "onClick": () => setFullscreen(!isFullscreen.value)
244
+ }, [createVNode(Icon, {
245
+ "name": isFullscreen.value ? "minimize" : "maximize",
246
+ "size": 14
247
+ }, null)]) : null, props.closable ? createVNode("button", {
206
248
  "type": "button",
207
249
  "class": "mh-dialog__close",
208
250
  "aria-label": "关闭",
@@ -116,7 +116,7 @@ export declare const Notice: import("vue").DefineComponent<import("vue").Extract
116
116
  default: undefined;
117
117
  };
118
118
  }>> & Readonly<{}>, {
119
- icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
119
+ icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
120
120
  message: string;
121
121
  onClose: () => void;
122
122
  closable: boolean;
@@ -93,7 +93,7 @@ export declare const Notification: import("vue").DefineComponent<import("vue").E
93
93
  default: undefined;
94
94
  };
95
95
  }>> & Readonly<{}>, {
96
- icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
96
+ icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
97
97
  title: string;
98
98
  onClose: () => void;
99
99
  closable: boolean;
@@ -90,7 +90,7 @@ export declare const Toast: import("vue").DefineComponent<import("vue").ExtractP
90
90
  onClose?: (() => any) | undefined;
91
91
  }>, {
92
92
  text: string;
93
- icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
93
+ icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
94
94
  closable: boolean;
95
95
  tone: ToastTone;
96
96
  action: string;
@@ -142,7 +142,7 @@ export declare const ToastCompound: {
142
142
  close: () => true;
143
143
  }, import("vue").PublicProps, {
144
144
  text: string;
145
- icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
145
+ icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
146
146
  closable: boolean;
147
147
  tone: ToastTone;
148
148
  action: string;
@@ -196,7 +196,7 @@ export declare const ToastCompound: {
196
196
  onClose?: (() => any) | undefined;
197
197
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
198
198
  text: string;
199
- icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
199
+ icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
200
200
  closable: boolean;
201
201
  tone: ToastTone;
202
202
  action: string;
@@ -247,7 +247,7 @@ export declare const ToastCompound: {
247
247
  close: () => true;
248
248
  }, string, {
249
249
  text: string;
250
- icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
250
+ icon: boolean | "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history" | "maximize" | "minimize";
251
251
  closable: boolean;
252
252
  tone: ToastTone;
253
253
  action: string;
@@ -49,6 +49,14 @@
49
49
  width: var(--ui-dialog-width-lg);
50
50
  max-width: min(var(--ui-dialog-width-lg), calc(100vw - 32px));
51
51
  }
52
+ /* 全屏档(`fullscreenable` / `v-model:fullscreen`):视口减 32,与 `panelWidth` / `panelHeight`
53
+ 的兜底同一口径(四周各留 16)。组件在全屏态**不再输出宽高内联样式**,故这里不需要 `!important`。 */
54
+ .mh-dialog--fullscreen {
55
+ width: calc(100vw - 32px);
56
+ height: calc(100vh - 32px);
57
+ max-width: calc(100vw - 32px);
58
+ max-height: calc(100vh - 32px);
59
+ }
52
60
 
53
61
  /* 真浮层遮罩:`<dialog>` 进 top layer 时才生成 ::backdrop(静态档不生成,对本面无影响) */
54
62
  .mh-dialog::backdrop {
@@ -116,15 +124,37 @@
116
124
  transition: background-color 0.15s ease, color 0.15s ease;
117
125
  }
118
126
  .mh-dialog__close:hover,
119
- .mh-dialog__close.is-hover {
127
+ .mh-dialog__close.is-hover,
128
+ .mh-dialog__fullscreen:hover {
120
129
  background: var(--ui-base-200);
121
130
  color: var(--ui-base-content);
122
131
  }
123
- .mh-dialog__close:focus-visible {
132
+ .mh-dialog__close:focus-visible,
133
+ .mh-dialog__fullscreen:focus-visible {
124
134
  outline: 2px solid var(--ui-primary);
125
135
  outline-offset: 2px;
126
136
  }
127
137
 
138
+ /* 全屏位(`fullscreenable`):排在关闭位左边,同款热区与配色。
139
+ 与关闭位各写一份 —— 本仓的「面」按件自持(Drawer / Notice 的关闭位同样各写各的),
140
+ 不跨件复用选择器;契约用例也按 `.mh-dialog__close {` 这种单选择器文本找规则。 */
141
+ .mh-dialog__fullscreen {
142
+ display: inline-flex;
143
+ align-items: center;
144
+ justify-content: center;
145
+ flex: none;
146
+ width: var(--ui-dialog-close-size);
147
+ height: var(--ui-dialog-close-size);
148
+ margin: calc(-1 * var(--ui-space-1));
149
+ padding: 0;
150
+ border: none;
151
+ border-radius: var(--ui-radius-sm);
152
+ background: transparent;
153
+ color: var(--ui-base-content-muted);
154
+ cursor: pointer;
155
+ transition: background-color 0.15s ease, color 0.15s ease;
156
+ }
157
+
128
158
  /* 内容区(上下归面板;三段之间无分割线,交界间距只由面板的 `gap` 拥有)
129
159
  `flex: 1 1 auto` + `min-height: 0`:吃掉页头与底栏之外的全部高度(含 `panelHeight` /
130
160
  消费方经 style 给的高度),超出即**本段**滚动 —— 页头与底栏因此永远可见。
@@ -271,13 +271,11 @@
271
271
 
272
272
  /* 显式档(`Form.Item` 的 `align`):样式认不出形态的自绘内容(卡片组 / 表格 / 富文本)写 start;
273
273
  要强制回到默认的中线对齐写 center(两者都压过上面的自动判定)。
274
- `start` 沿用与文本域同一口径的上内距:自绘块自带更大内距时会有几像素差(实测块内距 12px 时差 4px)。 */
274
+ ⚠️ 显式 `start` **不带**文本域那 9px 上内距 —— 那枚补偿只属于文本域壳的内距;自绘块的顶边就是
275
+ 内容顶边,补了反而把 label 推低(缺陷:只读长文本行)。 */
275
276
  .mh-form-item.mh-form-item--align-start {
276
277
  align-items: start;
277
278
  }
278
- .mh-form-item.mh-form-item--align-start > .mh-form-item__label {
279
- padding-top: var(--ui-form-label-padding-top);
280
- }
281
279
  .mh-form-item.mh-form-item--align-center {
282
280
  align-items: center;
283
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manohub/ui",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "AIHub 自绘组件层:不依赖 farris 的手写 Vue TSX 组件 + 自带令牌层(Farris 规范视觉 · daisyUI 式语义令牌 · shadcn 式 API 词汇)。",
@@ -35,7 +35,7 @@
35
35
  "vue": "^3.5.0"
36
36
  },
37
37
  "dependencies": {
38
- "@manohub/icon": "^1.2.9"
38
+ "@manohub/icon": "^1.2.11"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^24.0.0",