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

FEATURE: Page组件content样式允许覆盖 #5177

Closed
3 tasks done
frankchen211 opened this issue Dec 18, 2024 · 0 comments · Fixed by #5179
Closed
3 tasks done

FEATURE: Page组件content样式允许覆盖 #5177

frankchen211 opened this issue Dec 18, 2024 · 0 comments · Fixed by #5179

Comments

@frankchen211
Copy link

Version

Vben Admin V5

Description

Page组件中目前允许传入contentClass以定义content部分的样式,但预制样式h-full p-4不方便覆盖,必须使用!前缀才能实现,例如 !p-0

<div :class="contentClass" :style="contentStyle" class="h-full p-4">

Proposed Solution

建议参考headerClass部分的处理方式,修改为

<div :class="cn('h-full p-4', contentClass)" :style="contentStyle">

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.
@mynetfan mynetfan mentioned this issue Dec 18, 2024
16 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Jan 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant