# @liubeike/drag-box

> ## 一个可自由拖拽拉伸的Vue3窗口组件 [=>点击在线预览

Latest version **0.0.4** (published 2023-04-20) · 0 weekly downloads

## Install

```sh
npm install @liubeike/drag-box
pnpm add @liubeike/drag-box
yarn add @liubeike/drag-box
bun add @liubeike/drag-box
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2023-04-20 |
| First published | 2023-04-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | beikeliu |
| Maintainers | liubeike |

## Links

- npm: https://www.npmjs.com/package/@liubeike/drag-box
- npm.io page: https://npm.io/package/@liubeike/drag-box

## Dependencies (1)

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

## Recent versions

- 0.0.4 (latest) — 2023-04-20
- 0.0.3 — 2023-04-19
- 0.0.2 — 2023-04-19
- 0.0.1 — 2023-04-19

## README

# drag-box

## 一个可自由拖拽拉伸的Vue3窗口组件 [=>点击在线预览<=](https://beikeliu.github.io/drag-box/)

- 鼠标拖动窗口顶部进行拖拽
- 鼠标拖动窗口右下角进行拉伸

### 如何安装？
```sh
npm i @liubeike/drag-box
```

### 如何使用组件？
```vue
<script setup>
import DragBox from '@liubeike/drag-box'
import '@liubeike/drag-box/lib/style.css'
const boxSize = {
  width: 300, // 默认初始宽度
  height: 500, // 默认初始高度
  top: 100, // 默认初始距离顶部距离
  left: 100 // 默认初始距离左侧距离
}
</script>

<template>
  <DragBox v-bind="boxSize">
    <template v-slot:header>窗口标题</template>
    <main>窗口主题</main>
  </DragBox>
</template>
```

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