# linxl-ui

> 基于 lottie动画 的 UI 组件库

Latest version **0.1.3** (published 2019-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install linxl-ui
pnpm add linxl-ui
yarn add linxl-ui
bun add linxl-ui
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2019-05-27 |
| First published | 2019-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | vectorlin |
| Keywords | linxl-ui |

## Links

- npm: https://www.npmjs.com/package/linxl-ui
- npm.io page: https://npm.io/package/linxl-ui

## Dependencies (5)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [vuex](https://npm.io/package/vuex.md) ^3.0.1
- [core-js](https://npm.io/package/core-js.md) ^2.6.5
- [vue-lottie](https://npm.io/package/vue-lottie.md) ^0.2.1
- [vue-router](https://npm.io/package/vue-router.md) ^3.0.3

## Recent versions

- 0.1.3 (latest) — 2019-05-27
- 0.1.0 — 2019-05-27

## README

# linxl-ui

```js
// main.js
import LinxlUI from 'linxl-ui'

Vue.use(LinxlUI)
```

```html
<template>
  <div class="home">
    <finger-print :width="200" :height="200" ref="fingerprint"></finger-print>
    <div>
      <p>Speed: x{{animationSpeed}}</p>
      <input type="range" value="1" min="0" max="3" step="0.5" @change="onSpeedChange" v-model="animationSpeed">
    </div>
    <button @click="stop">stop</button>
    <button @click="pause">pause</button>
    <button @click="play">play</button>
  </div>
</template>

```

```js
export default {
  name: 'home',
  data() {
    return {
      animationSpeed: 1
    }
  },
  methods: {
    stop() {
      this.$refs.fingerprint.stop();
    },

    play() {
      this.$refs.fingerprint.play();
    },

    pause() {
      this.$refs.fingerprint.pause();
    },

    onSpeedChange() {
      this.$refs.fingerprint.onSpeedChange(this.animationSpeed);
    }
  }
}
```

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