Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The update of the columns property will not trigger an update of the UTable component #2874

Open
Cyanhall opened this issue Dec 10, 2024 · 1 comment
Labels
bug Something isn't working triage v3 #1289

Comments

@Cyanhall
Copy link

Cyanhall commented Dec 10, 2024

Environment

  • Operating System: Darwin
  • Node Version: v20.10.0
  • Nuxt Version: 3.14.1592
  • CLI Version: 3.16.0
  • Nitro Version: 2.10.4
  • Package Manager: npm@9.6.7
  • Builder: -
  • User Config: default
  • Runtime Modules: @nuxt/ui@3.0.0-alpha.10, @nuxt/eslint@0.7.2, @nuxtjs/i18n@9.1.0
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.0-alpha.10

Reproduction

None

Description

Thank you very much for providing such a great component library. I'm trying to use it in my personal project.

The following is the relevant code:

const columns = computed(() => defaultColumns.filter(column => selectedColumns.value.includes(column.accessorKey)))
<UTable
  :columns="columns"
  :data="data"
/>

I checked the latest documentation, and the examples of UTable regarding column display control seem to have no effect, such as: https://ui3.nuxt.dev/components/table#with-column-visibility.

Additional context

No response

Logs

@Cyanhall Cyanhall added bug Something isn't working triage v3 #1289 labels Dec 10, 2024
@clopezpro
Copy link
Contributor

https://github.com/user-attachments/assets/ffae357a-e037-486a-a86e-1b1e0a1a4ec5
Column visibility is not working in version v3.0.0-alpha.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants