feat: รับรูป จาก imageUrl
This commit is contained in:
parent
ab7ac22ce7
commit
159a3d9991
1 changed files with 8 additions and 3 deletions
|
|
@ -12,6 +12,7 @@ withDefaults(
|
|||
gridColumns?: number;
|
||||
metadata?: { id: string; disabled: boolean };
|
||||
list: {
|
||||
imageUrl?: string;
|
||||
id: string;
|
||||
type: 'customerLegalEntity' | 'customerNaturalPerson';
|
||||
name: string;
|
||||
|
|
@ -54,7 +55,9 @@ defineEmits<{
|
|||
<div class="row justify-center relative-position">
|
||||
<q-card-section class="q-pt-xl img-decoration">
|
||||
<q-avatar size="100px">
|
||||
<img src="https://cdn.quasar.dev/img/avatar1.jpg" />
|
||||
<img
|
||||
:src="list.imageUrl ?? 'https://cdn.quasar.dev/img/avatar1.jpg'"
|
||||
/>
|
||||
</q-avatar>
|
||||
</q-card-section>
|
||||
</div>
|
||||
|
|
@ -79,7 +82,7 @@ defineEmits<{
|
|||
class="overflow"
|
||||
>
|
||||
<div class="text-caption app-text-muted-2">
|
||||
{{ d.label }}
|
||||
{{ $t(d.label) }}
|
||||
</div>
|
||||
<div>{{ d.value }}</div>
|
||||
</q-card-section>
|
||||
|
|
@ -190,7 +193,9 @@ defineEmits<{
|
|||
</q-btn>
|
||||
<q-card-section class="q-pt-xl img-decoration">
|
||||
<q-avatar size="50px">
|
||||
<img src="https://cdn.quasar.dev/img/avatar1.jpg" />
|
||||
<img
|
||||
:src="list.imageUrl ?? 'https://cdn.quasar.dev/img/avatar1.jpg'"
|
||||
/>
|
||||
</q-avatar>
|
||||
</q-card-section>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue