ce877fdf by xukangle

fix

1 parent 8862fa0e
......@@ -346,7 +346,7 @@ const handleWindowResize = () => {
</div>
<div class="table_panel_wrap" :style="{ height: `calc(100% - ${tableToolsHeight + 60}px)` }">
<div class="data-content" v-loading="listDataLoading" :style="{ height: `calc(100% - ${tableToolsHeight}px)` }">
<div class="v-add" @click.stop="handleCreate">
<div class="v-add" @click.stop="handleCreate" v-if="listData.length">
<div class="add-img"></div>
<div class="add-titile">
新增数据产品
......@@ -430,12 +430,13 @@ const handleWindowResize = () => {
</div>
</div>
</div>
</div>
<div v-if="!listData.length" class="card-noData">
<img src="../../assets/images/no-data.png" :style="{ width: '96px', height: '96px' }" />
<span>暂无数据资源目录</span>
</div>
</div>
</div>
<PageNav :class="[pageInfo.type]" :pageInfo="pageInfo" @pageChange="pageChange" />
</div>
......@@ -463,19 +464,9 @@ const handleWindowResize = () => {
.table_panel_wrap {
margin-top: 16px;
}
.data-content {
// height: calc(100% - 44px);
display: flex;
flex-wrap: wrap;
gap: 20px 20px;
align-content: flex-start;
overflow-y: auto;
position: relative;
.card-noData {
height: 100%;
width: 100%;
background: #fafafa;
display: flex;
flex-direction: column;
......@@ -483,7 +474,23 @@ const handleWindowResize = () => {
align-items: center;
color: #909399;
font-size: 14px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.data-content {
// height: calc(100% - 44px);
display: flex;
flex-wrap: wrap;
gap: 20px 20px;
align-content: flex-start;
overflow-y: auto;
.v-add {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!