-
Notifications
You must be signed in to change notification settings - Fork 854
Closed
Labels
Description
Environment
- Operating System: Darwin
- Node Version: v22.14.0
- Nuxt Version: 3.17.6
- CLI Version: 3.25.1
- Nitro Version: 2.11.13
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, future, css, components, modules, runtimeConfig, imports, vite, ssr, ignore
- Runtime Modules: @nuxt/[email protected], @nuxt/[email protected], @vueuse/[email protected], @pinia/[email protected]
- Build Modules: -
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