You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
206 lines
5.7 KiB
Plaintext
206 lines
5.7 KiB
Plaintext
.protectionFacilityContainer {
|
|
width: 100%;
|
|
height: 100%;
|
|
// padding: 20px;
|
|
background-color: #fff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
.searchSection {
|
|
padding: 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
|
|
.leftButtons {
|
|
display: flex;
|
|
gap: 12px;
|
|
|
|
.addButton {
|
|
background-color: #52c41a;
|
|
border-color: #52c41a;
|
|
color: white;
|
|
height: 32px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
|
|
&:hover {
|
|
background-color: #73d13d;
|
|
border-color: #73d13d;
|
|
}
|
|
}
|
|
|
|
.importButton {
|
|
background-color: white;
|
|
border-color: #d9d9d9;
|
|
color: #333;
|
|
height: 32px;
|
|
border-radius: 4px;
|
|
|
|
&:hover {
|
|
border-color: #40a9ff;
|
|
color: #40a9ff;
|
|
}
|
|
}
|
|
}
|
|
|
|
.rightControls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
|
|
.filterLabel {
|
|
color: #333;
|
|
font-size: 14px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.queryButton {
|
|
background-color: #52c41a;
|
|
border-color: #52c41a;
|
|
color: white;
|
|
height: 28px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
&:hover {
|
|
background-color: #73d13d;
|
|
border-color: #73d13d;
|
|
}
|
|
}
|
|
|
|
.selectInput {
|
|
:global {
|
|
.ant-select-selector {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 28px !important;
|
|
}
|
|
|
|
.ant-select-selection-item {
|
|
display: flex;
|
|
align-items: center;
|
|
line-height: 1;
|
|
}
|
|
|
|
.ant-select-selection-placeholder {
|
|
display: flex;
|
|
align-items: center;
|
|
line-height: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.tableSection {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0 20px 0;
|
|
overflow: hidden; // 只设置垂直隐藏
|
|
min-width: 0; // 确保可以收缩
|
|
|
|
:global {
|
|
.ant-spin-nested-loading {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
.ant-spin-container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
.ant-table-wrapper {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.ant-table {
|
|
font-size: 12px;
|
|
|
|
.ant-table-thead > tr > th {
|
|
background-color: #fafafa;
|
|
font-weight: 400;
|
|
color: #000000D9;
|
|
border-right: none;
|
|
text-align: center;
|
|
white-space: nowrap; // 防止换行
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ant-table-tbody > tr > td {
|
|
border-right: none;
|
|
color: #000000D9;
|
|
font-weight: 400;
|
|
text-align: center;
|
|
white-space: nowrap; // 防止换行
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ant-table-tbody > tr:hover > td {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
// 固定列样式
|
|
.ant-table-thead > tr > th.ant-table-cell-fix-left,
|
|
.ant-table-tbody > tr > td.ant-table-cell-fix-left {
|
|
background-color: #fafafa;
|
|
z-index: 1;
|
|
}
|
|
|
|
.ant-table-thead > tr > th.ant-table-cell-fix-right,
|
|
.ant-table-tbody > tr > td.ant-table-cell-fix-right {
|
|
background-color: #fafafa;
|
|
z-index: 1;
|
|
}
|
|
|
|
// 固定列阴影效果
|
|
.ant-table-cell-fix-left {
|
|
// box-shadow: 0px 0 4px 0px #00000040;
|
|
}
|
|
|
|
.ant-table-cell-fix-right {
|
|
// box-shadow: 0px 0 4px 0px #00000040;
|
|
}
|
|
|
|
a {
|
|
color: #1890ff;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: #40a9ff;
|
|
}
|
|
}
|
|
}
|
|
|
|
.ant-pagination {
|
|
text-align: right;
|
|
margin-top: 25px !important;
|
|
}
|
|
}
|
|
}
|
|
}
|