not display text after title when afterField not set

This commit is contained in:
MaysWind
2025-03-08 22:43:18 +08:00
parent 7c6a3081ee
commit 56b1e1f565
@@ -14,7 +14,7 @@
<f7-list-item link="#" no-chevron
:title="ti((titleField ? (item as Record<string, unknown>)[titleField] : item) as string, !!titleI18n)"
:value="getItemValue(item, index, valueField, valueType)"
:after="ti((afterField ? (item as Record<string, unknown>)[afterField] : item) as string, !!afterI18n)"
:after="ti((afterField ? (item as Record<string, unknown>)[afterField] : '') as string, !!afterI18n)"
:class="{ 'list-item-selected': isSelected(item, index) }"
:key="getItemValue(item, index, keyField, valueType)"
v-for="(item, index) in items"
@@ -46,7 +46,7 @@ const props = defineProps<{
valueField?: string; // for value type == item
titleField: string;
titleI18n?: boolean;
afterField: string;
afterField?: string;
afterI18n?: boolean;
iconField?: string;
iconType?: string;