<template>
  <m-form class="mt-5" ref="form" :items="formItems" v-model="formValues" />
</template>

<script>
import MForm from '@/components/MForm'
export default {
  name: 'reset-password',
  components: { MForm },
  data () {
    return {
      value: null,
      formValues: {
        newPwd: ''
      },
      formItems: [
        {
          type: 'password',
          key: 'newPwd',
          label: '请输入新密码 *',
          outlined: true,
          dense: true,
          rules: [v => !!v || '请输入新密码']
        }
      ]
    }
  },
  methods: {
    validate () {
      return this.$refs.form.$refs.form.validate()
    },
    getValue () {
      return this.formValues
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
