Caisin
2b1fcb038b
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-13 17:52:17 +08:00
dullathanol
2013ba4de4
fix: 补全 ComponentPropsMap 与 Vxe 表格表单链路的类型
2026-04-13 17:52:15 +08:00
dullathanol
794b103aa9
feat: Schema 中 componentProps 随注册组件联动类型提示
2026-04-13 17:52:14 +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
xueyitt
47a853330d
feat: ApiSelect增加shouldFetch控制,在api请求之前的判断是否允许请求的回调函数 ( #7713 )
2026-03-24 10:22:02 +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
JyQAQ
3dcfd23036
perf: 裁剪组件默认输出格式调整 ( #7673 )
...
Co-authored-by: 吉远 <jiyuan@txhmo.com >
2026-03-16 18:25:04 +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
7a723d03d0
fix: tailwindcss
2026-03-14 18:48:30 +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
913636ae44
refactor: simplify oxc eslint compatibility
2026-03-14 00:16:27 +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
443e4b04cd
chore: update vite 8
2026-03-13 15:51:28 +08:00
橙子
24e1be47ca
fix: fix component type ( #7601 )
2026-03-10 05:11:06 +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
programmer
6a9012e5e4
chore: 给个人中心的2个按钮加上 i18n ( #7138 )
...
* fix: 个人中心按钮i18n
* fix: eslint format
* fix: 调整label宽度让英文显示在一行
* chore: 调整label小点
* fix: import
---------
Co-authored-by: Jin Mao <50581550+jinmao88@users.noreply.github.com >
2026-01-26 16:12:09 +08:00
xingyu4j
fa195fde8e
fix: lint
2026-01-23 14:48:21 +08:00
JyQAQ
59aabd956d
Perf: Optimization of cropping component result acquisition & optimization of cropping frame prompts ( #7111 )
...
* perf(cropper): enhance image cropping functionality and add output type support
* perf(cropper): enhance image cropping functionality and add output type support
2026-01-19 14:18:36 +08:00
JyQAQ
9480f8272a
feat(common-ui cropper): Implement the image cropping component VCropper ( #7082 )
...
* feat(common-ui cropper): Implement the image cropping component VCropper
* feat(common-ui cropper): Implement the image cropping component VCropper
* feat(common-ui cropper): Implement the image cropping component VCropper
* feat(common-ui cropper): Implement the image cropping component VCropper
* feat(common-ui cropper): Implement the image cropping component VCropper
2026-01-10 14:08:15 +08:00
ppxb
51bca25345
fix(lint): pnpm format lint warning ( #7080 )
2026-01-10 14:06:03 +08:00
luoqiz
89b237f6b4
feat: 添加上下文菜单演示,添加菜单项隐藏性 ( #7057 )
...
Co-authored-by: luoqiz <851092732@qq.com >
2026-01-02 14:22:19 +08:00
JyQAQ
9105d4d14a
feat(api-component): api-component组件的options支持指定disabled值 ( #6991 )
2025-12-03 10:03:23 +08:00
Jin Mao
8b0f138100
Merge branch 'main' into deps
2025-11-24 08:23:02 +08:00
ming4762
a810cd0b48
fix: fix IconPicker reporting an error when using search if no icon is found ( #6944 )
...
* 修复未搜索图标时分页报错的问题
* 优化`IconPicker` 的分页逻辑,由total触发跳转到第一页,而不是用户控制
2025-11-24 07:56:55 +08:00
xingyu4j
bed52983a0
fix: lint
2025-11-17 12:15:14 +08:00
xingyu4j
48b3d30088
fix: types
2025-11-10 17:54:01 +08:00
xingyu4j
7dc68ed368
feat: add profile comps
2025-11-10 17:49:58 +08:00
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 >
2025-11-06 16:22:24 +08:00
zouawen
33306a5aff
chore: 更换其他登录方式图标为彩色图标,新增其他登录方式tooltip文字提示 ( #6799 )
2025-10-06 06:56:54 +08:00
ming4762
482ce981ce
chore: update deps vxe, vxe-table: 4.14.4 -> 4.16.11 vxe-pc-ui: 4.7.… ( #6752 )
...
* chore: update deps vxe, vxe-table: 4.14.4 -> 4.16.11 vxe-pc-ui: 4.7.12 -> 4.9.29
* fix: resolve the ESLint warning generated by #6317
2025-09-17 17:42:39 +08:00
Jin Mao
9114692f95
Merge branch 'main' into main
2025-09-15 08:08:31 +08:00
oc
11d273cbb6
feat(authentication): 二维码登录和验证码登录组件增加返回按钮显隐配置 ( #6713 )
...
- 在 CodeLogin 和 QrcodeLogin 组件中添加 showBack 属性
- 根据 showBack 属性决定是否显示返回按钮
- 默认值为 true,即默认显示返回按钮
2025-09-15 07:43:18 +08:00
zouawen
39820c783c
fix:
...
1、VbenTree新增是否全选、展开折叠功能;
2、解决当点击子节点label文字区域,而非checkbox时,关联父组件不能选中问题;
3、优化子节点选中时关联父节点选中功能:删除VbenTree中processParentSelection方法,改为在onSelect中实现,原因:processParentSelection在每次模型值更新时都会被调用,且计算复杂度为O(n^2),onSelect只在交互时触发,复杂度为O(n);
4、新增中间层tree组件,处理无数据时显示场景(显示图标Inbox和国际化comom.noData文本);
5、为防止父组件传值子组件boolean类型默认false问题,新增treePropsDefaults方法,为TreeProps赋默认值,Tree组件和VbenTree组件统一使用;
6、优化VbenTree组件整体样式(优化padding、margin、gap值,优化type为button时outline左右空白区域不对称问题),优化内部header、footer插槽样式。
2025-09-11 16:41:42 +08:00
谦元吉
6a85b3ab84
fix(@vben/common-ui): resolve #6698 ( #6700 )
...
* fix(@vben/common-ui): resolve #6698
* fix(@vben/common-ui): resolve #6698
* fix(@vben/common-ui): resolve conversation
* fix(@vben/common-ui): resolve #6698
2025-09-02 17:02:11 +08:00
zhongming4762
06ffdf164a
feat: add dingding login
2025-07-25 22:02:55 +08:00
Jin Mao
b8bf482c6a
Merge branch 'main' into form
2025-07-07 09:16:54 +08:00
陈蔚然
2f7de243f6
Merge branch 'vbenjs:main' into slider-translate-captcha
2025-07-04 10:28:40 +08:00
chenweiran
1aafb43103
feat: 增加基于图片拼图切片平移的验证码
2025-07-04 10:26:02 +08:00
chenweiran
8ccd01ade5
feat: 增加基于图片拼图切片平移的验证码
2025-07-04 10:23:47 +08:00
Netfan
e6bfbce6cb
revert: page height fixed,revert #6422
2025-07-03 22:29:48 +08:00
someone-cool
1f63aed64c
fix(@vben/common-ui): add page footer's height to calc contentstyle ( #6422 )
2025-07-03 18:36:42 +08:00
chenweiran
bbd8a53d9d
feat: 增加基于图片拼图切片平移的验证码
2025-07-03 18:20:20 +08:00
chenweiran
8554924cb9
feat: 增加基于图片拼图切片平移的验证码
2025-07-03 17:43:19 +08:00
Netfan
78076e70b4
chore: update deps
2025-07-02 16:55:55 +08:00
chewenye
b78bc65ce7
feat: 组件json-viewer支持bigint数据显示 cwy ( #6377 )
...
Co-authored-by: 车文烨 <chewy@china-lehua.com >
2025-06-29 04:32:30 +08:00