Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
eea9ca4b
Commit
eea9ca4b
authored
Jun 06, 2023
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 组态增加表格组件
parent
3aeba74e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
8 deletions
+24
-8
HistoryModel.js
...xtend-components/EC_ConfigurationView/src/HistoryModel.js
+12
-4
RealModel.js
...s/extend-components/EC_ConfigurationView/src/RealModel.js
+12
-4
No files found.
packages/extend-components/EC_ConfigurationView/src/HistoryModel.js
View file @
eea9ca4b
...
...
@@ -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', '
stroke
Width').makeTwoWay(),
new go.Binding('stroke', '
bdColor
').makeTwoWay(),
new go.Binding('strokeWidth', '
bd
Width').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(),
),
),
...
...
packages/extend-components/EC_ConfigurationView/src/RealModel.js
View file @
eea9ca4b
...
...
@@ -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', '
stroke
Width').makeTwoWay(),
new go.Binding('stroke', '
bdColor
').makeTwoWay(),
new go.Binding('strokeWidth', '
bd
Width').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(),
),
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment