소스 검색

添加点击鼠标事件参数

visuddhinanda 2 년 전
부모
커밋
3e2d0e7ab6
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      dashboard/src/components/article/ArticleList.tsx

+ 5 - 3
dashboard/src/components/article/ArticleList.tsx

@@ -120,7 +120,7 @@ const ArticleListWidget = ({
       icon: <ExclamationCircleOutlined />,
       icon: <ExclamationCircleOutlined />,
       title:
       title:
         intl.formatMessage({
         intl.formatMessage({
-          id: "message.delete.sure",
+          id: "message.delete.confirm",
         }) +
         }) +
         intl.formatMessage({
         intl.formatMessage({
           id: "message.irrevocable",
           id: "message.irrevocable",
@@ -195,9 +195,11 @@ const ArticleListWidget = ({
                 <>
                 <>
                   <div key={1}>
                   <div key={1}>
                     <Typography.Link
                     <Typography.Link
-                      onClick={() => {
+                      onClick={(
+                        event: React.MouseEvent<HTMLElement, MouseEvent>
+                      ) => {
                         if (typeof onSelect !== "undefined") {
                         if (typeof onSelect !== "undefined") {
-                          onSelect(row.id, row.title);
+                          onSelect(row.id, row.title, event);
                         }
                         }
                       }}
                       }}
                     >
                     >