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 依赖
2 days ago
徐蒙恩
53b1529298
feat(locales): support runtime dynamic language list ( #8279 )
* feat(locales): support runtime dynamic language list
- 将 SupportedLanguagesType 从硬编码的 'en-US' | 'zh-CN' 联合类型放宽为 string,支持应用在运行时注册自定义语言
- @vben/constants 新增 setSupportLanguages / onSupportLanguagesChange / getSupportLanguages,以发布订阅方式动态管理语言列表(订阅时立即回调当前值)
- language-toggle 与 user-dropdown 组件改为订阅动态列表,不再直接引入静态 SUPPORT_LANGUAGES
- use-simple-locale 对未知语言回退到 en-US
- vxe-table 集成对未打包的自定义语言回退到 en-US 语言包
向后兼容:不调用 setSupportLanguages 时,行为与之前完全一致。
* fix(constants): 语言列表注册表返回独立快照
getSupportLanguages 与监听器回调改为返回克隆快照,存储时也做克隆,避免外部直接修改数组或元素对象污染注册表内部状态、绕过 setSupportLanguages 导致其他订阅者不同步。
* fix(constants): 偏好设置面板语言列表改为订阅动态注册表
- general.vue 不再直接引入静态 SUPPORT_LANGUAGES,改为通过 onSupportLanguagesChange 订阅,运行时替换语言列表后设置面板同步刷新
- setSupportLanguages 通知时迭代监听器快照,避免监听器在回调中取消订阅导致跳过后续监听器
* fix(constants): 固化本次更新快照后再通知监听器
监听器回调中嵌套调用 setSupportLanguages 时,后续监听器仍收到本次更新的列表,而不是嵌套调用的新列表。
5 days ago
Dream
522a83b2fb
fix( @vben-core/layout-ui ): add overlay viewport height fallback
1 week ago
Dream
aa36114181
fix( @vben-core/layout-ui ): address layout review findings
2 weeks ago
Dream
8f60e8063a
test( @vben/playground ): cover layout behavior and performance
2 weeks ago
Dream
89c05f8274
refactor( @vben-core/layout-ui ): move layout sizing and scrolling to CSS
2 weeks ago
Dream
9a5d052fa5
fix( @vben-core/composables ): lock layout scroll container
1 month 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下报错
2 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: 优化渲染性能
3 months ago
xingyu4j
5558249cd3
chore: unbuild
6 months ago
xingyu4j
3946253d6e
chore(tsdown): align stub scripts and package exports
6 months ago
xingyu4j
26e9aa244b
fix(vite): adapt rolldown workspace resolution
6 months ago
xingyu4j
f154d53be9
chore(core-composables): migrate build to tsdown
6 months ago
xingyu4j
ae6a75e913
build: migrate core ts packages to tsdown
6 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 包版本
- 更新根目录包版本
6 months ago
zouawen
afffc4b3f0
fix: 优化侧边栏拖拽逻辑,支持展开和折叠
6 months ago
zouawen
99710ef9dc
feat: 优化侧边栏拖拽逻辑
6 months ago
zouawen
707b391449
feat: 侧边栏宽度拖拽改为composable实现,同时修复tabbar.ts文件lint报错
6 months ago
Jin Mao
8a215fbcc7
chore: release 5.6.0
7 months ago
xingyu4j
fa195fde8e
fix: lint
7 months ago
ppxb
51bca25345
fix(lint): pnpm format lint warning ( #7080 )
8 months ago
xingyu4j
6753834054
fix: lint
9 months ago
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>
10 months ago
vben
e147a9d2fd
chore: release 5.5.9
1 year ago
vben
1575619d53
chore: release v5.5.8
1 year ago
vben
b9aef618fe
chore: release 5.5.7
1 year ago
vben
cc6c9bf7a0
chore: release v5.5.6
1 year ago
vben
7c7051a11e
chore: release v5.5.5
1 year ago
Netfan
44138f578f
feat: add preset alert, confirm, prompt components that can be simple called ( #5843 )
* feat: add preset alert, confirm, prompt components that can be simple called
* fix: type define
1 year ago
vben
b92ac5c36d
chore: release 5.5.4
1 year ago
vben
195ceec9b4
chore: release 5.5.3
2 years ago
Vben
081d2aed23
perf: format code with better style ( #5283 )
2 years ago
vben
07c4ad05f4
chore: release 5.5.2
2 years ago
vben
cbca9ffd95
chore: release 5.5.1
2 years ago
vben
7ab00250bf
chore: release 5.5.0
2 years ago
vben
c8dd9bbf0b
chore: release 5.4.8
2 years ago
vben
788a29a8cb
chore: release v5.4.7
2 years ago
vben
94efcec7da
chore: release v5.4.6
2 years ago
vben
57d5a919d2
chore: release v5.4.5
2 years ago
vben
44440d0951
chore: release v5.4.4
2 years ago
vben
ad3963ff70
chore: release v5.4.3
2 years ago
vben
bfaa2780ab
chore: release v5.4.2
2 years ago
vben
d1ca09c7bb
chore: release v5.4.1
2 years ago
Vben
24d14c2841
refactor(adapter): separate form and component adapters so that components adapt to components other than the form ( #4628 )
* refactor: global components can be customized
* refactor: remove use Toast and reconstruct the form adapter
2 years ago
vben
9856bc88d2
chore: release v5.4.0
2 years ago
vben
68465b5fbf
chore: release v5.4.0-beta.1
2 years ago
Vben
4173264805
feat: add vxe-table component ( #4563 )
* chore: wip vxe-table
* feat: add table demo
* chore: follow ci recommendations to adjust details
* chore: add custom-cell demo
* feat: add custom-cell table demo
* feat: add table from demo
2 years ago
vben
46540a7329
chore: release v5.3.2
2 years ago
vben
01391ee5a1
chore: release v5.3.1
2 years ago
Squall2017
b7776c5148
fix: fix abnormal display of scroll bar on lock screen page ( #4546 )
* fix abnormal display of scroll bar on lock screen page
2 years ago