Skip to content

Commit

Permalink
docs(all.md): update display name for all component list items
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Mar 23, 2023
1 parent cc3a9a8 commit 3f1b0f5
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 66 deletions.
5 changes: 3 additions & 2 deletions packages/docs/src/components/components/ListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<v-col cols="4">
<v-card
:image="image"
:to="rpath(`/components/${name}/`)"
:to="rpath(`/components/${src}/`)"
class="mb-3"
elevation="0"
height="164"
Expand All @@ -23,12 +23,13 @@

const props = defineProps({
name: String,
src: String,
placeholder: Boolean,
})

const image = computed(() => {
if (props.placeholder) return 'https://cdn.vuetifyjs.com/docs/images/graphics/img-placeholder.png'

return `https://cdn.vuetifyjs.com/docs/images/preview/${props.name}.png`
return `https://cdn.vuetifyjs.com/docs/images/preview/${props.src}.png`
})
</script>
Loading

0 comments on commit 3f1b0f5

Please sign in to comment.