2021-01-29 11:18:22 +03:00
|
|
|
<template lang="pug">
|
2021-04-30 16:05:39 +03:00
|
|
|
tr
|
2021-01-29 11:18:22 +03:00
|
|
|
th {{ label }}
|
|
|
|
td
|
2021-04-30 16:05:39 +03:00
|
|
|
a(v-for="link in links" :href="link.url" download) {{ link.value }}
|
2021-01-29 11:18:22 +03:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2021-04-30 16:05:39 +03:00
|
|
|
name: 'VTrMultiLink',
|
2021-01-29 11:18:22 +03:00
|
|
|
|
|
|
|
props: {
|
2021-04-30 16:05:39 +03:00
|
|
|
links: {
|
2021-01-29 11:18:22 +03:00
|
|
|
required: true,
|
2021-04-30 16:05:39 +03:00
|
|
|
type: Array
|
2021-01-29 11:18:22 +03:00
|
|
|
},
|
|
|
|
label: {
|
|
|
|
required: true,
|
|
|
|
type: String
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
showAll: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
tr {
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
th {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2021-04-30 16:05:39 +03:00
|
|
|
td > a {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2021-01-29 11:18:22 +03:00
|
|
|
</style>
|