|
|
@@ -1,16 +1,10 @@
|
|
|
-import { Button, Popover } from "antd";
|
|
|
-import { Typography } from "antd";
|
|
|
-import { SearchOutlined, CopyOutlined } from "@ant-design/icons";
|
|
|
-import { ProCard } from "@ant-design/pro-components";
|
|
|
import { bookName as _bookName } from "../fts/book_name";
|
|
|
import { ArticleCtl, TDisplayStyle } from "./Article";
|
|
|
-import { ArticleType } from "../article/Article";
|
|
|
-
|
|
|
-const { Text, Link } = Typography;
|
|
|
|
|
|
interface IWidgetQuoteLinkCtl {
|
|
|
type: string;
|
|
|
bookName: string;
|
|
|
+ bookNameLocal?: string;
|
|
|
volume: string;
|
|
|
page: string;
|
|
|
style: TDisplayStyle;
|
|
|
@@ -18,12 +12,15 @@ interface IWidgetQuoteLinkCtl {
|
|
|
const QuoteLinkCtl = ({
|
|
|
type,
|
|
|
bookName,
|
|
|
+ bookNameLocal,
|
|
|
volume,
|
|
|
page,
|
|
|
style,
|
|
|
}: IWidgetQuoteLinkCtl) => {
|
|
|
- const abbr = _bookName.find((value) => value.term === bookName)?.abbr;
|
|
|
- let textShow = `${abbr} ${volume}. ${page}`;
|
|
|
+ const abbr = bookNameLocal
|
|
|
+ ? bookNameLocal
|
|
|
+ : _bookName.find((value) => value.term === bookName)?.abbr;
|
|
|
+ let textShow = `${abbr} ${volume}.${page}`;
|
|
|
|
|
|
return (
|
|
|
<>
|