ronds-metadata 1.1.18 → 1.1.19
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.
@@ -3,7 +3,7 @@ import React from "react";
|
|
3
3
|
/*
|
4
4
|
* @Author: wangxian
|
5
5
|
* @Date: 2022-05-26 08:50:06
|
6
|
-
* @LastEditTime: 2022-
|
6
|
+
* @LastEditTime: 2022-06-25 10:32:57
|
7
7
|
*/
|
8
8
|
import { DragSource } from 'react-dnd';
|
9
9
|
import { GlobalOutlined } from '@ant-design/icons';
|
@@ -16,7 +16,10 @@ var InnerNodeTitle = function InnerNodeTitle(props) {
|
|
16
16
|
connectDragPreview = props.connectDragPreview,
|
17
17
|
connectDragSource = props.connectDragSource;
|
18
18
|
return /*#__PURE__*/React.createElement("div", null, connectDragPreview(connectDragSource( /*#__PURE__*/React.createElement("div", {
|
19
|
-
className: "node-element"
|
19
|
+
className: "node-element",
|
20
|
+
style: {
|
21
|
+
width: '100% !important'
|
22
|
+
}
|
20
23
|
}, /*#__PURE__*/React.createElement("div", {
|
21
24
|
className: "icon"
|
22
25
|
}, (data === null || data === void 0 ? void 0 : data.icon) ? /*#__PURE__*/React.createElement(Icon, {
|
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
3
|
/*
|
4
4
|
* @Author: wangxian
|
5
5
|
* @Date: 2022-06-24 08:44:41
|
6
|
-
* @LastEditTime: 2022-06-24
|
6
|
+
* @LastEditTime: 2022-06-24 16:25:38
|
7
7
|
*/
|
8
8
|
import React from 'react';
|
9
9
|
|
@@ -37,13 +37,11 @@ export default function useSyncScroll(_ref) {
|
|
37
37
|
var target = _ref2.target;
|
38
38
|
|
39
39
|
if (locksRef.current > 0) {
|
40
|
-
locksRef.current -= 1;
|
41
|
-
|
40
|
+
locksRef.current -= 1;
|
42
41
|
return;
|
43
42
|
}
|
44
43
|
|
45
|
-
locksRef.current = refsRef.current.length - 1;
|
46
|
-
|
44
|
+
locksRef.current = refsRef.current.length - 1;
|
47
45
|
var others = refsRef.current.filter(function (ref) {
|
48
46
|
return ref !== target;
|
49
47
|
});
|
@@ -78,13 +76,11 @@ export function useSyncScrollByRefs(refsRef, _ref3) {
|
|
78
76
|
var target = _ref4.target;
|
79
77
|
|
80
78
|
if (locksRef.current > 0) {
|
81
|
-
locksRef.current -= 1;
|
82
|
-
|
79
|
+
locksRef.current -= 1;
|
83
80
|
return;
|
84
81
|
}
|
85
82
|
|
86
|
-
locksRef.current = refsRef.current.length - 1;
|
87
|
-
|
83
|
+
locksRef.current = refsRef.current.length - 1;
|
88
84
|
var others = refsRef.current.reduce(function (result, ref) {
|
89
85
|
if (ref.current && ref.current !== target) result.push(ref.current);
|
90
86
|
return result;
|