diff --git a/lib/zin/wg/docapp/js/v1.js b/lib/zin/wg/docapp/js/v1.js index a79c0142e4..479fa277ba 100644 --- a/lib/zin/wg/docapp/js/v1.js +++ b/lib/zin/wg/docapp/js/v1.js @@ -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: [ + `
${doc.method}
`, + `
${doc.path}
`, + `
${doc.originTitle}
`, + ].join('')}] + }}], + header: false, + checkable: false, + footer: ['flex', 'pager'], + }); + } + const tableCols = lang.tableCols; const canModify = canModifySpace(this.space); options.cols.forEach(col =>