ronds-metadata 1.3.9 → 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-04-27 18:49:56
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) {
package/es/index.d.ts CHANGED
@@ -4,7 +4,6 @@ export { default as MetaPropsEdit } from './comps/MetadataEdit/components/MetaPr
4
4
  export { default as MetadataForm } from './comps/MetadataForm';
5
5
  export { default as JsonView } from './comps/JsonView';
6
6
  export { default as JsonEdit } from './comps/JsonEdit';
7
- export { default as CodeEdit } from './comps/CodeEdit';
8
7
  export { default as MdEditor } from './comps/MdEdit';
9
8
  export { default as MdView } from './comps/MdView';
10
9
  export { default as FileView } from './comps/FileView';
package/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * @Author:wangxian
3
3
  * @Date: 2021-09-18 14:15:04
4
- * @LastEditTime: 2023-09-13 08:44:19
4
+ * @LastEditTime: 2023-09-15 11:32:01
5
5
  */
6
6
  import './theme.less';
7
7
  export { default as MetadataEdit } from './comps/MetadataEdit';
@@ -9,7 +9,7 @@ export { default as MetaPropsEdit } from './comps/MetadataEdit/components/MetaPr
9
9
  export { default as MetadataForm } from './comps/MetadataForm';
10
10
  export { default as JsonView } from './comps/JsonView';
11
11
  export { default as JsonEdit } from './comps/JsonEdit';
12
- export { default as CodeEdit } from './comps/CodeEdit';
12
+ // export { default as CodeEdit } from './comps/CodeEdit';
13
13
  export { default as MdEditor } from './comps/MdEdit';
14
14
  export { default as MdView } from './comps/MdView';
15
15
  export { default as FileView } from './comps/FileView';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.3.9",
4
+ "version": "1.3.11",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",