* [story #69184, doing] support for show api list in DocApp.
This commit is contained in:
@@ -1043,6 +1043,24 @@ function getTableOptions(options, info)
|
||||
const lang = getLang();
|
||||
if(info.type === 'doc-list')
|
||||
{
|
||||
if(isApiLib())
|
||||
{
|
||||
return $.extend(options, {
|
||||
cols: [{name: 'title', onRenderCell: function(result, info)
|
||||
{
|
||||
const doc = info.row.data;
|
||||
return [{className: `api-list-item row items-center my-0.5 mx-1 gap-2 flex-auto is-${doc.method} cursor-pointer rounded`, html: [
|
||||
`<div class="font-mono w-14 text-center api-method py-1 rounded rounded-r-none">${doc.method}</div>`,
|
||||
`<div class="font-mono api-path">${doc.path}</div>`,
|
||||
`<div class="flex-auto text-right api-title pr-2">${doc.originTitle}</div>`,
|
||||
].join('')}]
|
||||
}}],
|
||||
header: false,
|
||||
checkable: false,
|
||||
footer: ['flex', 'pager'],
|
||||
});
|
||||
}
|
||||
|
||||
const tableCols = lang.tableCols;
|
||||
const canModify = canModifySpace(this.space);
|
||||
options.cols.forEach(col =>
|
||||
|
||||
Reference in New Issue
Block a user