.custom-tree-box {
|
position: relative;
|
background: #ffffff;
|
background-position: center center;
|
background-repeat: no-repeat;
|
background-size: cover;
|
min-height: 50px;
|
--mk-tree-line-height: 24px;
|
|
.tree-header {
|
position: relative;
|
height: 45px;
|
padding-right: 8px;
|
border-bottom: 1px solid #e8e8e8;
|
overflow: hidden;
|
letter-spacing: 0px;
|
|
.title {
|
text-decoration: inherit;
|
font-weight: inherit;
|
font-style: inherit;
|
font-family: inherit;
|
float: left;
|
line-height: 45px;
|
margin-left: 10px;
|
position: relative;
|
z-index: 1;
|
}
|
.title.search-unable {
|
display: block;
|
float: none;
|
}
|
.ant-input-search.ant-input-affix-wrapper {
|
width: 50%;
|
max-width: 150px;
|
margin-top: 6px;
|
float: right;
|
height: 30px;
|
border-radius: 20px;
|
border: 1px solid #d9d9d9;
|
opacity: 0.6;
|
input {
|
border: none;
|
border-radius: 20px;
|
height: 28px;
|
}
|
}
|
}
|
.ant-tree-title {
|
.button-list.toolbar-button {
|
position: absolute;
|
right: 0px;
|
top: 0px;
|
padding: 0px;
|
min-height: 24px;
|
height: var(--mk-tree-line-height);
|
|
button {
|
min-width: 20px;
|
margin-bottom: 0px !important;
|
min-height: 24px;
|
border-width: 0px;
|
vertical-align: middle;
|
}
|
}
|
}
|
.ant-tree-node-content-wrapper {
|
.button-list.toolbar-button {
|
opacity: 0;
|
transition: all 0.3s;
|
}
|
}
|
.ant-tree-node-content-wrapper:hover {
|
.button-list.toolbar-button {
|
opacity: 1;
|
}
|
}
|
.ant-tree li .ant-tree-node-content-wrapper, .ant-tree li span.ant-tree-switcher, .ant-tree li span.ant-tree-iconEle {
|
height: var(--mk-tree-line-height);
|
line-height: var(--mk-tree-line-height);
|
}
|
.tree-box {
|
overflow: auto;
|
padding-bottom: 10px;
|
|
.ant-tree-node-content-wrapper-close > span > span > .anticon-folder-open {
|
display: none;
|
}
|
.ant-tree-node-content-wrapper-open > span > span > .anticon-folder {
|
display: none;
|
}
|
.ant-tree-node-content-wrapper {
|
position: relative;
|
.anticon-more {
|
position: absolute;
|
right: 0px;
|
padding: 5px 10px;
|
color: var(--mk-sys-color);
|
height: var(--mk-tree-line-height);
|
line-height: var(--mk-tree-line-height);
|
}
|
}
|
}
|
|
.tree-box::-webkit-scrollbar {
|
width: 7px;
|
}
|
.tree-box::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
|
background: rgba(0, 0, 0, 0.13);
|
}
|
.tree-box::-webkit-scrollbar-track {/*滚动条里面轨道*/
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 5px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
.ant-empty {
|
position: absolute;
|
top: calc(50% - 34px);
|
left: calc(50% - 92px);
|
|
.ant-empty-image {
|
height: 60px;
|
}
|
}
|
.tree-header + .ant-empty {
|
position: static;
|
margin-top: 20px;
|
}
|
.loading-mask {
|
position: absolute;
|
left: 0px;
|
top: 0;
|
right: 0px;
|
bottom: 0px;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
text-align: justify;
|
z-index: 1;
|
|
.ant-spin-blur {
|
position: absolute;
|
width: 100%;
|
height: 100%;
|
opacity: 0.5;
|
background: #ffffff;
|
}
|
}
|
}
|
|
.mk-tree-dropdown-wrap {
|
box-shadow: 0 0 2px #bcbcbc;
|
background: #ffffff;
|
min-width: 100px;
|
.button-list.toolbar-button {
|
padding: 0px;
|
min-height: 36px;
|
button {
|
display: block;
|
margin: 0!important;
|
width: 100%;
|
border-radius: 0px;
|
border: 0px !important;
|
// color: rgba(0, 0, 0, 0.85)!important;
|
// background: transparent !important;
|
min-height: 36px;
|
}
|
button:not(:last-child) {
|
border-bottom: 1px solid #d8d8d8 !important;
|
}
|
}
|
}
|