Commit d480303b authored by 李纪文's avatar 李纪文

fix: 背景增加回调

parent d77c7ef5
......@@ -849,7 +849,7 @@ const ConfigurationView = (props) => {
'linkingTool.isUnconnectedLinkValid': true,
'animationManager.duration': 100,
allowHorizontalScroll: isZoom ? true : false,
padding: 20,
// padding: 20,
allowVerticalScroll: isZoom ? true : false,
'linkingTool.portGravity': 20,
'relinkingTool.isUnconnectedLinkValid': true,
......@@ -956,6 +956,8 @@ const ConfigurationView = (props) => {
go.Picture,
{ width: 56, height: 56, scale: 1, source: '', background: '#2e3343' },
new go.Binding('source', 'imgSrc', function (v) {
const own = myDiagram ? myDiagram.model.findNodeDataForKey('bgCase') : {};
props.bgMethod && props.bgMethod(own);
return v
? `/PandaMonitor/Monitor/SketchPad/PreviewResource?name=${v}&_site=${
globalConfig?.userInfo?.LocalSite || ''
......
......@@ -1268,7 +1268,7 @@ const ConfigurationView = (props) => {
'linkingTool.isUnconnectedLinkValid': true,
'animationManager.duration': 100,
allowHorizontalScroll: isZoom ? true : false,
padding: 20,
// padding: 20,
allowVerticalScroll: isZoom ? true : false,
'linkingTool.portGravity': 20,
'relinkingTool.isUnconnectedLinkValid': true,
......@@ -1375,6 +1375,8 @@ const ConfigurationView = (props) => {
go.Picture,
{ width: 56, height: 56, scale: 1, source: '', background: '#2e3343' },
new go.Binding('source', 'imgSrc', function (v) {
const own = myDiagram ? myDiagram.model.findNodeDataForKey('bgCase') : {};
props.bgMethod && props.bgMethod(own);
return v
? `/PandaMonitor/Monitor/SketchPad/PreviewResource?name=${v}&_site=${
globalConfig?.userInfo?.LocalSite || ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment