Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
f9996ccc
Commit
f9996ccc
authored
Jan 18, 2022
by
李萌萌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全部案件库的缩略图移动范围修改
parent
f2ac879e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
src/views/Editor/modules/imageEdAJ.vue
+21
-4
No files found.
src/views/Editor/modules/imageEdAJ.vue
View file @
f9996ccc
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2021-10-22 11:36:10
* @Date: 2021-10-22 11:36:10
* @LastEditTime: 2022-01-18 1
5:52:01
* @LastEditTime: 2022-01-18 1
7:23:00
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue
...
@@ -8077,7 +8077,9 @@ export default {
...
@@ -8077,7 +8077,9 @@ export default {
s
=
o
.
style
,
s
=
o
.
style
,
x
,
x
,
y
,
y
,
p
=
"onmousemove"
;
p
=
"onmousemove"
,
// 小蓝框拖拽的最小边界值(像素)
miniPix
=
10
;
self
.
dragableDiv
=
o
self
.
dragableDiv
=
o
o
.
onmousedown
=
function
(
e
)
{
o
.
onmousedown
=
function
(
e
)
{
e
.
stopPropagation
()
e
.
stopPropagation
()
...
@@ -8089,8 +8091,23 @@ export default {
...
@@ -8089,8 +8091,23 @@ export default {
o
[
p
]
=
function
(
e
)
{
o
[
p
]
=
function
(
e
)
{
e
.
stopPropagation
()
e
.
stopPropagation
()
e
=
e
||
event
;
e
=
e
||
event
;
s
.
left
=
e
.
clientX
-
self
.
x
+
"px"
;
// 判断小蓝框的位置
s
.
top
=
e
.
clientY
-
self
.
y
+
"px"
;
let
left
=
e
.
clientX
-
self
.
x
;
let
top
=
e
.
clientY
-
self
.
y
;
if
(
left
>=
$
(
".preview-source"
).
width
()
-
miniPix
){
left
=
$
(
".preview-source"
).
width
()
-
miniPix
}
else
if
(
left
<=-
$
(
"#block_small"
).
width
()
+
miniPix
){
left
=-
$
(
"#block_small"
).
width
()
+
miniPix
}
if
(
top
>=
$
(
".preview-source"
).
height
()
-
miniPix
){
top
=
$
(
".preview-source"
).
height
()
-
miniPix
}
else
if
(
top
<=-
$
(
"#block_small"
).
height
()
+
miniPix
){
top
=-
$
(
"#block_small"
).
height
()
+
miniPix
}
s
.
left
=
left
+
"px"
;
s
.
top
=
top
+
"px"
;
// 存下小指纹框当前的位置
// 存下小指纹框当前的位置
// self.small_x = e.clientX - self.x;
// self.small_x = e.clientX - self.x;
...
...
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