Closed kakuilan closed 5 months ago
我替你翻译一下,用 open 代替 visible
我替你翻译一下,用 open 代替 visible
SettingDrawer是@ant-design/pro-layout的组件,无法改。 现在是不想升级组件,看下有没有办法可以
你用正式版本吧,就没有警告了
你用正式版本吧,就没有警告了
我现在的ant-design-pro就是正式版5.2.0,v6.0.0才是beta.1,应该还存在一些问题,不好升级
你用正式版本吧,就没有警告了
我现在的ant-design-pro就是正式版5.2.0,v6.0.0才是beta.1,应该还存在一些问题,不好升级
6 的正式版才没有警告,前几天刚上的 https://www.qiuzhi99.com/playlists/antdpro-prisma.html
TAutomatically replying with ChatGPT can be attempted, but it cannot be guaranteed to be completely accurate and may not fully address all issues. Please feel free to reply if you have any further questions or concerns. 此回复基于 ChatGPT 自动生成,可以尝试下方案,官方人员会在一定时间后继续继续处理。
如果你不想升级组件,你可以在SettingDrawer组件内部,找到使用visible的地方,改为使用open,并设置open为visible的值,例如:
<Drawer
visible={open} //可以改为 open
......
>
......
</Drawer>
变更为:
<Drawer
open={visible} //可以改为 open
......
>
......
</Drawer>
注意,代码中open的true和false的值需要改成visible的true和false的值
🧐 问题描述 | Problem description
💻 示例代码 | Sample code
src/app.tsx,其中的
🚑 其他信息 | Other information
Node:18.12.1 antd::4.24.4 @ant-design/pro-layout:6.38.22
请问怎么解决呢?