|
|
@ -33,6 +33,8 @@ const active = inject(ActiveCellInj)! |
|
|
|
|
|
|
|
|
|
|
|
const readonly = inject(ReadonlyInj, false) |
|
|
|
const readonly = inject(ReadonlyInj, false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isLocked = inject(IsLockedInj) |
|
|
|
|
|
|
|
|
|
|
|
const listItemsDlg = ref(false) |
|
|
|
const listItemsDlg = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const { state, isNew, removeLTARRef } = useSmartsheetRowStoreOrThrow() |
|
|
|
const { state, isNew, removeLTARRef } = useSmartsheetRowStoreOrThrow() |
|
|
@ -72,7 +74,7 @@ const unlinkRef = async (rec: Record<string, any>) => { |
|
|
|
<ItemChip :item="value" :value="value[relatedTablePrimaryValueProp]" @unlink="unlinkRef(value)" /> |
|
|
|
<ItemChip :item="value" :value="value[relatedTablePrimaryValueProp]" @unlink="unlinkRef(value)" /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="!readonly" class="flex-1 flex justify-end gap-1 min-h-[30px] align-center"> |
|
|
|
<div v-if="!readonly || !isLocked" class="flex-1 flex justify-end gap-1 min-h-[30px] align-center"> |
|
|
|
<component |
|
|
|
<component |
|
|
|
:is="addIcon" |
|
|
|
:is="addIcon" |
|
|
|
class="text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 select-none group-hover:(text-gray-500) nc-plus" |
|
|
|
class="text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 select-none group-hover:(text-gray-500) nc-plus" |
|
|
|