<template>
  <el-form :model="form" label-width="auto" size="large" label-position="top">
    <el-form-item label="旧密码" class="px-4">
      <el-input v-model="form.oldPassword" placeholder="请输入旧密码" />
    </el-form-item>
    <el-form-item label="新密码" class="px-4">
      <el-input v-model="form.password" type="password" placeholder="请输入新密码" />
    </el-form-item>
    <el-form-item label="确认密码" class="px-4">
      <el-input v-model="form.password2" type="password" placeholder="请确认新密码" />
    </el-form-item>
    <el-form-item class="px-4">
      <el-button type="primary" size="large" @click="onSubmit">保存</el-button>
    </el-form-item>
  </el-form>
</template>
<script setup lang="ts">

withDefaults(
    defineProps<{
      form?: any;
      title?: string;
      desc?: string;
    }>(),
    {}
);
</script>

<style scoped lang="less">

</style>
