admin-vben5/packages/effects
Jin Mao 20c15f352f
perf: page componet supports custom height offset for flexible content height … (#6081)
* perf: Page supports custom height offset for flexible content height control.

允许通过 height 属性调整页面内容高度计算。修改了 Page 组件以支持自定义高度偏移量,用于更灵活的内容高度控制。

* chore: typo

* perf(page): replace height with heightOffset for flexible content sizing

The `height` prop was replaced with `heightOffset` to better describe its purpose when used with `autoContentHeight`. The new prop allows custom offset values (in pixels) to adjust content area sizing, with clearer documentation.
2025-04-29 18:15:12 +08:00
..
access chore: update dependencies and documentation, optimize build toolchain (#6060) 2025-04-28 23:08:05 +08:00
common-ui perf: page componet supports custom height offset for flexible content height … (#6081) 2025-04-29 18:15:12 +08:00
hooks chore: release v5.5.5 2025-04-27 21:45:10 +08:00
layouts chore: update dependency version for improved stability and compatibility (#6023) 2025-04-27 22:06:49 +08:00
plugins chore: update dependency version for improved stability and compatibility (#6023) 2025-04-27 22:06:49 +08:00
request chore: release v5.5.5 2025-04-27 21:45:10 +08:00
README.md refactor: adjust all sample pages and use page components (#4118) 2024-08-11 20:05:52 +08:00

Effects 目录

effects 目录专门用于存放与轻微耦合相关的代码和逻辑。如果你的包具有以下特点,建议将其放置在 effects 目录下:

  • 状态管理:使用状态管理框架 pinia并包含处理副作用如异步操作、API 调用)的部分。
  • 用户偏好设置:使用 @vben-core/preferences 处理用户偏好设置,涉及本地存储或浏览器缓存逻辑(如使用 localStorage)。
  • 导航和路由:处理导航、页面跳转等场景,需要管理路由变化的逻辑。
  • 组件库依赖:包含与特定组件库紧密耦合或依赖大型仓库的部分。

通过将相关代码归类到 effects 目录,可以使项目结构更加清晰,便于维护和扩展。