Skip to content

Captcha 验证码输入框 ​

参数 ​

参数说明类型可选值默认值
v-model绑定值string
height高度number / string120rpx
length验证码位数number4
gutter间隔number20

事件 ​

事件名称说明回调参数
done输入完成时触发function(value)

示例 ​

基本用法 ​

html
<cl-captcha></cl-captcha>

设置高度 ​

html
<cl-captcha :height="140"></cl-captcha>

设置位数 ​

html
<cl-captcha :length="6"></cl-captcha>