dream-weave
26706d65c9
feat: enable typecheck across all workspace packages ( #8482 )
* build(lint): bump oxc toolchain to the locked pairing
- oxlint ^1.90.0 + oxlint-tsgolint ^7.0.2005 + oxfmt ^0.75.0 锁定配对:
工具链版本间存在规则集兼容矩阵,浮动配对会错位;根 devDependencies
补充 eslint-plugin-oxlint 桥接依赖,catalog 与 lockfile 同步。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* feat(@vben/oxlint-config ): migrate to native extends with type-aware rules
- 配置迁移到 oxlint 原生 extends + ignorePatterns,根 ignore 列表收敛为
configs/ignores.ts 单源(oxlint/eslint 双消费不再手工同步);删除已按
category 覆盖的逐条规则;oxfmt-config 去掉包装层、采用 0.75 的 markdown
换行;tsgolint 类型感知规则三批全开,仅 2 条显式 off 附原因
(no-unsafe-enum-assignment=cz-git ESM 缺陷、no-unsafe-type-assertion=
359 处命中)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(@vben/eslint-config ): restore the eslint-plugin-oxlint bridge
- 恢复官方 eslint-plugin-oxlint 桥接,替代 69 条手工维护的关停规则 Set;
桥接关停范围收敛到 oxlint 实际检查的文件;组装顺序改为 builtin →
oxlint 桥 → customConfig → 用户配置,customConfig 与用户配置保持
最终权威(与迁移前的覆盖契约一致)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* build(project): enable typecheck across all workspace packages
- 45 个包补 typecheck 脚本(vue-tsc --noEmit,不带 CLI 标志,tsconfig
是 skipLibCheck 的唯一来源;packages/types 显式 skipLibCheck: false
以检查自身与工作区依赖的已发布声明,并把 global.d.ts 纳入检查);
turbo typecheck 任务依赖 ^typecheck 与 ^stub——工具包类型解析读
依赖的 dist 产物,无 stub 脚本的依赖被 turbo 自动跳过,无需逐包
覆写;tsconfig 键序对齐 jsonc/sort-keys;lockfile 同步。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore(project): split lint hooks and update toolchain scripts
- pre-commit 收敛为 oxlint/oxfmt/eslint 快检查,全量 typecheck 移交新增
pre-push 钩子;vsh lint 与 turbo-run 适配 oxc 调用;同步 .vscode 配置
与 lint 工具链文档。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(@vben-core/typings ): latent d.ts errors and the RouteMeta augmentation
- 开启声明检查后暴露:vue-router.d.ts 裸用非 ambient 的 Recordable
(helper.d.ts 模块化后不再全局可见)改为显式导入;EmitType 引用
未定义的 Name 改为 string,并对这个零消费者的宽泛别名标
@deprecated;增强接口底名用 VbenRouteMeta 避免打包自引用,导入
本包即激活增强,删除悬空的根级再导出文件;@vben/types/global.d.ts
删除与这里逐字重复的 declare module 块,增强只保留单源。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(project): keep public signatures exact under type-aware rules
- 类型感知规则开启后被统一收窄/放宽的公共 API 恢复发布的泛型形态
(bindMethods/getNestedValue/use-sortable/use-priority-value 等),
保留跨包显式类型实参契约;form-ui 依赖回调语义还原(truthy 布尔化、
name 强转、trigger 顺序)并放宽条件类型;tabs-ui 将宽泛 EmitType
残留收窄为具体事件签名;typings、utils/helpers、hooks/access/
layouts/preferences 等的类型标注与泛型修复。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(project): resolve latent type errors surfaced by the full typecheck
- stores tabbar 不再对路由 meta 做冗余强转(RouteMeta 增强后类型
已收敛);common-ui icon-picker 的 inputComponent 显式并列为
Component | VNode(adapter 传组件定义、演示页传 h() 节点);
vite-config 移除 vite 实例的 unknown 桥(vite 8 已解析为单一
实例类型);tabs-ui use-tabs-drag 事件签名收窄残留清理;vsh lint
的死索引守卫改为无分支过滤。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(project): harden runtime paths surfaced by type-aware lint
- archiver 系列收敛为一个完整实现:outDir 依 vite root 解析、zip 失败
经 closeBundle 拒绝回传、输出流补 error 监听、watch 模式降级日志不再
杀 watcher;request 上传保留 axios 头抑制哨兵(AxiosHeaders 实例浅
拷贝自身属性,普通对象保持原样)、SSE 与响应拦截器默认值还原;
backend-mock 分页与同名参数规范化(firstQueryString/firstQueryInt);
echarts 30ms 窗口内卸载按 Nullable 语义 resolve(null);stores tabbar
刷新 fire-and-forget;各 app 入口/路由守卫与 playground 日期区间
守卫的浮动 Promise 处理。行为修复与对应回归测试同提交。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(project): adapt test suites to strict typecheck
- shared 脚本与 css 变量测试、utils 路由 fixtures 提供稳定句柄
(noUncheckedIndexedAccess)、layout-ui collapse mock 对齐 emit
载荷、shadcn-ui popconfirm 按钮提取守卫 helper、form-ui 测试
改为直接依赖 element-plus(替代 .pnpm 字面路径)、vite-config
四处 hook 调用提取 callGenerateBundle 统一适配 rolldown 签名。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(project): adapt tests to the toolchain and record changesets
- popup-ui drawer/modal 断言前先 await close;preferences 的两个存储
mock 派生自单一工厂;核心包测试适配类型感知规则;删除 image preview
adapter 遗留的无操作改名;记录 oxc 迁移 changeset。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore(project): record the workspace typecheck changeset
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(@vben/types ): activate the RouteMeta augmentation for the ./global entrypoint
A program that only imports the `@vben/types/global` subpath never loads
src/index.ts, so it used to lose the RouteMeta augmentation this entry
historically provided. A side-effect import of @vben-core/typings keeps the
single-source augmentation active for that entrypoint as well.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(@vben/hooks ): drop redundant any-casts in use-tabs tests
Upstream #8488/#8490 introduced getTabDisableState tests that assert
store.getTabByKey(...) results with `as any`. getTabByKey now returns
TabDefinition, which is structurally identical to the TabIdentity
parameter type, so the casts are dead weight and trip the type-aware
no-unnecessary-type-assertion rule.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(@vben/vite-config ): re-resolve vite to the catalog 8.3.0 instance
The lockfile still pinned internal/vite-config to vite@8.2.2 (with stale
@types/node@26.2.0 / yaml@2.9.0 peers) while the catalog declares ^8.3.0
and every other importer resolved to 8.3.0. vite-plugin-lazy-import's
d.ts imports 'vite' through the pnpm hidden hoist (it declares no vite
peer), so its Plugin<any> came from the 8.3.0 instance while
vite-config's own Plugin came from 8.2.2 — vue-tsc then fails with
TS2321 "Excessive stack depth comparing types 'Plugin<any>' and
'Plugin<any>'" once this package gains a typecheck script.
Rewire the importer to the shared 8.3.0 instance (specifier stays
'catalog:') and let pnpm prune the now-orphaned 8.2.2 peer entries.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore(@vben/tsconfig ): align base moduleResolution with bundler
base.json 仍写着 node(node10),但 web/web-app/node/library 四个 preset
早已各自覆盖为 bundler,仓库内 48 个 tsconfig 无一直接 extends base,
该值仅对直接 extends base 的外部消费方生效:
- module: ESNext 的官方推荐搭配是 bundler,node 组合是历史遗留错配
- node10 忽略 package.json exports,与 Vite 实际解析不一致
- node10 已废弃,且 tsgo 原生编译器不支持,直接报错
Co-Authored-By: Claude Code <noreply@anthropic.com>
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: Jin Mao <50581550+jinmao88@users.noreply.github.com>
3 weeks ago
dream-weave
0b863783ef
refactor: migrate lint toolchain to oxc locked pairing ( #8481 )
* build(lint): bump oxc toolchain to the locked pairing
- oxlint ^1.90.0 + oxlint-tsgolint ^7.0.2005 + oxfmt ^0.75.0 锁定配对:
工具链版本间存在规则集兼容矩阵,浮动配对会错位;根 devDependencies
补充 eslint-plugin-oxlint 桥接依赖,catalog 与 lockfile 同步。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* feat(@vben/oxlint-config ): migrate to native extends with type-aware rules
- 配置迁移到 oxlint 原生 extends + ignorePatterns,根 ignore 列表收敛为
configs/ignores.ts 单源(oxlint/eslint 双消费不再手工同步);删除已按
category 覆盖的逐条规则;oxfmt-config 去掉包装层、采用 0.75 的 markdown
换行;tsgolint 类型感知规则三批全开,仅 2 条显式 off 附原因
(no-unsafe-enum-assignment=cz-git ESM 缺陷、no-unsafe-type-assertion=
359 处命中)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(@vben/eslint-config ): restore the eslint-plugin-oxlint bridge
- 恢复官方 eslint-plugin-oxlint 桥接,替代 69 条手工维护的关停规则 Set;
桥接关停范围收敛到 oxlint 实际检查的文件;组装顺序改为 builtin →
oxlint 桥 → customConfig → 用户配置,customConfig 与用户配置保持
最终权威(与迁移前的覆盖契约一致)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore(project): split lint hooks and update toolchain scripts
- pre-commit 收敛为 oxlint/oxfmt/eslint 快检查,全量 typecheck 移交新增
pre-push 钩子;vsh lint 与 turbo-run 适配 oxc 调用;同步 .vscode 配置
与 lint 工具链文档。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(project): keep public signatures exact under type-aware rules
- 类型感知规则开启后被统一收窄/放宽的公共 API 恢复发布的泛型形态
(bindMethods/getNestedValue/use-sortable/use-priority-value 等),
保留跨包显式类型实参契约;form-ui 依赖回调语义还原(truthy 布尔化、
name 强转、trigger 顺序)并放宽条件类型;tabs-ui 将宽泛 EmitType
残留收窄为具体事件签名;typings、utils/helpers、hooks/access/
layouts/preferences 等的类型标注与泛型修复。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(project): harden runtime paths surfaced by type-aware lint
- archiver 系列收敛为一个完整实现:outDir 依 vite root 解析、zip 失败
经 closeBundle 拒绝回传、输出流补 error 监听、watch 模式降级日志不再
杀 watcher;request 上传保留 axios 头抑制哨兵(AxiosHeaders 实例浅
拷贝自身属性,普通对象保持原样)、SSE 与响应拦截器默认值还原;
backend-mock 分页与同名参数规范化(firstQueryString/firstQueryInt);
echarts 30ms 窗口内卸载按 Nullable 语义 resolve(null);stores tabbar
刷新 fire-and-forget;各 app 入口/路由守卫与 playground 日期区间
守卫的浮动 Promise 处理。行为修复与对应回归测试同提交。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(project): adapt tests to the toolchain and record changesets
- popup-ui drawer/modal 断言前先 await close;preferences 的两个存储
mock 派生自单一工厂;核心包测试适配类型感知规则;删除 image preview
adapter 遗留的无操作改名;记录 oxc 迁移 changeset。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(@vben/hooks ): drop redundant any-casts in use-tabs tests
Upstream #8488/#8490 introduced getTabDisableState tests that assert
store.getTabByKey(...) results with `as any`. getTabByKey now returns
TabDefinition, which is structurally identical to the TabIdentity
parameter type, so the casts are dead weight and trip the type-aware
no-unnecessary-type-assertion rule.
Co-Authored-By: Claude Code <noreply@anthropic.com>
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: Jin Mao <50581550+jinmao88@users.noreply.github.com>
3 weeks ago
github-actions[bot]
16ba48470a
chore: bump versions ( #8316 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
3 months ago
MistyMoon
0b9ecbb6c9
fix( @vben-core/menu-ui ): menu badge overflow, font-size & default color ( #8244 )
* fix(@vben-core/menu-ui ): menu badge ping ring clipped by overflow
The .vben-menu-item__content span rule applied the menu-title mixin
(overflow:hidden, for text ellipsis) to ALL descendant spans, including
the badge dot spans. This clipped the animate-ping expanding ring, so
the leaf-menu badge dot only pulsed (opacity fade) instead of pinging,
while the sub-menu (directory) badge pinged correctly because it lives
under .vben-sub-menu-content which has no such rule.
Fix: scope the menu-title mixin to the title span (.vben-menu__name)
and wrap the menu-item title slot accordingly.
* fix(@vben-core/menu-ui ): allow custom font-size on sub-menu-content descendants
* fix(@vben-core/menu-ui ): correct default badge variant color
3 months ago
Harold Zhang
6b7cb7b1fc
feat: fixed the regression of changing Menu to MenuUI
6 months ago
金毛88
0eb72ca4fd
feat: add useTDesignDesignTokens
6 months ago
AxiosLeo
5907c04e00
fix: update selector for active menu item in useMenuScroll hook ( #7829 )
7 months ago
xingyu4j
bd369df3bc
fix: check deps
8 months ago
xingyu4j
54d95b8761
fix: check deps
8 months ago
lmx
e2fb3602f1
fix: 修复菜单项外部链接跳转问题
- 引入 isHttpUrl 工具函数用于判断 URL 类型
- 添加 isHttp 计算属性检测父路径是否为 HTTP 链接
- 修改菜单项渲染逻辑,对外部链接直接使用原地址跳转
- 调整 HTML 结构,将链接属性移到正确位置
- 确保内部路由和外部链接都能正常工作
8 months ago
xingyu
0c300d040c
fix: tailwindcss config ( #7693 )
* chore: update deps
* fix: tailwindcss config
* fix: lint
* fix: lint
* chore: update deps
8 months ago
Jin Mao
340baf4f0b
chore: 处理合并的一些问题
8 months ago
lmx
e4453841db
fix: 修复在vue-router 的模式hash复制路径不对
8 months ago
xingyu4j
5558249cd3
chore: unbuild
8 months ago
xingyu4j
d72f872369
refactor(tsdown): migrate styled ui-kit packages
8 months ago
xingyu4j
26e9aa244b
fix(vite): adapt rolldown workspace resolution
8 months ago
xingyu4j
9d6fbfd0d6
refactor: replace simple px utility styles
8 months ago
xingyu4j
8fd6bf47b1
revert: restore px-based calc utilities
8 months ago
xingyu4j
f25f3a34d0
refactor: replace px calc spacing utilities
8 months ago
Jin Mao
a6a6efdf59
chore: release 5.7.0
- 更新 backend-mock 包版本
- 更新 web-antd 包版本
- 更新 web-antdv-next 包版本
- 更新 web-ele 包版本
- 更新 web-naive 包版本
- 更新 web-tdesign 包版本
- 更新 docs 包版本
- 更新 commitlint-config 包版本
- 更新 eslint-config 包版本
- 更新 oxfmt-config 包版本
- 更新 oxlint-config 包版本
- 更新 stylelint-config 包版本
- 更新 node-utils 包版本
- 更新 tsconfig 包版本
- 更新 vite-config 包版本
- 更新 @core/base/design 包版本
- 更新 @core/base/icons 包版本
- 更新 @core/base/shared 包版本
- 更新 @core/base/typings 包版本
- 更新 @core/composables 包版本
- 更新 @core/preferences 包版本
- 更新 @core/ui-kit/form-ui 包版本
- 更新 @core/ui-kit/layout-ui 包版本
- 更新 @core/ui-kit/menu-ui 包版本
- 更新 @core/ui-kit/popup-ui 包版本
- 更新 @core/ui-kit/shadcn-ui 包版本
- 更新 @core/ui-kit/tabs-ui 包版本
- 更新 constants 包版本
- 更新 access 包版本
- 更新 common-ui 包版本
- 更新 hooks 包版本
- 更新 layouts 包版本
- 更新 plugins 包版本
- 更新 request 包版本
- 更新 icons 包版本
- 更新 locales 包版本
- 更新 preferences 包版本
- 更新 stores 包版本
- 更新 styles 包版本
- 更新 types 包版本
- 更新 utils 包版本
- 更新 playground 包版本
- 更新 turbo-run 包版本
- 更新 vsh 包版本
- 更新根目录包版本
8 months ago
xingyu4j
e7fa87b301
chore: finalize oxlint migration config
9 months ago
xingyu4j
443e4b04cd
chore: update vite 8
9 months ago
xingyu
a4736a49f8
feat: migrate to Tailwind CSS v4 ( #7614 )
* chore: update deps
* feat: use jsonc/x language
* chore: update eslint 10.0
* fix: no-useless-assignment
* feat: add CLAUDE.md
* chore: ignore
* feat: claude
* fix: lint
* chore: suppot eslint v10
* fix: lint
* fix: lint
* fix: type check
* fix: unit test
* fix: Suggested fix
* fix: unit test
* chore: update stylelint v17
* chore: update all major deps
* fix: echarts console warn
* chore: update vitest v4
* feat: add skills ignores
* chore: update deps
* chore: update deps
* fix: cspell
* chore: update deps
* chore: update tailwindcss v4
* chore: remove postcss config
* fix: no use catalog
* chore: tailwind v4 config
* fix: tailwindcss v4 sort
* feat: use eslint-plugin-better-tailwindcss
* fix: Interference between enforce-consistent-line-wrapping, jsx-curly-brace-presence and Prettier
* fix: Interference between enforce-consistent-line-wrapping, jsx-curly-brace-presence and Prettier
* fix(lint): resolve prettier and better-tailwindcss formatting conflicts
* fix(tailwind): update theme references and lint sources
* style(format): normalize apps docs and playground vue files
* style(format): normalize core ui-kit components
* style(format): normalize effects ui and layout components
9 months ago
lmx
173e6b08c9
fix: 修复执行: check:cspell 命令路径参数传入没有转义导致检测路径失效。添加菜单右键功能。优化:多余监听 activePath 变化,自动滚动到激活项 watch
9 months ago
AxiosLeo
03ebbea46a
fix(menu): update hover color variable to use the correct reference ( #7544 )
* fix(menu): update hover color variable to use the correct reference
Medium Severity
In the horizontal .is-light menu section, --menu-item-hover-color is set to hsl(var(--menu-item-color)), but --menu-item-color is already defined as hsl(var(--accent-foreground)). This results in hsl(hsl(...)) at computed-value time, which is invalid CSS. The non-horizontal .is-light block correctly uses var(--menu-item-color) without the extra hsl() wrapper.
* fix(menu): simplify hover styles by removing redundant nested hover rules
Low Severity
The SCSS &:not(.is-active):hover { &:hover { ... } } compiles to a :hover:hover pseudo-class chain, which is functionally identical to a single :hover. The inner &:hover nesting is redundant and adds unnecessary complexity compared to placing styles directly inside the &:not(.is-active):hover block.
9 months ago
zouawen
32379ba4b7
fix: 双列菜单模式下新增深色侧边栏和深色侧边栏子栏 ( #7542 )
* fix: 双列菜单模式下新增深色侧边栏和深色侧边栏子栏
* fix: 修复报错 config.test.ts.snap
* fix: 修复lint报错
* fix: 修复侧边栏菜单文本内容溢出问题
* fix: 修复lint报错
10 months ago
zouawen
893f74dc3e
fix: 优化横向布局时菜单激活或聚焦时背景色,标签工具栏新增刷新按钮,其他样式优化
10 months ago
Jin Mao
8a215fbcc7
chore: release 5.6.0
10 months ago
xingyu4j
af3fe53ec8
fix: type error
11 months ago
米山
aaf0274fe9
feat: add menu font size variable and update related components
- Introduced a new CSS variable `--menu-font-size` calculated from the base font size.
- Updated `PreferenceManager` to trigger CSS variable updates when `fontSize` is modified.
- Adjusted `updateCSSVariables` to set the new `--menu-font-size` based on the theme's font size.
- Ensured that the menu components utilize the updated font size with `!important` to maintain styling consistency.
1 year ago
米山
cd7c11c7d0
fix: run 'pnpm format' update various components and improve layout structure
- Updated demo-preview and preview-group components for better error handling and layout.
- Enhanced drawer and modal components for improved auto-height functionality.
- Refactored layout components including header, footer, sidebar, and tabbar for better responsiveness and usability.
- Adjusted tooltip and help tooltip components for better user guidance.
- Fixed issues in various UI components to ensure consistent styling and functionality across the application.
1 year ago
xingyu4j
bed52983a0
fix: lint
1 year ago
米山
24b6e7a835
feat: add global font size adjustment
1 year ago
Copilot
1e09fa4642
feat: migrate from Radix Vue to Reka UI ( #6870 )
* Initial plan
* Update dependencies and imports from radix-vue to reka-ui
Co-authored-by: likui628 <90845831+likui628@users.noreply.github.com>
* Fix type errors after reka-ui migration
Co-authored-by: likui628 <90845831+likui628@users.noreply.github.com>
* Run formatter to fix code style
Co-authored-by: likui628 <90845831+likui628@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: likui628 <90845831+likui628@users.noreply.github.com>
1 year ago
vben
e147a9d2fd
chore: release 5.5.9
1 year ago
vben
1575619d53
chore: release v5.5.8
1 year ago
vben
b9aef618fe
chore: release 5.5.7
1 year ago
vben
cc6c9bf7a0
chore: release v5.5.6
2 years ago
Vben
045bc4e5ee
feat: support smooth auto-scroll to active menu item ( #6102 )
2 years ago
Vben
76de450c71
chore: update dependency version for improved stability and compatibility ( #6023 )
* chore: update dependency version for improved stability and compatibility
* fix: optimize clearPoints function in useCaptchaPoints hook to improve performance
* fix: make several props optional in various components for better flexibility
2 years ago
vben
7c7051a11e
chore: release v5.5.5
2 years ago
Netfan
ff88274554
fix: long navigation menu can be scrolled ( #5939 )
* 修复超长的导航菜单无法纵向滚动的问题
2 years ago
wyc001122
384c5d7dbb
fix: 布局为双列菜单或者水平模式下, 一级菜单高亮问题 ( #5870 )
Co-authored-by: 王泳超 <wangyongchao@testor.com.cn>
2 years ago
vben
b92ac5c36d
chore: release 5.5.4
2 years ago
vben
195ceec9b4
chore: release 5.5.3
2 years ago
Netfan
99c7fd72f8
fix: code lint
2 years ago
Vben
081d2aed23
perf: format code with better style ( #5283 )
2 years ago
vben
07c4ad05f4
chore: release 5.5.2
2 years ago
Netfan
ec2c6eff6f
feat: header menu align support ( #5256 )
* feat: header menu align support
* fix: typo
2 years ago
Netfan
0f756503ff
feat: add demo for modify menu badge data
2 years ago