ofcold-security-code
A powerful security code input supports dynamic configuration of the number of input boxes.
800
61
| Install | |
|---|---|
npm install ofcold-security-code |
|
| Latest Version: | 2.1.0 |
| Vue: | 3 |
| Older releases: | 2 |
| License: | MIT |
| Last Updated: | Aug 5, 2021 |
| Links: | GitHub · npm |
Maintainer: olivia-bill
Ofcold Security Code
A powerful security code input supports dynamic configuration of the number of input boxes.
Features
- Automatic next input box.
- Page initialization automatic countdown.
- The number of custom input boxes.
- Support copy and paste.
- Support tailwindcss by version >=2.0.0
Installation
npm install --save ofcold-security-code
Usage
<!-- Html -->
<ofcold-code v-model="code"/>
VUE 2.0 And 3.0
// Javascript
import OfcoldCode from 'ofcold-security-code';
export default {
data:() => ({
code: ''
}),
components: {
OfcoldCode
}
}
// OR ...
import {defineComponent, ref} from 'vue'
import OfcoldCode from 'ofcold-security-code'
export default defineComponent({
components: {
OfcoldCode
},
setup(props, ctx) {
const code = ref('')
return {
code
}
}
})
API
isArrayDeprecated version 2.x please usereturnArray.returnArrayboolean default false The return data type.valstring|array default ''.lenThe code length default6.sizeThe input size defaultmdThe options aresmall,default,lg,xl.
Example loading...

Related Packages
ofcold-vue-security-code
A powerful security code input supports dynamic configuration of the number of i...
4,292
61
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.1.0 | ^3.0 | MIT | |
| 2.0.0 | ^3.0 | MIT | |
| 1.1.0 | ^2.5 | MIT | |
| 1.0.11 | ^2.5 | MIT | |
| 1.0.10 | ^2.5 | MIT | |
| 1.0.9 | ^2.5 | MIT | |
| 1.0.8 | ^2.5 | MIT | |
| 1.0.7 | ^2.5 | MIT | |
| 1.0.6 | ^2.5 | MIT | |
| 1.0.5 | ^2.5 | MIT | |
| 1.0.4 | ^2.5 | MIT | |
| 1.0.3 | ^2.5 | MIT | |
| 1.0.2 | ^2.5 | MIT | |
| 1.0.1 | ^2.5 | MIT | |
| 1.0.0 | ^2.5 | MIT |