fix
This commit is contained in:
@@ -66,7 +66,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="placeholder" ref="placeholderRef" v-show="!loading"></div>
|
||||
<div class="footer" v-if="!finish"><a-spin :delay="0.5" v-show="loading" /></div>
|
||||
<div class="footer" :class="{ null: list.length === 0 }" v-if="!finish">
|
||||
<a-spin :delay="0.5" v-show="loading" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -99,6 +101,7 @@
|
||||
const nameOrId = ref("")
|
||||
const list = ref([])
|
||||
const getList = (isReload = false) => {
|
||||
if (loading.value) return
|
||||
loading.value = true
|
||||
if (isReload) {
|
||||
list.value = []
|
||||
@@ -350,6 +353,9 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
&.null {
|
||||
height: 30rem;
|
||||
}
|
||||
}
|
||||
> .placeholder {
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user