Skip to content

Conversation

x-wink
Copy link

@x-wink x-wink commented Aug 7, 2025

Description

fixed #21891

Markup:

<template>
  <v-app>
    <v-container>
      <!-- -->
      <VTreeview :items="items" open-on-click />
    </v-container>
  </v-app>
</template>

<script setup lang="ts">
  import { VTreeview } from '@/components';
  const props = {
    class: 'red',
    style: 'color: blue',
  }
  const items = [
    {
      id: 1,
      title: 'Item 1',
      props,
      children: [
        {
          id: '1-1',
          title: 'Item 1.1',
          props,
        },
      ],
    },
    {
      id: 2,
      title: 'Item 1.1',
      props,
    },
  ]
</script>
<style>
.red {
  background: red;
}
</style>

@jcjp jcjp requested a review from J-Sek August 9, 2025 14:41
@KaelWD KaelWD force-pushed the master branch 4 times, most recently from 142b234 to bb54746 Compare September 12, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report][3.9.3] VTreeview中items[number].props.class not apply to parent item
2 participants