ant-design / ant-design-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
https://pro.ant.design
MIT License
36.35k stars 8.14k forks source link

🐛[BUG]* rc-image in ./node_modules/antd/es/image/index.js, ./node_modules/antd/es/image/PreviewGroup.js #8959

Closed pxim closed 3 years ago

pxim commented 3 years ago

🐛 bug 描述

使用 https://codesandbox.io/s/8n8dr?file=/index.tsx 这个里的ModalForm,我antd pro5版本里会报错

import React from 'react';
import { Button, message } from 'antd';
import ProForm, {
  ModalForm,
  ProFormText,
} from '@ant-design/pro-form';
//
import { PlusOutlined } from '@ant-design/icons';

const waitTime = (time: number = 100) => {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve(true);
    }, time);
  });
};

export default () => {
  return (
   <div>
      <ModalForm>

      </ModalForm>
   </div>
  );
};

image

npm install --save rc-image 安装不了

📷 复现步骤

🏞 期望结果

💻 复现代码

© 版本信息



### 🚑 其他信息

<!--
如截图等其他信息可以贴在这里
-->
chenshuai2144 commented 3 years ago

你都升级到最新版本呗,这个看起来是你的antd 太老了,不支持 image 组件