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

fix: 组态增加表格组件

parent 3aeba74e
......@@ -1108,8 +1108,8 @@ const ConfigurationView = (props) => {
},
new go.Binding('fill', 'background').makeTwoWay(),
new go.Binding('parameter1', 'radius').makeTwoWay(),
new go.Binding('stroke', 'stroke').makeTwoWay(),
new go.Binding('strokeWidth', 'strokeWidth').makeTwoWay(),
new go.Binding('stroke', 'bdColor').makeTwoWay(),
new go.Binding('strokeWidth', 'bdWidth').makeTwoWay(),
new go.Binding('width').makeTwoWay(),
new go.Binding('height').makeTwoWay(),
),
......@@ -1132,10 +1132,18 @@ const ConfigurationView = (props) => {
// return new go.Size(v, NaN);
// }),
new go.Binding('maxSize', 'width', function (v) {
return new go.Size(v, NaN);
try {
return new go.Size(v - 20, NaN);
} catch (err) {
return new go.Size(NaN, NaN);
}
}).makeTwoWay(),
new go.Binding('minSize', 'width', function (v) {
return new go.Size(v, NaN);
try {
return new go.Size(v - 20, NaN);
} catch (err) {
return new go.Size(NaN, NaN);
}
}).makeTwoWay(),
),
),
......
......@@ -1615,8 +1615,8 @@ const ConfigurationView = (props) => {
},
new go.Binding('fill', 'background').makeTwoWay(),
new go.Binding('parameter1', 'radius').makeTwoWay(),
new go.Binding('stroke', 'stroke').makeTwoWay(),
new go.Binding('strokeWidth', 'strokeWidth').makeTwoWay(),
new go.Binding('stroke', 'bdColor').makeTwoWay(),
new go.Binding('strokeWidth', 'bdWidth').makeTwoWay(),
new go.Binding('width').makeTwoWay(),
new go.Binding('height').makeTwoWay(),
),
......@@ -1639,10 +1639,18 @@ const ConfigurationView = (props) => {
// return new go.Size(v, NaN);
// }),
new go.Binding('maxSize', 'width', function (v) {
return new go.Size(v, NaN);
try {
return new go.Size(v - 20, NaN);
} catch (err) {
return new go.Size(NaN, NaN);
}
}).makeTwoWay(),
new go.Binding('minSize', 'width', function (v) {
return new go.Size(v, NaN);
try {
return new go.Size(v - 20, NaN);
} catch (err) {
return new go.Size(NaN, NaN);
}
}).makeTwoWay(),
),
),
......
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