go-captcha-uni
Version:
验证码,UniApp 验证码,GoCaptcha 验证码,行为验证码,点选验证码,滑动验证码,旋转验证码,拼图滑块验证码,拼图拖放验证码,图像旋转验证码,点击验证码
33 lines (30 loc) • 660 B
JavaScript
export const defaultConfig = () => ({
width: 300,
height: 220,
thumbWidth: 150,
thumbHeight: 40,
verticalPadding: 16,
horizontalPadding: 12,
showTheme: true,
title: "请拖动滑块完成拼图",
iconSize: 22,
})
export const defaultSlideData = () => ({
thumbX: 0,
thumbY: 0,
thumbWidth: 0,
thumbHeight: 0,
image: '',
thumb: ''
})
export const defaultThemeColors = () => ({
textColor: '#333333',
bgColor: '#ffffff',
borderColor: 'rgba(206, 223, 254, 0.5)',
iconColor: '#3C3C3C',
dragBarColor: '#e0e0e0',
dragBgColor: '#3e7cff',
dragIconColor: '#ffffff',
loadingIconColor: '#3e7cff',
bodyBgColor: '#34383e',
})