图片样式修改
This commit is contained in:
parent
709d9203a9
commit
d8edf7034d
@ -41,7 +41,7 @@
|
|||||||
添加图片
|
添加图片
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%" class="custom-table">
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column prop="name" label="图片名称" show-overflow-tooltip width="180px"></el-table-column>
|
<el-table-column prop="name" label="图片名称" show-overflow-tooltip width="180px"></el-table-column>
|
||||||
<el-table-column label="素材" width="300px" align="center">
|
<el-table-column label="素材" width="300px" align="center">
|
||||||
@ -572,12 +572,20 @@ onMounted(() => {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
.el-table {
|
.el-table {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
width: 100%;
|
||||||
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
::v-deep .el-table__body{
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
::v-deep .el-image {
|
::v-deep .el-image {
|
||||||
width: 250px; // 固定图片宽度
|
width: 250px; // 固定图片宽度
|
||||||
height: 150px; // 固定图片高度
|
height: 150px; // 固定图片高度
|
||||||
|
Loading…
Reference in New Issue
Block a user