# popup-vue

> popup

Latest version **1.0.2** (published 2020-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install popup-vue
pnpm add popup-vue
yarn add popup-vue
bun add popup-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.2 |
| Published | 2020-07-22 |
| First published | 2020-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 72.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | xrp |
| Maintainers | onerosemary |

## Links

- npm: https://www.npmjs.com/package/popup-vue
- Repository: https://github.com/onerosemary/popup-vue
- Homepage: https://github.com/onerosemary/popup-vue#readme
- Issues: https://github.com/onerosemary/popup-vue/issues
- npm.io page: https://npm.io/package/popup-vue

## Dependencies (1)

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

## Recent versions

- 1.0.2 (latest) — 2020-07-22
- 1.0.1 — 2020-07-22
- 1.0.0 — 2020-07-22

## README

# popup-vue

A Vue component to popup-vue
一个基于vue的弹窗组件



## 安装

```JS
npm install popup-vue -S
```

## 使用

```js
// ES6
import popupVue from 'popup-vue'
// require
var popupVue = require('popupVue')

Vue.use(popupVue)

// 或者直接使用script导入
<script src="./node_modules/vue/dist/popup-vue.js"></script>

// 作为组件的方式使用
<popup-vue></popup-vue>
```

### 配置

```html
   <popup-vue ref="box" w="200px" h="100px">
      我是弹窗中的内容...
    </popup-vue>
    methods: {
        clickFn(){
            this.$refs.box.isShow = true
        }
    }
```


### Props

|    name    |    Description   |   type   |default|
| -----------------  | ---------------- | :--------: | :----------: |
| w       | 宽度 |String | 50%或者500px
| h       | 高度 |String | 50%或者500px

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