2023-12-07 03:53:11 +08:00
|
|
|
<template>
|
|
|
|
<div class="relative leading-5 h-full flex items-center gap-2 truncate">
|
2024-01-23 22:20:12 +08:00
|
|
|
<div class="h-10 w-10 p-0.5 bg-sn-light-grey rounded-sm shrink-0 relative">
|
|
|
|
<div v-if="imageLoading" class="flex absolute top-0 items-center justify-center w-full flex-grow h-full z-10">
|
|
|
|
<img src="/images/medium/loading.svg" alt="Loading" class="w-4 h-4" />
|
|
|
|
</div>
|
|
|
|
<img v-else :src="workflow_img" class="max-h-9 max-w-[36px]">
|
2023-12-07 03:53:11 +08:00
|
|
|
</div>
|
2024-03-01 00:15:24 +08:00
|
|
|
<a :href="params.data.urls.show" class="hover:no-underline truncate"
|
|
|
|
:title="params.data.name">
|
|
|
|
{{ params.data.name }}
|
|
|
|
</a>
|
2023-12-07 03:53:11 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-01-23 22:20:12 +08:00
|
|
|
|
|
|
|
import workflowImgMixin from '../workflow_img_mixin.js';
|
|
|
|
|
2023-12-07 03:53:11 +08:00
|
|
|
export default {
|
|
|
|
name: 'NameRenderer',
|
|
|
|
props: {
|
|
|
|
params: {
|
2023-12-12 19:17:38 +08:00
|
|
|
required: true
|
|
|
|
}
|
2024-01-23 22:20:12 +08:00
|
|
|
},
|
|
|
|
mixins: [workflowImgMixin]
|
2023-12-07 03:53:11 +08:00
|
|
|
};
|
|
|
|
</script>
|