|
1
2
3
|
<template>
<div class="p-10">
<div class="flex justify-center p-4 items-center bg-gray-700">
|
vben
authored
|
4
|
<RotateDragVerify :src="img" ref="el" @success="handleSuccess" />
|
|
5
6
7
8
9
10
11
|
</div>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { RotateDragVerify } from '/@/components/Verify/index';
|
vben
authored
|
12
|
import img from '/@/assets/images/header.jpg';
|
|
13
14
15
16
17
18
19
20
|
export default defineComponent({
components: { RotateDragVerify },
setup() {
const handleSuccess = () => {
console.log('success!');
};
return {
handleSuccess,
|
vben
authored
|
21
|
img,
|
|
22
23
24
25
|
};
},
});
</script>
|
nebv
authored
|
26
27
28
29
30
|
<style lang="less" scoped>
.bg-gray-700 {
background: #4a5568;
}
</style>
|