feat: 优化 rwa-list 组件,调整数据展示逻辑,增加空状态处理
This commit is contained in:
2
components.d.ts
vendored
2
components.d.ts
vendored
@@ -45,7 +45,6 @@ declare module 'vue' {
|
||||
IonProgressBar: typeof import('@ionic/vue')['IonProgressBar']
|
||||
IonRadio: typeof import('@ionic/vue')['IonRadio']
|
||||
IonRadioGroup: typeof import('@ionic/vue')['IonRadioGroup']
|
||||
IonRange: typeof import('@ionic/vue')['IonRange']
|
||||
IonRefresher: typeof import('@ionic/vue')['IonRefresher']
|
||||
IonRefresherContent: typeof import('@ionic/vue')['IonRefresherContent']
|
||||
IonRouterOutlet: typeof import('@ionic/vue')['IonRouterOutlet']
|
||||
@@ -105,7 +104,6 @@ declare global {
|
||||
const IonProgressBar: typeof import('@ionic/vue')['IonProgressBar']
|
||||
const IonRadio: typeof import('@ionic/vue')['IonRadio']
|
||||
const IonRadioGroup: typeof import('@ionic/vue')['IonRadioGroup']
|
||||
const IonRange: typeof import('@ionic/vue')['IonRange']
|
||||
const IonRefresher: typeof import('@ionic/vue')['IonRefresher']
|
||||
const IonRefresherContent: typeof import('@ionic/vue')['IonRefresherContent']
|
||||
const IonRouterOutlet: typeof import('@ionic/vue')['IonRouterOutlet']
|
||||
|
||||
@@ -33,6 +33,10 @@ function gotoTradeRwa(id: string) {
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
<template v-if="data.length === 0">
|
||||
<ui-empty />
|
||||
</template>
|
||||
<template v-else>
|
||||
<div v-for="item in data" :key="item.id" @click="gotoTradeRwa(item.id)">
|
||||
<ion-grid>
|
||||
<ion-row class="ion-align-items-center my-5">
|
||||
@@ -67,6 +71,7 @@ function gotoTradeRwa(id: string) {
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user