mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Use overflow helper for text-only displays
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
<template>
|
||||
<value-null v-if="value === null || value === undefined" />
|
||||
<span v-else-if="displayInfo === null" class="display">{{ value }}</span>
|
||||
<span v-else-if="typeof displayInfo.handler === 'function'" class="display">
|
||||
{{ displayInfo.handler(value, options, { type }) }}
|
||||
</span>
|
||||
<v-text-overflow v-else-if="displayInfo === null" class="display" :text="value" />
|
||||
<v-text-overflow
|
||||
v-else-if="typeof displayInfo.handler === 'function'"
|
||||
class="display"
|
||||
:text="displayInfo.handler(value, options, { type })"
|
||||
/>
|
||||
<component
|
||||
v-else
|
||||
:is="`display-${display}`"
|
||||
|
||||
Reference in New Issue
Block a user