feat: governance card
This commit is contained in:
parent
852a8e6c1b
commit
53e6f7dde5
@ -6,7 +6,7 @@ const props = defineProps(["value"]);
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VTable>
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="(v, k) of value">
|
<tr v-for="(v, k) of value">
|
||||||
<td class="text-capitalize" style="max-width: 200px;">{{ k }}</td>
|
<td class="text-capitalize" style="max-width: 200px;">{{ k }}</td>
|
||||||
@ -15,5 +15,5 @@ const props = defineProps(["value"]);
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</VTable>
|
</table>
|
||||||
</template>
|
</template>
|
@ -140,17 +140,26 @@ const abstain = computed(()=> {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4">
|
<div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow">
|
||||||
<h2 class="card-title flex flex-col md:justify-between md:flex-row">
|
<h2 class="card-title flex flex-col md:justify-between md:flex-row">
|
||||||
<p class="truncate w-full">{{ proposal_id }}. {{ proposal.content?.title }} </p>
|
<p class="truncate w-full">{{ proposal_id }}. {{ proposal.content?.title }} </p>
|
||||||
<VChip label :color="color" class="justify-self-end">{{ status }}</VChip>
|
<div
|
||||||
|
class="badge badge-ghost"
|
||||||
|
:class="
|
||||||
|
color === 'success'
|
||||||
|
? 'text-yes'
|
||||||
|
: color === 'error'
|
||||||
|
? 'text-no'
|
||||||
|
: 'text-info'
|
||||||
|
"
|
||||||
|
>{{ status }}</div>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="">
|
<div class="">
|
||||||
<ObjectElement :value="proposal.content"/>
|
<ObjectElement :value="proposal.content"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
{{ proposal_id }}. {{ proposal.content?.title }} <VChip label :color="color" class="float-right">{{ status }}</VChip>
|
{{ proposal_id }}. {{ proposal.content?.title }} <VChip label :color="color" class="float-right">{{ status }}</VChip>
|
||||||
@ -158,7 +167,7 @@ const abstain = computed(()=> {
|
|||||||
<ObjectElement :value="proposal.content"/>
|
<ObjectElement :value="proposal.content"/>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
</VCard>
|
</VCard>
|
||||||
-->
|
|
||||||
<VRow class="my-5">
|
<VRow class="my-5">
|
||||||
<VCol cols=12 md="4">
|
<VCol cols=12 md="4">
|
||||||
<VCard class="h-100">
|
<VCard class="h-100">
|
||||||
|
Loading…
Reference in New Issue
Block a user