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;
|
gridColumns?: number;
|
||||||
metadata?: { id: string; disabled: boolean };
|
metadata?: { id: string; disabled: boolean };
|
||||||
list: {
|
list: {
|
||||||
|
imageUrl?: string;
|
||||||
id: string;
|
id: string;
|
||||||
type: 'customerLegalEntity' | 'customerNaturalPerson';
|
type: 'customerLegalEntity' | 'customerNaturalPerson';
|
||||||
name: string;
|
name: string;
|
||||||
|
|
@ -54,7 +55,9 @@ defineEmits<{
|
||||||
<div class="row justify-center relative-position">
|
<div class="row justify-center relative-position">
|
||||||
<q-card-section class="q-pt-xl img-decoration">
|
<q-card-section class="q-pt-xl img-decoration">
|
||||||
<q-avatar size="100px">
|
<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-avatar>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -79,7 +82,7 @@ defineEmits<{
|
||||||
class="overflow"
|
class="overflow"
|
||||||
>
|
>
|
||||||
<div class="text-caption app-text-muted-2">
|
<div class="text-caption app-text-muted-2">
|
||||||
{{ d.label }}
|
{{ $t(d.label) }}
|
||||||
</div>
|
</div>
|
||||||
<div>{{ d.value }}</div>
|
<div>{{ d.value }}</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -190,7 +193,9 @@ defineEmits<{
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-card-section class="q-pt-xl img-decoration">
|
<q-card-section class="q-pt-xl img-decoration">
|
||||||
<q-avatar size="50px">
|
<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-avatar>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue