From c2cc8d98d29a472ccbe35aa39893e1dfc8df74e0 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Sun, 7 May 2023 19:46:24 +0800 Subject: [PATCH] docs: get catalog api --- docs/guide/command-get.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/guide/command-get.md b/docs/guide/command-get.md index 15a176f..6a4ad81 100644 --- a/docs/guide/command-get.md +++ b/docs/guide/command-get.md @@ -39,6 +39,7 @@ const base64StringList = await instance.command.getImage() ```javascript const wordCount = await instance.command.getWordCount() ``` + ## getRangeText 功能:获取选区文本 @@ -65,3 +66,11 @@ const { count: number; } = instance.command.getSearchNavigateInfo() ``` + +## getCatalog +功能:获取目录 + +用法: +```javascript +const catalog = await instance.command.getCatalog() +``` \ No newline at end of file