Rotate.vue 708 B

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