|
@@ -28,6 +28,7 @@ import ProgressSvg from "./ProgressSvg";
|
|
|
|
|
|
|
|
import { IChannel } from "./Channel";
|
|
import { IChannel } from "./Channel";
|
|
|
import CopyToModal from "./CopyToModal";
|
|
import CopyToModal from "./CopyToModal";
|
|
|
|
|
+import { ArticleType } from "../article/Article";
|
|
|
|
|
|
|
|
interface ChannelTreeNode {
|
|
interface ChannelTreeNode {
|
|
|
key: string;
|
|
key: string;
|
|
@@ -38,11 +39,19 @@ interface ChannelTreeNode {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
interface IWidget {
|
|
interface IWidget {
|
|
|
|
|
+ type?: ArticleType | "editable";
|
|
|
|
|
+ articleId?: string;
|
|
|
selectedKeys?: string[];
|
|
selectedKeys?: string[];
|
|
|
style?: React.CSSProperties;
|
|
style?: React.CSSProperties;
|
|
|
onSelect?: Function;
|
|
onSelect?: Function;
|
|
|
}
|
|
}
|
|
|
-const ChannelMy = ({ selectedKeys = [], style, onSelect }: IWidget) => {
|
|
|
|
|
|
|
+const ChannelMy = ({
|
|
|
|
|
+ type,
|
|
|
|
|
+ articleId,
|
|
|
|
|
+ selectedKeys = [],
|
|
|
|
|
+ style,
|
|
|
|
|
+ onSelect,
|
|
|
|
|
+}: IWidget) => {
|
|
|
const intl = useIntl();
|
|
const intl = useIntl();
|
|
|
const [selectedRowKeys, setSelectedRowKeys] =
|
|
const [selectedRowKeys, setSelectedRowKeys] =
|
|
|
useState<React.Key[]>(selectedKeys);
|
|
useState<React.Key[]>(selectedKeys);
|