From d641b7e2efa0bd68c951bf04da2c992cd7f88d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Mon, 8 Apr 2024 09:40:06 +0800 Subject: [PATCH] Doc: update --- web/src/pages/Doc/en/constructor/index.md | 8 +- web/src/pages/Doc/en/constructor/index.vue | 1579 +------------------- web/src/pages/Doc/zh/constructor/index.md | 8 +- web/src/pages/Doc/zh/constructor/index.vue | 8 +- web/src/pages/Doc/zh/course1/index.md | 8 +- web/src/pages/Doc/zh/course1/index.vue | 8 +- 6 files changed, 26 insertions(+), 1593 deletions(-) diff --git a/web/src/pages/Doc/en/constructor/index.md b/web/src/pages/Doc/en/constructor/index.md index cb1c2224..fd294ed5 100644 --- a/web/src/pages/Doc/en/constructor/index.md +++ b/web/src/pages/Doc/en/constructor/index.md @@ -142,9 +142,11 @@ The basic data structure is as follows: hyperlinkTitle: '', // Title of hyperlink note: '', // Content of remarks tag: [], // Tag list - generalization: {// The summary of the node, if there is no summary, the generalization can be set to null - text: ''// Summary Text - }, + generalization: [{// (Arrays are not supported in versions below 0.9.0, and only a single summary data can be set)The summary of the node, if there is no summary, the generalization can be set to null + text: '', // Summary Text + richText: false, // Is the text of the node in rich text mode + // ...The fields of other ordinary nodes are supported, But it does not support children + }], associativeLineTargets: [''],// If there are associated lines, then it is the uid list of the target node associativeLineText: '',// Association Line Text // ...For other style fields, please refer to the topic diff --git a/web/src/pages/Doc/en/constructor/index.vue b/web/src/pages/Doc/en/constructor/index.vue index e059b9df..85fadc3a 100644 --- a/web/src/pages/Doc/en/constructor/index.vue +++ b/web/src/pages/Doc/en/constructor/index.vue @@ -1,1583 +1,6 @@ diff --git a/web/src/pages/Doc/zh/constructor/index.md b/web/src/pages/Doc/zh/constructor/index.md index a970a78f..fd55284f 100644 --- a/web/src/pages/Doc/zh/constructor/index.md +++ b/web/src/pages/Doc/zh/constructor/index.md @@ -144,9 +144,11 @@ const mindMap = new MindMap({ attachmentUrl: '',// v0.9.10+,附件url attachmentName: '',// v0.9.10+,附件名称 tag: [], // 标签列表 - generalization: {// 节点的概要,如果没有概要generalization设为null即可 - text: ''// 概要的文本 - }, + generalization: [{// (0.9.0以下版本不支持数组,只能设置单个概要数据)节点的概要,如果没有概要generalization设为null即可 + text: '', // 概要的文本 + richText: false, // 节点的文本是否是富文本模式 + // ...其他普通节点的字段都支持,但是不支持children + }], associativeLineTargets: [''],// 如果存在关联线,那么为目标节点的uid列表 associativeLineText: '',// 关联线文本 // ...其他样式字段,可以参考主题 diff --git a/web/src/pages/Doc/zh/constructor/index.vue b/web/src/pages/Doc/zh/constructor/index.vue index 7af6381b..a54dcce4 100644 --- a/web/src/pages/Doc/zh/constructor/index.vue +++ b/web/src/pages/Doc/zh/constructor/index.vue @@ -609,9 +609,11 @@ attachmentUrl: '',// v0.9.10+,附件url attachmentName: '',// v0.9.10+,附件名称 tag: [], // 标签列表 - generalization: {// 节点的概要,如果没有概要generalization设为null即可 - text: ''// 概要的文本 - }, + generalization: [{// (0.9.0以下版本不支持数组,只能设置单个概要数据)节点的概要,如果没有概要generalization设为null即可 + text: '', // 概要的文本 + richText: false, // 节点的文本是否是富文本模式 + // ...其他普通节点的字段都支持,但是不支持children + }], associativeLineTargets: [''],// 如果存在关联线,那么为目标节点的uid列表 associativeLineText: '',// 关联线文本 // ...其他样式字段,可以参考主题 diff --git a/web/src/pages/Doc/zh/course1/index.md b/web/src/pages/Doc/zh/course1/index.md index af3f2212..21b24636 100644 --- a/web/src/pages/Doc/zh/course1/index.md +++ b/web/src/pages/Doc/zh/course1/index.md @@ -44,9 +44,11 @@ attachmentUrl: '',// v0.9.10+,附件url attachmentName: '',// v0.9.10+,附件名称 tag: [], // 标签列表 - generalization: {// 节点的概要,如果没有概要generalization设为null即可 - text: ''// 概要的文本 - }, + generalization: [{// (0.9.0以下版本不支持数组,只能设置单个概要数据)节点的概要,如果没有概要generalization设为null即可 + text: '', // 概要的文本 + richText: false, // 节点的文本是否是富文本模式 + // ...其他普通节点的字段都支持,但是不支持children + }], associativeLineTargets: [''],// 如果存在关联线,那么为目标节点的uid列表 associativeLineText: '',// 关联线文本 // ...其他样式字段,可以参考主题 diff --git a/web/src/pages/Doc/zh/course1/index.vue b/web/src/pages/Doc/zh/course1/index.vue index ffe0700d..69ee5dda 100644 --- a/web/src/pages/Doc/zh/course1/index.vue +++ b/web/src/pages/Doc/zh/course1/index.vue @@ -36,9 +36,11 @@ attachmentUrl: '',// v0.9.10+,附件url attachmentName: '',// v0.9.10+,附件名称 tag: [], // 标签列表 - generalization: {// 节点的概要,如果没有概要generalization设为null即可 - text: ''// 概要的文本 - }, + generalization: [{// (0.9.0以下版本不支持数组,只能设置单个概要数据)节点的概要,如果没有概要generalization设为null即可 + text: '', // 概要的文本 + richText: false, // 节点的文本是否是富文本模式 + // ...其他普通节点的字段都支持,但是不支持children + }], associativeLineTargets: [''],// 如果存在关联线,那么为目标节点的uid列表 associativeLineText: '',// 关联线文本 // ...其他样式字段,可以参考主题