Blame view

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