-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for null value, update theme and update placeholder…
… data
- Loading branch information
1 parent
31f00be
commit 8a970e9
Showing
9 changed files
with
2,611 additions
and
709 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
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,29 @@ | ||
<template> | ||
<div | ||
:class="[ | ||
twMerge( | ||
'vsc-relative vsc-inset-0 vsc-break-words vsc-py-2 vsc-px-2 vsc-text-[#569cd6]', | ||
truncate && 'vsc-whitespace-nowrap vsc-text-ellipsis vsc-overflow-hidden', | ||
props.class, | ||
), | ||
]" | ||
:title="text" | ||
> | ||
<slot> | ||
<span v-html="text" /> | ||
<div v-if="isSearchMatch" class="vsc-absolute vsc-inset-0 vsc-bg-yellow-400/5" /> | ||
</slot> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { defineProps, HTMLAttributes } from 'vue' | ||
import { twMerge } from '../../utils/tailwind-merge.utils' | ||
const props = defineProps<{ | ||
truncate?: boolean | ||
text?: string | ||
isSearchMatch?: boolean | ||
class?: HTMLAttributes['class'] | ||
}>() | ||
</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
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.