ae941962 by lihua

fix: 关系网

1 parent 71d2bb2b
...@@ -335,6 +335,22 @@ onMounted(() => { ...@@ -335,6 +335,22 @@ onMounted(() => {
335 const observeResize = () => { 335 const observeResize = () => {
336 resizeObserver.value = new ResizeObserver(() => { 336 resizeObserver.value = new ResizeObserver(() => {
337 let domWidth = document.documentElement.clientWidth; 337 let domWidth = document.documentElement.clientWidth;
338 if (lastSelectNode.value) {
339 tooltip1Ref.value.style.display = 'none';
340 graphRef.value.updateItem(lastSelectNode.value, {
341 labelCfg: {
342 style: {
343 fill: '#212121',
344 },
345 },
346 style: {
347 stroke: '#4fa1a4',
348 fill: '#ebf6f7',
349 cursor: 'pointer'
350 }
351 });
352 }
353 lastSelectNode.value = null;
338 if (domWidth < 992) {//根据setting.ts里的设置,小于992,会隐藏左边的菜单栏, 354 if (domWidth < 992) {//根据setting.ts里的设置,小于992,会隐藏左边的菜单栏,
339 setTimeout(() => { 355 setTimeout(() => {
340 const container: any = containerRef.value; 356 const container: any = containerRef.value;
...@@ -591,6 +607,7 @@ defineExpose({ ...@@ -591,6 +607,7 @@ defineExpose({
591 margin-top: 8px; 607 margin-top: 8px;
592 font-size: 14px; 608 font-size: 14px;
593 color: #666666; 609 color: #666666;
610 word-break: break-all;
594 line-height: 21px; 611 line-height: 21px;
595 } 612 }
596 } 613 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!