2015-08-20 16:55:42 +08:00
|
|
|
@tree-prefix-cls: ant-tree;
|
|
|
|
.antCheckboxFn(@checkbox-prefix-cls: ant-tree-checkbox);
|
2015-08-14 23:28:20 +08:00
|
|
|
@import "../mixins/iconfont";
|
2015-08-19 21:19:11 +08:00
|
|
|
.antTreeSwitcherIcon() {
|
2015-08-14 23:28:20 +08:00
|
|
|
position: relative;
|
|
|
|
&:after {
|
|
|
|
.iconfont-size-under-12px(6px);
|
2015-11-12 22:59:25 +08:00
|
|
|
content: '\e611';
|
2015-08-14 23:28:20 +08:00
|
|
|
display: inline-block;
|
|
|
|
font-family: 'anticon';
|
|
|
|
font-weight: bold;
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
right: 4px;
|
|
|
|
color: #666;
|
2015-08-17 12:17:20 +08:00
|
|
|
transition: transform .3s ease;
|
2015-08-14 23:28:20 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{tree-prefix-cls} {
|
2015-08-16 20:04:42 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 5px;
|
|
|
|
font-size: 12px;
|
2015-08-03 16:07:21 +08:00
|
|
|
li {
|
2015-08-16 20:04:42 +08:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
white-space: nowrap;
|
|
|
|
outline: 0;
|
2015-08-10 20:23:18 +08:00
|
|
|
ul {
|
2015-08-16 20:04:42 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0 0 0 18px;
|
2015-08-03 16:07:21 +08:00
|
|
|
}
|
|
|
|
a {
|
2015-08-10 20:23:18 +08:00
|
|
|
display: inline-block;
|
2015-12-05 13:46:52 +08:00
|
|
|
padding: 1px 4px;
|
|
|
|
border-radius: 2px;
|
2015-08-16 20:04:42 +08:00
|
|
|
margin: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
height: 20px;
|
|
|
|
text-decoration: none;
|
|
|
|
vertical-align: top;
|
2015-08-14 23:28:20 +08:00
|
|
|
color: #666;
|
2015-08-03 16:07:21 +08:00
|
|
|
}
|
2015-08-10 20:23:18 +08:00
|
|
|
span {
|
2015-08-20 16:55:42 +08:00
|
|
|
&.@{tree-prefix-cls}-checkbox {
|
2015-12-05 13:46:52 +08:00
|
|
|
margin: 3px 4px 0 0;
|
2015-08-19 12:18:10 +08:00
|
|
|
}
|
2015-08-24 18:12:07 +08:00
|
|
|
&.@{tree-prefix-cls}-switcher-noop,
|
2015-08-20 16:55:42 +08:00
|
|
|
&.@{tree-prefix-cls}-switcher,
|
|
|
|
&.@{tree-prefix-cls}-iconEle {
|
2015-08-16 20:04:42 +08:00
|
|
|
line-height: 0;
|
|
|
|
margin: 0;
|
|
|
|
width: 16px;
|
2015-11-17 16:13:59 +08:00
|
|
|
height: 18px;
|
2015-08-16 20:04:42 +08:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 0 none;
|
|
|
|
cursor: pointer;
|
|
|
|
outline: none;
|
|
|
|
}
|
2015-10-27 15:47:01 +08:00
|
|
|
&.@{tree-prefix-cls}-icon_loading {
|
|
|
|
&:after {
|
2015-11-12 22:59:25 +08:00
|
|
|
content: '\e6a1';
|
2015-10-27 15:47:01 +08:00
|
|
|
display: inline-block;
|
|
|
|
font-family: 'anticon';
|
|
|
|
font-weight: bold;
|
|
|
|
.animation(loadingCircle 1s infinite linear);
|
2015-11-26 19:32:55 +08:00
|
|
|
margin-top: 8px;
|
2015-10-27 15:47:01 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-20 16:55:42 +08:00
|
|
|
&.@{tree-prefix-cls}-switcher {
|
2015-08-16 20:04:42 +08:00
|
|
|
&-disabled {
|
|
|
|
background: #fff;
|
|
|
|
position: relative;
|
|
|
|
&:after {
|
|
|
|
content: '-';
|
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
|
|
|
left: 6px;
|
|
|
|
color: gray;
|
2015-08-14 23:28:20 +08:00
|
|
|
}
|
2015-08-10 20:23:18 +08:00
|
|
|
}
|
2015-08-20 16:55:42 +08:00
|
|
|
&.@{tree-prefix-cls}-roots_open,
|
|
|
|
&.@{tree-prefix-cls}-center_open,
|
|
|
|
&.@{tree-prefix-cls}-bottom_open,
|
|
|
|
&.@{tree-prefix-cls}-noline_open {
|
2015-08-19 21:19:11 +08:00
|
|
|
.antTreeSwitcherIcon();
|
2015-08-16 20:04:42 +08:00
|
|
|
}
|
2015-08-20 16:55:42 +08:00
|
|
|
&.@{tree-prefix-cls}-roots_close,
|
|
|
|
&.@{tree-prefix-cls}-center_close,
|
|
|
|
&.@{tree-prefix-cls}-bottom_close,
|
|
|
|
&.@{tree-prefix-cls}-noline_close {
|
2015-08-19 21:19:11 +08:00
|
|
|
.antTreeSwitcherIcon();
|
2015-11-14 00:21:12 +08:00
|
|
|
.ie-rotate(3);
|
2015-08-16 20:04:42 +08:00
|
|
|
&:after {
|
2015-11-14 00:21:12 +08:00
|
|
|
transform: rotate(270deg) scale(0.5);
|
2015-08-10 20:23:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-08-03 16:07:21 +08:00
|
|
|
}
|
2015-08-10 20:23:18 +08:00
|
|
|
}
|
2015-08-24 18:12:07 +08:00
|
|
|
&-child-tree {
|
|
|
|
display: none;
|
|
|
|
&-open {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2015-08-10 20:23:18 +08:00
|
|
|
&-treenode-disabled {
|
2015-08-16 20:04:42 +08:00
|
|
|
>span,
|
|
|
|
>a {
|
2015-08-10 20:23:18 +08:00
|
|
|
color: gray;
|
2015-08-03 16:07:21 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-24 20:21:06 +08:00
|
|
|
&-node-selected {
|
|
|
|
background-color: tint(@primary-color, 90%);
|
|
|
|
}
|
2015-08-03 16:07:21 +08:00
|
|
|
&-icon__open {
|
|
|
|
margin-right: 2px;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
&-icon__close {
|
|
|
|
margin-right: 2px;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
2015-08-10 20:23:18 +08:00
|
|
|
}
|