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

表格功能增强:表格的搜索form上面增加一个slot,方便做一些统计信息 #5284

Closed
3 tasks done
sosovia opened this issue Jan 1, 2025 · 4 comments
Closed
3 tasks done

Comments

@sosovia
Copy link

sosovia commented Jan 1, 2025

Version

Vben Admin V5

Description

表格功能增强:表格的搜索form上面增加一个slot,方便做一些统计信息
1735712154402
1735712155329

Proposed Solution

框架正常实现。

Alternatives Considered

No response

Additional Context

No response

Validations

  • Read the docs
  • Ensure the code is up to date. (Some issues have been fixed in the latest version)
  • I have searched the existing issues and checked that my issue does not duplicate any existing issues.
@anncwb
Copy link
Collaborator

anncwb commented Jan 1, 2025

这里你在外层不能控制吗

@sosovia
Copy link
Author

sosovia commented Jan 1, 2025

这里你在外层不能控制吗

@anncwb
外层可以实现,主要是固定表格表头不是特别好实现呢。想着框架统一实现会比较好一点呢。

@mynetfan
Copy link
Collaborator

mynetfan commented Jan 1, 2025

  <Page auto-content-height>
    <div
      style="height: 50px"
      class="bg-background items-center rounded-t-md px-4 py-2"
    >
      在这里放你的内容
    </div>
    <div style="height: calc(100% - 50px)">
      <Grid />
    </div>
  </Page>

另外,还需要去掉Grid顶部的圆角,将class传入useVbenVxeGrid的参数即可:

useVbenVxeGrid({
  class: 'rounded-t-none',
  formOptions,
  gridOptions,
})

@mynetfan mynetfan closed this as completed Jan 1, 2025
@sosovia
Copy link
Author

sosovia commented Jan 2, 2025

好的。谢谢。

@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants