Warning: [antd: Drawer] `visible` is deprecated which will be removed in next major version, please use `open` instead.
时间: 2024-05-22 16:12:28 浏览: 298
170: Warning: (1681, ‘Integer display width is deprecated and will be removed in a future release.’)
5星 · 资源好评率100%
This warning message is related to the use of the `Drawer` component in the `antd` library. The `visible` prop is used to control the visibility of the drawer, but it is being deprecated in favor of the `open` prop, which will be used in the future major version of the library.
To avoid this warning message, you should update your code to use the `open` prop instead of `visible`. This will ensure that your code remains compatible with future versions of the `antd` library.
阅读全文