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

crud固定高度时,行高异常的问题 #11419

Open
ranwawa opened this issue Dec 23, 2024 · 0 comments
Open

crud固定高度时,行高异常的问题 #11419

ranwawa opened this issue Dec 23, 2024 · 0 comments

Comments

@ranwawa
Copy link
Contributor

ranwawa commented Dec 23, 2024

描述问题:

crud设置autoFillHeight属性,当表格只有一条数据时,行的高度和表格的高度一样

截图或视频:

image

如何复现(请务必完整填写下面内容):

文档好像没有部署无法复现,可以在本地复现

 {
        type: 'page',
        className: 'height-full',
        body: {
          type: 'crud',
          autoFillHeight: true,
          data: {
            items: [
              {
                remark: 'ddd',
              },
            ],
          },
          columns: [
            {
              label: '备注',
              width: '200px',
              name: 'remark',
              maxWidth: '200px',
              maxLength: '15',
            },
          ],
        },
      }

问题排查

packages/amis-ui/scss/components/_table.scss:1023行,12月4号引入导致的

> .#{$ns}Table-contentWrap {
      > .#{$ns}Table-content > table {
        border-top: none; // 不然会导致拖动时顶部露出内容
        min-height: 100%; // 为了让表格占满高度     
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant