fix(admin): unblock tailleg inbound planning

This commit is contained in:
2026-08-27 15:56:13 +08:00
parent 00045a9764
commit 690f386bff
16 changed files with 241 additions and 34 deletions
@@ -0,0 +1,30 @@
<script setup lang="ts">
import { computed } from 'vue'
const props = withDefaults(defineProps<{
value?: string | null
emptyText?: string
}>(), { value: null, emptyText: '—' })
const displayValue = computed(() => {
const value = String(props.value ?? '')
return value || props.emptyText
})
const fullTitle = computed(() => displayValue.value === props.emptyText ? undefined : displayValue.value)
</script>
<template>
<span class="order-reference-text" :title="fullTitle">{{ displayValue }}</span>
</template>
<style scoped>
.order-reference-text {
display: inline-block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: bottom;
white-space: nowrap;
}
</style>