# vue-input-limited

> [源码 GIT 地址](https://github.com/MissSharonLi/vue-input-limited)

Latest version **1.0.5** (published 2022-06-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-input-limited
pnpm add vue-input-limited
yarn add vue-input-limited
bun add vue-input-limited
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2022-06-27 |
| First published | 2022-06-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 19.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zoumingqing |
| Maintainers | mingqing |
| Keywords | vue指令 |

## Links

- npm: https://www.npmjs.com/package/vue-input-limited
- npm.io page: https://npm.io/package/vue-input-limited

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^3.2.34

## Recent versions

- 1.0.5 (latest) — 2022-06-27
- 1.0.4 — 2022-06-23
- 1.0.3 — 2022-06-23
- 1.0.2 — 2022-06-23
- 1.0.1 — 2022-06-23
- 1.0.0 — 2022-06-21

## README

[源码 GIT 地址](https://github.com/MissSharonLi/vue-input-limited)

[npm 地址](https://www.npmjs.com/package/vue-input-limited)

#用法

`npm install vue-input-limited --save`

```
import Vue from vue
import directives from 'vue-input-limited'
Vue.use(directives)
```

1.v-num-init(正整数)

```
<el-input v-model="value" v-num-init></el-input>
```

2.v-number(0、正整数)

```
<el-input v-model="value" v-number></el-input>
```

3.v-num-point(保留 n 位小数)

```
// 保留4位小数、其他位数依次类推
<el-input v-model="value" v-num-point="4"></el-input>
```

4.v-no-cn-val(不能输入中文)

```
<el-input v-model="value" v-no-cn-val></el-input>
```

#提示
如果已经安装 vue-input-limited，但在 main.js 中引用时 vscode 提示报错信息如下：

<img width="814" alt="image" src="https://user-images.githubusercontent.com/41463466/175257481-8cf3141e-0fa8-41ff-a95c-a143b50efd35.png">

解决办法：
在 src 文件目录下创建一个 shime-vue.d.ts 文件，在里面写入`declare module 'vue-input-limited'` 即可

---
_Source: https://npm.io/package/vue-input-limited · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
