loseintwilight
9c1c38806b
fix( @vben-core/shared ): keep filterTree from mutating the source tree ( #8370 )
* fix(@vben-core/shared ): keep filterTree from mutating the source tree
filterTree assigned the filtered child array back onto the source node, so nodes that failed
the predicate were dropped from the input tree permanently instead of only from the result.
In frontend/mixed access mode generateRoutesByFrontend filters the module-level accessRoutes
on every login and role refresh, so routes stripped for a low-privilege user stayed missing
for later sessions until a full page reload.
filterTree is now pure: matched nodes owning a child array are copied, nodes without children
are still returned by reference.
* docs(@vben-core/shared ): correct filterTree reference-semantics comment
filterTree does not write its result back into the input tree, but childless
matched nodes are still returned by reference. The previous comment claimed no
source node is ever returned, which contradicted the implementation and could
mislead callers.
* fix(@vben-core/shared ): preserve branch references in filterTree
filterTree copied every matched branch node, so filtering a tree where nothing
changed still returned new branch objects. The previous implementation used
Array#filter, which keeps element references, so callers could rely on
filterTree(input, () => true)[0] === input[0].
Branch nodes are now shallow-copied only when their child sequence actually
changes; unchanged nodes are returned by reference, restoring the reference
semantics callers had before. The mutation fix itself is unaffected: the
filtered child array is never assigned back onto the source node.
2 months ago
wenbin-ding
af3d5f0e62
feat( @vben/layouts ): support activePath breadcrumb hierarchy ( #8346 )
* feat(@vben/layouts ): support activePath breadcrumb hierarchy
* fix(@vben/layouts ): preserve distinct unnamed breadcrumb routes
---------
Co-authored-by: dingwenbin <dingwenbin@jilinxiangyun.com>
2 months ago
github-actions[bot]
16ba48470a
chore: bump versions ( #8316 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
3 months ago
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 依赖
3 months ago
Dream
522a83b2fb
fix( @vben-core/layout-ui ): add overlay viewport height fallback
3 months ago
zhongming4762
d3dc081b5d
perf: 优化路由动画切换 1、切换出现双页面问题 2、切换出现横向和纵向滚动条问题
4 months ago
Dream
baea741432
feat( @vben-core/shared ): add layout scroll helpers
4 months ago
xingyu
6b6708bcf2
fix: 修复点击退出图标确认后不能退出 && 图标排序等数组字段需顺序敏感比较 ( #8179 )
* chore: 调整 sortablejs 的位置,只在用到的模块引入
* fix: non-null assertion lint error
* fix: 修复点击退出图标确认后不能退出
* fix: 图标排序等数组字段需顺序敏感比较
* feat: 配置中增加 refresh 并统一位置
4 months ago
金毛88
f840d235ef
feat: 偏好设置小部件支持位置选择与拖拽排序
- 顶栏各小部件按钮支持选择位置(header/user-dropdown/none),偏好设置按钮额外保留 auto/fixed 智能兜底,移动端/全屏内容模式下自动切 fixed 浮动保命,避免偏好入口死锁
- draggable-list.vue 的 listRef 未在模板绑定,Sortable 永不初始化导致小部件无法拖拽;加 ref 绑定与 data-key 让 onEnd 从 DOM 读真实新顺序
- preferences.ts 的 updatePreferences 用 defu(merge) 合并数组,对 widget.order 是 concat 语义,每次拖拽触发更新都会把当前 order 追加一次,localStorage 里膨胀到上百条;改用 mergeWithArrayOverride 整体替换,加载缓存时 sanitizeCachedArray 去重已存在的脏数据
- preferences 按钮之前在 widget.order 里因 labelMap 未登记显示成裸字符串,且 widgetChecks 缺 refresh 导致刷新按钮不按 order 渲染;统一 preferences 与其它 widget 的拖拽排序与位置 select,refresh 补进 rightSlots.widgetChecks 并补模板渲染
- 补 sortablejs 依赖、WidgetPreferences.order 类型字段、preferences-drawer.vue 的 widgetOrder 绑定
4 months ago
luoqiz
14d03a1c2d
fix: 统一BasicUserInfo ( #8133 )
4 months ago
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
5 months ago
xingyu
dc3466d77a
refactor: 将 unicorn / TypeScript 规则迁移至 oxlint,并完善 oxfmt 配置 ( #8067 )
* chore: update deps
* chore: update archiver v8
* fix: 还原 vue/html-closing-bracket-newline
* feat: 增加默认配置和配置注释
* feat: 增加oxlint默认插件配置和注释
* refactor: remove unicorn ESLint configuration and update dependencies
- Deleted the unicorn ESLint configuration file from the lint-configs package.
- Removed unicorn configuration from the main index file.
- Updated oxlint-config to include a comprehensive set of unicorn rules.
- Adjusted preferences and vxe-table files to disable specific unicorn rules.
- Removed references to eslint-plugin-unicorn from pnpm-lock.yaml and pnpm-workspace.yaml.
* refactor: 移除 eslint 的 @typescript-eslint/eslint-plugin 依赖,将 TypeScript 配置迁移到 oxlint
* feat: open typeAware
* fix: mac 和linux下报错
5 months ago
雪忆天堂
ebebb42625
feat: 1、FieldMappingTime拆解独立FieldMappingTimeItem+集合形式,方便单独对象定义;
2、表单submitOnChange增加changeDebouncedTime防抖处理,允许自定义防抖周期;
3、handleValuesChange事件set增加cloneDeep,防止对象值污染;
5 months ago
金毛88
0eb72ca4fd
feat: add useTDesignDesignTokens
6 months ago
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: 优化渲染性能
6 months ago
xingyu
f2b3b12553
chore: pnpm v11 ( #7942 )
* chore: remove rolldown dep
* fix: issues-helper and maintain-one-comment are temporarily disabled due to security issues
* chore: update deps
* fix: change error type to TypeError for non-browser environment check in LocalStorageDriver
* chore: update pnpm v11
6 months ago
PanFu
2a84b590b5
feat: 偏好设置按钮,支持在右上角用户的下拉框中展示;偏好设置中支持设置时区(多一个入口); ( #7931 )
* feat: 偏好设置按钮支持显示在用户下拉窗中的特性
* feat: 时区设置功能支持在偏好设置列表进行配置
* feat: 偏好设置按钮支持显示在用户下拉窗中的特性 - 完善示例代码
* feat: 时区设置功能支持在偏好设置列表进行配置
* feat: 时区设置功能支持在偏好设置列表进行配置-单元测试报错问题
* feat: 时区设置功能支持在偏好设置列表进行配置-修改代码QC问题
---------
Co-authored-by: PanFu <panfu@zhihuaai.com>
6 months ago
leo
d71c81e8ff
style: apply vsh lint formatting ( #7923 )
6 months ago
xingyu4j
0c1b737325
fix: fix lint && typecheck
6 months ago
layhuts
43717807a4
style: reformat code
6 months ago
layhuts
1b4e126128
fix: 处理localStorageDriver在某些受限浏览器环境下报错导致无法使用
6 months ago
layhuts
d23b246aee
fix: 处理localStorage prefix === ''时提醒用户可能会全部删除数据
6 months ago
layhuts
9667232684
fix: 加上 - 分隔符来避免跨前缀误匹配
6 months ago
layhuts
1f584ff0c9
fix: 处理window不可用时降级使用Memory
6 months ago
layhuts
75ed17a1f9
docs: 更正saveToCache所属组件
6 months ago
layhuts
cc6ccaab38
docs: 为符合 Markdown lint 规范,指定代码块语言。
6 months ago
layhuts
0be4b51eaa
fix: 解决window在构造函数中进行访问破坏SSR/Node环境。
6 months ago
layhuts
b40822e3ed
fix: 解决indexedDB的getDB在失败重试时永远返回错误Promise问题
6 months ago
layhuts
df5cb426d1
fix: 解决indexedDB的setItem、,removeItem以及clear在请求成功时而不是事务完成时触发resolve问题
6 months ago
layhuts
8ce773f264
feat: 在storage-manager添加keys方法
6 months ago
layhuts
51e8b27d4c
style( @vben-core/shared ): formatting
7 months ago
layhuts
e555ee065e
feat( @vben-core/shared ): 新增indexedDB
在cache下新增indexedDB缓存
7 months ago
boisduval
c7fd6ffb0e
feat: 添加日期格式化函数的空值处理
- 当传入的时间参数为 undefined、null 或空字符串时,直接返回空字符串而不是继续执行格式化逻辑,避免无效的时间值导致程序错误。
7 months ago
allen
6f18718c87
feat: add collapsible 组件,form表单增加单项可折叠,支持schema配置默认关闭/开启
feat: add collapsible 组件,form表单增加单项可折叠,支持schema配置默认关闭/开启
- shadcn-ui 增加 collapsible组件,collapsible-params组件
- form新增支持单项折叠
- collapsible-params组件在Form表单应用
7 months ago
xingyu4j
5eca357a5c
feat( @vben/plugins ): add tiptap rich text editor
8 months ago
雪忆天堂
fe77bc8bc9
feat: 通知模块自定义加强
7 months ago
xingyu4j
bb78882f72
feat( @vben/plugins ): add tiptap rich text editor
8 months ago
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.
8 months ago
xingyu
0c300d040c
fix: tailwindcss config ( #7693 )
* chore: update deps
* fix: tailwindcss config
* fix: lint
* fix: lint
* chore: update deps
8 months ago
Jin Mao
340baf4f0b
chore: 处理合并的一些问题
8 months ago
xingyu4j
5558249cd3
chore: unbuild
8 months ago
xingyu4j
3946253d6e
chore(tsdown): align stub scripts and package exports
8 months ago
xingyu4j
26e9aa244b
fix(vite): adapt rolldown workspace resolution
8 months ago
xingyu4j
ed3cd2fe3b
chore(core-typings): migrate build to tsdown
8 months ago
xingyu4j
59912a00bc
chore(core-shared): migrate build to tsdown
8 months ago
xingyu4j
675d8b0179
chore(core-icons): migrate build to tsdown
8 months ago
xingyu4j
ae6a75e913
build: migrate core ts packages to tsdown
8 months ago
xingyu4j
b9467b2bc3
chore: configure tailwind v4 dynamic spacing
8 months ago
xingyu4j
fa190e0975
chore: checkpoint tailwind spacing updates
8 months ago
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 包版本
- 更新根目录包版本
8 months ago