github-actions[bot]
eaf2d40879
chore: bump versions
1 month ago
github-actions[bot]
16ba48470a
chore: bump versions ( #8316 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 month ago
Dream
8a3f5ffb54
refactor( @vben/plugins ): vxe-table 语言映射恢复字面量键约束
localMap 恢复为 Partial<Record<SupportedLanguagesType, ...>>,
语言代码拼写错误重新回到编译期报错;应用扩展语言未打包
对应 vxe 语言包时仍回退 en-US(断言保留并说明原因:
vxe-table 仅为内置语言提供类型定义)。
1 month 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 依赖
1 month ago
Harold Zhang
1d95f298bd
fix( @vben/plugins ): register echarts GraphicComponent for empty-state text
1 month 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 时,后续监听器仍收到本次更新的列表,而不是嵌套调用的新列表。
1 month ago
layhuts
fbf0cebf4b
style: 优化 vxe-table 类型组织结构,将 viewed-row 功能域相关类型进行模块化拆分,由全局类型声明调整为功能目录内聚管理,避免公共 types 文件持续膨胀。 ( #8204 )
2 months ago
dream-weave
dcdbfe5dfc
fix( @vben-core/form-ui ): restore lock screen form submission ( #8195 )
* fix(@vben-core/form-ui ): avoid stale form context access
* fix(@vben/playground ): constrain date range codec fields
* test(@vben-core/form-ui ): harden benchmark fixtures
* docs(@vben/docs ): document form runtime and benchmarks
* fix(@vben/docs ): 明确 getValues/submit 返回值及 submit 参数类型
2 months ago
dream-weave
98dea92225
feat( @vben-core/form-ui ): add typed form value codecs ( #8189 )
* feat(@vben-core/form-ui ): add typed form value codecs
* test(@vben-core/form-ui ): cover codec value boundaries
* refactor(project): propagate form codec generics
* feat(@vben/plugins ): propagate form codecs through vxe grids
* refactor(@vben/playground ): migrate form codec examples
* refactor(@vben/playground ): migrate query forms to codecs
* docs(@vben/docs ): document form value codecs
2 months ago
dream-weave
28757fb9c8
refactor( @vben-core/form-ui ): migrate to Zod 4 and TanStack Form ( #8176 )
* build(@vben-core/form-ui ): update form validation dependencies
* refactor(@vben-core/form-ui ): replace vee-validate with TanStack Form
* test(@vben-core/form-ui ): cover TanStack Form migration
* docs(@vben/docs ): document Zod 4 form migration
* refactor(project): update form adapters
* refactor(project): migrate application form consumers
* refactor(@vben/playground ): migrate form examples
* docs(@vben/docs ): fix validate return type and required rule empty check in form docs
* fix(@vben-core/form-ui ): resolve oxlint and eslint errors
- rewrite nested ternary expressions as if/else in form-field-array.vue and form-runtime.ts
- sort @tanstack/vue-form before @vben-core/composables in package.json
* chore: fix merge artifacts and formatting
- move dependencies before devDependencies in root package.json
- update preferences snapshot for widget positioning fields
- format form-array demo README
* refactor(@vben-core/form-ui ): optimize form runtime and value flow
- add fine-grained field selectors and atomic dependency resolution
- expose raw and formatted value snapshots with focused regression coverage
* fix(@vben/layouts ): dispose sortable instance on unmount
* docs(@vben/docs ): document form runtime API changes
- list added, changed, removed, and deprecated form APIs
- document atomic dependencies and raw versus formatted values
2 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下报错
3 months ago
leo
d71c81e8ff
style: apply vsh lint formatting ( #7923 )
4 months ago
xingyu4j
0c1b737325
fix: fix lint && typecheck
4 months ago
JyQAQ
b5f79db321
fix( @vben/plugins ): 修复 tiptap 重复注册扩展警告 ( #7917 )
StarterKit v3.22.0 已默认包含 Document、Link、Underline 扩展,
与单独导入产生重复注册,导致控制台警告:
[tiptap warn]: Duplicate extension names found: ['link', 'doc', 'underline']
- 移除 Document 单独导入和使用,StarterKit 已内置
- 移除 Underline 单独导入和使用,StarterKit 已内置
- StarterKit 配置中添加 link: false,禁用内置 Link,
保留自定义配置的 Link.configure({...})
5 months ago
雪忆天堂
9b54e50510
fix: 修正vxtable不存在formConfig时,直接变更data失效问题
6 months ago
xueyitt
30356a24e6
fix: 修正vxtable不存在formConfig时,直接变更data失效问题
修正vxtable不存在formConfig时,直接变更data失效问题
5 months ago
JyQAQ
f5feddc6c7
feat( @vben/plugins ): tiptap 组件新增 maxHeight 属性支持及文档 ( #7897 )
* feat(@vben/plugins ): tiptap 组件新增 maxHeight 属性支持
- 新增 maxHeight prop 支持限制编辑器最大高度
- 编辑器内容区超出最大高度时自动滚动
- 移除 style.css 中未使用的 CSS 规则
* docs(@vben/plugins ): 添加 tiptap 富文本编辑器组件文档
- 新增中文文档 docs/src/components/common-ui/vben-tiptap.md
- 新增英文文档 docs/src/en/components/common-ui/vben-tiptap.md
- 新增基础用法示例 demos/vben-tiptap/basic
- 新增图片上传示例 demos/vben-tiptap/image-upload
- 更新文档侧边栏配置
* fix(@vben/plugins ): extract URL from response in image upload callback
The upload callback was incorrectly passing the AxiosResponse object
to resolve() instead of extracting the actual image URL string.
This caused the editor to insert [object Object] as image src,
resulting in broken images.
* chore: add changeset for tiptap maxHeight feature
* Revert "chore: add changeset for tiptap maxHeight feature"
This reverts commit a28fc4441f .
5 months ago
layhuts
1299acd8f9
fix: 获取已存在的 key,避免重复写入刷新过期时间
5 months ago
layhuts
08e4bb40b4
style: reformat code
5 months ago
layhuts
9c49f4bb1e
refactor: 优化viewed实例初始化,rowStyle rowClassName 从最新的配置中读取
5 months ago
layhuts
28905b0bec
style: reformat code
5 months ago
layhuts
a5f0537cb0
fix: 处理viewedKeys由于 FIFO 顺序,显式提供的值可能会被异步存储恢复静默地移除。
5 months ago
layhuts
c78d89f549
fix: 处理非原子性的先清除后写入操作会setKeys带来永久性数据丢失的风险
5 months ago
layhuts
f2a17cbe78
fix: 处理getViewedKeys()返回对内部可变对象的直接引用问题
5 months ago
layhuts
2d36d6b510
style: reformat code
5 months ago
layhuts
88d5661e0c
refactor: 重构ViewedRowPersistOptions处理扁平化问题
改成按 type 字段区分的联合类型
5 months ago
layhuts
e1f6449073
feat: 表格已读行操作标记
5 months ago
yuan.ji
244c0a5884
fix( @vben/plugins ): 根据代码审查意见修复 tiptap 图片上传
- 提取 findPlaceholderPos 辅助函数,消除重复的 descendants 查找
- 添加 editor.isDestroyed 守卫,防止操作已销毁编辑器
- renderHTML 不输出上传状态属性,防止 blob URL 泄露到序列化 HTML
- uploadImage 命令返回 boolean,添加 Commands 类型增强,移除 as any
- 拖拽/粘贴多图时仅处理第一张并提示仅支持单图上传
- 自定义 extensions 时不传 imageUpload 给工具栏,toolbar action 加运行时守卫
5 months ago
yuan.ji
c6fd599784
feat( @vben/plugins ): 补充 tiptap 图片上传类型、工具栏和示例
- 新增 ImageUploadOptions 类型定义和 imageUpload 属性
- 工具栏图片按钮支持上传/URL 双模式
- playground 添加图片上传 mock 示例
5 months ago
yuan.ji
4ca2f1c6e8
feat( @vben/plugins ): tiptap 支持图片上传功能
- 新增 imageUpload 配置项,支持自定义上传接口
- 支持文件选择、拖拽、粘贴三种上传方式
- 上传中显示 blob 预览图 + loading spinner / 进度条
- 支持 accept 和 maxSize 文件校验
- 支持 onUploadError 自定义错误处理
- 未配置 imageUpload 时保持原有 URL 插入行为不变
- 使用 NodeView 实现实时 DOM 控制的进度展示
5 months ago
xingyu4j
d700b04841
fix: tailwindcss lint
6 months ago
dullathanol
2013ba4de4
fix: 补全 ComponentPropsMap 与 Vxe 表格表单链路的类型
6 months ago
dullathanol
064a6a20f0
feat: 表单 Schema 支持组件 Props 映射泛型,同步适配VxeGrid
6 months ago
xingyu4j
c693c854a7
fix: extension-document
6 months ago
xingyu4j
5eca357a5c
feat( @vben/plugins ): add tiptap rich text editor
6 months ago
xingyu4j
ee95548340
fix: tailwindcss lint
6 months ago
dullathanol
7e4edd270d
fix: 补全 ComponentPropsMap 与 Vxe 表格表单链路的类型
6 months ago
dullathanol
5211f5065d
feat: 表单 Schema 支持组件 Props 映射泛型,同步适配VxeGrid
6 months ago
xingyu4j
2428fb1407
fix: extension-document
6 months ago
xingyu4j
bb78882f72
feat( @vben/plugins ): add tiptap rich text editor
6 months ago
Jin Mao
282a102826
chore: fix lint
6 months ago
Jin Mao
417e6c2ade
chore: fix lint && typecheck
6 months ago
Jin Mao
87d1593a1f
refactor(effects): 扩展 echarts 类型定义并优化插件配置合并逻辑
- 添加 PieSeriesOption 和 RadarSeriesOption 到 echarts 类型定义
- 添加 LegendComponentOption 和 ToolboxComponentOption 组件选项
- 重构 providePluginsOptions 函数实现深合并逻辑
- 优化 vxe-table 初始化中的表单工厂优先级处理
- 调整 playground 中的 import 语句顺序和格式
6 months ago
Jin Mao
5c02057198
refactor(effects): 替换上下文创建逻辑为全局选项管理
- 移除 createContext 依赖并实现全局插件选项存储
- 添加 providePluginsOptions 函数用于提供插件配置
- 添加 injectPluginsOptions 函数用于注入插件配置
- 添加 resetPluginsOptions 函数用于重置插件配置
- 更新 package.json 导出配置添加主入口点定义
6 months ago
Jin Mao
a7ca7cdb9f
refactor(vxe-table): 重构 useTableForm 函数实现并优化初始化逻辑
- 将 useTableForm 从箭头函数改为普通函数声明
- 简化表单工厂函数的获取逻辑,支持上下文注入
- 移除初始化时的重复上下文注入代码
- 改进错误提示信息的准确性
- 调整代码结构以提高可读性和维护性
- 将 SetupVxeTable 接口中的 useVbenForm 字段改为可选参数
6 months ago
Jin Mao
79408d406d
feat: 添加插件模块导出
- 导出 types 模块
- 导出 plugins-context 模块
6 months ago
Jin Mao
e555f71bf8
feat(vxe-table): 集成表格插件并优化初始化配置
- 添加了完整的 vxe-table 插件功能实现
- 实现了插件上下文选项注入机制
- 重构了 useTableForm 工厂函数的初始化逻辑
- 支持通过参数或上下文注入 useVbenForm 函数
- 优化了组件导入和类型定义
- 添加了插件使用文档说明
- 移除了未使用的组件注释代码
- 统一了字符串引号格式为双引号
6 months ago
Jin Mao
4c320346c3
docs(motion): 添加 motion 插件文档
- 创建了 Motion 插件的 README.md 文件
- 添加了插件导出组件和类型的说明表格
- 提供了插件的基本使用示例代码
- 包含了 MotionOptions 和 MotionVariants 类型导入说明
6 months ago
Jin Mao
e5ec88169a
refactor: 重构 ECharts 插件类型定义和导出结构
- 将 ECOption 类型定义移至独立的 types.ts 文件
- 修改 echarts.ts 文件导入 ECOption 类型而不是定义
- 更新 index.ts 添加 types 导出
- 移除 echarts.ts 中冗余的类型导入和定义
- 添加完整的 README.md 文档说明插件使用方法
- 优化代码组织结构提高可维护性
6 months ago
Jin Mao
914711ae04
feat: 添加插件上下文和类型定义
- 创建了插件选项的 createContext 功能
- 定义了 VbenPluginsOptions 接口结构
- 添加了表单、模态框、消息和组件的插件选项接口
- 提供了插件选项的注入和提供功能
6 months ago