Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b33ec51a
authored
Apr 18, 2024
by
史敦盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改属性面板样式,清单目录隐藏不完全问题修复
1 parent
a874dd7e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
public/drawio/extention/js/exFormat.js
src/views/archi-view-manage/canvas/index.vue
public/drawio/extention/js/exFormat.js
View file @
b33ec51
...
@@ -108,12 +108,12 @@ const initAttributePanel = function(that) {
...
@@ -108,12 +108,12 @@ const initAttributePanel = function(that) {
}
}
}
}
// 添加基本信息方法
// 添加基本信息方法
function
fnAddInfoItem
(
contain
,
name
,
value
)
{
function
fnAddInfoItem
(
contain
,
name
,
value
,
labelWidth
=
60
)
{
const
infoItemContain
=
document
.
createElement
(
'div'
);
const
infoItemContain
=
document
.
createElement
(
'div'
);
infoItemContain
.
style
.
cssText
=
'display: flex;padding: 4px 0'
;
infoItemContain
.
style
.
cssText
=
'display: flex;padding: 4px 0'
;
const
nameSpan
=
document
.
createElement
(
'span'
);
const
nameSpan
=
document
.
createElement
(
'span'
);
nameSpan
.
innerHTML
=
name
+
': '
;
nameSpan
.
innerHTML
=
name
+
': '
;
nameSpan
.
style
.
cssText
=
'margin-right: 10px;width: 60px;text-align: right;flex-shrink: 0;'
nameSpan
.
style
.
cssText
=
`margin-right: 10px;width:
${
labelWidth
}
px;text-align: right;flex-shrink: 0;`
const
valueSpan
=
document
.
createElement
(
'span'
);
const
valueSpan
=
document
.
createElement
(
'span'
);
valueSpan
.
style
.
cssText
=
'white-space: normal;'
valueSpan
.
style
.
cssText
=
'white-space: normal;'
valueSpan
.
innerHTML
=
value
valueSpan
.
innerHTML
=
value
...
@@ -170,7 +170,7 @@ const initAttributePanel = function(that) {
...
@@ -170,7 +170,7 @@ const initAttributePanel = function(that) {
let
stringAttr
=
haveAttrString
[
0
].
split
(
'info__='
)[
1
];
let
stringAttr
=
haveAttrString
[
0
].
split
(
'info__='
)[
1
];
infoList
=
JSON
.
parse
(
stringAttr
);
infoList
=
JSON
.
parse
(
stringAttr
);
infoList
.
forEach
(
item
=>
{
infoList
.
forEach
(
item
=>
{
fnAddInfoItem
(
that
.
container
,
item
.
name
,
item
.
value
)
fnAddInfoItem
(
that
.
container
,
item
.
name
,
item
.
value
,
100
)
})
})
}
}
}
}
...
@@ -219,8 +219,9 @@ const addListPanel = function(that, originAttr, attrName_, attrValue_, controlTy
...
@@ -219,8 +219,9 @@ const addListPanel = function(that, originAttr, attrName_, attrValue_, controlTy
//属性名--------------------------------------------------------------------
//属性名--------------------------------------------------------------------
const
item_left_container
=
document
.
createElement
(
'div'
);
const
item_left_container
=
document
.
createElement
(
'div'
);
item_left_container
.
style
.
cssText
=
'display: flex;width: 1
00%
;'
;
item_left_container
.
style
.
cssText
=
'display: flex;width: 1
40px;text-align: right;margin-right: 10px
;'
;
const
item_left_span
=
document
.
createElement
(
'span'
);
const
item_left_span
=
document
.
createElement
(
'span'
);
item_left_span
.
style
.
cssText
=
'white-space: normal;width: 100%;text-align: right;'
item_left_span
.
innerHTML
=
attrName_
+
': '
;
item_left_span
.
innerHTML
=
attrName_
+
': '
;
...
...
src/views/archi-view-manage/canvas/index.vue
View file @
b33ec51
...
@@ -216,7 +216,7 @@
...
@@ -216,7 +216,7 @@
$
(
".right_graph_container"
).
animate
({
right
:
"0%"
},
200
,
'linear'
);
$
(
".right_graph_container"
).
animate
({
right
:
"0%"
},
200
,
'linear'
);
this
.
status
=
2
;
this
.
status
=
2
;
}
else
{
}
else
{
$
(
".right_graph_container"
).
animate
({
right
:
"-
1
5%"
},
200
,
'linear'
);
$
(
".right_graph_container"
).
animate
({
right
:
"-
4
5%"
},
200
,
'linear'
);
this
.
status
=
1
;
this
.
status
=
1
;
}
}
},
},
...
@@ -357,7 +357,7 @@
...
@@ -357,7 +357,7 @@
width
:
265px
;
width
:
265px
;
height
:
100%
;
height
:
100%
;
position
:
absolute
;
position
:
absolute
;
right
:
-
1
5%
;
right
:
-
4
5%
;
top
:
0
;
top
:
0
;
background-color
:
rgba
(
256
,
256
,
256
,
1
);
background-color
:
rgba
(
256
,
256
,
256
,
1
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment