|
@@ -48,13 +48,7 @@
|
|
|
</div>
|
|
|
</ElScrollbar>
|
|
|
</div>
|
|
|
- <el-empty
|
|
|
- class="empty"
|
|
|
- v-if="!listData.length && !loading"
|
|
|
- :image-size="360"
|
|
|
- :image="require('@/img/layout/empty.png')"
|
|
|
- description="暂无搜索结果"
|
|
|
- />
|
|
|
+ <el-empty class="empty" v-if="!listData.length && !loading" :image="require('@/img/layout/empty.png')" description="暂无搜索结果" />
|
|
|
</div>
|
|
|
</navContainer>
|
|
|
</template>
|
|
@@ -272,11 +266,14 @@ function handleClick(id: string) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .empty {
|
|
|
+ &:deep(.empty) {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
left: 50%;
|
|
|
transform: translate(-50%, -50%);
|
|
|
+ .el-empty__image {
|
|
|
+ width: 360px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|