refactor: panel reorg

This commit is contained in:
2026-02-27 15:34:18 +08:00
parent ce01044c41
commit 23d6d81532
4 changed files with 64 additions and 41 deletions
+6 -3
View File
@@ -4,7 +4,7 @@ import { resolvePath } from '../utils/path';
import { createDeckStore } from './hooks/deckStore';
import { DeckHeader } from './DeckHeader';
import { DeckContent } from './DeckContent';
import { DataEditorPanel, PropertiesEditorPanel } from './editor-panel';
import {DataEditorPanel, LayerEditorPanel, PropertiesEditorPanel} from './editor-panel';
interface DeckProps {
size?: string;
@@ -107,9 +107,12 @@ customElement<DeckProps>('md-deck', {
<DeckContent store={store} isLoading={store.state.isLoading} />
</div>
{/* 右侧:属性编辑表单 */}
{/* 右侧:属性/图层编辑面板 */}
<Show when={store.state.isEditing && !store.state.fixed}>
<PropertiesEditorPanel store={store} />
<div class="flex gap-4">
<PropertiesEditorPanel store={store} />
<LayerEditorPanel store={store} />
</div>
</Show>
</div>
);