feat: 增加 DCF 等估值工具
This commit is contained in:
@@ -62,13 +62,14 @@ export function createAppShell(root, { onReload }) {
|
||||
cartBar.hidden = true;
|
||||
root.append(layout, reloadButton, cartBar);
|
||||
|
||||
return { companyNav, tabs, params, cards, chartNav, cartBar };
|
||||
return { layout, companyNav, tabs, params, cards, chartNav, cartBar };
|
||||
}
|
||||
|
||||
export function renderCompanies(container, companies, activeCompanyId, onSelect) {
|
||||
container.replaceChildren(element('h2', 'sidebar-title', '公司'));
|
||||
const list = element('div', 'company-list');
|
||||
companies.forEach((company) => {
|
||||
if (company.kind === 'tools') list.append(element('h2', 'sidebar-title tools-title', '工具'));
|
||||
list.append(button(company.name, {
|
||||
active: company.id === activeCompanyId,
|
||||
onClick: () => onSelect(company.id),
|
||||
|
||||
Reference in New Issue
Block a user