1.0.0 • Published 4 years ago

no-autofill-password-input v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

no-autofill-password-input

Demo

https://codesandbox.io/s/no-autofill-password-input-demo-dno7q

Installation

npm install no-autofill-password-input

Vue install

import noAutofillPasswordInput from "no-autofill-password-input";
import 'no-autofill-password-input/dist/noAutofillPasswordInput.css';

Vue.component('no-autofill-password-input', noAutofillPasswordInput);

Usage

<no-autofill-password-input 
  v-model="password" 
  :show-password="showPassword"
>
</no-autofill-password-input>

Slot

<no-autofill-password-input 
  :value="password" 
  :show-password="showPassword"
>
  <label>
    <input type="checkbox" v-model="showPassword" />
    <span>Show password</span>
  </label>
  <input type="text" 
    v-model="password" 
    style="margin-left:5px; font-size: 20px" 
  />
</no-autofill-password-input>

props

  • inputClass
  • maskClass
  • showPassword

Important

If input style changed after mounting needed rerender the component

1.0.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago