This commit is contained in:
2026-05-25 17:08:18 +08:00
parent df501f6151
commit f1259b71b5
9178 changed files with 1626125 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
import React from 'react';
const DropIndicator = props => {
const {
dropPosition,
dropLevelOffset,
indent
} = props;
const style = {
pointerEvents: 'none',
position: 'absolute',
right: 0,
backgroundColor: 'red',
height: 2
};
switch (dropPosition) {
case -1:
style.top = 0;
style.left = -dropLevelOffset * indent;
break;
case 1:
style.bottom = 0;
style.left = -dropLevelOffset * indent;
break;
case 0:
style.bottom = 0;
style.left = indent;
break;
}
return /*#__PURE__*/React.createElement("div", {
style: style
});
};
if (process.env.NODE_ENV !== 'production') {
DropIndicator.displayName = 'DropIndicator';
}
export default DropIndicator;