style(types): fix some type statement

This commit is contained in:
无木
2021-08-13 11:13:29 +08:00
parent 1f55c4180f
commit 61d853e6a5
3 changed files with 9 additions and 5 deletions

View File

@@ -11,7 +11,9 @@
:style="{ cursor: isTitleClickable ? 'pointer' : '' }"
:delete="!!item.titleDelete"
:ellipsis="
$props.titleRows > 0 ? { rows: $props.titleRows, tooltip: item.title } : false
$props.titleRows && $props.titleRows > 0
? { rows: $props.titleRows, tooltip: !!item.title }
: false
"
:content="item.title"
/>
@@ -34,8 +36,8 @@
<a-typography-paragraph
style="width: 100%; margin-bottom: 0 !important"
:ellipsis="
$props.descRows > 0
? { rows: $props.descRows, tooltip: item.description }
$props.descRows && $props.descRows > 0
? { rows: $props.descRows, tooltip: !!item.description }
: false
"
:content="item.description"