Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select 滚动条,数据量在9条10条的时候,不展示滚动样式 #8468

Closed
wq758511990 opened this issue Jun 4, 2024 · 0 comments
Closed

Comments

@wq758511990
Copy link

🐛 bug 描述

📷 复现步骤

使用proForm表单,valueType选择'select',填入对应的数据

🏞 期望结果

此时数据量超出了一个屏幕,应该要展示滚动条

💻 复现代码

select组件版本

      <BetaSchemaForm
        columns={[
          {
            title: 'select test',
            valueType: 'select',
            fieldProps: {
              options: [
                { value: 'jack', label: 'Jack' },
                { value: 'lucy', label: 'Lucy' },
                { value: 'Yiminghe', label: 'yiminghe' },
                { value: 'Yiminghe1', label: 'yiminghe1' },
                { value: 'Yiminghe2', label: 'yiminghe2' },
                { value: 'Yiminghe3', label: 'yiminghe3' },
                { value: 'Yiminghe4', label: 'yiminghe4' },
                { value: 'Yiminghe5', label: 'yiminghe5' },
                { value: 'Yiminghe6', label: 'yiminghe6' }
              ]
            }
          }
        ]}
      />

© 版本信息

  • ProComponents 版本: [2.7.9]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

该问题应该是开启虚拟滚动后,rc-virtual-list计算高度的问题,详见如下链接
react-component/virtual-list#262
rc-virtual-list生成在3.11.5版本修复了该问题, 但是pro-components这边依然有该问题,或者说antd的最新版本中依然有该问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant