-
Notifications
You must be signed in to change notification settings - Fork 8.3k
feat: add form handleCollapsedChange event #6893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add form handleCollapsedChange event #6893
Conversation
|
WalkthroughAdded an optional Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant UI as User UI (vben-form)
participant Comp as vben-form / vben-use-form
participant Parent as Parent (consumer)
rect rgb(230,247,255)
note right of Comp: Collapse toggle triggered
UI ->> Comp: toggleCollapsed(value: boolean)
end
alt collapsed changed
Comp ->> Comp: state.collapsed = value
Comp ->> Parent: call handleCollapsedChange?(value)
note right of Parent: optional callback invoked
else unchanged / no handler
note right of Comp: no callback or no-op
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20–30 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
🔇 Additional comments (8)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (2)
packages/@core/ui-kit/form-ui/src/vben-use-form.vue (1)
46-51: Consider simplifying boolean coercion.The
!!valuecoercion is defensive but unnecessary sincevalueis already typed asboolean. You could simplify toconst collapsedValue = value;or usevaluedirectly. However, the defensive coding provides runtime safety if the type contract is violated.Apply this diff if you prefer a cleaner approach:
const handleUpdateCollapsed = (value: boolean) => { - const collapsedValue = !!value; - props.formApi?.setState({ collapsed: collapsedValue }); + props.formApi?.setState({ collapsed: value }); // 触发收起展开状态变化回调 - forward.value.handleCollapsedChange?.(collapsedValue); + forward.value.handleCollapsedChange?.(value); };packages/@core/ui-kit/form-ui/src/vben-form.vue (1)
42-47: Consider simplifying boolean coercion (same pattern as vben-use-form.vue).Similar to the implementation in
vben-use-form.vue, the!!valuecoercion is unnecessary given the typed parameter. The defensive coding is acceptable but could be simplified for clarity.Apply this diff for a cleaner approach:
const handleUpdateCollapsed = (value: boolean) => { - const collapsedValue = !!value; - currentCollapsed.value = collapsedValue; + currentCollapsed.value = value; // 触发收起展开状态变化回调 - props.handleCollapsedChange?.(collapsedValue); + props.handleCollapsedChange?.(value); };
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (6)
docs/src/components/common-ui/vben-form.md(1 hunks)packages/@core/ui-kit/form-ui/src/form-api.ts(1 hunks)packages/@core/ui-kit/form-ui/src/types.ts(1 hunks)packages/@core/ui-kit/form-ui/src/use-form-context.ts(1 hunks)packages/@core/ui-kit/form-ui/src/vben-form.vue(1 hunks)packages/@core/ui-kit/form-ui/src/vben-use-form.vue(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
packages/@core/ui-kit/form-ui/src/use-form-context.ts (1)
packages/@core/ui-kit/form-ui/src/types.ts (2)
VbenFormProps(350-434)ExtendedFormApi(436-440)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: Lint (ubuntu-latest)
- GitHub Check: Lint (windows-latest)
- GitHub Check: Check (windows-latest)
- GitHub Check: Check (ubuntu-latest)
- GitHub Check: Test (windows-latest)
- GitHub Check: post-update (ubuntu-latest)
- GitHub Check: post-update (windows-latest)
🔇 Additional comments (3)
packages/@core/ui-kit/form-ui/src/types.ts (1)
382-385: LGTM! Type definition is correct.The optional callback property is properly typed with a clear signature. The documentation comment clearly describes its purpose.
packages/@core/ui-kit/form-ui/src/form-api.ts (1)
39-39: LGTM! Default state initialization is correct.The initialization follows the established pattern for other callback handlers in the default state.
docs/src/components/common-ui/vben-form.md (1)
338-338: LGTM! Documentation is complete and accurate.The prop is properly documented with correct type signature and clear description.
* 'main' of https://github.com/Sxc92/SynapseUI: (58 commits) chore: 更新依赖 chore(deps): bump stylelint-config-recommended from 14.0.1 to 17.0.0 (vbenjs#6901) chore: 替换 lodash-es为 es-toolkit 并调整样式引入方式 (vbenjs#6912) chore(@vben/utils): 移除冗余的 lodash 依赖 chore(@vben/utils): 替换 lodash 工具函数为 es-toolkit 实现 refactor(shared): 替换 lodash 工具函数为 es-toolkit 兼容版本 chore: update depends chore(deps): bump echarts from 5.6.0 to 6.0.0 (vbenjs#6859) feat: add form handleCollapsedChange event (vbenjs#6893) fix: for tdesign feat: sport notification link feat: add read and delete for each notification feat: playground add profile feat: tdesign add profile feat: naive add profile feat: ele add profile fix: types feat: route add profile feat: antdv add profile feat: add profile comps ... # Conflicts: # apps/synapse/src/layouts/basic.vue # apps/web-antd/src/locales/langs/en-US/demos.json # apps/web-antd/src/locales/langs/zh-CN/demos.json # apps/web-antd/src/router/routes/modules/vben.ts # apps/web-ele/src/layouts/auth.vue # apps/web-ele/src/layouts/basic.vue # apps/web-ele/src/locales/langs/en-US/demos.json # apps/web-ele/src/locales/langs/en-US/page.json # apps/web-ele/src/locales/langs/zh-CN/demos.json # apps/web-ele/src/locales/langs/zh-CN/page.json # apps/web-ele/src/router/routes/modules/vben.ts # apps/web-naive/src/layouts/auth.vue # apps/web-naive/src/layouts/basic.vue # apps/web-naive/src/locales/langs/en-US/demos.json # apps/web-naive/src/locales/langs/en-US/page.json # apps/web-naive/src/locales/langs/zh-CN/demos.json # apps/web-naive/src/locales/langs/zh-CN/page.json # apps/web-naive/src/router/routes/modules/vben.ts # docs/.vitepress/components/preview-group.vue # docs/package.json # docs/src/components/common-ui/vben-form.md # docs/src/demos/vben-vxe-table/custom-cell/index.vue # docs/src/en/guide/essentials/development.md # docs/src/en/guide/essentials/settings.md # docs/src/en/guide/introduction/thin.md # docs/src/guide/essentials/development.md # docs/src/guide/essentials/settings.md # docs/src/guide/introduction/thin.md # pnpm-lock.yaml # vben-admin.code-workspace
* chore: export framework components for use in independent pages * feat: 增加基于图片拼图切片平移的验证码 * feat: 增加基于图片拼图切片平移的验证码 * feat(@vben/plugins): 新增VxeGrid组件插槽类型定义 (vbenjs#6452) * feat(@vben/plugins): 新增VxeGrid组件插槽类型定义 Closes: vbenjs#6451 * fix(@vben/plugins): 优化vxe-table组件的插槽类型定义 修复Omit导致的类型丢失 * fix: 接口返回子节点为空数组时,还会显示折叠箭头 (vbenjs#6463) * fix(@vben/common-ui): add page footer's height to calc contentstyle (vbenjs#6422) * revert: page height fixed,revert vbenjs#6422 * feat: 增加基于图片拼图切片平移的验证码 * feat: 增加基于图片拼图切片平移的验证码 * feat: add scrollToFirstError to the form component * feat: add scrollToFirstError to the form component * docs: update vben-drawer.md (vbenjs#6478) * docs: update vben-drawer.md * docs: update vben-drawer.md --------- Co-authored-by: Jin Mao <[email protected]> * chore: fix lint warning (vbenjs#6487) * fix: 锁定屏幕页面样式自适应 (vbenjs#6480) * chore: update-vxe-table (vbenjs#6516) * chore: update vxe-pc-ui,vxe-table * fix(ui): 修复代理配置初始化方法名错误 * fix(ui): 修改远程表格刷新配置 * chroe: update vxeTable 更新到最新 * feat: add function support for formItemClass prop (vbenjs#6511) * feat: add function support for formItemClass prop * feat: add try-catch to formItemClass function * fix: formItemClass function ts error --------- Co-authored-by: sqchen <[email protected]> * feat: add animation effects to VbenModal component * fix: fix vxeTable commit proxy (vbenjs#6536) * fix: 修正use-vxe-grid中的代理配置提交类型 * chore: change config * chore: release v5.5.8 * fix: adding roles does not automatically refresh (vbenjs#6548) * fix: adding roles does not automatically refresh * style: fix code style err * perf: perf the control logic of `VbenModal` full screen and header (vbenjs#6566) * resolve the issue of header=false and full screen button display but not operable * feat: add dingding login * fix: 修复双列布局模式下,路由为hideInMenu时,空白右列 * fix(@vben/layouts): respect base URL when opening route in new window (vbenjs#6583) Previously, the generated URL for opening routes in a new window did not include the router base, which led to incorrect paths when the app was deployed under a subdirectory (e.g., /admin/). This change ensures that the resolved path includes the configured base by using router.resolve(path).href. * perf: 优化useVbenForm样式 (vbenjs#6611) * perf(style): 优化useVbenForm垂直布局 actions 样式 * perf(style): 优化useVbenForm actions 布局样式 - 操作按钮组显示位置 ``` actionPosition?: 'center' | 'left' | 'right'; ``` - 操作按钮组的样式 ``` actionType?: 'block' | 'inline' inline: 行类显示,block: 新一行单独显示 ``` * perf: 优化useVbenForm actions 布局样式 删除 actionType 增加 actionLayout - actionLayout?: 'inline' | 'newLine' | 'rowEnd'; - newLine: 在新行显示。rowEnd: 在行内显示,靠右对齐(默认)。inline: 使用grid默认样式 - 删除无用代码 queryFormStyle * perf: 优化useVbenForm使用案例 * perf: 优化form组件样式 去掉padding,改为gap * docs: update vben-form.md * fix: 修复FormMessage位置 * perf: Avoid direct mutation of props object. - props.actionLayout = props.actionLayout || 'rowEnd'; - props.actionPosition = props.actionPosition || 'right'; + const actionLayout = props.actionLayout || 'rowEnd'; + const actionPosition = props.actionPosition || 'right'; Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix: 修复 wrapperClass 权重 * fix: 全局搜索结果不匹配 vbenjs#6603 * fix: 避免FormMessage溢出 --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix: 优化文件下载器方法 * fix(@vben/backend-mock): fix all ts type errors in this module (vbenjs#6613) * fix(@vben/backend-mock): 修复所有 ts 类型报错 * fix(@vben/backend-mock): 修复该模块所有 ts 类型报错 * fix(@vben/backend-mock): 解决 coderabbitai * fix(@vben/backend-mock): 解决 coderabbitai * fix(@vben/backend-mock): 解决 coderabbitai * fix(@vben/backend-mock): go back to the last modification (vbenjs#6634) * fix(@vben/backend-mock): the version went back to the last submission, and the latest submission was completely useless. * fix: resolve conflicts * fix: 修复mock里面eventHandler重复导致无法启动 (vbenjs#6631) * fix:update (vbenjs#6635) * chore: release 5.5.9 * feat: vBenForm add layout: inline (vbenjs#6644) * chore: modify the contributor showcase in the README (vbenjs#6636) * chore: Upgrade vite to version 7.x (vbenjs#6645) * fix: meta.link invalid issue * fix: fix the issue of `VbenForm` `compact` reactive failure (vbenjs#6654) * fix: 修复在 hash 路由模式下无法在新窗口打开路由的问题 (vbenjs#6652) 此问题是由于 PR vbenjs#6583 中新增的 `resolveHref` 函数导致的。其在 hash 路由模式下,得到的 URL 会包含 #/ 前缀。在经过 openRouteInNewWindow 的逻辑后就会出现两次 /# 前缀 * chore(docs): update the component import of the form adapter description in the document (vbenjs#6656) * fix: 增加对不支持的 HTTP 方法的错误处理 * fix: fix the issue of excessive line spacing in vbenForm (vbenjs#6653) * gap-2和 pb-4/2 重叠导致间距过宽,gap-x只保留列间距 * fix: the bug in the lock method of the vbenModal component (vbenjs#6648) * fix: 修复角色修改时VbenTree组件没有回显选中 (vbenjs#6662) * fix: 修复角色修改时VbenTree组件没有回显选中 * chore: use nextTick Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix: merge * chore: 更新 --------- Co-authored-by: haiyinlong <[email protected]> Co-authored-by: Jin Mao <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix: cannot read properties of null (reading 'nextSibling') (vbenjs#6667) * fix(@vben/web-ele): the main color tone for switching between dark and light themes has been reset (vbenjs#6678) * fix: appendToMain warning (vbenjs#6684) * fix: 角色管理,授权的树形组件,取消勾选叶子节点,父级节点状态错误 (vbenjs#6680) Co-authored-by: haiyinlong <[email protected]> * fix(@vben-core/shadcn-ui): 修复VbenPinInput组件在点击获取验证码和回车同时进行时会重复触发计时器的问题 (vbenjs#6705) * fix(@vben/common-ui): resolve vbenjs#6698 (vbenjs#6700) * fix(@vben/common-ui): resolve vbenjs#6698 * fix(@vben/common-ui): resolve vbenjs#6698 * fix(@vben/common-ui): resolve conversation * fix(@vben/common-ui): resolve vbenjs#6698 * feat: add SSE support to request-client * feat: add SSE support to request-client * 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插槽样式。 * fix: 全选时过滤disabled的节点 * fix: 节点选中时过滤父节点禁用状态 * feat(authentication): 二维码登录和验证码登录组件增加返回按钮显隐配置 (vbenjs#6713) - 在 CodeLogin 和 QrcodeLogin 组件中添加 showBack 属性 - 根据 showBack 属性决定是否显示返回按钮 - 默认值为 true,即默认显示返回按钮 * feat(common-ui): 添加 Tree 组件 - 在 common-ui 包中新增 Tree 组件 - 实现了基本的树形结构展示功能 - 集成了 VbenTree 组件和自定义样式- 添加了空数据时的占位展示 * chore: update deps vxe, vxe-table: 4.14.4 -> 4.16.11 vxe-pc-ui: 4.7.… (vbenjs#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 vbenjs#6317 * fix: 解决搜索表单中arrayToStringFields属性无法在搜索时生效的问题 (vbenjs#6591) - 合并handleArrayToStringFields与handleStringToArrayFields为handleMultiFields - 在handleMultiFields判断arrayToString或stringToArray - 删除两个方法在其他地方的引用 统一为在handleRangeTimeValue内调用handleMultiFields实现数据转换 Co-authored-by: 宛晴 <[email protected]> * perf: 表单需要通过权限控制是否需要展示,dependencies.if 这种方式需要别triggerFields触发字段,不能满足要求 (vbenjs#6756) * fix: 修复注解错误 (vbenjs#6763) * fix: 修复部分场景 echarts 在使用 v-show 时获取不到 width 的问题 (vbenjs#6776) * fix: 修复设置表单值时合并子对象的错误 (vbenjs#6780) Co-authored-by: shier <[email protected]> * fix(theme-button): fix flicker during theme switch (vbenjs#6782) * fix: watermark create error vbenjs#6788 (vbenjs#6789) Co-authored-by: liwei567 <[email protected]> * chore: 更换其他登录方式图标为彩色图标,新增其他登录方式tooltip文字提示 (vbenjs#6799) * feat: 1、新增水印文案自定义功能;2、input-item输入框组件新增清除功能(可用于快捷清除水印文案);3、偏好设置、主题切换、语言选择、是否全屏按钮新增动画效果 (vbenjs#6800) * feature: 新增水印文案自定义功能; * chore: 偏好设置、主题切换、语言选择、是否全屏按钮新增动画效果 * chore: 新增是否开启首选项导航栏(外观、布局、快捷键、通用)吸顶效果,调整部分样式 (vbenjs#6804) * fix: 混合双列 onMounted 关闭二级侧边栏 (vbenjs#6807) Co-authored-by: ldc <[email protected]> * fix: 修复mock-data.ts父id错误 * fix: 优化左侧和右侧认证面板动画效果 * fix: 锁屏和解锁密码输入框自动聚焦 * fix: 优化Checkbox组件hover样式,Input组件placeholder样式,TabsList组件圆角样式 * chore: 优化侧边栏展开折叠图标 * fix: 修复对话框modal组件方法名错误 * fix: 调整zh-CN/system.json中<"title": "系统管理">配置位置,保持与en-US/system.json中位置一致 * fix: 优化双列布局组件点击展开左侧按钮位置不居中问题 * feat: 新增集成tdesign组件的apps * feat: increase support for multiple time zones * feat: increase support for multiple time zones * feat: increase support for multiple time zones * feat: increase support for multiple time zones * feat: increase support for multiple time zones * chore: 一些调整和兼容性更新 * chore: 一些调整 * chore: fix lint * chore: fix lint * feat: increase support for multiple time zones * 优化实现方法 * feat: increase support for multiple time zones * 优化实现方法 * feat: increase support for multiple time zones * 优化实现方法 * feat: increase support for multiple time zones * 优化实现方法 * fix: resolve the issue of logout failure caused by the timezone store * fix: resolve the issue of logout failure caused by the timezone store * chore(timezone): 添加 $reset 方法并初始化时区存储 - 在时区存储中添加 `$reset` 方法 -修复导入语句引号为双引号 - 优化时区初始化错误处理逻辑- 导出 `$reset` 方法以便外部调用- 确保时区设置与默认选项同步 - 提升代码一致性和可维护性 * chore: lint * feat: add theme-aware logo support via optional sourceDark configuration (vbenjs#6866) * Initial plan * Initial exploration and setup Co-authored-by: aonoa <[email protected]> * Add support for separate light and dark theme logos Co-authored-by: aonoa <[email protected]> * Update documentation with dark theme logo configuration Co-authored-by: aonoa <[email protected]> * feat: Add theme-aware logo support for authentication/login page Co-authored-by: aonoa <[email protected]> * revert: .npmrc Signed-off-by: aonoa <[email protected]> --------- Signed-off-by: aonoa <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: aonoa <[email protected]> Co-authored-by: Li Kui <[email protected]> Co-authored-by: aonoa <[email protected]> * refactor(jwt): 更新 JWT 工具函数实现方式 (vbenjs#6869) refactor(jwt): 更新 JWT 工具函数实现方式 - 将默认导入 jsonwebtoken 改为解构导入 sign 和 verify 方法 * Revert "refactor(jwt): 更新 JWT 工具函数实现方式 (vbenjs#6869)" This reverts commit a854760. * chore(deps): bump SamKirkland/FTP-Deploy-Action (vbenjs#6873) Bumps the non-breaking-changes group with 1 update: [SamKirkland/FTP-Deploy-Action](https://github.com/samkirkland/ftp-deploy-action). Updates `SamKirkland/FTP-Deploy-Action` from 4.3.5 to 4.3.6 - [Release notes](https://github.com/samkirkland/ftp-deploy-action/releases) - [Commits](SamKirkland/FTP-Deploy-Action@v4.3.5...v4.3.6) --- updated-dependencies: - dependency-name: SamKirkland/FTP-Deploy-Action dependency-version: 4.3.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @vueuse/integrations from 12.8.2 to 14.0.0 (vbenjs#6861) Bumps [@vueuse/integrations](https://github.com/vueuse/vueuse/tree/HEAD/packages/integrations) from 12.8.2 to 14.0.0. - [Release notes](https://github.com/vueuse/vueuse/releases) - [Commits](https://github.com/vueuse/vueuse/commits/v14.0.0/packages/integrations) --- updated-dependencies: - dependency-name: "@vueuse/integrations" dependency-version: 14.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @types/node from 12.20.55 to 24.9.2 (vbenjs#6860) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.20.55 to 24.9.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.9.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update README.md (vbenjs#6828) Co-authored-by: Jin Mao <[email protected]> * fix: replace ant-design-vue with tdesign components in web-tdesign app (vbenjs#6880) * Initial plan * fix: replace ant-design-vue with tdesign components Co-authored-by: likui628 <[email protected]> * fix: remove trailing comma in package.json Co-authored-by: likui628 <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: likui628 <[email protected]> * chore: apply coderabbitai suggestions * fix: fix build error * feat: migrate from Radix Vue to Reka UI (vbenjs#6870) * Initial plan * Update dependencies and imports from radix-vue to reka-ui Co-authored-by: likui628 <[email protected]> * Fix type errors after reka-ui migration Co-authored-by: likui628 <[email protected]> * Run formatter to fix code style Co-authored-by: likui628 <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: likui628 <[email protected]> * chore: enable VITE_NITRO_MOCK * chore: demo i18n * chore: update demo routes * chore: add tdesign logo * fix: fix typecheck * fix: fix lint * fix: fix lint * fix: updating Tailwind CSS variables from --radix-* to --reka-* (vbenjs#6890) * fix: radix => reka * chore: add reka cspell * fix: Composition url * fix: prevent JSONBigInt parsing error on non-string data (vbenjs#6891) * Initial plan * Fix json-bigint serialization error when data is not a string Co-authored-by: likui628 <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: likui628 <[email protected]> * chore: 增强 util-formatDate ts 类型提示 (vbenjs#6886) * feat: 为 auth layout 添加 slot: logo, 提升组件的灵活性和可复用性 * feat: 增强 util-formatDate ts 类型提示 * feat: add profile comps * feat: antdv add profile * feat: route add profile * fix: types * feat: ele add profile * feat: naive add profile * feat: tdesign add profile * feat: playground add profile * feat: add read and delete for each notification * feat: sport notification link * fix: for tdesign * feat: add form handleCollapsedChange event (vbenjs#6893) * feat: add form handleCollapsedChange event * fix: ts lint * fix: ts error --------- Co-authored-by: sqchen <[email protected]> * chore(deps): bump echarts from 5.6.0 to 6.0.0 (vbenjs#6859) Bumps [echarts](https://github.com/apache/echarts) from 5.6.0 to 6.0.0. - [Release notes](https://github.com/apache/echarts/releases) - [Commits](apache/echarts@5.6.0...6.0.0) --- updated-dependencies: - dependency-name: echarts dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jin Mao <[email protected]> * chore: update depends * refactor(shared): 替换 lodash 工具函数为 es-toolkit 兼容版本 - 将 get 和 isEqual 方法从 lodash 替换为 es-toolkit/compat 导出 - 更新 package.json 添加 es-toolkit 依赖 - 注释掉原有的 lodash.get 和 lodash.isequal 导出语句- 锁定 es-toolkit 版本至1.41.0 并更新相关依赖配置 * chore(@vben/utils): 替换 lodash 工具函数为 es-toolkit 实现 * chore(@vben/utils): 移除冗余的 lodash 依赖 * chore: 替换 lodash-es为 es-toolkit 并调整样式引入方式 (vbenjs#6912) * chore(deps): bump stylelint-config-recommended from 14.0.1 to 17.0.0 (vbenjs#6901) Bumps [stylelint-config-recommended](https://github.com/stylelint/stylelint-config-recommended) from 14.0.1 to 17.0.0. - [Release notes](https://github.com/stylelint/stylelint-config-recommended/releases) - [Changelog](https://github.com/stylelint/stylelint-config-recommended/blob/main/CHANGELOG.md) - [Commits](stylelint/stylelint-config-recommended@14.0.1...17.0.0) --- updated-dependencies: - dependency-name: stylelint-config-recommended dependency-version: 17.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: 更新依赖 * chore(deps): bump the non-breaking-changes group across 1 directory with 26 updates (vbenjs#6914) Bumps the non-breaking-changes group with 20 updates in the / directory: | Package | From | To | | --- | --- | --- | | [vue](https://github.com/vuejs/core) | `3.5.23` | `3.5.24` | | [@clack/prompts](https://github.com/bombshell-dev/clack/tree/HEAD/packages/prompts) | `0.10.1` | `0.11.0` | | [@iconify/json](https://github.com/iconify/icon-sets) | `2.2.404` | `2.2.406` | | [@pnpm/workspace.read-manifest](https://github.com/pnpm/pnpm) | `1000.2.5` | `1000.2.6` | | [@tanstack/vue-query](https://github.com/TanStack/query/tree/HEAD/packages/vue-query) | `5.90.7` | `5.91.0` | | [@tanstack/vue-store](https://github.com/TanStack/store/tree/HEAD/packages/vue-store) | `0.7.7` | `0.8.0` | | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.46.3` | `8.46.4` | | [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.46.3` | `8.46.4` | | [@vue/shared](https://github.com/vuejs/core/tree/HEAD/packages/shared) | `3.5.23` | `3.5.24` | | [commitlint-plugin-function-rules](https://github.com/vidavidorra/commitlint-plugin-function-rules) | `4.1.0` | `4.1.1` | | [eslint-config-turbo](https://github.com/vercel/turborepo/tree/HEAD/packages/eslint-config-turbo) | `2.6.0` | `2.6.1` | | [lucide-vue-next](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-vue-next) | `0.507.0` | `0.553.0` | | [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) | `0.6.14` | `0.7.1` | | [sass](https://github.com/sass/dart-sass) | `1.93.3` | `1.94.0` | | [typescript](https://github.com/microsoft/TypeScript) | `5.8.2` | `5.9.3` | | [unplugin-element-plus](https://github.com/element-plus/unplugin-element-plus) | `0.10.0` | `0.11.1` | | [vxe-pc-ui](https://github.com/x-extends/vxe-pc-ui) | `4.10.16` | `4.10.22` | | [vxe-table](https://github.com/x-extends/vxe-table) | `4.17.10` | `4.17.14` | | [zod-defaults](https://github.com/Ced-Sharp/zod-defaults) | `0.1.3` | `0.2.3` | | [@ast-grep/napi](https://github.com/ast-grep/ast-grep) | `0.37.0` | `0.39.9` | Updates `vue` from 3.5.23 to 3.5.24 - [Release notes](https://github.com/vuejs/core/releases) - [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md) - [Commits](vuejs/core@v3.5.23...v3.5.24) Updates `@clack/prompts` from 0.10.1 to 0.11.0 - [Release notes](https://github.com/bombshell-dev/clack/releases) - [Changelog](https://github.com/bombshell-dev/clack/blob/@clack/[email protected]/packages/prompts/CHANGELOG.md) - [Commits](https://github.com/bombshell-dev/clack/commits/@clack/[email protected]/packages/prompts) Updates `@iconify/json` from 2.2.404 to 2.2.406 - [Commits](iconify/icon-sets@2.2.404...2.2.406) Updates `@pnpm/workspace.read-manifest` from 1000.2.5 to 1000.2.6 - [Release notes](https://github.com/pnpm/pnpm/releases) - [Commits](https://github.com/pnpm/pnpm/commits) Updates `@tanstack/vue-query` from 5.90.7 to 5.91.0 - [Release notes](https://github.com/TanStack/query/releases) - [Changelog](https://github.com/TanStack/query/blob/main/packages/vue-query/CHANGELOG.md) - [Commits](https://github.com/TanStack/query/commits/@tanstack/[email protected]/packages/vue-query) Updates `@tanstack/vue-store` from 0.7.7 to 0.8.0 - [Release notes](https://github.com/TanStack/store/releases) - [Commits](https://github.com/TanStack/store/commits/v0.8.0/packages/vue-store) Updates `@typescript-eslint/eslint-plugin` from 8.46.3 to 8.46.4 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.4/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 8.46.3 to 8.46.4 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.4/packages/parser) Updates `@vue/shared` from 3.5.23 to 3.5.24 - [Release notes](https://github.com/vuejs/core/releases) - [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md) - [Commits](https://github.com/vuejs/core/commits/v3.5.24/packages/shared) Updates `autoprefixer` from 10.4.21 to 10.4.22 - [Release notes](https://github.com/postcss/autoprefixer/releases) - [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md) - [Commits](postcss/autoprefixer@10.4.21...10.4.22) Updates `commitlint-plugin-function-rules` from 4.1.0 to 4.1.1 - [Release notes](https://github.com/vidavidorra/commitlint-plugin-function-rules/releases) - [Changelog](https://github.com/vidavidorra/commitlint-plugin-function-rules/blob/main/CHANGELOG.md) - [Commits](vidavidorra/commitlint-plugin-function-rules@v4.1.0...v4.1.1) Updates `eslint-config-turbo` from 2.6.0 to 2.6.1 - [Release notes](https://github.com/vercel/turborepo/releases) - [Changelog](https://github.com/vercel/turborepo/blob/main/release.md) - [Commits](https://github.com/vercel/turborepo/commits/v2.6.1/packages/eslint-config-turbo) Updates `lodash.clonedeep` from 4.5.0 to - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/commits) Updates `lodash.get` from 4.4.2 to - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/commits) Updates `lodash.isequal` from 4.5.0 to - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/commits) Updates `lodash.set` from 4.3.2 to - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/commits) Updates `lucide-vue-next` from 0.507.0 to 0.553.0 - [Release notes](https://github.com/lucide-icons/lucide/releases) - [Commits](https://github.com/lucide-icons/lucide/commits/0.553.0/packages/lucide-vue-next) Updates `prettier-plugin-tailwindcss` from 0.6.14 to 0.7.1 - [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md) - [Commits](tailwindlabs/prettier-plugin-tailwindcss@v0.6.14...v0.7.1) Updates `sass` from 1.93.3 to 1.94.0 - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](sass/dart-sass@1.93.3...1.94.0) Updates `typescript` from 5.8.2 to 5.9.3 - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml) - [Commits](microsoft/TypeScript@v5.8.2...v5.9.3) Updates `unplugin-element-plus` from 0.10.0 to 0.11.1 - [Release notes](https://github.com/element-plus/unplugin-element-plus/releases) - [Commits](element-plus/unplugin-element-plus@v0.10.0...v0.11.1) Updates `vxe-pc-ui` from 4.10.16 to 4.10.22 - [Release notes](https://github.com/x-extends/vxe-pc-ui/releases) - [Commits](https://github.com/x-extends/vxe-pc-ui/commits) Updates `vxe-table` from 4.17.10 to 4.17.14 - [Release notes](https://github.com/x-extends/vxe-table/releases) - [Commits](x-extends/vxe-table@4.17.10...4.17.14) Updates `zod-defaults` from 0.1.3 to 0.2.3 - [Commits](https://github.com/Ced-Sharp/zod-defaults/commits) Updates `@ast-grep/napi` from 0.37.0 to 0.39.9 - [Release notes](https://github.com/ast-grep/ast-grep/releases) - [Changelog](https://github.com/ast-grep/ast-grep/blob/main/CHANGELOG.md) - [Commits](ast-grep/ast-grep@0.37.0...0.39.9) Updates `@vue/reactivity` from 3.5.23 to 3.5.24 - [Release notes](https://github.com/vuejs/core/releases) - [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md) - [Commits](https://github.com/vuejs/core/commits/v3.5.24/packages/reactivity) --- updated-dependencies: - dependency-name: vue dependency-version: 3.5.24 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: "@clack/prompts" dependency-version: 0.11.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-breaking-changes - dependency-name: "@iconify/json" dependency-version: 2.2.406 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: "@pnpm/workspace.read-manifest" dependency-version: 1000.2.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: "@tanstack/vue-query" dependency-version: 5.91.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-breaking-changes - dependency-name: "@tanstack/vue-store" dependency-version: 0.8.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-breaking-changes - dependency-name: "@typescript-eslint/eslint-plugin" dependency-version: 8.46.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: "@typescript-eslint/parser" dependency-version: 8.46.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: "@vue/shared" dependency-version: 3.5.24 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: autoprefixer dependency-version: 10.4.22 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: commitlint-plugin-function-rules dependency-version: 4.1.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: eslint-config-turbo dependency-version: 2.6.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: lodash.clonedeep dependency-version: dependency-type: direct:production dependency-group: non-breaking-changes - dependency-name: lodash.get dependency-version: dependency-type: direct:production dependency-group: non-breaking-changes - dependency-name: lodash.isequal dependency-version: dependency-type: direct:production dependency-group: non-breaking-changes - dependency-name: lodash.set dependency-version: dependency-type: direct:production dependency-group: non-breaking-changes - dependency-name: lucide-vue-next dependency-version: 0.553.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-breaking-changes - dependency-name: prettier-plugin-tailwindcss dependency-version: 0.7.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-breaking-changes - dependency-name: sass dependency-version: 1.94.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-breaking-changes - dependency-name: typescript dependency-version: 5.9.3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-breaking-changes - dependency-name: unplugin-element-plus dependency-version: 0.11.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-breaking-changes - dependency-name: vxe-pc-ui dependency-version: 4.10.22 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: vxe-table dependency-version: 4.17.14 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes - dependency-name: zod-defaults dependency-version: 0.2.3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-breaking-changes - dependency-name: "@ast-grep/napi" dependency-version: 0.39.9 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-breaking-changes - dependency-name: "@vue/reactivity" dependency-version: 3.5.24 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-breaking-changes ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: rollback zod-defaults version to 0.1.3 (vbenjs#6925) * Initial plan * fix: downgrade zod-defaults from 0.2.3 to 0.1.3 for Zod v3 compatibility Co-authored-by: likui628 <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: likui628 <[email protected]> * fix: 更新依赖后的表格显示问题 * feat: update npm lock file --------- Signed-off-by: aonoa <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: zwtvip <[email protected]> Co-authored-by: chenweiran <[email protected]> Co-authored-by: RanMaoting <[email protected]> Co-authored-by: xue-jn <[email protected]> Co-authored-by: someone-cool <[email protected]> Co-authored-by: Netfan <[email protected]> Co-authored-by: sqchen <[email protected]> Co-authored-by: Jin Mao <[email protected]> Co-authored-by: panda7 <[email protected]> Co-authored-by: HamWong <[email protected]> Co-authored-by: sqchen <[email protected]> Co-authored-by: panda7 < [email protected]> Co-authored-by: vben <[email protected]> Co-authored-by: aonoa <[email protected]> Co-authored-by: ming4762 <[email protected]> Co-authored-by: leo <[email protected]> Co-authored-by: xueyang <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: lighua <[email protected]> Co-authored-by: 谦元吉 <[email protected]> Co-authored-by: gxc685 <[email protected]> Co-authored-by: 菠萝吹雪 <[email protected]> Co-authored-by: Svend <[email protected]> Co-authored-by: Ken Hai <[email protected]> Co-authored-by: haiyinlong <[email protected]> Co-authored-by: LinaBell <[email protected]> Co-authored-by: 螃蟹 <[email protected]> Co-authored-by: zouawen <[email protected]> Co-authored-by: oc <[email protected]> Co-authored-by: Jin Mao <[email protected]> Co-authored-by: boisduval <[email protected]> Co-authored-by: 宛晴 <[email protected]> Co-authored-by: pangyajun123 <[email protected]> Co-authored-by: Cup_Of_Bread <[email protected]> Co-authored-by: vent <[email protected]> Co-authored-by: shierd <[email protected]> Co-authored-by: shier <[email protected]> Co-authored-by: HaHa <[email protected]> Co-authored-by: lw567 <[email protected]> Co-authored-by: liwei567 <[email protected]> Co-authored-by: lidongcheng88 <[email protected]> Co-authored-by: ldc <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Li Kui <[email protected]> Co-authored-by: aonoa <[email protected]> Co-authored-by: zengmingyong <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Olexandr88 <[email protected]> Co-authored-by: xingyu <[email protected]> Co-authored-by: Utopia <[email protected]> Co-authored-by: shixi <[email protected]>
Description
增加 form 组件展开收起的事件,我的需求是收起的时候要清空所有收起项,应该还有些别的需求吧。
Type of change
Please delete options that are not relevant.
pnpm-lock.yamlunless you introduce a new test example.Checklist
pnpm run docs:devcommand.pnpm test.feat:,fix:,perf:,docs:, orchore:.Summary by CodeRabbit
New Features
Behavior Changes
Bug Fixes / Robustness