|
|
|
@ -26,8 +26,7 @@ await loadRelatedTableMeta()
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
|
<div class="d-flex d-100 chips-wrapper"> |
|
|
|
|
<div class="flex align-center gap-1 w-full chips-wrapper group"> |
|
|
|
|
<div class="flex align-center gap-1 w-full h-full chips-wrapper"> |
|
|
|
|
<!-- <template v-if="!isForm"> --> |
|
|
|
|
<div class="chips flex align-center img-container flex-grow hm-items flex-nowrap min-w-0 overflow-hidden"> |
|
|
|
|
<template v-if="value"> |
|
|
|
@ -43,14 +42,21 @@ await loadRelatedTableMeta()
|
|
|
|
|
<span v-if="value?.length === 10" class="caption pointer ml-1 grey--text" @click="childListDlg = true">more... </span> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="flex-1"/> |
|
|
|
|
<MdiExpandIcon |
|
|
|
|
class="hidden group-hover:inline w-[20px] text-gray-500/50 hover:text-gray-500" |
|
|
|
|
class="nc-action-icon text-gray-500/50 hover:text-gray-500" |
|
|
|
|
@click="childListDlg = true" |
|
|
|
|
/> |
|
|
|
|
<MdiPlusIcon class="hidden group-hover:inline w-[20px] text-gray-500/50 hover:text-gray-500" @click="listItemsDlg = true" /> |
|
|
|
|
<MdiPlusIcon class="nc-action-icon w-[20px] text-gray-500/50 hover:text-gray-500" @click="listItemsDlg = true" /> |
|
|
|
|
<ListItems v-model="listItemsDlg" /> |
|
|
|
|
<ListChildItems v-model="childListDlg" /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<style scoped> |
|
|
|
|
.nc-action-icon{ |
|
|
|
|
@apply hidden |
|
|
|
|
} |
|
|
|
|
.chips-wrapper:hover .nc-action-icon { |
|
|
|
|
@apply inline-block |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|