* [story #69184, doing] add commands to select api and show modules in DocApp.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user