ronds-metadata 1.3.10 → 1.3.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,10 @@
|
|
1
|
+
import "antd/es/tooltip/style";
|
2
|
+
import _Tooltip from "antd/es/tooltip";
|
1
3
|
import React from "react";
|
2
4
|
/*
|
3
5
|
* @Author: wangxian
|
4
6
|
* @Date: 2022-05-26 08:50:06
|
5
|
-
* @LastEditTime: 2023-
|
7
|
+
* @LastEditTime: 2023-09-15 13:47:22
|
6
8
|
*/
|
7
9
|
import { DragSource } from 'react-dnd';
|
8
10
|
import { GlobalOutlined } from '@ant-design/icons';
|
@@ -10,6 +12,7 @@ import Icon from '../../../comps/Icons';
|
|
10
12
|
import { DRAGGABLE_COMPONENT } from '../constant';
|
11
13
|
import '../index.less';
|
12
14
|
var InnerNodeTitle = function InnerNodeTitle(props) {
|
15
|
+
var _data$param;
|
13
16
|
var data = props.data,
|
14
17
|
connectDragPreview = props.connectDragPreview,
|
15
18
|
connectDragSource = props.connectDragSource;
|
@@ -18,15 +21,20 @@ var InnerNodeTitle = function InnerNodeTitle(props) {
|
|
18
21
|
style: {
|
19
22
|
width: '100%'
|
20
23
|
}
|
24
|
+
}, /*#__PURE__*/React.createElement(_Tooltip, {
|
25
|
+
title: data === null || data === void 0 ? void 0 : (_data$param = data.param) === null || _data$param === void 0 ? void 0 : _data$param.remark
|
21
26
|
}, /*#__PURE__*/React.createElement("div", {
|
22
|
-
className: "icon"
|
27
|
+
className: "icon",
|
28
|
+
style: {
|
29
|
+
cursor: 'pointer'
|
30
|
+
}
|
23
31
|
}, (data === null || data === void 0 ? void 0 : data.icon) ? /*#__PURE__*/React.createElement(Icon, {
|
24
32
|
type: data === null || data === void 0 ? void 0 : data.icon
|
25
33
|
}) : /*#__PURE__*/React.createElement(GlobalOutlined, null)), /*#__PURE__*/React.createElement("div", {
|
26
34
|
className: "notation"
|
27
35
|
}, /*#__PURE__*/React.createElement("div", {
|
28
36
|
className: "name"
|
29
|
-
}, data.name))))));
|
37
|
+
}, data.name)))))));
|
30
38
|
};
|
31
39
|
var NodeTitle = DragSource(DRAGGABLE_COMPONENT, {
|
32
40
|
beginDrag: function beginDrag(props) {
|