mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 21:56:12 +08:00
22 lines
508 B
Vue
22 lines
508 B
Vue
|
<template>
|
||
|
<a :href="params.data.urls.show"
|
||
|
class="flex items-center gap-1 hover:no-underline"
|
||
|
:class="{
|
||
|
'pointer-events-none text-sn-grey': !params.data.urls.show
|
||
|
}"
|
||
|
:title="params.data.name">
|
||
|
<i v-if="params.data.folder" class="sn-icon mini sn-icon-mini-folder-left"></i>
|
||
|
<span class="truncate">{{ params.data.name }}</span>
|
||
|
</a>
|
||
|
</template>
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'NameRenderer',
|
||
|
props: {
|
||
|
params: {
|
||
|
required: true
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
</script>
|