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