verifition-tools
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

use upload-file

install

cnpm i verifition-tools --save

登录校验图像组件

  • blockPuzzle 滑块模式
  • clickWord 单词点击模式(目前不可用)

引用

import {useRef,useEffect} from 'react'
import Verify from './Verify'
import type {VerifyRef} from './Verify'

const Page ()=>{
  const verifyRef = useRef<VerifyRef>(null)
  // 验证成功回调
  const successBack  = ()=>{
    console.log('验证成功回调')
  }
  useEffect(()=>{
    // 显示滑块 建议点击登录时候调用
    verifyRef.current?.show()
  },[])
  return <Verify captchaType="blockPuzzle" mode="pop" ref={verifyRef} successBack={successBack} />
}
export default Page

版本

1.0.1 初始化版本

Readme

Keywords

Package Sidebar

Install

npm i verifition-tools

Repository

github.com/

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

96.8 kB

Total Files

12

Last publish

Collaborators

  • xjuuuuu_
  • zhenxing1999
  • benjy0132