<template>
  <el-form class="phone-form" :model="phoneForm" status-icon ref="phoneFormRef">
    <el-form-item prop="pass">
      <el-input
        v-model="phoneForm.phone"
        autocomplete="off"
        prefix-icon="el-icon-user"
        clearable
      ></el-input>
    </el-form-item>

    <el-form-item prop="code">
      <el-input
        type="password"
        v-model="phoneForm.code"
        clearable
        prefix-icon="el-icon-position"
        autocomplete="off"
      ></el-input>
    </el-form-item>

    <el-form-item>
      <el-button class="phone-form-submit" size="small" round type="primary">
        登录
      </el-button>
    </el-form-item>
  </el-form>
</template>

<script lang="ts">
import { defineComponent, reactive, ref } from "vue";

export default defineComponent({
  name: "phone",
  setup() {
    const phoneForm = reactive({
      phone: "",
      code: "",
    });

    return {
      phoneForm,
    };
  },
});
</script>

<style lang="scss" scoped>
.phone-form {
  &-submit {
    width: 100%;
    letter-spacing: 2px;
    font-weight: 300;
    margin-top: 15px;
  }
}
</style>
