Use overflow helper for text-only displays

This commit is contained in:
rijkvanzanten
2021-02-12 16:48:40 -05:00
parent 1a231ed74f
commit e3b39f211f

View File

@@ -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}`"