Add scope prop to v-list-item

This commit is contained in:
rijkvanzanten
2021-10-15 18:40:43 -04:00
parent fc985fa90a
commit 362c751e47

View File

@@ -82,6 +82,10 @@ export default defineComponent({
type: Boolean,
default: false,
},
scope: {
type: String,
default: 'v-list',
},
},
emits: ['click'],
setup(props, { emit }) {
@@ -97,6 +101,7 @@ export default defineComponent({
useGroupable({
value: props.value,
group: props.scope,
});
const isLink = computed(() => Boolean(props.to || props.href || props.clickable));