-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add search filters to node library * Fix * Dont close on add * Fix wildcard --------- Co-authored-by: Chenlei Hu <chenlei.hu@mail.utoronto.ca>
- Loading branch information
1 parent
fef9395
commit 968f417
Showing
6 changed files
with
232 additions
and
95 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
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,41 @@ | ||
<template> | ||
<Chip removable @remove="$emit('remove', $event)"> | ||
<Badge size="small" :class="badgeClass"> | ||
{{ badge }} | ||
</Badge> | ||
{{ text }} | ||
</Chip> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import Chip from 'primevue/chip' | ||
import Badge from 'primevue/badge' | ||
export interface SearchFilter { | ||
text: string | ||
badge: string | ||
badgeClass: string | ||
id: string | number | ||
} | ||
defineProps<Omit<SearchFilter, 'id'>>() | ||
defineEmits(['remove']) | ||
</script> | ||
|
||
<style scoped> | ||
:deep(.i-badge) { | ||
@apply bg-green-500 text-white; | ||
} | ||
:deep(.o-badge) { | ||
@apply bg-red-500 text-white; | ||
} | ||
:deep(.c-badge) { | ||
@apply bg-blue-500 text-white; | ||
} | ||
:deep(.s-badge) { | ||
@apply bg-yellow-500; | ||
} | ||
</style> |
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
Oops, something went wrong.