Files
2026-09-08 19:49:21 +08:00

88 lines
1.6 KiB
Vue

/**
*Desc:
*Create by: jug
*Create time:2023/11/10/11:07
*/
<template>
<div class="el-descriptions">
<div class="el-descriptions__body">
<slot></slot>
</div>
</div>
</template>
<script>
module.exports = {}
</script>
<style scoped>
.el-descriptions__table {
table-layout: fixed;
!important;
}
.el-descriptions table {
table-layout: auto;
}
.el-descriptions__body table {
border-collapse: collapse;
width: 100%;
table-layout: fixed;
}
.el-descriptions :not(.is-bordered) th, td {
padding-bottom: 12px;
}
.el-descriptions .is-bordered th, td {
border: 1px solid #ebeef5;
padding: 12px 10px;
}
.el-descriptions__body table th, td {
-webkit-box-sizing: border-box;
box-sizing: border-box;
text-align: left;
font-weight: 400;
line-height: 1.5;
}
.el-descriptions__body table th {
font-weight: 400;
color: #909399;
background: #fafafa;
border: 1px solid #ebeef5;
padding: 12px 10px;
min-width: 180px;
}
.el-descriptions__body table td .el-form-item {
margin-bottom: 0;
}
.el-descriptions__body table td .is-required .el-form-item__error {
background: #303133;
color: #fff;
position: absolute;
border-radius: 4px;
padding: 10px;
z-index: 2000;
font-size: 12px;
line-height: 1.2;
min-width: 10px;
word-wrap: break-word;
}
.el-descriptions__body table td .el-table,
.el-descriptions__body table td .el-table .cell,
.el-descriptions__body table td .el-table .el-table__body-wrapper {
overflow: unset;
}
.el-descriptions .el-date-editor.el-input, .el-date-editor.el-input__inner {
width: 100%;
}
</style>