444 Commits
Author SHA1 Message Date
github-actions[bot] 16ba48470a chore: bump versions (#8316)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-28 18:22:49 +08:00
俞可 · YU KEandEvoX b125df1cae fix(@vben/playground): 移除 authLogin 中重复的 setUserInfo 调用 (#8165) (#8317)
Co-authored-by: EvoX <evox@evomap.ai>
2026-08-28 18:19:00 +08:00
dream-weave bb35b13eb0 fix(@vben-core/layout-ui): preserve content sizing across footer modes (#8304) 2026-08-27 16:59:43 +08:00
Dream bc483dcd33 Merge remote-tracking branch 'upstream/main' into refactor/typed-supported-languages
# Conflicts:
#	playground/src/views/demos/features/vue-query/concurrency-caching.vue
2026-08-26 16:42:54 +08:00
Dream 6594c5f82e refactor(@vben/playground): vue-query 演示改用 fetchQuery 读取缓存
refetch 每次调用都会强制刷新(cancelRefetch 默认 true 会取消
进行中的请求另起新请求),绕过 staleTime 缓存;且 refetch 默认
不抛错,失败时会静默退化为空选项列表。

改用 queryClient.fetchQuery:缓存新鲜期内直接命中缓存,并发
调用共享同一次请求,真正演示"并发与缓存"主题;请求失败显式
捕获并记录日志。
2026-08-26 16:29:06 +08:00
Dream 9acd09d8d8 fix(@vben/playground): 补充 antd locale 回退并修正繁体翻译错字
loadAntdLocale 为未打包语言包的语言增加 default 分支回退
en-US,避免切换到此类语言时残留上一次的 antd 语言;
「使用者名稱稱」去掉重复的「稱」。
2026-08-26 16:28:16 +08:00
金毛88 82108769c0 chore: 修复并发缓存示例中的查询方法调用
- 使用 queryOptions 创建公共查询配置对象
- 添加 useQueryClient 引入缓存时间配置
- 移除重复的 refetch 函数定义
- 实现 fetchQuery 用于并发请求合并
- 统一查询配置避免代码重复
2026-08-26 15:56:24 +08:00
Dream 13c4def8f0 feat(@vben/playground): 新增繁体中文语言包演示语言扩展机制
以 zh-TW 为活体示例展示新增语言的完整三步:

- packages/locales 与 playground 各自新增 zh-TW 语言包
  目录(核心语言包由 glob 自动捕获,无需注册)
- languages.d.ts 通过 declare module 增强
  SupportedLanguages 接口,联合类型自动扩展出 zh-TW
- bootstrap 中 setSupportLanguages 注册三语运行时列表,
  dayjs / antd locale 同步接入繁体包

演示未增强接口时联合自动回到默认两语言、demo 应用零改动
的向后兼容性。
2026-08-26 15:22:17 +08:00
Dream 702d7ea7ee refactor(@vben-core/typings): 语言类型改为可声明合并扩展的接口注册表
53b1529 为支持运行时动态语言注册,将 SupportedLanguagesType
等四处语言类型从字面量联合放宽为 string,换来扩展便利的同时
完全丢失了编译期类型约束。

本提交以 keyof interface 注册表恢复类型安全:

- typings 新增 SupportedLanguages 接口(默认 en-US / zh-CN),
  SupportedLanguagesType = keyof SupportedLanguages 派生联合
- locales / composables / preferences / constants 恢复引用该
  联合,LanguageOption 泛型化(默认 string 保留运行时注册
  自定义语言的逃生舱),SUPPORT_LANGUAGES 默认列表约束回联合
- 应用扩展语言时无需改动核心包:在应用内 d.ts 通过
  declare module '@vben-core/typings' 追加接口键即可让联合
  自动扩展(先例:vue-router 的 RouteMeta 增强)
- 运行时语言列表仍由 setSupportLanguages 注册,53b1529 的
  动态注册机制与 en-US 回退行为完整保留
- 声明依赖的五个包补齐 @vben-core/typings workspace 依赖
2026-08-26 15:20:44 +08:00
Dream 25a73a8c41 fix(@vben/playground): 修复 vue-query 演示的类型错误
@tanstack/vue-query 升级后已移除 experimental_prefetchInRender
选项与返回值上的 promise 属性,导致类型检查失败。

改用 refetch 提供选项数据:多个组件并发调用时,query 层会将
请求去重合并为同一次,保持"共用一个数据源"的演示语义不变。
2026-08-26 15:19:11 +08:00
Dream aa36114181 fix(@vben-core/layout-ui): address layout review findings 2026-08-13 11:09:26 +08:00
dream-weave 3b9cc44bc5 Merge branch 'main' into fix/layout-css-scroll-background 2026-08-13 10:20:15 +08:00
Dream 8f60e8063a test(@vben/playground): cover layout behavior and performance 2026-08-12 11:34:28 +08:00
Zehui ChanandCursor 51ce0ecdd6 feat(@vben-core/form-ui): support labelWidth auto alignment (#8245)
* feat(@vben-core/form-ui): support labelWidth auto alignment

Measure horizontal labels and align them to the widest one when
labelWidth is set to auto, allow string widths, and expose a single
form-render context that also carries the label-width registry.

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat(@vben/playground): add form labelWidth auto demo

Provide an interactive example under Examples -> Form -> Label Auto
Width, with locales and route wiring, to showcase auto alignment.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 08:37:30 +08:00
Dream 0a47dc8a3d fix(@vben/playground): reset popup form state 2026-08-05 10:24:28 +08:00
Dream ebe0eadee4 feat(@vben/playground): add typed popup data examples 2026-08-05 09:50:55 +08:00
Dream 3cbb1e8411 refactor(@vben/playground): type popup data consumers 2026-08-05 09:48:27 +08:00
dream-weave 9f5b1cd9fb fix(@vben-core/form-ui)!: group field slot component props (#8215)
* refactor(@vben-core/form-ui)!: group field slot component props

* fix(@vben-core/form-ui): stabilize grouped field slot bindings

Resolve function-based common component props with field context.

Preserve internal model and event bindings when custom field slots spread componentProps.

Add regression coverage for array contexts, disabled precedence, and stale binding isolation.

* feat(@vben/vite-config): warn about field slot migration

Print the temporary field-slot migration warning when the development server starts.

Inject the same message into the browser console and keep the plugin serve-only.

* docs(@vben/docs): document field slot migration

Place the breaking field-slot notice at the start of both form documents.

Explain old and new bindings, development warnings, and planned notice removal.

* feat(@vben/playground): extend custom form example

Add a switchable input and select field to demonstrate schema component updates.

Update the composite phone field to emit new tuple values so validation observes changes.
2026-07-31 18:13:49 +08:00
JyQAQ 44483db9af fix(project): 修复弹窗中表单上传组件预览图片层级问题 (#8205)
将 PreviewGroupComponent 的 hidden class 替换为通过 classes.popup.root
设置更高 z-index,避免在弹窗内被遮挡
2026-07-27 22:37:33 +08:00
xingyu4j 33f4522bff fix: 补充 i18n 缺失的英文 2026-07-24 15:26:08 +08:00
xingyu4j 255a76d79a feat: canonical tailwind class 2026-07-24 15:04:10 +08:00
dream-weave dcdbfe5dfc fix(@vben-core/form-ui): restore lock screen form submission (#8195)
* fix(@vben-core/form-ui): avoid stale form context access

* fix(@vben/playground): constrain date range codec fields

* test(@vben-core/form-ui): harden benchmark fixtures

* docs(@vben/docs): document form runtime and benchmarks

* fix(@vben/docs): 明确 getValues/submit 返回值及 submit 参数类型
2026-07-24 10:05:27 +08:00
金毛88 eaf585d03a Merge branch 'fork/dream-weave/update-zod' 2026-07-23 20:35:00 +08:00
xingyu4j 0a45cb41fb fix: 添加 StyleProvider 以支持 Tailwind 样式覆盖;移除 InputNumber 组件的宽度样式,优化组件适配;antdv 暂不支持 2026-07-23 17:50:22 +08:00
Dream 2e69c3fefc fix(@vben/playground): address form codec edge cases 2026-07-23 17:47:57 +08:00
Dream 43b78da024 refactor(@vben/playground): share date range codecs 2026-07-23 17:47:57 +08:00
dream-weave 98dea92225 feat(@vben-core/form-ui): add typed form value codecs (#8189)
* feat(@vben-core/form-ui): add typed form value codecs

* test(@vben-core/form-ui): cover codec value boundaries

* refactor(project): propagate form codec generics

* feat(@vben/plugins): propagate form codecs through vxe grids

* refactor(@vben/playground): migrate form codec examples

* refactor(@vben/playground): migrate query forms to codecs

* docs(@vben/docs): document form value codecs
2026-07-23 15:09:31 +08:00
dream-weave 28757fb9c8 refactor(@vben-core/form-ui): migrate to Zod 4 and TanStack Form (#8176)
* build(@vben-core/form-ui): update form validation dependencies

* refactor(@vben-core/form-ui): replace vee-validate with TanStack Form

* test(@vben-core/form-ui): cover TanStack Form migration

* docs(@vben/docs): document Zod 4 form migration

* refactor(project): update form adapters

* refactor(project): migrate application form consumers

* refactor(@vben/playground): migrate form examples

* docs(@vben/docs): fix validate return type and required rule empty check in form docs

* fix(@vben-core/form-ui): resolve oxlint and eslint errors

- rewrite nested ternary expressions as if/else in form-field-array.vue and form-runtime.ts
- sort @tanstack/vue-form before @vben-core/composables in package.json

* chore: fix merge artifacts and formatting

- move dependencies before devDependencies in root package.json
- update preferences snapshot for widget positioning fields
- format form-array demo README

* refactor(@vben-core/form-ui): optimize form runtime and value flow

- add fine-grained field selectors and atomic dependency resolution
- expose raw and formatted value snapshots with focused regression coverage

* fix(@vben/layouts): dispose sortable instance on unmount

* docs(@vben/docs): document form runtime API changes

- list added, changed, removed, and deprecated form APIs
- document atomic dependencies and raw versus formatted values
2026-07-22 19:47:07 +08:00
xingyu 6b6708bcf2 fix: 修复点击退出图标确认后不能退出 && 图标排序等数组字段需顺序敏感比较 (#8179)
* chore: 调整 sortablejs 的位置,只在用到的模块引入

* fix: non-null assertion lint error

* fix: 修复点击退出图标确认后不能退出

* fix: 图标排序等数组字段需顺序敏感比较

* feat: 配置中增加 refresh 并统一位置
2026-07-22 17:44:10 +08:00
金毛88 899910547f Merge branch 'fork/xingyu4j/deps' 2026-07-22 09:55:03 +08:00
xingyu4j b330f08ef4 fix: lint 2026-07-20 18:36:48 +08:00
陆伯言 772286fb73 fix: 路由地址不强制以斜杠开头
兼容新dashboard路由配置
2026-07-20 00:46:27 +08:00
陆伯言 5936ff2e0f fix: 系统菜单管理上级菜单无法显示名称的问题
antdv-next TreeSelect组件没有title插槽
2026-07-20 00:20:00 +08:00
金毛88 31d3bd18f3 Merge branch 'fork/LayHuts/feature/form-field-arry' 2026-07-18 19:18:14 +08:00
JyQAQ 8ac66a96bc fix: 修复弹窗中使用裁剪图片会出现层级问题 (#8156)
* fix(@vben/playground): 弹窗中使用裁剪图片会出现层级问题

* fix(project): 修复弹窗中裁剪图片在 web-antd 与 web-antdv-next 的层级问题
2026-07-17 15:17:37 +08:00
layhuts c56bb7d320 docs: 更新文档 2026-07-01 15:07:56 +08:00
layhuts fdf2abb702 refactor: 修改form-field-array支持dependencies 2026-07-01 11:08:35 +08:00
Evan feb0265744 Merge branch 'main' into refactor/router-redirect 2026-06-30 14:26:23 +08:00
Harold Zhang 31c31b914b feat: fix check error (#8094) 2026-06-30 14:23:27 +08:00
Evan f00a881295 refactor(@vben/access): 重构路由的重定向逻辑
@vben-core/shared
@vben/playground
@vben/backend-mock
@vben/web-antd
@vben/web-antdv-next
@vben/web-ele
@vben/naive
@vben/tdesign
2026-06-30 13:36:37 +08:00
vben a8c3729850 feat: add ICP filing number to copyright across app 2026-06-24 10:04:10 +08:00
xingyu4j d85ac2c976 feat: form 表单赋值 2026-06-06 19:33:31 +08:00
xingyu 04fbb7a556 chore: 升级 shadcn-vue 组件到v4最新版 (#7972)
* fix: useStore is deprecated

* chore: update deps

* feat: 升级shadcn-ui v4

* fix: workbench style

* feat: 升级shadcn-ui v4 step2

* feat: 升级shadcn-ui v4 step3

* chore: 升级shadcn v4

* fix: pagination

* fix: dark style

* fix: doc import

* feat: 增加详情组件,参考 antdv-next

* docs: descriptions docs

* docs: Browser Support

* feat: add table action

* feat: icon use vbenIcon

* fix: type error

* fix: dropdown popConfirm

* feat: 使用默认的文字交互

* feat: 优化渲染性能
2026-05-31 15:18:46 +08:00
xingyu 00990d9453 Merge branch 'main' into fix/lint 2026-05-20 17:38:19 +08:00
PanFuandPanFu 2a84b590b5 feat: 偏好设置按钮,支持在右上角用户的下拉框中展示;偏好设置中支持设置时区(多一个入口); (#7931)
* feat: 偏好设置按钮支持显示在用户下拉窗中的特性

* feat: 时区设置功能支持在偏好设置列表进行配置

* feat: 偏好设置按钮支持显示在用户下拉窗中的特性 - 完善示例代码

* feat: 时区设置功能支持在偏好设置列表进行配置

* feat: 时区设置功能支持在偏好设置列表进行配置-单元测试报错问题

* feat: 时区设置功能支持在偏好设置列表进行配置-修改代码QC问题

---------

Co-authored-by: PanFu <panfu@zhihuaai.com>
2026-05-20 17:24:53 +08:00
xingyu4j 74d8942f39 chore: remove Unused deps 2026-05-20 16:24:59 +08:00
xingyu4j 9ec98f0846 refactor: replace depcheck with knip for dependency checking
Migrate vsh check-dep from depcheck to knip, reducing
315 transitive dependencies. Config is inlined in
DEFAULT_CONFIG, matching the check-circular pattern.
Also re-export CollapsibleParams from @vben/common-ui.
2026-05-20 16:14:21 +08:00
xingyu4j 03fcecadcc fix: lefthook config 2026-05-19 16:13:00 +08:00
xingyu4j 3a88adb8a6 feat: test 2026-05-19 16:10:18 +08:00
xingyu4j aac626da32 feat: add system user view 2026-05-18 21:45:17 +08:00