password.uvue 836 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <view class="flex flex-col w-[40vw]">
  3. <view class="mb-3 flex flex-row ">
  4. <cl-input class="" :pt="{ className: '!h-[40px] !rounded-xxl !px-4 !w-[40vw]' }" v-model="form.username"
  5. placeholder="请输入手机号"></cl-input>
  6. </view>
  7. <view class="relative flex flex-row items-center mb-5">
  8. <cl-input :pt="{ className: '!h-[40px] !rounded-xxl !px-4 !w-[40vw]' }" clearable v-model="form.password" password
  9. placeholder="请输入密码">
  10. </cl-input>
  11. </view>
  12. </view>
  13. </template>
  14. <script setup lang="ts">
  15. import { type PropType } from "vue";
  16. import type { LoginForm } from "./types";
  17. import { useRefs, } from "@/.cool";
  18. const props = defineProps({
  19. form: {
  20. type: Object as PropType<LoginForm>,
  21. default: () => ({})
  22. }
  23. });
  24. const emit = defineEmits(["success"]);
  25. const refs = useRefs();
  26. </script>