<template>
  <form-list class="mt-5" ref="form" :items="option" />
</template>

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

<style lang="scss" scoped>

</style>
