# vue-self-adaption-view

> vue自适应视图容器

Latest version **1.0.3** (published 2022-01-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-self-adaption-view
pnpm add vue-self-adaption-view
yarn add vue-self-adaption-view
bun add vue-self-adaption-view
```

## 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.3 |
| Published | 2022-01-18 |
| First published | 2022-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 20.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | xuelian.xiang |
| Maintainers | xuelian.xiang |
| Keywords | vue, self, adapation, view |

## Links

- npm: https://www.npmjs.com/package/vue-self-adaption-view
- Repository: https://github.com/xuelian0518/vue-self-adaption-view
- Issues: https://github.com/xuelian0518/vue-self-adaption-view.git/issues
- npm.io page: https://npm.io/package/vue-self-adaption-view

## Dependencies (1)

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

## Recent versions

- 1.0.3 (latest) — 2022-01-18
- 1.0.2 — 2022-01-14
- 1.0.1 — 2022-01-14
- 1.0.0 — 2022-01-14

## README

# vue-self-adaption-view
> self-adaption-view

## Installation

``` bash
npm install vue-self-adaption-view
```


#### import
``` bash
import SelfAdaptionView from 'vue-self-adaption-view'
export default {
    name: 'app',
    components: {
        SelfAdaptionView
    },
    data() {
        return {
            list: [1, 2, 3, 4, 5, 6, 7],
            minWidth: 300,
            width: 144,
            paginationColor: 'red',
        }
    },
}
```
#### Use in template
``` bash
<self-adaption-view
    :list="list"
    :minWidth="minWidth"
    :paginationColor="paginationColor"
    :width="width">
    <template slot="source" slot-scope="{ source }">
        
    </template>
</self-adaption-view>
```
#### Options

| Name            |              Description          |  type   |  default  | require |
| :----------     | :-------------------------------- |  :----: |  :------: |  :----: |
| backgroundColor | background color                  |  String |  #ffffff  |  false  |
| paginationColor | Page button color                 |  String |  #000000  |  false  |
| list            | data source                       |  Array  |           |  true   |
| width           | the width of a single element     |  Number |           |  true   |
| min-width       | the minimum width of the container|  Number |           |  true   |

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