0.0.7 • Published 2 years ago
natux v0.0.7
使用:
in bash:
npm i natux
in main.js:
import natux from 'natux'
Vue.use(natux)
1. secure-password 组件
参数 | 说明 | 类型 | 默认值 | 可选值 | required |
---|---|---|---|---|---|
form | 绑定的form,使用组件必传 | Object | - | - | true |
password | 指定form中password对应的字段名 | String | password | - | false |
secureLevel | 密码安全级别,适用于未设定customReg的情况 | String | low | low,mid,high | false |
type | 指定密码是明文还是密文 | String | text | Text,password | false |
placeholder | 输入框的占位符,如果使用了customReg则最好设置该属性。若没有设置customReg,则会根据secureLevel展示预置的三种密码强度的说明。 | String | 请输入密码 | - | false |
maxlength | 最长长度 | String | 50 | - | false |
customReg | 自定义校验规则。需要搭配placeholder使用。 | RegEXP | - | - | false |
--
2. index.scss 通用样式
- 使用方法:在main.js中
import 'natux/lib/style/index.scss'
,即可生效。