Merge pull request !43 from zhangqiyu2021/develop
pull/2/head
牛叉刘教授 3 years ago committed by Gitee
commit ddc13adc16

@ -1,6 +1,6 @@
{
"name": "chiner",
"version": "3.5.6",
"version": "3.5.7",
"description": "CHINER-元数建模",
"main": "./build/main.js",
"repository": {

@ -1,6 +1,6 @@
{
"name": "chiner",
"version": "3.5.6",
"version": "3.5.7",
"description": "CHINER-元数建模",
"scripts": {
"test": "jest",

@ -1142,7 +1142,7 @@ export default ({data, dataSource, renderReady, updateDataSource, validateTableS
graph.on('edge:mouseleave', ({edge}) => {
const sourceNode = edge.getSourceCell();
const targetNode = edge.getTargetCell();
sourceNode.setProp('sourcePort','', { ignoreHistory : true});
sourceNode?.setProp('sourcePort','', { ignoreHistory : true});
targetNode?.setProp('targetPort', '', { ignoreHistory : true});
edge.attr('line/stroke', edge.getProp('fillColor') ||
currentColor.current.fillColor, { ignoreHistory : true});

@ -203,7 +203,7 @@ const Menu = React.memo(forwardRef(({contextMenus = [], onContextMenu, fieldName
const getMenuItem = (parentMenu, menu = parentMenu, offsetNumber = 0, pI) => {
const parentKey = menu === parentMenu ? null : parentMenu[defKey];
const ulDraggable = getDraggable(menu);
const pName = `${getName && getName(menu) || menu[defName]}${menu.type !== 'groups' && `(${menu[children].length})`}`;
const pName = `${getName && getName(menu) || menu[defName]}${menu.type !== 'groups' ? `(${menu[children].length})` : ''}`;
return (
<ul
className={getClassName(itemBase, parentMenu[defKey],

Loading…
Cancel
Save