[backend] fix: 修复异常处理和类型转换问题

This commit is contained in:
xsl
2026-01-26 11:53:40 +08:00
parent 7ccc2a6ac6
commit 83e05bf85f
28639 changed files with 2506458 additions and 93 deletions
+34
View File
@@ -0,0 +1,34 @@
import React from 'react';
var DropIndicator = function DropIndicator(props) {
var dropPosition = props.dropPosition,
dropLevelOffset = props.dropLevelOffset,
indent = props.indent;
var 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;