Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
a26c5fc3
Commit
a26c5fc3
authored
Aug 04, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加图片裁剪数据传参优化
parent
fc843f07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
src/views/goods/components/CutEditImageDialog.vue
src/views/goods/components/CutEditImageDialog.vue
+2
-3
src/views/goods/components/CutImageDialog.vue
src/views/goods/components/CutImageDialog.vue
+2
-3
No files found.
src/views/goods/components/CutEditImageDialog.vue
View file @
a26c5fc3
...
@@ -171,9 +171,8 @@ export default {
...
@@ -171,9 +171,8 @@ export default {
const
{
w
,
h
}
=
options
.
mask
const
{
w
,
h
}
=
options
.
mask
const
obj
=
{
const
obj
=
{
width
:
Math
.
ceil
(
rectW
),
width
:
rectW
,
height
:
Math
.
ceil
(
rectH
),
height
:
rectH
,
x
:
Math
.
ceil
(
rectW
/
2
-
w
/
2
-
offsetX
),
x
:
Math
.
ceil
(
rectW
/
2
-
w
/
2
-
offsetX
),
y
:
Math
.
ceil
(
rectH
/
2
-
h
/
2
-
offsetY
),
y
:
Math
.
ceil
(
rectH
/
2
-
h
/
2
-
offsetY
),
maskW
:
w
,
maskW
:
w
,
...
...
src/views/goods/components/CutImageDialog.vue
View file @
a26c5fc3
...
@@ -203,9 +203,8 @@ export default {
...
@@ -203,9 +203,8 @@ export default {
const
{
w
,
h
}
=
options
.
mask
const
{
w
,
h
}
=
options
.
mask
const
obj
=
{
const
obj
=
{
width
:
Math
.
ceil
(
rectW
),
width
:
rectW
,
height
:
Math
.
ceil
(
rectH
),
height
:
rectH
,
x
:
Math
.
ceil
(
rectW
/
2
-
w
/
2
-
offsetX
),
x
:
Math
.
ceil
(
rectW
/
2
-
w
/
2
-
offsetX
),
y
:
Math
.
ceil
(
rectH
/
2
-
h
/
2
-
offsetY
),
y
:
Math
.
ceil
(
rectH
/
2
-
h
/
2
-
offsetY
),
maskW
:
w
,
maskW
:
w
,
...
...
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