<template>
  <el-input
    v-model="input"
    :placeholder="$attrs.placeholder"
    clearable
    type="password"
    autocomplete="off"
    :size="$attrs.size"
    :style="{ width: width }"
  ></el-input>
</template>
<script>
export default {
  name: 'pasInput',
  data() {
    return {}
  },
  props: {
    defaultValue: {
      default: ''
    },
    width: {
      type: String,
      default: '80%'
    }
  },
  computed: {
    input: {
      get() {
        return this.defaultValue
      },
      set(val) {
        this.$emit('input', val, this.$attrs.querykey)
      }
    }
  },
  inheritAttrs: false,
  mounted() {}
}
</script>
