# vue-slideout
**Repository Path**: shijieOK/vue-slideout
## Basic Information
- **Project Name**: vue-slideout
- **Description**: 一个 Vue2/3 的侧滑组件
- **Primary Language**: JavaScript
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 15
- **Created**: 2024-04-16
- **Last Updated**: 2024-04-16
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Slideout
[](https://github.com/hyjiacan/vue-slideout/blob/master/LICENSE)
[](https://www.travis-ci.org/hyjiacan/vue-slideout)
[](https://www.npmjs.com/package/@hyjiacan/vue-slideout)

[](https://npmcharts.com/compare/@hyjiacan/vue-slideout?minimal=true)
[](https://coveralls.io/github/hyjiacan/vue-slideout?branch=master)
[](https://www.jsdelivr.com/package/npm/@hyjiacan/vue-slideout)
A Slide-Out component for Vue3
## Dependencies
- Vue.js 3.x
- Less
## Install
### NodeJS ENV (commonjs)
```bash
npm i @hyjiacan/vue-slideout@3
```
or
```bash
yarn add @hyjiacan/vue-slideout@3
```
If you need compatible with Vue.js 2.x, use version `@hyjiacan/vue-slideout@2`.
You can get the latest code:
```bash
git clone https://github.com/hyjiacan/vue-slideout.git
```
or just [download archive](https://github.com/hyjiacan/vue-slideout/archive/master.zip)
### Browser ENV (umd)
Like node-env, a global `Slideout` will be attached onto `window`.
The newest version
```html
```
Specified version
```html
```
> **unpkg** is also available: instead *cdn.jsdelivr.net* with *unpkg.com*.
>
> Also, you can use the uncompressed dist by instead *slideout.umd.min.js* with *slideout.umd.js*
## Usage
### Global (recommended)
*main.js*
```javascript
import Vue from 'vue'
import Slideout from '@hyjiacan/vue-slideout'
import '@hyjiacan/vue-slideout/dist/slideout.css'
// import Slideout component, and set the defaults props
Vue.use(Slideout, {
// set default props here
})
```
### In Component
*Foobar.vue*
```html
content
```
- For more usage, see https://hyjiacan.github.io/vue-slideout/
- API reference: [API.md](./API.md)
Try it on the fly [CodePen][codepen]
[codepen]: https://codepen.io/hyjiacan/pen/LYRZONE
## Development
```bash
yarn
# start dev server
yarn serve
# Build library
yarn release
```