8 Star 33 Fork 6

Kiduc@Xu / square-input

Gitee — Enterprise-level DevOps R&D management platform
Join Gitee
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

square-input

#一个简单的vue小组件。重写了输入框和光标。把原有输入框隐藏。 只是把它弄到全局去了。代码也不长。如果要重写也不麻烦给。样式只给出了一个。可以重写

size //总方格数。(当然也可以是圆形的。)
value //默认值(当然这个值要先验证一下。)
validate //验证方法或者验证的正则
drawInput //画其中一个方格的方法
drawCursor //画光标的方法。
type //input的类型
autofocus //自动焦点

demo

Repository Comments ( 4 )

Sign in for post a comment

About

一个简单的vue小组件。重写了输入框和光标。把原有输入框隐藏。 expand collapse
JavaScript and 2 more languages
Cancel

Releases

No release

square-input

Contributors

All

Activities

load more
can not load any more
JavaScript
1
https://gitee.com/kiduc/square-input.git
git@gitee.com:kiduc/square-input.git
kiduc
square-input
square-input
master

Search

181749 a2d7925e 1850385 181749 9f8568a7 1850385