Merge branch 'xingyun' of https://gitlink.org.cn/Gitlink/forgeplus-react into xingyun
This commit is contained in:
commit
4fd8bf5db9
|
|
@ -100,8 +100,7 @@ function IssueList(props) {
|
|||
iframe.style.height = contentHeight + 'px';
|
||||
}
|
||||
} catch (e) {
|
||||
iframe.style.height = '770px';
|
||||
// 如果实际上是跨域的,这里很可能会触发错误
|
||||
iframe.style.height = `${document.getElementsByClassName('issue-list')[0] ? document.getElementsByClassName('right-content')[0].clientHeight : document.body.clientHeight }px`;
|
||||
console.error("调整同源 iframe 大小出错 (或者它实际是跨域的):", e);
|
||||
}
|
||||
};
|
||||
|
|
@ -265,7 +264,7 @@ function IssueList(props) {
|
|||
|
||||
// 筛选列表
|
||||
const renderFilterItems = (items, state, setter, label, showMoreButton = false) => {
|
||||
const displayedItems = showMoreButton && items && !tagShowMoreDelay ? items.slice(0, 10) : items;
|
||||
const displayedItems = showMoreButton && items && !tagShowMoreDelay ? items.slice(0, 8) : items;
|
||||
|
||||
return (<div className={`filters`}>
|
||||
<div className="filter-title">
|
||||
|
|
@ -448,7 +447,7 @@ function IssueList(props) {
|
|||
</div>
|
||||
{ renderAnalizeItem('classes类溯源', codeAnalyze.classes) }
|
||||
{ renderAnalizeItem('files文件溯源', codeAnalyze.files) }
|
||||
{ renderAnalizeItem('functions溯源', codeAnalyze.func) }
|
||||
{ renderAnalizeItem('调用请求量', codeAnalyze.func) }
|
||||
<Divider dashed />
|
||||
</div>
|
||||
{renderFilterItems(listFilter.tags, selectedTag, setSelectedTag, "标签", true)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue