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
ba1af832
Commit
ba1af832
authored
Dec 04, 2024
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 组态svgcase模式宽高问题
parent
2ed266e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
6 deletions
+24
-6
HistoryModel.js
...xtend-components/EC_ConfigurationView/src/HistoryModel.js
+8
-2
RealModel.js
...s/extend-components/EC_ConfigurationView/src/RealModel.js
+8
-2
configuration_custom.js
...mponents/EC_ConfigurationView/src/configuration_custom.js
+8
-2
No files found.
packages/extend-components/EC_ConfigurationView/src/HistoryModel.js
View file @
ba1af832
...
...
@@ -1485,8 +1485,14 @@ const ConfigurationView = (props) => {
return
`
${
imgUrl
}
Model/Preview/
${
encodeURIComponent
(
v
)}
`
;
}),
new
go
.
Binding
(
'scale'
,
'scale'
).
makeTwoWay
(),
new
go
.
Binding
(
'width'
,
'width'
).
makeTwoWay
(),
new
go
.
Binding
(
'height'
,
'height'
).
makeTwoWay
(),
// new go.Binding('width', 'width').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
),
),
),
...
...
packages/extend-components/EC_ConfigurationView/src/RealModel.js
View file @
ba1af832
...
...
@@ -2138,8 +2138,14 @@ const ConfigurationView = (props) => {
return
`
${
imgUrl
}
Model/Preview/
${
encodeURIComponent
(
v
)}
`
;
}),
new
go
.
Binding
(
'scale'
,
'scale'
).
makeTwoWay
(),
new
go
.
Binding
(
'width'
,
'width'
).
makeTwoWay
(),
new
go
.
Binding
(
'height'
,
'height'
).
makeTwoWay
(),
// new go.Binding('width', 'width').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
),
),
),
...
...
packages/extend-components/EC_ConfigurationView/src/configuration_custom.js
View file @
ba1af832
...
...
@@ -2067,8 +2067,14 @@ const ConfigurationView = (props) => {
return
`
${
imgUrl
}
Model/Preview/
${
encodeURIComponent
(
v
)}
`
;
}),
new
go
.
Binding
(
'scale'
,
'scale'
).
makeTwoWay
(),
new
go
.
Binding
(
'width'
,
'width'
).
makeTwoWay
(),
new
go
.
Binding
(
'height'
,
'height'
).
makeTwoWay
(),
// new go.Binding('width', 'width').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
),
),
),
...
...
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