Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fj-captcha-vue
Project
Project
Details
Activity
Releases
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
郑磊
fj-captcha-vue
Commits
420a158e
Commit
420a158e
authored
Jun 21, 2024
by
郑磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新发布
parent
f0179a0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
92 deletions
+92
-92
fj-captcha-web.js
browser/fj-captcha-web.js
+9
-9
index.js
esm/index.js
+82
-82
package.json
package.json
+1
-1
No files found.
browser/fj-captcha-web.js
View file @
420a158e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
esm/index.js
View file @
420a158e
import
{
defineComponent
as
C
,
openBlock
as
l
,
createElementBlock
as
m
,
createElementVNode
as
o
,
normalizeStyle
as
S
,
pushScopeId
as
E
,
popScopeId
as
T
,
provide
as
et
,
inject
as
at
,
computed
as
$
,
normalizeClass
as
z
,
Fragment
as
V
,
toDisplayString
as
D
,
unref
as
y
,
renderSlot
as
st
,
createVNode
as
A
,
Transition
as
nt
,
withCtx
as
O
,
createBlock
as
b
,
normalizeProps
as
rt
,
mergeProps
as
ot
,
createCommentVNode
as
x
,
ref
as
f
,
onBeforeUnmount
as
N
,
toRef
as
c
t
,
onMounted
as
it
,
withModifiers
as
P
,
resolveDynamicComponent
as
ut
}
from
"vue"
;
const
dt
=
(
t
)
=>
(
E
(
"data-v-fcfe5ea2"
),
t
=
t
(),
T
(),
t
),
lt
=
{
class
:
"captcha--slider-bar"
},
ht
=
{
class
:
"captcha--slider-bar--bar"
},
pt
=
/* @__PURE__ */
dt
(()
=>
/* @__PURE__ */
o
(
"svg"
,
{
import
{
defineComponent
as
C
,
openBlock
as
l
,
createElementBlock
as
m
,
createElementVNode
as
c
,
normalizeStyle
as
S
,
pushScopeId
as
E
,
popScopeId
as
T
,
provide
as
et
,
inject
as
at
,
computed
as
$
,
normalizeClass
as
z
,
Fragment
as
V
,
toDisplayString
as
D
,
unref
as
y
,
renderSlot
as
st
,
createVNode
as
A
,
Transition
as
nt
,
withCtx
as
O
,
createBlock
as
x
,
normalizeProps
as
rt
,
mergeProps
as
ct
,
createCommentVNode
as
b
,
ref
as
f
,
onBeforeUnmount
as
N
,
toRef
as
o
t
,
onMounted
as
it
,
withModifiers
as
P
,
resolveDynamicComponent
as
ut
}
from
"vue"
;
const
dt
=
(
t
)
=>
(
E
(
"data-v-fcfe5ea2"
),
t
=
t
(),
T
(),
t
),
lt
=
{
class
:
"captcha--slider-bar"
},
ht
=
{
class
:
"captcha--slider-bar--bar"
},
pt
=
/* @__PURE__ */
dt
(()
=>
/* @__PURE__ */
c
(
"svg"
,
{
class
:
"captcha--slider-bar--track-icon"
,
viewBox
:
"0 0 1024 1024"
,
version
:
"1.1"
,
...
...
@@ -8,7 +8,7 @@ const dt = (t) => (E("data-v-fcfe5ea2"), t = t(), T(), t), lt = { class: "captch
width
:
"64"
,
height
:
"64"
},
[
/* @__PURE__ */
o
(
"path"
,
{
/* @__PURE__ */
c
(
"path"
,
{
d
:
"M576 192v256H0v128h576v256l448-320z"
,
"p-id"
:
"4240"
})
...
...
@@ -24,13 +24,13 @@ const dt = (t) => (E("data-v-fcfe5ea2"), t = t(), T(), t), lt = { class: "captch
},
setup
(
t
)
{
return
(
e
,
a
)
=>
(
l
(),
m
(
"div"
,
lt
,
[
o
(
"div"
,
ht
,
[
o
(
"div"
,
{
c
(
"div"
,
ht
,
[
c
(
"div"
,
{
class
:
"captcha--slider-bar--active"
,
style
:
S
({
width
:
`
${
t
.
x
}
px`
})
},
null
,
4
)
]),
o
(
"div"
,
{
c
(
"div"
,
{
class
:
"captcha--slider-bar--track"
,
style
:
S
({
transform
:
`translateX(
${
t
.
x
}
px)`
...
...
@@ -80,11 +80,11 @@ function Ct(t) {
}
return
_t
;
}
function
b
t
(
t
)
{
function
x
t
(
t
)
{
return
Y
[
Ct
(
t
)]
??
{};
}
function
x
t
(
t
)
{
const
e
=
b
t
(
t
);
function
b
t
(
t
)
{
const
e
=
x
t
(
t
);
return
(
a
)
=>
e
[
a
]
??
a
;
}
function
St
(
t
,
e
,
a
)
{
...
...
@@ -115,27 +115,27 @@ function G(t) {
method
:
n
,
params
:
i
,
headers
:
s
,
data
:
c
,
data
:
o
,
timeout
:
u
,
withCredentials
:
d
=
!
1
}
=
t
,
r
=
new
XMLHttpRequest
();
return
r
.
responseType
=
"
json
"
,
r
.
withCredentials
=
d
,
typeof
u
==
"number"
&&
(
r
.
timeout
=
u
),
new
Promise
((
w
,
p
)
=>
{
return
r
.
responseType
=
"
text
"
,
r
.
withCredentials
=
d
,
typeof
u
==
"number"
&&
(
r
.
timeout
=
u
),
new
Promise
((
w
,
p
)
=>
{
r
.
addEventListener
(
"abort"
,
p
),
r
.
addEventListener
(
"error"
,
p
),
r
.
addEventListener
(
"timeout"
,
p
),
r
.
addEventListener
(
"load"
,
function
()
{
w
({
status
:
r
.
status
,
headers
:
It
(
r
),
data
:
r
.
response
data
:
JSON
.
parse
(
r
.
responseText
)
});
}),
r
.
addEventListener
(
"readystatechange"
,
function
()
{
if
(
r
.
readyState
===
XMLHttpRequest
.
OPENED
)
{
if
(
typeof
s
==
"object"
&&
s
&&
Object
.
entries
(
s
).
forEach
(
([
h
,
v
])
=>
r
.
setRequestHeader
(
h
,
v
)
),
typeof
c
<
"u"
&&
c
!==
null
)
{
if
(
typeof
c
==
"string"
)
{
r
.
send
(
c
);
),
typeof
o
<
"u"
&&
o
!==
null
)
{
if
(
typeof
o
==
"string"
)
{
r
.
send
(
o
);
return
;
}
else
if
(
typeof
c
==
"object"
)
{
r
.
setRequestHeader
(
"Content-Type"
,
"application/json"
),
r
.
send
(
JSON
.
stringify
(
c
));
}
else
if
(
typeof
o
==
"object"
)
{
r
.
setRequestHeader
(
"Content-Type"
,
"application/json"
),
r
.
send
(
JSON
.
stringify
(
o
));
return
;
}
}
...
...
@@ -187,12 +187,12 @@ function R(t) {
}
function
W
(
t
)
{
const
{
triggers
:
e
=
[],
max
:
a
,
onDrag
:
n
,
onVerify
:
i
}
=
t
;
let
s
=
null
,
c
=
[];
let
s
=
null
,
o
=
[];
const
u
=
(
h
)
=>
{
s
=
{
...
R
(
h
),
startTime
:
Date
.
now
()
},
c
.
push
({
},
o
.
push
({
x
:
0
,
y
:
0
,
type
:
"down"
,
...
...
@@ -202,7 +202,7 @@ function W(t) {
if
(
!
s
)
return
;
const
v
=
R
(
h
);
c
.
push
({
o
.
push
({
x
:
v
.
x
-
s
.
x
,
y
:
v
.
y
-
s
.
y
,
type
:
"move"
,
...
...
@@ -212,11 +212,11 @@ function W(t) {
n
(
I
);
},
r
=
(
h
)
=>
{
if
(
s
)
{
if
(
p
(),
!
c
.
some
((
v
)
=>
v
.
type
===
"move"
))
c
=
[];
if
(
p
(),
!
o
.
some
((
v
)
=>
v
.
type
===
"move"
))
o
=
[];
else
{
const
v
=
R
(
h
);
c
.
push
({
o
.
push
({
x
:
v
.
x
-
s
.
x
,
y
:
v
.
y
-
s
.
y
,
type
:
"up"
,
...
...
@@ -224,7 +224,7 @@ function W(t) {
}),
w
(),
i
({
startSlidingTime
:
new
Date
(
s
.
startTime
).
toISOString
(),
endSlidingTime
:
(
/* @__PURE__ */
new
Date
()).
toISOString
(),
trackList
:
c
trackList
:
o
});
}
s
=
null
;
...
...
@@ -253,9 +253,9 @@ function Mt(t) {
...
i
,
captcha
:
e
,
max
:
s
,
onVerify
:
(
c
)
=>
{
onVerify
:
(
o
)
=>
{
n
({
...
c
,
...
o
,
bgImageWidth
:
Math
.
round
(
e
.
backgroundImageWidth
*
a
),
bgImageHeight
:
Math
.
round
(
e
.
backgroundImageHeight
*
a
...
...
@@ -271,9 +271,9 @@ function Mt(t) {
});
}
function
Et
(
t
)
{
const
{
captcha
:
e
,
ratio
:
a
,
onVerify
:
n
,
onDrag
:
i
,
max
:
s
,
...
c
}
=
t
;
const
{
captcha
:
e
,
ratio
:
a
,
onVerify
:
n
,
onDrag
:
i
,
max
:
s
,
...
o
}
=
t
;
return
W
({
...
c
,
...
o
,
captcha
:
e
,
max
:
s
,
onDrag
:
(
u
)
=>
i
(
u
,
u
/
s
*
360
),
...
...
@@ -305,9 +305,9 @@ function Tt(t) {
...
s
,
captcha
:
e
,
max
:
i
,
onVerify
:
(
c
)
=>
{
onVerify
:
(
o
)
=>
{
n
({
...
c
,
...
o
,
bgImageWidth
:
Math
.
round
(
e
.
backgroundImageWidth
*
a
),
bgImageHeight
:
Math
.
round
(
e
.
backgroundImageHeight
*
a
...
...
@@ -326,9 +326,9 @@ function $t(t) {
}
function
B
(
t
)
{
return
t
||
(
t
=
at
(
J
,
()
=>
$
(()
=>
{
}),
!
0
)),
$
(()
=>
x
t
(
t
.
value
));
}),
!
0
)),
$
(()
=>
b
t
(
t
.
value
));
}
const
K
=
(
t
)
=>
(
E
(
"data-v-4b782e10"
),
t
=
t
(),
T
(),
t
),
Dt
=
/* @__PURE__ */
K
(()
=>
/* @__PURE__ */
o
(
"svg"
,
{
const
K
=
(
t
)
=>
(
E
(
"data-v-4b782e10"
),
t
=
t
(),
T
(),
t
),
Dt
=
/* @__PURE__ */
K
(()
=>
/* @__PURE__ */
c
(
"svg"
,
{
class
:
"captcha--status-tip--icon"
,
viewBox
:
"0 0 1024 1024"
,
version
:
"1.1"
,
...
...
@@ -337,11 +337,11 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
width
:
"64"
,
height
:
"64"
},
[
/* @__PURE__ */
o
(
"path"
,
{
/* @__PURE__ */
c
(
"path"
,
{
d
:
"M896 512a384 384 0 1 0-768 0 384 384 0 0 0 768 0zM42.666667 512C42.666667 252.8 252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333S42.666667 771.2 42.666667 512z m652.501333-158.165333l60.330667 60.330666L469.333333 700.330667l-200.832-200.832 60.330667-60.330667L469.333333 579.669333l225.834667-225.834666z"
,
"p-id"
:
"5408"
})
],
-
1
)),
Ot
=
/* @__PURE__ */
K
(()
=>
/* @__PURE__ */
o
(
"svg"
,
{
],
-
1
)),
Ot
=
/* @__PURE__ */
K
(()
=>
/* @__PURE__ */
c
(
"svg"
,
{
class
:
"captcha--status-tip--icon"
,
viewBox
:
"0 0 1024 1024"
,
version
:
"1.1"
,
...
...
@@ -350,7 +350,7 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
width
:
"64"
,
height
:
"64"
},
[
/* @__PURE__ */
o
(
"path"
,
{
/* @__PURE__ */
c
(
"path"
,
{
d
:
"M575.986694 832.039919C575.986694 867.356032 547.316113 896.026613 512 896.026613 476.683887 896.026613 448.013306 867.356032 448.013306 832.039919 448.013306 796.723806 476.683887 768.048156 512 768.048156 547.316113 768.048156 575.986694 796.64777 575.986694 832.039919ZM512 255.997465C476.683887 255.997465 448.013306 284.668046 448.013306 319.984159L448.013306 639.998733C448.013306 675.314846 476.683887 703.990496 512 703.990496 547.316113 703.990496 575.986694 675.314846 575.986694 639.998733L575.986694 319.984159C575.986694 284.668046 547.316113 255.997465 512 255.997465ZM1023.979724 896.026613C1023.979724 966.729805 966.709529 1024.005069 896.006336 1024.005069L127.993664 1024.005069C57.290471 1024.005069 0.020276 966.658839 0.020276 896.026613 0.020276 874.868373 5.216059 854.931776 14.39105 837.311737L14.320083 837.24077 398.250384 69.304133 398.392317 69.304133C419.626593 28.133261 462.455047 0.040552 512 0.040552 561.544953 0.040552 604.373407 28.209297 625.67865 69.3751L1008.311272 834.711311C1018.348003 852.838256 1023.979724 873.783595 1023.979724 896.026613ZM959.99303 896.026613C959.99303 885.123073 957.392604 874.868373 952.191753 865.404445L951.613881 864.319667 951.112044 863.239958 568.621355 98.405584C557.499847 77.171308 535.834701 64.027246 512 64.027246 488.023365 64.027246 466.282184 77.318311 455.160675 98.765487L452.12938 104.544211 92.175714 824.527578 92.677551 825.034483 71.154339 866.778159C66.389426 875.948082 64.00697 885.842879 64.00697 896.097579 64.00697 931.413692 92.748517 960.089342 127.993664 960.089342L896.006336 960.089342C931.322449 960.013306 959.99303 931.342726 959.99303 896.026613Z"
,
"p-id"
:
"6384"
})
...
...
@@ -372,10 +372,10 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
},
[
t
.
status
?
(
l
(),
m
(
V
,
{
key
:
0
},
[
Dt
,
o
(
"div"
,
null
,
D
(
y
(
e
)(
"验证成功"
)),
1
)
c
(
"div"
,
null
,
D
(
y
(
e
)(
"验证成功"
)),
1
)
],
64
))
:
(
l
(),
m
(
V
,
{
key
:
1
},
[
Ot
,
o
(
"div"
,
null
,
D
(
y
(
e
)(
t
.
message
??
"验证失败,请再试一次"
)),
1
)
c
(
"div"
,
null
,
D
(
y
(
e
)(
t
.
message
??
"验证失败,请再试一次"
)),
1
)
],
64
))
],
2
));
}
...
...
@@ -393,12 +393,12 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
setup
(
t
)
{
const
e
=
B
();
return
(
a
,
n
)
=>
(
l
(),
m
(
"div"
,
zt
,
[
o
(
"div"
,
Vt
,
D
(
y
(
e
)(
"拖动下方滑块完成拼图"
)),
1
),
o
(
"div"
,
Nt
,
[
c
(
"div"
,
Vt
,
D
(
y
(
e
)(
"拖动下方滑块完成拼图"
)),
1
),
c
(
"div"
,
Nt
,
[
st
(
a
.
$slots
,
"default"
,
{},
void
0
,
!
0
),
A
(
nt
,
{
name
:
"captcha--status-tip"
},
{
default
:
O
(()
=>
[
t
.
verifyStatus
?
(
l
(),
b
(
Rt
,
rt
(
ot
({
key
:
0
},
t
.
verifyStatus
)),
null
,
16
))
:
x
(
""
,
!
0
)
t
.
verifyStatus
?
(
l
(),
x
(
Rt
,
rt
(
ct
({
key
:
0
},
t
.
verifyStatus
)),
null
,
16
))
:
b
(
""
,
!
0
)
]),
_
:
1
})
...
...
@@ -419,14 +419,14 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
},
emits
:
[
"verify"
],
setup
(
t
,
{
emit
:
e
})
{
const
a
=
e
,
n
=
t
,
i
=
280
/
n
.
captcha
.
backgroundImageWidth
,
s
=
f
(
0
),
c
=
$
(()
=>
F
(
n
.
captcha
,
i
)),
u
=
Tt
({
const
a
=
e
,
n
=
t
,
i
=
280
/
n
.
captcha
.
backgroundImageWidth
,
s
=
f
(
0
),
o
=
$
(()
=>
F
(
n
.
captcha
,
i
)),
u
=
Tt
({
captcha
:
n
.
captcha
,
ratio
:
i
,
max
:
225
,
onDrag
:
(
d
)
=>
s
.
value
=
d
,
onVerify
:
(
d
)
=>
a
(
"verify"
,
d
)
});
return
N
(()
=>
u
.
destroy
()),
(
d
,
r
)
=>
(
l
(),
b
(
j
,
{
return
N
(()
=>
u
.
destroy
()),
(
d
,
r
)
=>
(
l
(),
x
(
j
,
{
class
:
"captcha--view--concat"
,
verifyStatus
:
t
.
verifyStatus
,
x
:
s
.
value
,
...
...
@@ -434,14 +434,14 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
onMousedown
:
y
(
u
).
onDragStart
},
{
default
:
O
(()
=>
[
o
(
"img"
,
{
c
(
"img"
,
{
src
:
t
.
captcha
.
backgroundImage
,
class
:
"captcha--view--concat--bg"
},
null
,
8
,
Bt
),
o
(
"div"
,
{
c
(
"div"
,
{
class
:
"captcha--view--concat--track"
,
style
:
S
({
height
:
`
${
c
.
value
}
px`
,
height
:
`
${
o
.
value
}
px`
,
backgroundImage
:
`url('
${
t
.
captcha
.
backgroundImage
}
')`
,
backgroundPositionX
:
`
${
s
.
value
}
px`
})
...
...
@@ -463,16 +463,16 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
},
emits
:
[
"verify"
],
setup
(
t
,
{
emit
:
e
})
{
const
a
=
e
,
n
=
t
,
i
=
f
(
0
),
s
=
f
(
0
),
c
=
280
/
n
.
captcha
.
backgroundImageWidth
,
u
=
Et
({
const
a
=
e
,
n
=
t
,
i
=
f
(
0
),
s
=
f
(
0
),
o
=
280
/
n
.
captcha
.
backgroundImageWidth
,
u
=
Et
({
captcha
:
n
.
captcha
,
ratio
:
c
,
ratio
:
o
,
max
:
225
,
onDrag
:
(
d
,
r
)
=>
{
i
.
value
=
d
,
s
.
value
=
r
;
},
onVerify
:
(
d
)
=>
a
(
"verify"
,
d
)
});
return
N
(()
=>
u
.
destroy
()),
(
d
,
r
)
=>
(
l
(),
b
(
j
,
{
return
N
(()
=>
u
.
destroy
()),
(
d
,
r
)
=>
(
l
(),
x
(
j
,
{
class
:
"captcha--view--rotate"
,
verifyStatus
:
t
.
verifyStatus
,
x
:
i
.
value
,
...
...
@@ -480,11 +480,11 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
onMousedown
:
y
(
u
).
onDragStart
},
{
default
:
O
(()
=>
[
o
(
"img"
,
{
c
(
"img"
,
{
src
:
t
.
captcha
.
backgroundImage
,
class
:
"captcha--view--rotate--bg"
},
null
,
8
,
Xt
),
o
(
"img"
,
{
c
(
"img"
,
{
src
:
t
.
captcha
.
templateImage
,
class
:
"captcha--view--rotate--track"
,
style
:
S
({
transform
:
`rotate(
${
s
.
value
}
deg)`
})
...
...
@@ -506,7 +506,7 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
},
emits
:
[
"verify"
],
setup
(
t
,
{
emit
:
e
})
{
const
a
=
e
,
n
=
t
,
i
=
280
/
n
.
captcha
.
backgroundImageWidth
,
s
=
f
(
0
),
c
=
Mt
({
const
a
=
e
,
n
=
t
,
i
=
280
/
n
.
captcha
.
backgroundImageWidth
,
s
=
f
(
0
),
o
=
Mt
({
captcha
:
n
.
captcha
,
ratio
:
i
,
onDrag
:
(
u
)
=>
{
...
...
@@ -514,19 +514,19 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
},
onVerify
:
(
u
)
=>
a
(
"verify"
,
u
)
});
return
N
(()
=>
c
.
destroy
()),
(
u
,
d
)
=>
(
l
(),
b
(
j
,
{
return
N
(()
=>
o
.
destroy
()),
(
u
,
d
)
=>
(
l
(),
x
(
j
,
{
class
:
"captcha--view--slider"
,
verifyStatus
:
t
.
verifyStatus
,
x
:
s
.
value
,
onTouchstart
:
y
(
c
).
onDragStart
,
onMousedown
:
y
(
c
).
onDragStart
onTouchstart
:
y
(
o
).
onDragStart
,
onMousedown
:
y
(
o
).
onDragStart
},
{
default
:
O
(()
=>
[
o
(
"img"
,
{
c
(
"img"
,
{
src
:
t
.
captcha
.
backgroundImage
,
class
:
"captcha--view--slider--bg"
},
null
,
8
,
Zt
),
o
(
"img"
,
{
c
(
"img"
,
{
src
:
t
.
captcha
.
templateImage
,
class
:
"captcha--view--slider--track"
,
style
:
S
({
transform
:
`translateX(
${
s
.
value
}
px)`
})
...
...
@@ -535,7 +535,7 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
_
:
1
},
8
,
[
"verifyStatus"
,
"x"
,
"onTouchstart"
,
"onMousedown"
]));
}
}),
Ft
=
/* @__PURE__ */
_
(
Gt
,
[[
"__scopeId"
,
"data-v-8fb0f971"
]]),
Jt
=
(
t
)
=>
(
E
(
"data-v-6ba70e16"
),
t
=
t
(),
T
(),
t
),
Kt
=
/* @__PURE__ */
Jt
(()
=>
/* @__PURE__ */
o
(
"svg"
,
{
}),
Ft
=
/* @__PURE__ */
_
(
Gt
,
[[
"__scopeId"
,
"data-v-8fb0f971"
]]),
Jt
=
(
t
)
=>
(
E
(
"data-v-6ba70e16"
),
t
=
t
(),
T
(),
t
),
Kt
=
/* @__PURE__ */
Jt
(()
=>
/* @__PURE__ */
c
(
"svg"
,
{
class
:
"captcha--error--icon"
,
viewBox
:
"0 0 1024 1024"
,
version
:
"1.1"
,
...
...
@@ -544,7 +544,7 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
width
:
"64"
,
height
:
"64"
},
[
/* @__PURE__ */
o
(
"path"
,
{
/* @__PURE__ */
c
(
"path"
,
{
d
:
"M575.986694 832.039919C575.986694 867.356032 547.316113 896.026613 512 896.026613 476.683887 896.026613 448.013306 867.356032 448.013306 832.039919 448.013306 796.723806 476.683887 768.048156 512 768.048156 547.316113 768.048156 575.986694 796.64777 575.986694 832.039919ZM512 255.997465C476.683887 255.997465 448.013306 284.668046 448.013306 319.984159L448.013306 639.998733C448.013306 675.314846 476.683887 703.990496 512 703.990496 547.316113 703.990496 575.986694 675.314846 575.986694 639.998733L575.986694 319.984159C575.986694 284.668046 547.316113 255.997465 512 255.997465ZM1023.979724 896.026613C1023.979724 966.729805 966.709529 1024.005069 896.006336 1024.005069L127.993664 1024.005069C57.290471 1024.005069 0.020276 966.658839 0.020276 896.026613 0.020276 874.868373 5.216059 854.931776 14.39105 837.311737L14.320083 837.24077 398.250384 69.304133 398.392317 69.304133C419.626593 28.133261 462.455047 0.040552 512 0.040552 561.544953 0.040552 604.373407 28.209297 625.67865 69.3751L1008.311272 834.711311C1018.348003 852.838256 1023.979724 873.783595 1023.979724 896.026613ZM959.99303 896.026613C959.99303 885.123073 957.392604 874.868373 952.191753 865.404445L951.613881 864.319667 951.112044 863.239958 568.621355 98.405584C557.499847 77.171308 535.834701 64.027246 512 64.027246 488.023365 64.027246 466.282184 77.318311 455.160675 98.765487L452.12938 104.544211 92.175714 824.527578 92.677551 825.034483 71.154339 866.778159C66.389426 875.948082 64.00697 885.842879 64.00697 896.097579 64.00697 931.413692 92.748517 960.089342 127.993664 960.089342L896.006336 960.089342C931.322449 960.013306 959.99303 931.342726 959.99303 896.026613Z"
,
"p-id"
:
"6384"
})
...
...
@@ -555,32 +555,32 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
const
a
=
e
,
n
=
B
();
return
(
i
,
s
)
=>
(
l
(),
m
(
"div"
,
{
className
:
"captcha--error"
,
onClick
:
s
[
0
]
||
(
s
[
0
]
=
(
c
)
=>
a
(
"click"
,
c
))
onClick
:
s
[
0
]
||
(
s
[
0
]
=
(
o
)
=>
a
(
"click"
,
o
))
},
[
Kt
,
o
(
"div"
,
Qt
,
D
(
y
(
n
)(
"网络异常,请点击重试"
)),
1
)
c
(
"div"
,
Qt
,
D
(
y
(
n
)(
"网络异常,请点击重试"
)),
1
)
]));
}
}),
ee
=
/* @__PURE__ */
_
(
te
,
[[
"__scopeId"
,
"data-v-6ba70e16"
]]),
ae
=
{},
se
=
(
t
)
=>
(
E
(
"data-v-edb749e2"
),
t
=
t
(),
T
(),
t
),
ne
=
{
class
:
"captcha--loading"
},
re
=
/* @__PURE__ */
se
(()
=>
/* @__PURE__ */
o
(
"div"
,
{
class
:
"lds-ellipsis"
},
[
/* @__PURE__ */
o
(
"div"
),
/* @__PURE__ */
o
(
"div"
),
/* @__PURE__ */
o
(
"div"
),
/* @__PURE__ */
o
(
"div"
)
],
-
1
)),
o
e
=
[
}),
ee
=
/* @__PURE__ */
_
(
te
,
[[
"__scopeId"
,
"data-v-6ba70e16"
]]),
ae
=
{},
se
=
(
t
)
=>
(
E
(
"data-v-edb749e2"
),
t
=
t
(),
T
(),
t
),
ne
=
{
class
:
"captcha--loading"
},
re
=
/* @__PURE__ */
se
(()
=>
/* @__PURE__ */
c
(
"div"
,
{
class
:
"lds-ellipsis"
},
[
/* @__PURE__ */
c
(
"div"
),
/* @__PURE__ */
c
(
"div"
),
/* @__PURE__ */
c
(
"div"
),
/* @__PURE__ */
c
(
"div"
)
],
-
1
)),
c
e
=
[
re
];
function
c
e
(
t
,
e
)
{
return
l
(),
m
(
"div"
,
ne
,
o
e
);
function
o
e
(
t
,
e
)
{
return
l
(),
m
(
"div"
,
ne
,
c
e
);
}
const
ie
=
/* @__PURE__ */
_
(
ae
,
[[
"render"
,
ce
],
[
"__scopeId"
,
"data-v-edb749e2"
]]),
q
=
(
t
)
=>
(
E
(
"data-v-0a2d342a"
),
t
=
t
(),
T
(),
t
),
ue
=
{
class
:
"captcha--box"
},
de
=
{
className
:
"captcha--bottom"
},
le
=
/* @__PURE__ */
q
(()
=>
/* @__PURE__ */
o
(
"path"
,
{
const
ie
=
/* @__PURE__ */
_
(
ae
,
[[
"render"
,
oe
],
[
"__scopeId"
,
"data-v-edb749e2"
]]),
q
=
(
t
)
=>
(
E
(
"data-v-0a2d342a"
),
t
=
t
(),
T
(),
t
),
ue
=
{
class
:
"captcha--box"
},
de
=
{
className
:
"captcha--bottom"
},
le
=
/* @__PURE__ */
q
(()
=>
/* @__PURE__ */
c
(
"path"
,
{
d
:
"M715.7 794.7c-1.9-4.7-7.4-6.5-11.8-4-54.3 31.1-115.8 50.3-177.2 50.3-192.2 0-345.2-148.3-345.2-335.7 0-37.7 5.5-72.6 18.3-107.1l65.2 17.5c6.3 1.7 11.9-4.1 10-10.5l-55.5-183.1c-1.8-5.9-9.1-7.9-13.5-3.6l-139.4 131c-4.8 4.5-2.8 12.3 3.5 14.1l58.2 15.6c-15.7 42.6-25.4 86.5-25.4 135 0 226.6 187.9 409.8 419.5 409.8 76.7 0 149.6-18.6 215.5-55.9 3.6-2.1 5.2-6.5 3.6-10.4l-25.8-63zM308.2 229.2c1.9 4.7 7.4 6.5 11.8 4 54.3-31.2 115.8-50.3 177.2-50.3 192.2 0 345.2 148.3 345.2 335.7 0 37.7-5.5 72.6-18.3 107.1l-65.2-17.5c-6.3-1.7-11.9 4.1-10 10.5l55.5 183.1c1.8 5.9 9.1 7.9 13.5 3.6l139.5-130.8c4.8-4.5 2.8-12.3-3.5-14.1l-58.2-15.6c15.7-42.6 25.4-86.5 25.4-135 0-226.6-187.9-409.8-419.5-409.8-76.7 0-149.6 18.6-215.5 55.9-3.6 2.1-5.2 6.5-3.6 10.4l25.7 62.8z"
,
"p-id"
:
"4400"
},
null
,
-
1
)),
he
=
[
le
],
pe
=
/* @__PURE__ */
q
(()
=>
/* @__PURE__ */
o
(
"path"
,
{
],
pe
=
/* @__PURE__ */
q
(()
=>
/* @__PURE__ */
c
(
"path"
,
{
d
:
"M509.866667 32C245.333333 32 32 247.466667 32 512s213.333333 480 477.866667 480S987.733333 776.533333 987.733333 512 774.4 32 509.866667 32z m0 896C281.6 928 96 742.4 96 512S281.6 96 509.866667 96 923.733333 281.6 923.733333 512s-185.6 416-413.866666 416z"
,
"p-id"
:
"5378"
},
null
,
-
1
)),
ve
=
/* @__PURE__ */
q
(()
=>
/* @__PURE__ */
o
(
"path"
,
{
},
null
,
-
1
)),
ve
=
/* @__PURE__ */
q
(()
=>
/* @__PURE__ */
c
(
"path"
,
{
d
:
"M693.333333 330.666667c-12.8-12.8-32-12.8-44.8 0L512 467.2l-136.533333-136.533333c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8l136.533333 136.533333-136.533333 136.533333c-12.8 12.8-12.8 32 0 44.8 6.4 6.4 14.933333 8.533333 23.466666 8.533334s17.066667-2.133333 23.466667-8.533334l136.533333-136.533333 136.533334 136.533333c6.4 6.4 14.933333 8.533333 23.466666 8.533334s17.066667-2.133333 23.466667-8.533334c12.8-12.8 12.8-32 0-44.8L556.8 512l136.533333-136.533333c12.8-12.8 12.8-32 0-44.8z"
,
"p-id"
:
"5379"
},
null
,
-
1
)),
ge
=
[
...
...
@@ -622,9 +622,9 @@ const ie = /* @__PURE__ */ _(ae, [["render", ce], ["__scopeId", "data-v-edb749e2
CONCAT
:
qt
,
SLIDER
:
Ft
,
ROTATE
:
Ut
},
i
=
a
,
s
=
t
,
c
=
$
(
},
i
=
a
,
s
=
t
,
o
=
$
(
()
=>
typeof
s
.
radius
==
"number"
&&
!
isNaN
(
s
.
radius
)
&&
s
.
radius
>=
0
?
{
borderRadius
:
`
${
s
.
radius
}
px`
}
:
{}
),
u
=
c
t
(
s
,
"locale"
);
),
u
=
o
t
(
s
,
"locale"
);
$t
(
u
);
const
d
=
f
(
!
1
),
r
=
f
(
!
1
),
w
=
f
(
!
1
),
p
=
f
(),
h
=
f
(
!
1
),
v
=
f
(),
I
=
f
(
0
),
Q
=
()
=>
{
d
.
value
=
!
0
;
...
...
@@ -686,24 +686,24 @@ const ie = /* @__PURE__ */ _(ae, [["render", ce], ["__scopeId", "data-v-edb749e2
"captcha--container--radius"
:
t
.
radius
,
"captcha--container--shadow"
:
t
.
shadow
}]),
style
:
S
(
c
.
value
),
style
:
S
(
o
.
value
),
onTouchmove
:
g
[
1
]
||
(
g
[
1
]
=
P
(()
=>
{
},
[
"prevent"
])),
onMousemove
:
g
[
2
]
||
(
g
[
2
]
=
P
(()
=>
{
},
[
"prevent"
]))
},
[
o
(
"div"
,
ue
,
[
p
.
value
?
(
l
(),
b
(
ut
(
n
[
p
.
value
.
captcha
.
type
]),
{
c
(
"div"
,
ue
,
[
p
.
value
?
(
l
(),
x
(
ut
(
n
[
p
.
value
.
captcha
.
type
]),
{
key
:
p
.
value
.
key
,
captcha
:
p
.
value
.
captcha
,
verifyStatus
:
p
.
value
.
verifyStatus
,
onVerify
:
tt
},
null
,
40
,
[
"captcha"
,
"verifyStatus"
]))
:
x
(
""
,
!
0
),
p
.
value
?
(
l
(),
m
(
V
,
{
key
:
1
},
[],
64
))
:
x
(
""
,
!
0
),
d
.
value
?
(
l
(),
b
(
ie
,
{
key
:
2
}))
:
x
(
""
,
!
0
),
h
.
value
?
(
l
(),
b
(
ee
,
{
key
:
3
}))
:
x
(
""
,
!
0
)
},
null
,
40
,
[
"captcha"
,
"verifyStatus"
]))
:
b
(
""
,
!
0
),
p
.
value
?
(
l
(),
m
(
V
,
{
key
:
1
},
[],
64
))
:
b
(
""
,
!
0
),
d
.
value
?
(
l
(),
x
(
ie
,
{
key
:
2
}))
:
b
(
""
,
!
0
),
h
.
value
?
(
l
(),
x
(
ee
,
{
key
:
3
}))
:
b
(
""
,
!
0
)
]),
o
(
"div"
,
de
,
[
c
(
"div"
,
de
,
[
(
l
(),
m
(
"svg"
,
{
class
:
z
([
"captcha--svg-icon captcha--btn-refresh"
,
{
"captcha--btn-refresh--active"
:
r
.
value
...
...
@@ -728,7 +728,7 @@ const ie = /* @__PURE__ */ _(ae, [["render", ce], ["__scopeId", "data-v-edb749e2
onClick
:
g
[
0
]
||
(
g
[
0
]
=
()
=>
{
w
.
value
||
i
(
"close"
);
})
},
ge
))
:
x
(
""
,
!
0
)
},
ge
))
:
b
(
""
,
!
0
)
])
],
38
));
}
...
...
package.json
View file @
420a158e
{
"name"
:
"fj-captcha-vue"
,
"version"
:
"1.0.
1
"
,
"version"
:
"1.0.
2
"
,
"type"
:
"module"
,
"main"
:
"./esm/index.js"
,
"typings"
:
"./esm/index.d.ts"
,
...
...
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