fix: 修正Q2方案标签并添加导出功能

修复Q2方案的标签显示不一致问题,将"Q Scheme 2"改为"Q2 Scheme"
在Q2方案页面添加导出功能组件
This commit is contained in:
徐涛
2025-07-14 23:05:01 +08:00
parent e327885545
commit 4119a1ab64
2 changed files with 4 additions and 1 deletions

View File

@@ -1,8 +1,10 @@
import { isEqual, isNil } from 'lodash-es';
import { useState } from 'react';
import { Tab } from '../../components/Tab';
import { SchemeContent } from '../../models';
import { Q2SchemeStorage } from '../../q-2-scheme';
import { isNilOrEmpty } from '../../utls';
import { SchemeExport } from './Export';
const tabOptions = [
{ title: 'Overview', id: 'overview' },
@@ -30,6 +32,7 @@ export function Q2Scheme({ scheme }: Q2SchemeProps) {
export: isNilOrEmpty(scheme.schemeStorage?.cssVariables),
}}
/>
{isEqual(activeTab, 'export') && <SchemeExport scheme={scheme} />}
</>
);
}