Skip to content
New issue

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

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

Already on GitHub? # to your account

use labComponents error #243

Closed
iforgetyounow opened this issue Jul 16, 2024 · 5 comments
Closed

use labComponents error #243

iforgetyounow opened this issue Jul 16, 2024 · 5 comments
Labels

Comments

@iforgetyounow
Copy link

iforgetyounow commented Jul 16, 2024

template

<template>
  <v-container>
    <v-treeview :items="items" v-model:opened="open"></v-treeview>
  </v-container>
</template>
<script setup lang="ts">
const items = ref([
  {
    id: 1,
    title: 'Applications :',
    children: [
      { id: 2, title: 'Calendar : app' },
      { id: 3, title: 'Chrome : app' },
      { id: 4, title: 'Webstorm : app' },
    ],
  },
  {
    id: 5,
    title: 'Documents :',
    children: [
      {
        id: 6,
        title: 'vuetify :',
        children: [
          {
            id: 7,
            title: 'src :',
            children: [
              { id: 8, title: 'index : ts' },
              { id: 9, title: 'bootstrap : ts' },
            ],
          },
        ],
      },
      {
        id: 10,
        title: 'material2 :',
        children: [
          {
            id: 11,
            title: 'src :',
            children: [
              { id: 12, title: 'v-btn : ts' },
              { id: 13, title: 'v-card : ts' },
              { id: 14, title: 'v-window : ts' },
            ],
          },
        ],
      },
    ],
  },
  {
    id: 15,
    title: 'Downloads :',
    children: [
      { id: 16, title: 'October : pdf' },
      { id: 17, title: 'November : pdf' },
      { id: 18, title: 'Tutorial : html' },
    ],
  },
  {
    id: 19,
    title: 'Videos :',
    children: [
      {
        id: 20,
        title: 'Tutorials :',
        children: [
          { id: 21, title: 'Basic layouts : mp4' },
          { id: 22, title: 'Advanced techniques : mp4' },
          { id: 23, title: 'All about app : dir' },
        ],
      },
      { id: 24, title: 'Intro : mov' },
      { id: 25, title: 'Conference introduction : avi' },
    ],
  },
])
const search = ref([])
const filter =()=> {
  return items;
}
const open=ref([])

</script>

nuxt.config.js

  ssr:true
    vuetify: {
        moduleOptions: {
            ssrClientHints: {
                prefersColorScheme: false,
                prefersColorSchemeOptions: {}
            }
        },
        vuetifyOptions: {
            labComponents: true
        }
    },

view:
image

@iforgetyounow
Copy link
Author

image

@iforgetyounow
Copy link
Author

"vuetify-nuxt-module": "^0.14.1"

@iforgetyounow
Copy link
Author

But the error only occurs when I refresh the browser address. Does it not support SSR?

@userquin
Copy link
Member

Open doesn't exist as model, try using :opened.

@iforgetyounow
Copy link
Author

Open doesn't exist as model, try using :opened.
This video can explain the reason for the error。ssr:false Can work 。ssr:true throw an exception
demo.zip

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants