0.1.4 • Published 4 years ago

vue-square-input v0.1.4

Weekly downloads
19
License
-
Repository
github
Last release
4 years ago

vue-square-input

一个简单的方块输入框组件,常用于短信验证码、车牌号类的输入

使用

# 安装 npm 包
npm install -S vue-square-input

# 项目引入css
import "~vue-square-input/lib/vue-square-input.css";

# 项目main.js引入组件, 全局引入

import VueSquareInput from 'vue-square-input'

Vue.use(VueSquareInput)

构建命令

# 安装依赖
npm install

# 启动本地服务(默认localhost与ip) localhost:8080
npm run dev

# 打包示例
npm run bulid

Api

参数描述类型可选值必须默认值
value | v-modelstringtrue''
length方块个数numberfalse6
isUpperCase是否转为大写Booleanfalsefalse
readonly是否只读Booleanfalsefalse

示例

  1. PC demo 请 F12,选择手机模式查看
  2. 手机浏览器扫一扫下面二维码

image

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago