Skip to content

Bug: useVbenForm 中 当 schema 为动态添加时,配置中的defaultValue失效 #6360

Open
@fiorayang

Description

@fiorayang

Version

Vben Admin V5

Describe the bug?

useVbenForm 中 当 schema 为动态添加时,配置中的defaultValue将不会生效果

Image

Reproduction

官方随便找个表单例子改一下即可复现

System Info

System:
    OS: macOS 15.3.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 211.30 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.0.0 - /usr/local/bin/node
    npm: 10.2.0 - /usr/local/bin/npm
    pnpm: 10.10.0 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 137.0.7151.69
    Safari: 18.3

Relevant log output

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions