import { Button, Popover } from "antd"; import { Typography } from "antd"; import { SearchOutlined, CopyOutlined } from "@ant-design/icons"; import { ProCard } from "@ant-design/pro-components"; import { useIntl } from "react-intl"; const { Text, Link } = Typography; interface IWidgetQuoteCtl { paraId: string; paliPath?: string[]; channel?: string; pali?: string; error?: boolean; message?: string; } const QuoteCtl = ({ paraId, pali, error, message }: IWidgetQuoteCtl) => { const intl = useIntl(); const show = pali ? pali : paraId; let textShow = <>; if (typeof error !== "undefined") { textShow = {show}; } else { textShow = {show}; } const userCard = ( <> }> 分栏打开 , , , ]} >
{message ? message : ""}
); return ( <> {textShow} ); }; interface IWidget { props: string; } const Widget = ({ props }: IWidget) => { const prop = JSON.parse(atob(props)) as IWidgetQuoteCtl; console.log(prop); return ( <> ); }; export default Widget;