FWQ
如何在 React 中实现可滚动的超出容器?
在 react 中实现可滚动的超出容器 当你有一个子组件包含大量数据时,它可能会超出容器的边界。为了解决这个问题,你可以让溢出的内容在一个可滚动的滑条中展示,以便用户可以上下拖动查看。 以下是通过在容器中添加一行 属性来实现这一功能的步骤: import React from 'react' export type ItemType = { type: "property" | "method", value: string, selected?: boolean } export type SubContainerProps =…