1.2.2 • Published 4 years ago

sensitive-guard v1.2.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

SensitiveGuard 脱敏

##安装

npm i sensitive-guard

引入方法

在入口文件中,例如 main.js 引入

import SensitiveGuide from 'sensitive-guard'
Vue.use(SensitiveGuide)

##使用方法 直接将需要脱敏的内容用组件包裹

<SensitiveGuard>18888888888</SensitiveGuard>

##参数

remote => 类型:Function,默认:null,鼠标移入可执行的事件;
seeAll => 类型:Boolean,默认:true,是否可查看完整的脱敏内容;
keepWords => 类型:Number,默认:3,脱敏后保留的字符长度;
type => 类型:String,取值:center或end,默认:center。center表示字符串中间脱敏,如188***665;end标识末尾脱敏,如:上海市浦东新区***;
1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago