diff --git a/muyun-web/src/app/ThemeSkinPreferencesDialog.vue b/muyun-web/src/app/ThemeSkinPreferencesDialog.vue index 5b63dbb4..aa286e6c 100644 --- a/muyun-web/src/app/ThemeSkinPreferencesDialog.vue +++ b/muyun-web/src/app/ThemeSkinPreferencesDialog.vue @@ -44,6 +44,7 @@ function moveSkinFocus(event: KeyboardEvent, currentIndex: number) { +import { UiButton, type UiIconName } from '@muyun/vue-ui-antdv'; + +defineOptions({ name: 'ManagementPanelHeader' }); + +withDefaults( + defineProps<{ + title: string; + subtitle?: string; + titleActionIcon?: UiIconName; + titleActionTitle?: string; + }>(), + { + subtitle: undefined, + titleActionIcon: undefined, + titleActionTitle: undefined, + }, +); + +const emit = defineEmits<{ + titleAction: []; +}>(); + + + + + diff --git a/muyun-web/src/platform-components/ManagementWorkspace.vue b/muyun-web/src/platform-components/ManagementWorkspace.vue index cc237031..dc9b02d1 100644 --- a/muyun-web/src/platform-components/ManagementWorkspace.vue +++ b/muyun-web/src/platform-components/ManagementWorkspace.vue @@ -32,6 +32,13 @@ const pageLayout = usePageLayout(); --muyun-management-explorer-width: 280px; --muyun-management-detail-min-width: 560px; --muyun-management-column-gap: 12px; + --muyun-management-panel-padding-block: 10px; + --muyun-management-panel-padding-inline: 12px; + --muyun-management-panel-header-height: 30px; + --muyun-management-panel-header-gap: 8px; + --muyun-management-panel-title-font-size: 16px; + --muyun-management-panel-title-line-height: 22px; + --muyun-management-panel-content-gap: 8px; display: grid; align-items: start; diff --git a/muyun-web/src/platform-components/RecordDetailLayout.vue b/muyun-web/src/platform-components/RecordDetailLayout.vue index d4f9be8b..245c9b8b 100644 --- a/muyun-web/src/platform-components/RecordDetailLayout.vue +++ b/muyun-web/src/platform-components/RecordDetailLayout.vue @@ -27,19 +27,21 @@ withDefaults( class="record-detail-layout" :class="[`record-detail-layout--${surface}`, { 'record-detail-layout--scrollable': scrollableContent }]" > -
-
-
-

{{ title }}

-

{{ subtitle }}

+ +
+
+
+

{{ title }}

+

{{ subtitle }}

+
+ +
- - -
-
- -
-
+
+ +
+ +
@@ -64,6 +66,9 @@ withDefaults( } .record-detail-layout--workspace { + gap: var(--muyun-management-panel-content-gap, 8px); + padding: var(--muyun-management-panel-padding-block, 10px) + var(--muyun-management-panel-padding-inline, 12px); border: 1px solid var(--muyun-border); border-radius: 8px; } @@ -148,6 +153,12 @@ withDefaults( background: var(--muyun-surface); } +.record-detail-layout--workspace .record-detail-layout-operation { + margin: 0 calc(-1 * var(--muyun-management-panel-padding-inline, 12px)) + calc(-1 * var(--muyun-management-panel-padding-block, 10px)); + padding-inline: var(--muyun-management-panel-padding-inline, 12px); +} + @media (max-width: 720px) { .record-detail-layout-header { display: grid; diff --git a/muyun-web/src/platform-components/RecordDetailPanel.vue b/muyun-web/src/platform-components/RecordDetailPanel.vue index 365ef0e4..01b52c62 100644 --- a/muyun-web/src/platform-components/RecordDetailPanel.vue +++ b/muyun-web/src/platform-components/RecordDetailPanel.vue @@ -1,5 +1,6 @@