From 7196c37e9a32c7bbbbf7780793f1b0f5c3054c28 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: Thu, 28 Dec 2023 09:27:43 +0800 Subject: [PATCH] Doc: update --- web/src/pages/Doc/zh/course17/index.md | 2 +- web/src/pages/Doc/zh/course17/index.vue | 2 +- web/src/pages/Doc/zh/doExport/index.md | 4 +++- web/src/pages/Doc/zh/doExport/index.vue | 5 ++++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/web/src/pages/Doc/zh/course17/index.md b/web/src/pages/Doc/zh/course17/index.md index 6765cff2..24cf3b83 100644 --- a/web/src/pages/Doc/zh/course17/index.md +++ b/web/src/pages/Doc/zh/course17/index.md @@ -16,7 +16,7 @@ mindMap.export(type, isDownload, fileName, ...) `type`:文件类型 -`isDownload`:传`true`会触发下载,`false`则不会,函数会返回导出文件的数据,`data:url`格式,你可以自行下载,`pdf`不支持该参数,默认会直接下载。 +`isDownload`:传`true`会触发下载,`false`则不会,函数会返回导出文件的数据,`data:url`格式,你可以自行下载,(v0.9.2之前的版本,`pdf`不支持该参数,默认会直接下载)。 `fileName`:下载的文件名称 diff --git a/web/src/pages/Doc/zh/course17/index.vue b/web/src/pages/Doc/zh/course17/index.vue index 87a8a9bd..8c2a703a 100644 --- a/web/src/pages/Doc/zh/course17/index.vue +++ b/web/src/pages/Doc/zh/course17/index.vue @@ -11,7 +11,7 @@
mindMap.export(type, isDownload, fileName, ...)
 

type:文件类型

-

isDownload:传true会触发下载,false则不会,函数会返回导出文件的数据,data:url格式,你可以自行下载,pdf不支持该参数,默认会直接下载。

+

isDownload:传true会触发下载,false则不会,函数会返回导出文件的数据,data:url格式,你可以自行下载,(v0.9.2之前的版本,pdf不支持该参数,默认会直接下载)。

fileName:下载的文件名称

导出为smm、json

这两种文件的导出是一样的:

diff --git a/web/src/pages/Doc/zh/doExport/index.md b/web/src/pages/Doc/zh/doExport/index.md index 5e316b16..6ed31653 100644 --- a/web/src/pages/Doc/zh/doExport/index.md +++ b/web/src/pages/Doc/zh/doExport/index.md @@ -88,7 +88,9 @@ svg( - `transparent`:v0.9.2+,Boolean,默认为false,指定导出图片的背景是否是透明的 -导出为`pdf`,和其他导出方法不一样,这个方法不会返回数据,会直接触发下载。 +导出为`pdf`, + +> v0.9.3之前的版本这个方法不会返回数据,会直接触发下载。 > v0.6.0版本以后,需要额外注册一个ExportPDF插件 diff --git a/web/src/pages/Doc/zh/doExport/index.vue b/web/src/pages/Doc/zh/doExport/index.vue index 70803d94..ba87aa09 100644 --- a/web/src/pages/Doc/zh/doExport/index.vue +++ b/web/src/pages/Doc/zh/doExport/index.vue @@ -90,7 +90,10 @@ a.click()

transparent:v0.9.2+,Boolean,默认为false,指定导出图片的背景是否是透明的

-

导出为pdf,和其他导出方法不一样,这个方法不会返回数据,会直接触发下载。

+

导出为pdf

+
+

v0.9.3之前的版本这个方法不会返回数据,会直接触发下载。

+

v0.6.0版本以后,需要额外注册一个ExportPDF插件