Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
jml0128
/
xrk-bi
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 13215129
authored
Jul 21, 2021
by
jml0128
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
1 parent
37760168
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
package.json
src/packages/bi/src/components/cover.vue
package.json
View file @
1321512
{
"name"
:
"xrk-bi"
,
"version"
:
"0.1.1
0
"
,
"version"
:
"0.1.1
1
"
,
"description"
:
"xrk-bi"
,
"author"
:
"xrk"
,
"main"
:
"dist/bundler.js"
,
...
...
src/packages/bi/src/components/cover.vue
View file @
1321512
...
...
@@ -56,6 +56,7 @@
:key=
"index"
class=
"bi-cover_input"
:class=
"
{ [item.className]: true, drag: drag }"
:ref="item.className"
:style="{
left: `${item.pos.left}px`,
top: `${item.pos.top}px`,
...
...
@@ -235,7 +236,24 @@ export default {
const
{
name
,
pos
}
=
arr
[
index
];
name
&&
(
item
.
name
=
name
);
try
{
pos
&&
(
item
.
pos
=
JSON
.
parse
(
pos
));
if
(
pos
)
{
item
.
pos
=
JSON
.
parse
(
pos
);
}
else
if
(
item
.
className
===
'bi-cover_date'
)
{
// 如果是时间的初始位置
try
{
const
dom
=
document
.
createElement
(
'div'
);
dom
.
style
.
width
=
'690px'
;
dom
.
style
.
fontSize
=
'66px'
;
dom
.
style
.
lineHeight
=
'80px'
;
dom
.
style
.
wordBreak
=
'break-all'
;
dom
.
innerHTML
=
arr
[
0
].
name
;
document
.
body
.
appendChild
(
dom
);
item
.
pos
.
top
+=
dom
.
offsetHeight
-
250
;
document
.
body
.
removeChild
(
dom
);
}
catch
(
error
)
{
console
.
log
(
error
);
}
}
}
catch
(
error
)
{
console
.
warn
(
error
);
}
...
...
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