mrxujiang / react-slider-vertify Goto Github PK
View Code? Open in Web Editor NEW基于react实现的滑动验证码组件
Home Page: http://h5.dooring.cn/slider-vertify
基于react实现的滑动验证码组件
Home Page: http://h5.dooring.cn/slider-vertify
希望能增加个控制大小 的api
在与后端对接使用中,验证的背景图跟滑块还有滑块的位置都是由后端返回的,请问现在的API可以实现这样的配置吗
./node_modules/@alex_xu/react-slider-vertify/es/Vertify/index.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/@alex_xu/react-slider-vertify/es/Vertify/index.js
能否提供拖拽出,恢复初始位置
实现中,随机获取图片的方法为:
var getRandomImgSrc = function getRandomImgSrc() { return imgUrl || "https://picsum.photos/id/".concat(getRandomNumberByRange(0, 1084), "/").concat(width, "/").concat(height); };
当指定了 imgUrl 属性时自定义的 imgUrl 是个定死的字符串,没有随机性。导致点击刷新按钮时请求地址没有变化,组件没有发起请求获取新图片。上面的方法是否应该改为 (imgUrl || "https://picsum.photos/id/").concat 呢?
能否提供拖拽出,恢复初始位置
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.