ae941962 by lihua

fix: 关系网

1 parent 71d2bb2b
......@@ -335,6 +335,22 @@ onMounted(() => {
const observeResize = () => {
resizeObserver.value = new ResizeObserver(() => {
let domWidth = document.documentElement.clientWidth;
if (lastSelectNode.value) {
tooltip1Ref.value.style.display = 'none';
graphRef.value.updateItem(lastSelectNode.value, {
labelCfg: {
style: {
fill: '#212121',
},
},
style: {
stroke: '#4fa1a4',
fill: '#ebf6f7',
cursor: 'pointer'
}
});
}
lastSelectNode.value = null;
if (domWidth < 992) {//根据setting.ts里的设置,小于992,会隐藏左边的菜单栏,
setTimeout(() => {
const container: any = containerRef.value;
......@@ -591,6 +607,7 @@ defineExpose({
margin-top: 8px;
font-size: 14px;
color: #666666;
word-break: break-all;
line-height: 21px;
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!