A powerful security code input supports dynamic configuration of the number of input boxes.
- Automatic next input box.
- Page initialization automatic countdown.
- The number of custom input boxes.
- Support copy and paste.
npm install --save ofcold-security-code
<!-- Html -->
<Sms v-model="code"></Sms>
// Javascript
import Sms from 'ofcold-security-code';
export default {
data:() => ({
code: ''
}),
components: {
Sms
}
}
Props | Type | Required |
---|---|---|
value | String,Number | true |
title | String | true |
description | Stringy | NULL |