feat: governance card refactor

This commit is contained in:
Alisa | Side.one 2023-05-06 15:48:50 +08:00
parent 4328b9e86e
commit 95ff1caed1

View File

@ -189,13 +189,6 @@ const processList = computed(()=>{
<!-- lg:flex-[2_2_0%] --> <!-- lg:flex-[2_2_0%] -->
<div class="h-max bg-base-100 px-4 pt-3 pb-4 rounded shadow lg:col-span-2"> <div class="h-max bg-base-100 px-4 pt-3 pb-4 rounded shadow lg:col-span-2">
<h2 class="card-title">Timeline</h2> <h2 class="card-title">Timeline</h2>
<!-- <ul class="steps steps-vertical">
<li data-content="" class="step step-neutral">Step 1</li>
<li data-content="" class="step step-neutral">Step 1</li>
<li data-content="" class="step step-neutral">Step 1</li>
<li data-content="" class="step step-neutral">Step 1</li>
</ul> -->
<VTimeline <VTimeline
class="mt-2" class="mt-2"
side="end" side="end"
@ -298,7 +291,19 @@ const processList = computed(()=>{
</div> </div>
</div> </div>
<VCard> <div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow">
<h2 class="card-title">Votes</h2>
<table class="table w-full ">
<tbody>
<tr v-for="(item,index) of votes" :key="index">
<td>{{ item.voter }}</td>
<td>{{ item.option }}</td>
</tr>
</tbody>
</table>
<VBtn v-if="votePage.next_key" block variant="outlined" @click="loadMore()" :disabled="loading">Load more</VBtn>
</div>
<!-- <VCard>
<VCardItem> <VCardItem>
<VCardTitle> <VCardTitle>
Votes Votes
@ -313,6 +318,6 @@ const processList = computed(()=>{
</VTable> </VTable>
<VBtn v-if="votePage.next_key" block variant="outlined" @click="loadMore()" :disabled="loading">Load more</VBtn> <VBtn v-if="votePage.next_key" block variant="outlined" @click="loadMore()" :disabled="loading">Load more</VBtn>
</VCardItem> </VCardItem>
</VCard> </VCard> -->
</div> </div>
</template> </template>