weixin.uvue 609 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <view class="flex flex-col w-[80vw]">
  3. <cl-button type="success" @tap="wechatLogin">
  4. <cl-image src="https://oss.xiaoxiongcode.com/static/个人中心/微信.png" mode="heightFix" height="20px"
  5. width="auto"></cl-image>
  6. 成功按钮</cl-button>
  7. </view>
  8. </template>
  9. <script setup lang="ts">
  10. import { type PropType } from "vue";
  11. import type { LoginForm } from "./types";
  12. import { useRefs, } from "@/.cool";
  13. const props = defineProps({
  14. form: {
  15. type: Object as PropType<LoginForm>,
  16. default: () => ({})
  17. }
  18. });
  19. const emit = defineEmits(["success"]);
  20. const refs = useRefs();
  21. </script>