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
7b392339
Commit
7b392339
authored
Apr 25, 2023
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 组态图片路径及文字位置生效
parent
7f0ffbe5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
HistoryModel.js
...xtend-components/EC_ConfigurationView/src/HistoryModel.js
+10
-2
RealModel.js
...s/extend-components/EC_ConfigurationView/src/RealModel.js
+10
-2
No files found.
packages/extend-components/EC_ConfigurationView/src/HistoryModel.js
View file @
7b392339
...
@@ -957,7 +957,7 @@ const ConfigurationView = (props) => {
...
@@ -957,7 +957,7 @@ const ConfigurationView = (props) => {
{
width
:
56
,
height
:
56
,
scale
:
1
,
source
:
''
,
background
:
'#2e3343'
},
{
width
:
56
,
height
:
56
,
scale
:
1
,
source
:
''
,
background
:
'#2e3343'
},
new
go
.
Binding
(
'source'
,
'imgSrc'
,
function
(
v
)
{
new
go
.
Binding
(
'source'
,
'imgSrc'
,
function
(
v
)
{
return
v
return
v
?
`/Panda
Core/GCK
/SketchPad/PreviewResource?name=
${
v
}
&_site=
${
?
`/Panda
Monitor/Monitor
/SketchPad/PreviewResource?name=
${
v
}
&_site=
${
globalConfig
?.
userInfo
?.
LocalSite
||
''
globalConfig
?.
userInfo
?.
LocalSite
||
''
}
`
}
`
: '';
: '';
...
@@ -1006,7 +1006,7 @@ const ConfigurationView = (props) => {
...
@@ -1006,7 +1006,7 @@ const ConfigurationView = (props) => {
new go.Binding('source', 'imgSrc', function (v) {
new go.Binding('source', 'imgSrc', function (v) {
return !v
return !v
? require('./images/组态/默认.png')
? require('./images/组态/默认.png')
: `
/
Panda
Core
/
GCK
/
SketchPad
/
PreviewResource
?
name
=
$
{
v
}
&
_site
=
$
{
: `
/
Panda
Monitor
/
Monitor
/
SketchPad
/
PreviewResource
?
name
=
$
{
v
}
&
_site
=
$
{
globalConfig
?.
userInfo
?.
LocalSite
||
''
globalConfig
?.
userInfo
?.
LocalSite
||
''
}
`;
}
`;
}).makeTwoWay(),
}).makeTwoWay(),
...
@@ -1195,6 +1195,8 @@ const ConfigurationView = (props) => {
...
@@ -1195,6 +1195,8 @@ const ConfigurationView = (props) => {
new go.Binding('font', 'fontStyle'),
new go.Binding('font', 'fontStyle'),
new go.Binding('stroke', 'fontStroke').makeTwoWay(),
new go.Binding('stroke', 'fontStroke').makeTwoWay(),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('maxSize', 'textSize'),
new go.Binding('minSize', 'textSize'),
),
),
{
{
click(e, node) {
click(e, node) {
...
@@ -1261,6 +1263,8 @@ const ConfigurationView = (props) => {
...
@@ -1261,6 +1263,8 @@ const ConfigurationView = (props) => {
new go.Binding('font', 'fontStyle'),
new go.Binding('font', 'fontStyle'),
new go.Binding('stroke', 'fontStroke').makeTwoWay(),
new go.Binding('stroke', 'fontStroke').makeTwoWay(),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('maxSize', 'textSize'),
new go.Binding('minSize', 'textSize'),
),
),
{
{
click(e, node) {
click(e, node) {
...
@@ -1383,6 +1387,8 @@ const ConfigurationView = (props) => {
...
@@ -1383,6 +1387,8 @@ const ConfigurationView = (props) => {
new go.Binding('font', 'fontStyle'),
new go.Binding('font', 'fontStyle'),
new go.Binding('stroke', 'fontStroke'),
new go.Binding('stroke', 'fontStroke'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('maxSize', 'textSize'),
new go.Binding('minSize', 'textSize'),
),
),
{
{
click(e, node) {
click(e, node) {
...
@@ -1709,6 +1715,8 @@ const ConfigurationView = (props) => {
...
@@ -1709,6 +1715,8 @@ const ConfigurationView = (props) => {
new go.Binding('font', 'fontStyle'),
new go.Binding('font', 'fontStyle'),
new go.Binding('stroke', 'fontStroke'),
new go.Binding('stroke', 'fontStroke'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('maxSize', 'textSize'),
new go.Binding('minSize', 'textSize'),
),
),
{
{
click(e, node) {
click(e, node) {
...
...
packages/extend-components/EC_ConfigurationView/src/RealModel.js
View file @
7b392339
...
@@ -1376,7 +1376,7 @@ const ConfigurationView = (props) => {
...
@@ -1376,7 +1376,7 @@ const ConfigurationView = (props) => {
{
width
:
56
,
height
:
56
,
scale
:
1
,
source
:
''
,
background
:
'#2e3343'
},
{
width
:
56
,
height
:
56
,
scale
:
1
,
source
:
''
,
background
:
'#2e3343'
},
new
go
.
Binding
(
'source'
,
'imgSrc'
,
function
(
v
)
{
new
go
.
Binding
(
'source'
,
'imgSrc'
,
function
(
v
)
{
return
v
return
v
?
`/Panda
Core/GCK
/SketchPad/PreviewResource?name=
${
v
}
&_site=
${
?
`/Panda
Monitor/Monitor
/SketchPad/PreviewResource?name=
${
v
}
&_site=
${
globalConfig
?.
userInfo
?.
LocalSite
||
''
globalConfig
?.
userInfo
?.
LocalSite
||
''
}
`
}
`
: '';
: '';
...
@@ -1425,7 +1425,7 @@ const ConfigurationView = (props) => {
...
@@ -1425,7 +1425,7 @@ const ConfigurationView = (props) => {
new go.Binding('source', 'imgSrc', function (v) {
new go.Binding('source', 'imgSrc', function (v) {
return !v
return !v
? require('./images/组态/默认.png')
? require('./images/组态/默认.png')
: `
/
Panda
Core
/
GCK
/
SketchPad
/
PreviewResource
?
name
=
$
{
v
}
&
_site
=
$
{
: `
/
Panda
Monitor
/
Monitor
/
SketchPad
/
PreviewResource
?
name
=
$
{
v
}
&
_site
=
$
{
globalConfig
?.
userInfo
?.
LocalSite
||
''
globalConfig
?.
userInfo
?.
LocalSite
||
''
}
`;
}
`;
}).makeTwoWay(),
}).makeTwoWay(),
...
@@ -1628,6 +1628,8 @@ const ConfigurationView = (props) => {
...
@@ -1628,6 +1628,8 @@ const ConfigurationView = (props) => {
new go.Binding('font', 'fontStyle'),
new go.Binding('font', 'fontStyle'),
new go.Binding('stroke', 'fontStroke').makeTwoWay(),
new go.Binding('stroke', 'fontStroke').makeTwoWay(),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('maxSize', 'textSize'),
new go.Binding('minSize', 'textSize'),
),
),
{
{
click(e, node) {
click(e, node) {
...
@@ -1697,6 +1699,8 @@ const ConfigurationView = (props) => {
...
@@ -1697,6 +1699,8 @@ const ConfigurationView = (props) => {
new go.Binding('font', 'fontStyle'),
new go.Binding('font', 'fontStyle'),
new go.Binding('stroke', 'fontStroke').makeTwoWay(),
new go.Binding('stroke', 'fontStroke').makeTwoWay(),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('maxSize', 'textSize'),
new go.Binding('minSize', 'textSize'),
),
),
{
{
click(e, node) {
click(e, node) {
...
@@ -1831,6 +1835,8 @@ const ConfigurationView = (props) => {
...
@@ -1831,6 +1835,8 @@ const ConfigurationView = (props) => {
new go.Binding('font', 'fontStyle'),
new go.Binding('font', 'fontStyle'),
new go.Binding('stroke', 'fontStroke'),
new go.Binding('stroke', 'fontStroke'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('maxSize', 'textSize'),
new go.Binding('minSize', 'textSize'),
),
),
{
{
click(e, node) {
click(e, node) {
...
@@ -2163,6 +2169,8 @@ const ConfigurationView = (props) => {
...
@@ -2163,6 +2169,8 @@ const ConfigurationView = (props) => {
new go.Binding('font', 'fontStyle'),
new go.Binding('font', 'fontStyle'),
new go.Binding('stroke', 'fontStroke'),
new go.Binding('stroke', 'fontStroke'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('textAlign', 'fontAlign'),
new go.Binding('maxSize', 'textSize'),
new go.Binding('minSize', 'textSize'),
),
),
{
{
click(e, node) {
click(e, node) {
...
...
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