|
|
@@ -1,23 +1,23 @@
|
|
|
import { Popover } from "antd";
|
|
|
|
|
|
interface IWidgetWdCtl {
|
|
|
- text?: string;
|
|
|
+ text?: string;
|
|
|
}
|
|
|
const WdCtl = ({ text }: IWidgetWdCtl) => {
|
|
|
- const noteCard = "note";
|
|
|
- return (
|
|
|
- <Popover content={noteCard} placement="bottom">
|
|
|
- {text}{" "}
|
|
|
- </Popover>
|
|
|
- );
|
|
|
+ const noteCard = "note";
|
|
|
+ return (
|
|
|
+ <Popover content={noteCard} placement="bottom">
|
|
|
+ {text}{" "}
|
|
|
+ </Popover>
|
|
|
+ );
|
|
|
};
|
|
|
|
|
|
interface IWidgetTerm {
|
|
|
- props: string;
|
|
|
+ props: string;
|
|
|
}
|
|
|
const Widget = ({ props }: IWidgetTerm) => {
|
|
|
- const prop = JSON.parse(decodeURI(props)) as IWidgetWdCtl;
|
|
|
- return <WdCtl {...prop} />;
|
|
|
+ const prop = JSON.parse(atob(props)) as IWidgetWdCtl;
|
|
|
+ return <WdCtl {...prop} />;
|
|
|
};
|
|
|
|
|
|
export default Widget;
|