New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vue-sk-input

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-sk-input

基于vue,带校验的input

latest
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

vue-sk-input

使用

npm install vue-sk-input

##示例

<sk-input v-model="test" placeholder="placeholder" :validate="validate: { reg: /^1$/, errorMsg: 'error' }" clearable />

import skInput from 'vue-sk-input'
Input Attributes
参数说明类型可选值默认值
value / v-model绑定值string / number————
maxlength原生属性,最大输入长度number————
minlength原生属性,最小输入长度number————
placeholder输入框占位文本string————
clearable是否可清空boolean——false
disabled禁用boolean——false
readonly只读boolean——false
size输入框尺寸stringlarge / default / smalldefault
validate校验规则,示例: { reg: /[0-9]/, errorMsg: 'error' }object————
verifyType内置的校验规则( 金额,值不为空,手机号,邮箱 )stringmoney / notNull / phone / email——
Input Events
事件名说明回调参数
blur在 Input 失去焦点时触发(event: Event)
focus在 Input 获得焦点时触发(event: Event)
input在 Input 值改变时触发(event: Event)
clear在点击由 clearable 属性生成的清空按钮时触发——

FAQs

Package last updated on 01 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts