closes #4834 create-worker-module #28
|
@ -45,6 +45,7 @@ const { t } = useI18n();
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="$props.data" class="body q-py-sm">
|
<div v-if="$props.data" class="body q-py-sm">
|
||||||
|
<slot name="before" />
|
||||||
<q-list>
|
<q-list>
|
||||||
<q-item-label header class="ellipsis text-h5" :lines="1">
|
<q-item-label header class="ellipsis text-h5" :lines="1">
|
||||||
{{ $props.description }}
|
{{ $props.description }}
|
||||||
|
@ -55,6 +56,7 @@ const { t } = useI18n();
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
<slot name="body" />
|
<slot name="body" />
|
||||||
|
<slot name="after" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Skeleton -->
|
<!-- Skeleton -->
|
||||||
|
|
|
@ -75,9 +75,11 @@ function getWorkerAvatar() {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<card-descriptor v-if="worker" module="Worker" :data="worker" :description="worker.user.nickname">
|
<card-descriptor v-if="worker" module="Worker" :data="worker" :description="worker.user.name">
|
||||||
<template #body>
|
<template #before>
|
||||||
<q-img :src="getWorkerAvatar()" class="q-mb-md" />
|
<q-img :src="getWorkerAvatar()" class="q-mb-md" />
|
||||||
|
</template>
|
||||||
|
<template #body>
|
||||||
<q-list>
|
<q-list>
|
||||||
<q-item>
|
<q-item>
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
|
|
Loading…
Reference in New Issue