UNPKG

ten-design-vue

Version:

ten-vue

119 lines (118 loc) 2.37 kB
/* dependencies icon,checkbox */ /** * 文字部分 * size 大小,line 行高, color 颜色 */ /* button */ /* input */ /* transfer */ /* alert */ /* menu */ /* message */ /* modal */ /* badge */ /* tag */ /* progress */ /* popup */ /* tooltip */ /* loading */ /* tabs */ /* check */ /* mention */ /* popup */ /* steps */ /* tabs */ /* modal */ /* form */ /* table */ /* pagination */ /* upload */ /* collapse */ /* anchor */ /* list */ .ten-tree { background: #fff; } .ten-tree .ten-tree-node__content { display: flex; position: relative; align-items: center; line-height: 40px; padding-left: 28px; background: #fff; cursor: pointer; } .ten-tree .ten-tree-node__content:hover, .ten-tree .ten-tree-node__content--selected:not([class*='showcheckbox']):not([class*='parentselected']) { background: #e8f1ff; } .ten-tree .ten-tree-node__content--disabled { color: #c0c0c0; } .ten-tree .ten-tree-node__content::after { content: ''; display: none; position: absolute; left: 0; width: 100%; height: 4px; background: #cfe1ff; } .ten-tree .ten-tree-node__content--dragpos-center { background-color: #cfe1ff; } .ten-tree .ten-tree-node__content--dragpos-top::after { display: block; top: -2px; } .ten-tree .ten-tree-node__content--dragpos-bottom::after { display: block; bottom: -2px; } .ten-tree .ten-tree-node__content--disabled .ten-tree-node__expand { color: #c0c0c0; } .ten-tree .ten-tree-node__expand { position: absolute; top: 8px; left: 0; display: inline-block; width: 24px; height: 24px; color: #999; } .ten-tree .ten-tree-node__expand i { position: relative; top: 5px; left: 5px; display: block; width: 14px; height: 14px; font-size: 14px; } .ten-tree .ten-tree-node__expand .ten-icon--carret_right { transition: -webkit-transform 0.2s; transition: transform 0.2s; transition: transform 0.2s, -webkit-transform 0.2s; } .ten-tree .ten-tree-node__expand--expanded .ten-icon--carret_right { -webkit-transform: rotate(90deg); transform: rotate(90deg); } .ten-tree .ten-tree-node__expand--children { cursor: pointer; } .ten-tree .ten-tree-node__checkbox { margin-right: 8px; } .ten-tree .ten-tree-node__children { padding-left: 30px; } .ten-tree--uninitialized * { transition: none!important; } .ten-treeselect { background: #fff; max-height: 400px; overflow-y: auto; }