feat: 收口 mindmap Phase 6 Leptos UI shell
This commit is contained in:
@@ -11,7 +11,7 @@ use leptos::prelude::*;
|
||||
/// 渲染思维导图的 SSR 壳结构:
|
||||
/// - `<main id="mnote-mindmap-shell" data-object-shell="mindmap">`
|
||||
/// - 思维导图标题区域
|
||||
/// - React 运行时挂载占位区
|
||||
/// - leptos-mindmap / simple-mind-map adapter 挂载占位区
|
||||
#[component]
|
||||
pub fn MindmapPage(
|
||||
/// 文档 ID
|
||||
@@ -30,7 +30,13 @@ pub fn MindmapPage(
|
||||
<header>
|
||||
<h1>{"思维导图"}</h1>
|
||||
</header>
|
||||
<section id="mnote-mindmap-island" data-react-island="mindmap_runtime"></section>
|
||||
<section
|
||||
id="mnote-mindmap-island"
|
||||
data-leptos-mindmap-island="standalone"
|
||||
data-runtime="simple-mind-map"
|
||||
data-projection-query="mindmap.simple_mind_map_scene.get"
|
||||
data-command-name="mindmap.command.apply"
|
||||
></section>
|
||||
</main>
|
||||
</PageLayout>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user