mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 22:17:08 +00:00
Merge branch 'develop' into feat/kanban-view
This commit is contained in:
@@ -20,12 +20,14 @@ interface Props {
|
||||
|
||||
const { placement = 'bottom', length = 20 } = defineProps<Props>()
|
||||
|
||||
const text = ref()
|
||||
const text = ref<HTMLDivElement>()
|
||||
|
||||
const enableTooltip = computed(() => text.value?.textContent.length > length)
|
||||
const enableTooltip = computed(() => text.value?.textContent?.length && text.value?.textContent?.length > length)
|
||||
|
||||
const shortName = computed(() =>
|
||||
text.value?.textContent.length > length ? `${text.value?.textContent.substr(0, length - 3)}...` : text.value?.textContent,
|
||||
text.value?.textContent?.length && text.value?.textContent.length > length
|
||||
? `${text.value?.textContent?.substr(0, length - 3)}...`
|
||||
: text.value?.textContent,
|
||||
)
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user