Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
electron-printer
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhuzhequan
electron-printer
Commits
879eca7b
Commit
879eca7b
authored
Apr 29, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片不是太大
parent
eb17b0f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/views/design/main/index.vue
+11
-7
No files found.
src/views/design/main/index.vue
View file @
879eca7b
...
...
@@ -548,15 +548,19 @@ export default {
files
[
i
].
url
=
files
[
i
].
productionFile
||
files
[
i
].
url
;
that
.
$nextTick
(
async
()
=>
{
let
w
=
bw
/
2
;
let
width_px
,
height_px
,
rate
;
let
width_px
,
height_px
,
rate
,
x
,
y
;
if
(
size
)
{
width_px
=
mmToPx
(
size
.
width
);
height_px
=
mmToPx
(
size
.
height
);
width_px
=
that
.
WHproportion
*
mmToPx
(
size
.
width
);
height_px
=
that
.
WHproportion
*
mmToPx
(
size
.
height
);
x
=
w
*
that
.
WHproportion
y
=
(
height_px
/
2
)
*
that
.
WHproportion
rate
=
height_px
/
width_px
;
}
else
{
let
data
=
await
that
.
getImageSize
(
files
[
i
].
url
);
rate
=
data
.
height
/
data
.
width
;
width_px
=
bw
*
(
2
/
3
);
x
=
w
y
=
(
height_px
/
2
)
height_px
=
width_px
*
rate
;
}
...
...
@@ -565,11 +569,11 @@ export default {
url
:
files
[
i
].
url
,
fileName
:
files
[
i
].
fileName
,
rate
,
w
:
width_px
*
that
.
WHproportion
,
w
:
width_px
,
zIndex
:
that
.
imgList
.
length
,
x
:
w
*
that
.
WHproportion
,
y
:
(
height_px
/
2
)
*
that
.
WHproportion
,
h
:
height_px
*
that
.
WHproportion
,
x
,
y
,
h
:
height_px
,
r
:
0
,
});
that
.
selectIndex
=
that
.
imgList
.
length
-
1
;
...
...
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