fix: 拖拽样式修改

This commit is contained in:
gx 2021-04-21 22:24:59 +08:00
parent cc5f98d777
commit cd492b9fee
5 changed files with 31 additions and 24 deletions

22
dist/demo.css vendored
View File

@ -94,28 +94,30 @@
opacity: 0.8;
position: relative; }
.u-tree li.drag-over-gap-top > a[draggable] {
border-top: 2px #108ee9 solid;
position: relative; }
border-top: 22x #108ee9 solid;
position: relative;
border-radius: 0; }
.u-tree li.drag-over-gap-top > a[draggable]::before {
position: absolute;
top: -6px;
left: -7px;
left: -8px;
content: ' ';
width: 8px;
height: 8px;
width: 10px;
height: 10px;
border: 2px solid #108ee9;
border-radius: 99px;
opacity: 1; }
.u-tree li.drag-over-gap-bottom > a[draggable] {
border-bottom: 2px #108ee9 solid;
position: relative; }
position: relative;
border-radius: 0; }
.u-tree li.drag-over-gap-bottom > a[draggable]::before {
position: absolute;
bottom: -5px;
left: -6px;
bottom: -6px;
left: -8px;
content: ' ';
width: 8px;
height: 8px;
width: 10px;
height: 10px;
border: 2px solid #108ee9;
border-radius: 99px;
opacity: 1; }

2
dist/demo.css.map vendored

File diff suppressed because one or more lines are too long

13
dist/demo.js vendored
View File

@ -40584,7 +40584,7 @@
var targetDom = e.target;
// 如果当前tree节点不包括上一个焦点节点会触发此方法
if (this.tree == targetDom && !this.isIn && !this.tree.contains(e.relatedTarget)) {
if (this.tree == targetDom && !this.tree.contains(e.relatedTarget)) {
var _props4 = this.props,
onFocus = _props4.onFocus,
children = _props4.children;
@ -40618,13 +40618,14 @@
};
Tree.prototype.onUlMouseEnter = function onUlMouseEnter(e) {
this.isIn = true;
// this.isIn = true;
// console.log('onUlMouseEnter----isIn-----',this.isIn);
};
Tree.prototype.onUlMouseLeave = function onUlMouseLeave(e) {
this.isIn = false;
// this.isIn = false;
// console.log('onUlMouseLeave----isIn-----',this.isIn);
};
Tree.prototype.getFilterExpandedKeys = function getFilterExpandedKeys(props, expandKeyProp, expandAll) {
@ -41044,7 +41045,7 @@
_this8.hasCalculateRowHeight = true;
var rowHeight = treenodes.getBoundingClientRect().height;
_this8.store.setState({
rowHeight: rowHeight
rowHeight: rowHeight || 24
});
};
@ -41992,7 +41993,9 @@
}
levelObj[posLen].push(item);
});
var levelArr = Object.keys(levelObj).sort();
var levelArr = Object.keys(levelObj).sort(function (a, b) {
return +a > +b;
});
var _loop = function _loop(i) {
if (levelArr[i + 1]) {

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -140,13 +140,14 @@ $treePrefixCls : "u-tree";
li.drag-over-gap-top > a[draggable] {
border-top: 2px #108ee9 solid;
position: relative;
border-radius: 0;
&::before {
position: absolute;
top: -6px;
left: -7px;
left: -8px;
content: ' ';
width: 8px;
height: 8px;
width: 10px;
height: 10px;
border: 2px solid #108ee9;
border-radius: 99px;
opacity: 1;
@ -155,13 +156,14 @@ $treePrefixCls : "u-tree";
li.drag-over-gap-bottom > a[draggable] {
border-bottom: 2px #108ee9 solid;
position: relative;
border-radius: 0;
&::before {
position: absolute;
bottom: -5px;
left: -6px;
bottom: -6px;
left: -8px;
content: ' ';
width: 8px;
height: 8px;
width: 10px;
height: 10px;
border: 2px solid #108ee9;
border-radius: 99px;
opacity: 1;