|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<!-- 图片视图 -->
|
|
|
<div class="pic">
|
|
|
- <div class="item" style="padding:10px;display: flex;flex-wrap: wrap;">
|
|
|
+ <div class="item">
|
|
|
<el-card shadow="hover" v-for="(item, index) in tableData" style="width:200px;margin:5px" :key="index">
|
|
|
<div slot="header"
|
|
|
style="width: 100%; white-space: nowrap;overflow-x: hidden;text-overflow: ellipsis;font-size:12px;">
|
|
@@ -87,7 +87,26 @@ export default {
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
|
-
|
|
|
+<style lang="scss" scoped>
|
|
|
+.item{
|
|
|
+ padding:10px;
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+}
|
|
|
+ .item:empty{
|
|
|
+ padding: 0;
|
|
|
+ display: block;
|
|
|
+ height: 100%;
|
|
|
+ width: 100%;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 80px;
|
|
|
+ &::after{
|
|
|
+ content: '暂无数据';
|
|
|
+ color: #909399;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+</style>
|
|
|
<style lang="scss">
|
|
|
.pic {
|
|
|
.el-divider {
|