Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
feat: add ui components name
Browse files Browse the repository at this point in the history
  • Loading branch information
elonehoo committed Dec 6, 2023
1 parent 2e58c82 commit b0ad227
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ui/avatar/Index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
defineOptions({
name: 'Avatar',
name: 'LivraisonAvatar',
})
const props = defineProps<{
Expand Down
2 changes: 1 addition & 1 deletion ui/icon/Button.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
defineOptions({
name: 'IconButton',
name: 'LivraisonIconButton',
})
</script>

Expand Down
6 changes: 5 additions & 1 deletion ui/icon/Label.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<script setup lang="ts">
type IconLabelIconName = 'github' | 'twitter' | 'discord' | 'youtube' | 'twitch' | 'mastodon'
defineOptions({
name: 'LivraisonIconLabel',
})
const props = defineProps<{
iconName: IconLabelIconName
url: string
label: string
}>()
type IconLabelIconName = 'github' | 'twitter' | 'discord' | 'youtube' | 'twitch' | 'mastodon'
const iconLogos: {
label: IconLabelIconName
value: any
Expand Down
3 changes: 3 additions & 0 deletions ui/kbd/Kbd.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<script setup lang="ts">
defineOptions({
name: 'LivraisonKbd',
})
const props = defineProps<{
label: string
}>()
Expand Down
2 changes: 1 addition & 1 deletion ui/modal/BodyWrapper.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
defineOptions({
name: 'ModalBodyWrapper',
name: 'LivraisonModalBodyWrapper',
})
</script>

Expand Down
2 changes: 1 addition & 1 deletion ui/modal/Card.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
defineOptions({
name: 'Modal',
name: 'LivraisonModal',
})
const props = withDefaults(defineProps<{
Expand Down
2 changes: 1 addition & 1 deletion ui/modal/Mask.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
defineOptions({
name: 'ModalMask',
name: 'LivraisonModalMask',
})
</script>

Expand Down
2 changes: 1 addition & 1 deletion ui/radio/Group.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
defineOptions({
name: 'RadioGroup',
name: 'LivraisonRadioGroup',
})
const props = defineProps<{
modelValue: string
Expand Down
4 changes: 4 additions & 0 deletions ui/radio/Item.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'LivraisonRadioItem',
})
const props = withDefaults(defineProps<{
label: string
value: string
Expand Down
2 changes: 1 addition & 1 deletion ui/title/Label.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
defineOptions({
name: 'TitleLabel',
name: 'LivraisonTitleLabel',
})
const props = withDefaults(defineProps<{
tag?: 'h1' | 'h2'
Expand Down

0 comments on commit b0ad227

Please sign in to comment.