flow-mindmap 0.2.2 → 0.3.0
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.
- package/README.md +1 -2
- package/dist/components/MindMap.vue.d.ts +5 -8
- package/dist/components/NodeContextMenu.vue.d.ts +0 -4
- package/dist/components/Outline.vue.d.ts +1 -1
- package/dist/flow-mindmap.js +652 -668
- package/dist/flow-mindmap.umd.cjs +6 -6
- package/dist/types.d.ts +0 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -109,8 +109,7 @@ function onMdChange(next: string) {
|
|
|
109
109
|
| Prop | Type | Default | 说明 |
|
|
110
110
|
| ---- | ---- | ------- | ---- |
|
|
111
111
|
| `data` | [`MindMapNode`](#数据类型) | — | **必填**。思维导图根节点。 |
|
|
112
|
-
| `
|
|
113
|
-
| `previewMode` | `boolean` | `false` | 预览模式:隐藏画布自带工具栏,只保留节点和折叠/调整手柄。适合做截图、嵌入展示。 |
|
|
112
|
+
| `previewMode` | `boolean` | `false` | 预览模式:隐藏画布自带工具栏,禁用所有编辑(增删改、拖拽、编辑输入框),但**保留节点的展开/折叠**以方便浏览。适合做截图、嵌入展示。 |
|
|
114
113
|
| `theme` | [`MindMapTheme`](#数据类型) | — | 主题色/字号/连线粗细等外观配置,见下表。 |
|
|
115
114
|
| `markdown` | `string` | — | 可选:传入 markdown 文本,内部解析为 `data`。**与 `data` 二选一**,传了 `markdown` 后 `data` 被忽略。双向同步:数据变化时通过 `markdownChange` 事件回传序列化结果。 |
|
|
116
115
|
| `lineColors` | `string[]` | — | 可选:顶层分支**连线**颜色列表(hex / rgb / 命名色)。优先级高于 `branchPaletteId` / `customPalettes`;留空走 palette 流程。 |
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import type { MindMapNode, MindMapTheme, MindMapSettings, NodeStyle, MindMapImage } from '../types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
data: MindMapNode;
|
|
4
|
-
readonly?: boolean;
|
|
5
4
|
theme?: MindMapTheme;
|
|
6
5
|
/**
|
|
7
|
-
* When true, hides the MindMap's own toolbar and
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* controlled by the parent (App.vue)
|
|
12
|
-
* the canvas's own chrome.
|
|
6
|
+
* When true, hides the MindMap's own toolbar and disables every
|
|
7
|
+
* edit operation (add/remove/edit/drag/paste/rich-edit/note
|
|
8
|
+
* edit/context menu). Expand/collapse stays available so the
|
|
9
|
+
* user can still navigate a large tree. The app-level top
|
|
10
|
+
* toolbar / drawers are controlled by the parent (App.vue).
|
|
13
11
|
*/
|
|
14
12
|
previewMode?: boolean;
|
|
15
13
|
/**
|
|
@@ -84,7 +82,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
|
84
82
|
"onEdit-note"?: ((nodeId: string) => any) | undefined;
|
|
85
83
|
onMarkdownChange?: ((markdown: string) => any) | undefined;
|
|
86
84
|
}>, {
|
|
87
|
-
readonly: boolean;
|
|
88
85
|
previewMode: boolean;
|
|
89
86
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
90
87
|
export default _default;
|
|
@@ -24,9 +24,6 @@ type __VLS_Props = {
|
|
|
24
24
|
/** Whether the node already has a table in its richContent.
|
|
25
25
|
* Same role as hasCode for the table action. */
|
|
26
26
|
hasTable?: boolean;
|
|
27
|
-
/** True if the component is in readonly mode — all actions
|
|
28
|
-
* render but are disabled. */
|
|
29
|
-
readonly?: boolean;
|
|
30
27
|
};
|
|
31
28
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
32
29
|
close: () => any;
|
|
@@ -62,6 +59,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
62
59
|
hasNote: boolean;
|
|
63
60
|
hasCode: boolean;
|
|
64
61
|
hasTable: boolean;
|
|
65
|
-
readonly: boolean;
|
|
66
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
67
63
|
export default _default;
|
|
@@ -38,8 +38,8 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
38
38
|
position: "before" | "after" | "child";
|
|
39
39
|
}) => any) | undefined;
|
|
40
40
|
}>, {
|
|
41
|
-
readonly: boolean;
|
|
42
41
|
selectedId: string | null;
|
|
42
|
+
readonly: boolean;
|
|
43
43
|
collapsedIds: Set<string>;
|
|
44
44
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
45
|
export default _default;
|