generated from posva/vite-tailwind-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Brand detail): new BrandCard component (#712)
- Loading branch information
Showing
3 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<v-card :title="brand" prepend-icon="mdi-factory" data-name="brand-card"> | ||
<v-card-text> | ||
<v-chip label size="small" density="comfortable" class="mr-1"> | ||
<v-icon start icon="mdi-food-outline" /> | ||
<span id="product-count">{{ $t('BrandDetail.BrandProductTotal', { count: productCount }) }}</span> | ||
</v-chip> | ||
</v-card-text> | ||
</v-card> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
brand: { | ||
type: String, | ||
default: null | ||
}, | ||
productCount: { | ||
type: Number, | ||
default: 0 | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters