Skip to content

Boolean attribute not worked on UFormField #4496

@baixiaoyu2997

Description

@baixiaoyu2997

Environment



Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.2.0

Reproduction

https://codesandbox.io/p/devbox/nuxt-ui3-n3sxks

Description

When using the UFormField component, passing the error prop using the Boolean attribute shorthand syntax does not work as expected.

This works correctly:

<UFormField :label="`总额(${rowData?.marginAsset})`" size="lg" :error="true" />

However, this does not work:

<UFormField :label="`总额(${rowData?.marginAsset})`" size="lg" error />

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions