Caisin
6be3a0e204
feat(common-ui): add labelFn support to ApiComponent ( #7801 )
...
* feat: allow api-component labels to be derived from option data
ApiComponent already normalizes option records into the label/value shape used by
consuming controls, but label text could only come from a single field. Add
labelFn so callers can build labels from the full option record while keeping
labelField as the fallback path.
This keeps the change inside the existing component instead of introducing a
wrapper, and it also normalizes direct options through the same transform path
as API-loaded options for consistent behavior.
Constraint: Must extend the existing ApiComponent API instead of adding a second
Constraint: wrapper component
Rejected: Add a separate ApiLabelComponent wrapper |
Rejected: extra surface area for one option-mapping concern
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep labelFn as a presentation transform and preserve labelField
Directive: fallback for existing callers
Tested: pnpm exec eslint api-component.vue index.ts types.ts
Tested: pnpm exec vue-tsc --noEmit -p packages/effects/common-ui/tsconfig.json
Not-tested: runtime integration in consuming select/tree-select components
* Update packages/effects/common-ui/src/components/api-component/api-component.vue
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-04-12 14:29:18 +08:00
xingyu4j
54d95b8761
fix: check deps
2026-04-10 21:23:24 +08:00
xingyu4j
ee95548340
fix: tailwindcss lint
2026-04-10 21:13:04 +08:00
dullathanol
f443bfbc7b
fix: tailwindcss config
2026-04-08 10:11:05 +08:00
dullathanol
5ebf513498
fix: 修正 Modal/Drawer 中 loading 属性注释
2026-04-07 12:28:57 +08:00
dullathanol
4e4ffc439c
feat: 支持 overflow 配置以允许拖拽超出可视区
2026-04-07 11:41:39 +08:00
dullathanol
ad7ed50b52
fix: 弹窗组件拖拽后全屏位置异常
2026-04-06 22:26:27 +08:00
dullathanol
7e4edd270d
fix: 补全 ComponentPropsMap 与 Vxe 表格表单链路的类型
2026-04-05 19:03:03 +08:00
dullathanol
332ff44219
fix: 修复 FormField 在 SFC 中的运行时异常
2026-04-05 03:05:01 +08:00
dullathanol
834ce3efc0
fix: 修复部分情况 component 类型丢失问题
2026-04-05 01:59:17 +08:00
dullathanol
5211f5065d
feat: 表单 Schema 支持组件 Props 映射泛型,同步适配VxeGrid
2026-04-04 23:40:27 +08:00
dullathanol
96d6f89732
refactor: 简化 componentProps 回调的类型写法
2026-04-03 15:02:32 +08:00
dullathanol
a6433c2b50
feat: Schema 中 componentProps 随注册组件联动类型提示
2026-04-03 01:39:49 +08:00
墨苒孤
80d6e2255f
fix: make search case-insensitive ( #7689 ) ( #7755 )
2026-04-01 19:17:36 +08:00
橙子
4e0968d4b7
perf: replace `onUnMounted` to `tryOnScopeDispose` ( #7747 )
...
* perf: replace `onUnMounted` to `tryOnScopeDispose`
* perf: replace `onUnMounted` to `tryOnScopeDispose`
2026-04-01 10:30:54 +08:00
xingyu4j
2428fb1407
fix: extension-document
2026-03-30 19:50:44 +08:00
xingyu4j
bb78882f72
feat(@vben/plugins): add tiptap rich text editor
2026-03-30 19:36:29 +08:00
Anonymouscen
147b50ec45
chore: 修复名称错误问题,帐户改为账户 ( #7735 )
2026-03-29 14:17:00 +08:00
橙子
34439dce4e
fix: history search can not remove ( #7732 )
2026-03-29 14:16:32 +08:00
Jin Mao
282a102826
chore: fix lint
2026-03-25 17:31:33 +08:00
Jin Mao
417e6c2ade
chore: fix lint && typecheck
2026-03-25 16:33:41 +08:00
Jin Mao
9d69d7f46c
Merge branch 'main' into chore/plugins
2026-03-25 15:19:21 +08:00
Jin Mao
87d1593a1f
refactor(effects): 扩展 echarts 类型定义并优化插件配置合并逻辑
...
- 添加 PieSeriesOption 和 RadarSeriesOption 到 echarts 类型定义
- 添加 LegendComponentOption 和 ToolboxComponentOption 组件选项
- 重构 providePluginsOptions 函数实现深合并逻辑
- 优化 vxe-table 初始化中的表单工厂优先级处理
- 调整 playground 中的 import 语句顺序和格式
2026-03-25 15:16:24 +08:00
过冬
7fbdf3d914
fix(@vben/common-ui): 修复 JsonViewer 在 Vite 下因 CJS 默认导出未解包导致的渲染失败 ( #7728 )
...
* fix: lint
* fix(@vben/common-ui): 修复 JsonViewer 在 Vite 下因 CJS 默认导出未解包导致的渲染失败
2026-03-25 14:54:14 +08:00
Jin Mao
5c02057198
refactor(effects): 替换上下文创建逻辑为全局选项管理
...
- 移除 createContext 依赖并实现全局插件选项存储
- 添加 providePluginsOptions 函数用于提供插件配置
- 添加 injectPluginsOptions 函数用于注入插件配置
- 添加 resetPluginsOptions 函数用于重置插件配置
- 更新 package.json 导出配置添加主入口点定义
2026-03-25 14:42:40 +08:00
Jin Mao
a7ca7cdb9f
refactor(vxe-table): 重构 useTableForm 函数实现并优化初始化逻辑
...
- 将 useTableForm 从箭头函数改为普通函数声明
- 简化表单工厂函数的获取逻辑,支持上下文注入
- 移除初始化时的重复上下文注入代码
- 改进错误提示信息的准确性
- 调整代码结构以提高可读性和维护性
- 将 SetupVxeTable 接口中的 useVbenForm 字段改为可选参数
2026-03-25 14:42:31 +08:00
Jin Mao
79408d406d
feat: 添加插件模块导出
...
- 导出 types 模块
- 导出 plugins-context 模块
2026-03-25 13:33:12 +08:00
Jin Mao
e555f71bf8
feat(vxe-table): 集成表格插件并优化初始化配置
...
- 添加了完整的 vxe-table 插件功能实现
- 实现了插件上下文选项注入机制
- 重构了 useTableForm 工厂函数的初始化逻辑
- 支持通过参数或上下文注入 useVbenForm 函数
- 优化了组件导入和类型定义
- 添加了插件使用文档说明
- 移除了未使用的组件注释代码
- 统一了字符串引号格式为双引号
2026-03-25 13:32:21 +08:00
Jin Mao
4c320346c3
docs(motion): 添加 motion 插件文档
...
- 创建了 Motion 插件的 README.md 文件
- 添加了插件导出组件和类型的说明表格
- 提供了插件的基本使用示例代码
- 包含了 MotionOptions 和 MotionVariants 类型导入说明
2026-03-25 13:27:10 +08:00
Jin Mao
e5ec88169a
refactor: 重构 ECharts 插件类型定义和导出结构
...
- 将 ECOption 类型定义移至独立的 types.ts 文件
- 修改 echarts.ts 文件导入 ECOption 类型而不是定义
- 更新 index.ts 添加 types 导出
- 移除 echarts.ts 中冗余的类型导入和定义
- 添加完整的 README.md 文档说明插件使用方法
- 优化代码组织结构提高可维护性
2026-03-25 13:27:02 +08:00
Jin Mao
914711ae04
feat: 添加插件上下文和类型定义
...
- 创建了插件选项的 createContext 功能
- 定义了 VbenPluginsOptions 接口结构
- 添加了表单、模态框、消息和组件的插件选项接口
- 提供了插件选项的注入和提供功能
2026-03-25 13:25:19 +08:00
xueyitt
47a853330d
feat: ApiSelect增加shouldFetch控制,在api请求之前的判断是否允许请求的回调函数 ( #7713 )
2026-03-24 10:22:02 +08:00
xueyitt
2aced2f659
feat: 增加table 帮助信息help通过表单values动态展示内容 ( #7712 )
2026-03-24 10:20:43 +08:00
雪忆天堂
6b3506f128
feat: table 类型VxeTableGridColumns替代VxeTableGridOptions['columns']魔法值写法
2026-03-23 10:06:35 +08:00
雪忆天堂
5613dcef99
feat: table允许通过props动态变化data数据
2026-03-23 10:05:32 +08:00
MistyMoon
3528517fe0
fix(project): fix sub sidebar theme in two-column menu ( #7708 )
...
- Reset light tokens for nested sub sidebars.
- Align the extra title logo theme with sidebarThemeSub.
2026-03-22 09:15:56 +08:00
lmx
e2fb3602f1
fix: 修复菜单项外部链接跳转问题
...
- 引入 isHttpUrl 工具函数用于判断 URL 类型
- 添加 isHttp 计算属性检测父路径是否为 HTTP 链接
- 修改菜单项渲染逻辑,对外部链接直接使用原地址跳转
- 调整 HTML 结构,将链接属性移到正确位置
- 确保内部路由和外部链接都能正常工作
2026-03-19 23:56:13 +08:00
lmx
da3580cbd7
Merge remote-tracking branch 'origin/main'
2026-03-19 22:07:20 +08:00
xingyu
0c300d040c
fix: tailwindcss config ( #7693 )
...
* chore: update deps
* fix: tailwindcss config
* fix: lint
* fix: lint
* chore: update deps
2026-03-19 15:51:09 +08:00
Jin Mao
340baf4f0b
chore: 处理合并的一些问题
2026-03-16 20:50:01 +08:00
Jin Mao
82cda0edaa
Merge branch 'fork/xingyu4j/tsdown'
...
# Conflicts:
# pnpm-lock.yaml
2026-03-16 20:36:27 +08:00
JyQAQ
3dcfd23036
perf: 裁剪组件默认输出格式调整 ( #7673 )
...
Co-authored-by: 吉远 <jiyuan@txhmo.com>
2026-03-16 18:25:04 +08:00
xingyu
186914bcac
fix: vxe i18n ( #7675 )
...
* chore: engines node
* chore: update deps
* fix: oxlint
* chore: fix lint issues
* chore: update deps
* fix: vxe i18n
2026-03-16 18:24:28 +08:00
lmx
e4453841db
fix: 修复在vue-router 的模式hash复制路径不对
2026-03-16 01:32:11 +08:00
xingyu4j
32db4cbd11
fix: build warn
2026-03-15 23:11:59 +08:00
xingyu4j
5558249cd3
chore: unbuild
2026-03-15 23:11:41 +08:00
xingyu4j
c9f7154524
chore(tsdown): remove unbuild leftovers
2026-03-15 22:04:48 +08:00
xingyu4j
d72f872369
refactor(tsdown): migrate styled ui-kit packages
2026-03-15 21:42:44 +08:00
xingyu4j
b300011d07
refactor(tsdown): migrate ui-kit vue packages
2026-03-15 21:30:13 +08:00
xingyu4j
3946253d6e
chore(tsdown): align stub scripts and package exports
2026-03-15 21:17:41 +08:00
xingyu4j
26e9aa244b
fix(vite): adapt rolldown workspace resolution
2026-03-15 20:27:01 +08:00
xingyu4j
0babdfbc44
chore(core-preferences): migrate build to tsdown
2026-03-15 19:40:48 +08:00
xingyu4j
f154d53be9
chore(core-composables): migrate build to tsdown
2026-03-15 19:40:42 +08:00
xingyu4j
ed3cd2fe3b
chore(core-typings): migrate build to tsdown
2026-03-15 19:40:36 +08:00
xingyu4j
59912a00bc
chore(core-shared): migrate build to tsdown
2026-03-15 19:40:29 +08:00
xingyu4j
675d8b0179
chore(core-icons): migrate build to tsdown
2026-03-15 19:40:17 +08:00
xingyu4j
ae6a75e913
build: migrate core ts packages to tsdown
2026-03-15 18:13:49 +08:00
xingyu
37d72c1628
fix: oxlint config ( #7661 )
...
* chore: engines node
* chore: update deps
* fix: oxlint
* chore: fix lint issues
2026-03-15 17:41:47 +08:00
xingyu4j
ab3e6bb37c
chore: fix lint issues
2026-03-15 16:35:34 +08:00
Jin Mao
1f2df3e944
Merge branch 'fork/Lmx1220/main'
...
# Conflicts:
# pnpm-lock.yaml
2026-03-15 03:53:43 +08:00
Jin Mao
e39a432210
Merge branch 'fork/caodachen/fix_useEcharts'
2026-03-15 03:50:21 +08:00
xingyu4j
4d59ac78bd
fix: lint
2026-03-14 19:34:22 +08:00
xingyu4j
46b4ce81e4
refactor: shrink eslint fallback layer
2026-03-14 19:10:22 +08:00
xingyu4j
7a723d03d0
fix: tailwindcss
2026-03-14 18:48:30 +08:00
xingyu4j
9d6fbfd0d6
refactor: replace simple px utility styles
2026-03-14 18:43:00 +08:00
xingyu4j
8fd6bf47b1
revert: restore px-based calc utilities
2026-03-14 18:36:31 +08:00
xingyu4j
f25f3a34d0
refactor: replace px calc spacing utilities
2026-03-14 18:31:35 +08:00
xingyu4j
2823848fae
refactor: migrate spacing utilities to tailwind v4 syntax
2026-03-14 18:27:16 +08:00
xingyu4j
b9467b2bc3
chore: configure tailwind v4 dynamic spacing
2026-03-14 18:14:44 +08:00
xingyu4j
fa190e0975
chore: checkpoint tailwind spacing updates
2026-03-14 18:11:08 +08:00
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 包版本
- 更新根目录包版本
2026-03-14 09:14:23 +08:00
xingyu4j
ebed9e64ed
fix: lint
2026-03-14 00:17:06 +08:00
xingyu4j
913636ae44
refactor: simplify oxc eslint compatibility
2026-03-14 00:16:27 +08:00
xingyu4j
395babc1f5
feat: tsgolint
2026-03-13 23:13:10 +08:00
xingyu4j
68cde54bad
feat: add tsgolint
2026-03-13 23:13:01 +08:00
xingyu4j
c7d7529c00
chore: ts
2026-03-13 23:07:04 +08:00
xingyu4j
a0ea221131
style(common-ui): normalize generic formatting
2026-03-13 21:57:18 +08:00
xingyu4j
2846bcb84e
fix(common-ui): guard resize drag start state
2026-03-13 21:56:53 +08:00
xingyu4j
de0181e0d9
fix: lint
2026-03-13 20:58:07 +08:00
xingyu4j
a850d426ef
chore: fix lint and typecheck issues
2026-03-13 20:57:52 +08:00
xingyu4j
e7fa87b301
chore: finalize oxlint migration config
2026-03-13 20:25:25 +08:00
xingyu4j
600fc71aed
fix: eslint
2026-03-13 15:58:53 +08:00
xingyu4j
443e4b04cd
chore: update vite 8
2026-03-13 15:51:28 +08:00
Lmx1220
e21adb395b
Merge branch 'main' into main
2026-03-13 15:08:24 +08:00
cdc
107750971b
fix: fix useEcharts
2026-03-10 21:48:33 +08:00
橙子
24e1be47ca
fix: fix component type ( #7601 )
2026-03-10 05:11:06 +08:00
Mr. Xie
7e0978c764
fix: 修复验证码登录发送逻辑,未校验手机号或发送失败仍开始倒计时的问题 ( #7616 )
2026-03-10 05:10:34 +08:00
Leo
83a0c9662d
fix: 修复路由重复 ( #7590 )
...
* fix: 修复路由重复
优化mixed模式路由合并逻辑。以backend 为基础,并从frontend补充
* fix: 修复名称冲突时子项合并顺序/覆盖(后端子项可能会丢失)。
* fix: 优化可访问性判断逻辑
* fix: error Forbidden non-null assertion
* refactor(access): 调整可访问性判断逻辑
2026-03-10 05:09:48 +08:00
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
2026-03-10 05:08:45 +08:00
zouawen
aa7d8630b5
fix: 侧边菜单栏拖拽优化 ( #7606 )
...
* fix: 拖拽使用遮罩层实现,使得拖拽到min或max临界值时cursor显示not-allowed,同时拖拽线条颜色变浅,类似于disabled,提升用户体验
* fix: 修复代码审查建议;修复lint和test报错
* fix: 修复遮罩层挡住hover:bg-primary视觉效果问题
2026-03-07 05:32:09 +08:00
lmx
173e6b08c9
fix: 修复执行: check:cspell 命令路径参数传入没有转义导致检测路径失效。添加菜单右键功能。优化:多余监听 activePath 变化,自动滚动到激活项 watch
2026-03-04 18:25:15 +08:00
zouawen
2a86404ba5
fix: 修复混合双列布局侧边栏拖拽线条位置显示bug,同步修复普通布局和混合双列布局切换时width计算导致侧边栏宽度显示异常问题,新增普通布局和混合双列布局侧边栏菜单折叠状态同步 ( #7596 )
2026-03-02 15:31:29 +08:00
han
b8a0199cde
feat(preferences): add toggle for copy preferences button ( #7594 )
...
Co-authored-by: hl <hl@nmcsoft.com>
2026-03-02 15:30:38 +08:00
Jin Mao
1a9fbddef4
Merge branch 'main' into main
2026-02-28 12:04:48 +08:00
zouawen
1209aaafb4
fix: 修复lint报错
2026-02-28 11:25:08 +08:00
zouawen
8e71261d49
fix: 侧边栏菜单拖拽功能在设置内增加开关
2026-02-28 11:19:24 +08:00
Jin Mao
bd22793ceb
feat: add the attribute routeCached to route to control cache the DOM corresponding to the route
2026-02-27 16:04:01 +08:00
zouawen
b2013436c5
fix: 优化最大值限制
2026-02-27 11:12:51 +08:00
zouawen
cc808cb8c5
fix: 优化最小值限制
2026-02-27 11:07:28 +08:00
zouawen
afffc4b3f0
fix: 优化侧边栏拖拽逻辑,支持展开和折叠
2026-02-27 10:54:15 +08:00