Browse Source

注册页面,已选体位列表中的体位图示,使用antd组件,以提供体位的预览功能

dengdx 1 month ago
parent
commit
703db73813
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/pages/patient/components/register.selected.view.list.tsx

+ 2 - 1
src/pages/patient/components/register.selected.view.list.tsx

@@ -2,6 +2,7 @@ import React from 'react';
 import { Card, Grid, Button, Row, Flex } from 'antd';
 import { CloseOutlined } from '@ant-design/icons';
 import { getViewIconUrl } from '@/API/bodyPosition';
+import { Image } from 'antd';
 import { FormattedMessage } from 'react-intl';
 import { useSelector } from 'react-redux';
 import type { RootState } from '@/states/store';
@@ -51,7 +52,7 @@ const SelectedProtocolList: React.FC<SelectedProtocolListProps> = () => {
           }}
         >
           <Flex>
-            <img
+            <Image
               alt="example"
               src={getViewIconUrl(item.view_icon_name)}
               style={{