ronds-metadata 1.3.40 → 1.3.42
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,13 +4,14 @@ import React from "react";
|
|
4
4
|
/*
|
5
5
|
* @Author: wangxian
|
6
6
|
* @Date: 2022-05-26 08:50:06
|
7
|
-
* @LastEditTime:
|
7
|
+
* @LastEditTime: 2024-04-26 16:38:22
|
8
8
|
*/
|
9
9
|
import { DragSource } from 'react-dnd';
|
10
10
|
import { GlobalOutlined } from '@ant-design/icons';
|
11
11
|
import Icon from '../../../comps/Icons';
|
12
12
|
import { DRAGGABLE_COMPONENT } from '../constant';
|
13
13
|
import '../index.less';
|
14
|
+
import { tr } from '../../../framework/locale';
|
14
15
|
var InnerNodeTitle = function InnerNodeTitle(props) {
|
15
16
|
var _data$param, _data$param2;
|
16
17
|
var data = props.data,
|
@@ -30,7 +31,7 @@ var InnerNodeTitle = function InnerNodeTitle(props) {
|
|
30
31
|
overflowX: 'hidden',
|
31
32
|
wordBreak: 'break-all'
|
32
33
|
}
|
33
|
-
}, /*#__PURE__*/React.createElement("span", null, data === null || data === void 0 ? void 0 : (_data$param2 = data.param) === null || _data$param2 === void 0 ? void 0 : _data$param2.readme)) : undefined
|
34
|
+
}, /*#__PURE__*/React.createElement("span", null, tr(data === null || data === void 0 ? void 0 : (_data$param2 = data.param) === null || _data$param2 === void 0 ? void 0 : _data$param2.readme))) : undefined
|
34
35
|
}, /*#__PURE__*/React.createElement("div", {
|
35
36
|
className: "icon",
|
36
37
|
style: {
|
@@ -42,7 +43,7 @@ var InnerNodeTitle = function InnerNodeTitle(props) {
|
|
42
43
|
className: "notation"
|
43
44
|
}, /*#__PURE__*/React.createElement("div", {
|
44
45
|
className: "name"
|
45
|
-
}, data.name))))));
|
46
|
+
}, tr(data.name)))))));
|
46
47
|
};
|
47
48
|
var NodeTitle = DragSource(DRAGGABLE_COMPONENT, {
|
48
49
|
beginDrag: function beginDrag(props) {
|
@@ -5,7 +5,7 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
/*
|
6
6
|
* @Author: wangxian
|
7
7
|
* @Date: 2022-05-24 09:18:34
|
8
|
-
* @LastEditTime: 2024-
|
8
|
+
* @LastEditTime: 2024-04-29 10:05:20
|
9
9
|
*/
|
10
10
|
import { Shape, Edge } from '@antv/x6';
|
11
11
|
import './edge.less';
|
@@ -38,7 +38,7 @@ export var DPEdge = /*#__PURE__*/function (_BaseEdge) {
|
|
38
38
|
DPEdge.config({
|
39
39
|
shape: 'DPEdge',
|
40
40
|
connector: {
|
41
|
-
name: '
|
41
|
+
name: 'pai'
|
42
42
|
},
|
43
43
|
zIndex: 1,
|
44
44
|
attrs: {
|