|
@@ -14,6 +14,9 @@ import { PaliReal } from "../../../utils";
|
|
|
import WbwVideoButton from "./WbwVideoButton";
|
|
import WbwVideoButton from "./WbwVideoButton";
|
|
|
import CommentBox from "../../comment/CommentBox";
|
|
import CommentBox from "../../comment/CommentBox";
|
|
|
import PaliText from "./PaliText";
|
|
import PaliText from "./PaliText";
|
|
|
|
|
+import store from "../../../store";
|
|
|
|
|
+import { command } from "../../../reducers/command";
|
|
|
|
|
+import { IWidgetDict } from "../../dict/DictComponent";
|
|
|
|
|
|
|
|
const { Paragraph } = Typography;
|
|
const { Paragraph } = Typography;
|
|
|
interface IWidget {
|
|
interface IWidget {
|
|
@@ -166,6 +169,17 @@ const Widget = ({ data, display, onSave }: IWidget) => {
|
|
|
onMouseLeave={() => {
|
|
onMouseLeave={() => {
|
|
|
setIsHover(false);
|
|
setIsHover(false);
|
|
|
}}
|
|
}}
|
|
|
|
|
+ onClick={() => {
|
|
|
|
|
+ //发送点词查询消息
|
|
|
|
|
+ store.dispatch(
|
|
|
|
|
+ command({
|
|
|
|
|
+ prop: {
|
|
|
|
|
+ word: data.word.value,
|
|
|
|
|
+ },
|
|
|
|
|
+ type: "dict",
|
|
|
|
|
+ })
|
|
|
|
|
+ );
|
|
|
|
|
+ }}
|
|
|
>
|
|
>
|
|
|
<Popover
|
|
<Popover
|
|
|
content={wbwDetail}
|
|
content={wbwDetail}
|