|
@@ -1,8 +1,9 @@
|
|
|
-import { Affix, Divider, Space } from "antd";
|
|
|
|
|
|
|
+import { Affix, Button, Divider, Space } from "antd";
|
|
|
import { Header } from "antd/lib/layout/layout";
|
|
import { Header } from "antd/lib/layout/layout";
|
|
|
import { Key } from "antd/lib/table/interface";
|
|
import { Key } from "antd/lib/table/interface";
|
|
|
import { useEffect, useState } from "react";
|
|
import { useEffect, useState } from "react";
|
|
|
import { useNavigate, useParams, useSearchParams } from "react-router-dom";
|
|
import { useNavigate, useParams, useSearchParams } from "react-router-dom";
|
|
|
|
|
+import { ColumnOutlinedIcon } from "../../../assets/icon";
|
|
|
import { IApiResponseDictList } from "../../../components/api/Dict";
|
|
import { IApiResponseDictList } from "../../../components/api/Dict";
|
|
|
|
|
|
|
|
import Article, {
|
|
import Article, {
|
|
@@ -112,6 +113,8 @@ const Widget = () => {
|
|
|
<MainMenu />
|
|
<MainMenu />
|
|
|
<div></div>
|
|
<div></div>
|
|
|
<div key="right" style={{ display: "flex" }}>
|
|
<div key="right" style={{ display: "flex" }}>
|
|
|
|
|
+ <Avatar placement="bottom" />
|
|
|
|
|
+ <Divider type="vertical" />
|
|
|
<ModeSwitch
|
|
<ModeSwitch
|
|
|
channel={searchParams.get("channel")}
|
|
channel={searchParams.get("channel")}
|
|
|
currMode={currMode}
|
|
currMode={currMode}
|
|
@@ -140,10 +143,13 @@ const Widget = () => {
|
|
|
}}
|
|
}}
|
|
|
/>
|
|
/>
|
|
|
<Divider type="vertical" />
|
|
<Divider type="vertical" />
|
|
|
- <RightToolsSwitch
|
|
|
|
|
- onModeChange={(open: TPanelName) => {
|
|
|
|
|
- setRightPanel(open);
|
|
|
|
|
- }}
|
|
|
|
|
|
|
+ <Button
|
|
|
|
|
+ style={{ display: "block", color: "white" }}
|
|
|
|
|
+ icon={<ColumnOutlinedIcon />}
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ onClick={() =>
|
|
|
|
|
+ setRightPanel((value) => (value === "close" ? "dict" : "close"))
|
|
|
|
|
+ }
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</Header>
|
|
</Header>
|
|
@@ -182,11 +188,6 @@ const Widget = () => {
|
|
|
<ToolButtonSetting type={type} articleId={id} />
|
|
<ToolButtonSetting type={type} articleId={id} />
|
|
|
</Space>
|
|
</Space>
|
|
|
</div>
|
|
</div>
|
|
|
- <div>
|
|
|
|
|
- <Space direction="vertical">
|
|
|
|
|
- <Avatar placement="rightBottom" />
|
|
|
|
|
- </Space>
|
|
|
|
|
- </div>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</Affix>
|
|
</Affix>
|
|
|
<div
|
|
<div
|
|
@@ -224,6 +225,9 @@ const Widget = () => {
|
|
|
type={type as ArticleType}
|
|
type={type as ArticleType}
|
|
|
articleId={id ? id : ""}
|
|
articleId={id ? id : ""}
|
|
|
selectedChannelKeys={channelId}
|
|
selectedChannelKeys={channelId}
|
|
|
|
|
+ onClose={() => {
|
|
|
|
|
+ setRightPanel("close");
|
|
|
|
|
+ }}
|
|
|
onChannelSelect={(e: IChannel[]) => {
|
|
onChannelSelect={(e: IChannel[]) => {
|
|
|
//channel 改变
|
|
//channel 改变
|
|
|
console.log("onChannelSelect", e);
|
|
console.log("onChannelSelect", e);
|