-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #782 from abulte/fix/tag-no-icon-warn
fix(DsfrTag): corrige le tag sans icone et ajoute une démo
- Loading branch information
Showing
4 changed files
with
34 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script lang="ts" setup> | ||
import DsfrTag from '../../src/components/DsfrTag/DsfrTag.vue' | ||
import DsfrTags from '../../src/components/DsfrTag/DsfrTags.vue' | ||
const tags = [ | ||
{ | ||
icon: undefined, | ||
label: 'Elément 1 de la liste de tags' | ||
}, | ||
{ | ||
icon: 'ri-notification-3-line', | ||
label: 'Elément 2 de la liste de tags' | ||
} | ||
] | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<DsfrTag label="Bonjour VueDsfr !" /> | ||
</div> | ||
<div class="fr-mt-2w"> | ||
<DsfrTag label="Vue Power" icon="ri-notification-3-line" /> | ||
</div> | ||
<div class="fr-mt-2w"> | ||
<DsfrTags :tags="tags" /> | ||
</div> | ||
</template> |
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