# liuming-vue

> vue组件,前端常用函数

Latest version **1.0.0** (published 2021-08-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install liuming-vue
pnpm add liuming-vue
yarn add liuming-vue
bun add liuming-vue
```

## 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.0 |
| Published | 2021-08-11 |
| First published | 2021-08-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 79.2 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| Author | 刘铭 |
| Maintainers | liuming1994 |

## Links

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

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.18.0

## Recent versions

- 1.0.0 (latest) — 2021-08-11

## README

## 1.指令

#### 1.1 一个用于追踪 dom 元素是否有鼠标悬停的 Hook
````
  <div v-useHove="useHove"></div>
  
  useHove(type){
    if(type == 'mouseenter'){
      this.num = 1
    }
    if(type == 'mouseout'){
      this.num = 0
    }
  }
````

#### 1.2 优雅的管理目标元素外点击事件的 Hook。
````
  <div v-useClickAway="useClickAway"></div>
  
  useClickAway(type){
    console.log(11111)
  }
````

#### 1.3 一个用于处理 dom 全屏的 Hook。
````
  <div class="box" id="box"></div>
  <button v-useFullscreen="`#box`">点击按钮#box全屏</button>
````

#### 1.4 一个用于追踪input focus的 Hook。
````
  <input v-useFocus="useFocus"/>
  
   useFocus(){
      console.log(11111)
   }
````

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