ソースを参照

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

dengdx 3 ヶ月 前
コミット
703db73813

+ 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={{