pro-components
pro-components copied to clipboard
🐛[BUG] Warning: [antd: Modal] `visible` will be removed in next major version, please use `open` instead.

不知道这个合不合适你
目前遇到了两个警告
Warning: [antd: Drawer] `visible` is deprecated which will be removed in next major version, please use `open` instead.
Warning: [antd: Modal] `visible` will be removed in next major version, please use `open` instead.
本来一个多月之前开始的项目没这个警告的。昨天新开了一个项目,出了这个警告。
我就在之前的项目 yarn upgrade
了一下。舒服了,都报警告就说明不是我错了……哈哈
目前遇到了两个警告
Warning: [antd: Drawer] `visible` is deprecated which will be removed in next major version, please use `open` instead. Warning: [antd: Modal] `visible` will be removed in next major version, please use `open` instead.
本来一个多月之前开始的项目没这个警告的。昨天新开了一个项目,出了这个警告。
我就在之前的项目
yarn upgrade
了一下。舒服了,都报警告就说明不是我错了……哈哈
后来代码做了兼容,建议用 open。
目前遇到了两个警告
Warning: [antd: Drawer] `visible` is deprecated which will be removed in next major version, please use `open` instead. Warning: [antd: Modal] `visible` will be removed in next major version, please use `open` instead.
本来一个多月之前开始的项目没这个警告的。昨天新开了一个项目,出了这个警告。 我就在之前的项目
yarn upgrade
了一下。舒服了,都报警告就说明不是我错了……哈哈后来代码做了兼容,建议用 open。
知道这个警告在说什么。但是 在 Welcome.tsx 页面也会输出警告,我就不想管它了,对框架了解不深,找不到改那里合适,就这么放着吧,也不影响啥。
ModalForm组件不支持open写法,只能用visible,但用visible时控制台有警告 @leshalv