@ucloud-fe/react-components 1.3.11 → 1.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,7 +23,7 @@ declare const DragContext: React.Context<{
|
|
|
23
23
|
onDrop: (e: any) => void;
|
|
24
24
|
} | undefined;
|
|
25
25
|
}>;
|
|
26
|
-
declare const DragWrap: ({ children, draggable, ...events }: {
|
|
26
|
+
declare const DragWrap: React.MemoExoticComponent<({ children, draggable, ...events }: {
|
|
27
27
|
onDragStart?: ((source: Element) => void) | undefined;
|
|
28
28
|
onDragEnter?: ((source: Element, target: Element) => void) | undefined;
|
|
29
29
|
onDragOver?: ((source: Element, target: Element) => void) | undefined;
|
|
@@ -37,6 +37,6 @@ declare const DragWrap: ({ children, draggable, ...events }: {
|
|
|
37
37
|
} & {
|
|
38
38
|
children: ReactNode;
|
|
39
39
|
draggable: boolean;
|
|
40
|
-
}) => JSX.Element
|
|
40
|
+
}) => JSX.Element>;
|
|
41
41
|
export { DragContext };
|
|
42
42
|
export default DragWrap;
|
|
@@ -36,7 +36,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
36
36
|
var DragContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
37
37
|
exports.DragContext = DragContext;
|
|
38
38
|
|
|
39
|
-
var DragWrap = function
|
|
39
|
+
var DragWrap = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
40
40
|
(0, _newArrowCheck2.default)(this, _this);
|
|
41
41
|
var children = _ref.children,
|
|
42
42
|
draggable = _ref.draggable,
|
|
@@ -58,7 +58,7 @@ var DragWrap = function DragWrap(_ref) {
|
|
|
58
58
|
draggable: draggable
|
|
59
59
|
}
|
|
60
60
|
}, children);
|
|
61
|
-
}.bind(void 0);
|
|
61
|
+
}.bind(void 0));
|
|
62
62
|
|
|
63
63
|
var _default = DragWrap;
|
|
64
64
|
exports.default = _default;
|