mirror of
https://github.com/baserow/baserow.git
synced 2026-12-06 01:08:32 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
41 lines
874 B
Vue
41 lines
874 B
Vue
<template>
|
|
<div class="array-field__item">
|
|
<div class="array-field__ellipsis">
|
|
<a
|
|
v-if="selected && isValid(value)"
|
|
:href="value && value.url"
|
|
target="_blank"
|
|
rel="nofollow noopener noreferrer"
|
|
class="forced-pointer-events-auto"
|
|
@mousedown.stop
|
|
>
|
|
{{ getLabelOrURL(value) }}
|
|
</a>
|
|
<u v-else-if="isValid(value)">
|
|
{{ getLabelOrURL(value) }}
|
|
</u>
|
|
<template v-else>
|
|
{{ getLabelOrURL(value) }}
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import linkURLField from '@baserow/modules/database/mixins/linkURLField'
|
|
export default {
|
|
name: 'FunctionalFormulaLinkArrayItem',
|
|
mixins: [linkURLField],
|
|
props: {
|
|
value: {
|
|
type: Object,
|
|
default: null,
|
|
},
|
|
selected: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
},
|
|
}
|
|
</script>
|