* [story #69184, doing] add commands to select api and show modules in DocApp.

This commit is contained in:
sunhao
2024-11-13 09:22:31 +08:00
committed by 刘刚
parent 366022ae54
commit 86fce41b0d
+25
View File
@@ -1048,6 +1048,16 @@ const commands =
});
},
/**
* 选择 API 文档。
* Select the specified API doc.
*/
selectApi: function(_, args)
{
const apiID = args[0];
console.log('> selectApi', apiID, `api.${getApiID(apiID)}`);
getDocApp().selectDoc(`api.${getApiID(apiID)}`);
},
/**
* 显示结构列表。
@@ -1078,6 +1088,21 @@ const commands =
listType: 'releases',
});
},
/**
* 显示API 目录。
* Show the api catalog.
*/
showModules: function()
{
getDocApp().changeState(
{
mode: 'list',
moduleID: 0,
docID: 0,
listType: '',
});
},
/**
* 加载懒加载内容。
* Load the lazy content.