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

feat: 组态svgcase模式宽高问题

parent 2ed266e4
...@@ -1485,8 +1485,14 @@ const ConfigurationView = (props) => { ...@@ -1485,8 +1485,14 @@ const ConfigurationView = (props) => {
return `${imgUrl}Model/Preview/${encodeURIComponent(v)}`; return `${imgUrl}Model/Preview/${encodeURIComponent(v)}`;
}), }),
new go.Binding('scale', 'scale').makeTwoWay(), new go.Binding('scale', 'scale').makeTwoWay(),
new go.Binding('width', 'width').makeTwoWay(), // new go.Binding('width', 'width').makeTwoWay(),
new go.Binding('height', 'height').makeTwoWay(), // new go.Binding('height', 'height').makeTwoWay(),
new go.Binding('width', 'width', function (v) {
return (v * 1).toFixed(1) * 1;
}).makeTwoWay(),
new go.Binding('height', 'height', function (v) {
return (v * 1).toFixed(1) * 1;
}).makeTwoWay(),
new go.Binding('flip', 'flip', pictureFlipMethod), new go.Binding('flip', 'flip', pictureFlipMethod),
), ),
), ),
......
...@@ -2138,8 +2138,14 @@ const ConfigurationView = (props) => { ...@@ -2138,8 +2138,14 @@ const ConfigurationView = (props) => {
return `${imgUrl}Model/Preview/${encodeURIComponent(v)}`; return `${imgUrl}Model/Preview/${encodeURIComponent(v)}`;
}), }),
new go.Binding('scale', 'scale').makeTwoWay(), new go.Binding('scale', 'scale').makeTwoWay(),
new go.Binding('width', 'width').makeTwoWay(), // new go.Binding('width', 'width').makeTwoWay(),
new go.Binding('height', 'height').makeTwoWay(), // new go.Binding('height', 'height').makeTwoWay(),
new go.Binding('width', 'width', function (v) {
return (v * 1).toFixed(1) * 1;
}).makeTwoWay(),
new go.Binding('height', 'height', function (v) {
return (v * 1).toFixed(1) * 1;
}).makeTwoWay(),
new go.Binding('flip', 'flip', pictureFlipMethod), new go.Binding('flip', 'flip', pictureFlipMethod),
), ),
), ),
......
...@@ -2067,8 +2067,14 @@ const ConfigurationView = (props) => { ...@@ -2067,8 +2067,14 @@ const ConfigurationView = (props) => {
return `${imgUrl}Model/Preview/${encodeURIComponent(v)}`; return `${imgUrl}Model/Preview/${encodeURIComponent(v)}`;
}), }),
new go.Binding('scale', 'scale').makeTwoWay(), new go.Binding('scale', 'scale').makeTwoWay(),
new go.Binding('width', 'width').makeTwoWay(), // new go.Binding('width', 'width').makeTwoWay(),
new go.Binding('height', 'height').makeTwoWay(), // new go.Binding('height', 'height').makeTwoWay(),
new go.Binding('width', 'width', function (v) {
return (v * 1).toFixed(1) * 1;
}).makeTwoWay(),
new go.Binding('height', 'height', function (v) {
return (v * 1).toFixed(1) * 1;
}).makeTwoWay(),
new go.Binding('flip', 'flip', pictureFlipMethod), new go.Binding('flip', 'flip', pictureFlipMethod),
), ),
), ),
......
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