/security-code

A powerful security code input supports dynamic configuration of the number of input boxes.

Primary LanguageVueMIT LicenseMIT

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.

Installation

	npm install --save ofcold-security-code

Usage

	<!-- Html  -->
	<Sms v-model="code"></Sms>
	// Javascript
	import Sms from 'ofcold-security-code';

	export default {
		data:() => ({
			code: ''
		}),
		components: {
			Sms
		}
	}

API

Props Type Required
value String,Number true
title String true
description Stringy NULL

Example loading...

CODE