# flexible-screen

> ## Project setup ``` yarn install ```

Latest version **1.0.2** (published 2021-04-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install flexible-screen
pnpm add flexible-screen
yarn add flexible-screen
bun add flexible-screen
```

## 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 | 2021-04-21 |
| First published | 2021-04-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 22.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | sunyf |
| Maintainers | sunnyfang |
| Keywords | flexible, vue |

## Links

- npm: https://www.npmjs.com/package/flexible-screen
- npm.io page: https://npm.io/package/flexible-screen

## Dependencies (4)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [vuex](https://npm.io/package/vuex.md) ^3.4.0
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [vue-router](https://npm.io/package/vue-router.md) ^3.2.0

## Recent versions

- 1.0.2 (latest) — 2021-04-21
- 1.0.1 — 2021-04-19
- 1.0.0 — 2021-04-14

## README

# flexible-screen

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

## use it

let it‘s son width and height to 100%
and that is the template

```javascript
<template>
  <div class="about">
    <Container :options="{ width: 3840, height: 2160 }">
    <div class="flexable">
      我可以自适应
    </div>
    </Container>
  </div>
  
</template>
<script>
import Container from "flexible-screen";
export default {

  data(){
    return {

    }
  },
    components: {
    Container,
  },
}
</script>
<style scoped>
.flexable {
  width: 1920px;
  height: 1080px;
  background: blueviolet;
}
.about {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>

```

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