多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
417 B

<script setup lang="ts">
const props = defineProps<{
value?: string | number | null
lines?: number
}>()
</script>
<template>
<div
:style="{
'display': '-webkit-box',
'max-width': '100%',
'-webkit-line-clamp': props.lines || 1,
'-webkit-box-orient': 'vertical',
'overflow': 'hidden',
'word-break': 'break-all',
}"
>
{{ props.value || '' }}
</div>
</template>