feat: 使用 Semi AI 组件升级研究助手与研究入口
This commit is contained in:
+11
-6
@@ -11,7 +11,11 @@ import {
|
||||
Tooltip,
|
||||
} from "@douyinfe/semi-ui-19";
|
||||
import zhCN from "@douyinfe/semi-ui-19/lib/es/locale/source/zh_CN";
|
||||
import { IconSetting, IconComment, IconHistory } from "@douyinfe/semi-icons";
|
||||
import {
|
||||
IconSetting,
|
||||
IconAIFilledLevel3,
|
||||
IconHistory,
|
||||
} from "@douyinfe/semi-icons";
|
||||
import { QuantFlowPage } from "./research/QuantFlowPage";
|
||||
import { PipelinePage } from "./research/PipelinePage";
|
||||
import { FeaturesPage } from "./research/FeaturesPage";
|
||||
@@ -265,7 +269,7 @@ export default function App() {
|
||||
/>
|
||||
<div
|
||||
className="workspace-tools"
|
||||
hidden={settingsOpen}
|
||||
hidden={settingsOpen || (chatOpen && viewport < 1440)}
|
||||
inert={
|
||||
(chatOpen && viewport < 1440) || catalogModal || settingsOpen
|
||||
}
|
||||
@@ -275,21 +279,22 @@ export default function App() {
|
||||
<Tooltip content="配置" visible={settingsOpen ? false : undefined}>
|
||||
<Button
|
||||
aria-label="配置"
|
||||
icon={<IconSetting />}
|
||||
icon={<IconSetting aria-hidden="true" />}
|
||||
type="tertiary"
|
||||
theme="borderless"
|
||||
onClick={openSettings}
|
||||
/>
|
||||
</Tooltip>
|
||||
<Tooltip
|
||||
content="Bot · 研究助手"
|
||||
content="AI 研究助手"
|
||||
visible={chatOpen ? false : undefined}
|
||||
>
|
||||
<Button
|
||||
aria-label="切换研究助手"
|
||||
aria-expanded={chatOpen}
|
||||
aria-controls="research-assistant"
|
||||
icon={<IconComment />}
|
||||
icon={<IconAIFilledLevel3 aria-hidden="true" />}
|
||||
colorful
|
||||
type="tertiary"
|
||||
theme={chatOpen ? "light" : "borderless"}
|
||||
onClick={() => setChatOpen(!chatOpen)}
|
||||
@@ -299,7 +304,7 @@ export default function App() {
|
||||
<Badge count={pending || undefined}>
|
||||
<Button
|
||||
aria-label="同步任务"
|
||||
icon={<IconHistory />}
|
||||
icon={<IconHistory aria-hidden="true" />}
|
||||
type="tertiary"
|
||||
theme="borderless"
|
||||
onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user