fix: update to fix type issues (#151)

This commit is contained in:
Daniel Roe
2023-05-04 16:24:22 +01:00
committed by GitHub
parent b55a7c58f6
commit 11e00a10e4
6 changed files with 41 additions and 40 deletions

View File

@@ -28,7 +28,7 @@
</span>
<slot name="label">
<span v-if="modelValue" class="block truncate">{{ typeof modelValue === 'string' ? modelValue : (modelValue as any)[optionAttribute] }}</span>
<span v-if="modelValue" class="block truncate">{{ typeof modelValue === 'string' ? modelValue : modelValue[optionAttribute] }}</span>
<span v-else class="block truncate text-gray-400 dark:text-gray-500">{{ placeholder || '&nbsp;' }}</span>
</slot>