# @xservice/vue

> Page monitor and page behavior operation architecture

Latest version **1.0.6** (published 2019-10-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @xservice/vue
pnpm add @xservice/vue
yarn add @xservice/vue
bun add @xservice/vue
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2019-10-21 |
| First published | 2019-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | cevio |
| Maintainers | evio |
| Keywords | history |

## Links

- npm: https://www.npmjs.com/package/@xservice/vue
- Repository: https://github.com/xservice/vue
- Homepage: https://github.com/xservice/vue#readme
- Issues: https://github.com/xservice/vue/issues
- npm.io page: https://npm.io/package/@xservice/vue

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [@xservice/core](https://npm.io/package/@xservice/core.md) ^1.0.10

## Recent versions

- 1.0.6 (latest) — 2019-10-21
- 1.0.5 — 2019-10-18
- 1.0.4 — 2019-10-17
- 1.0.3 — 2019-10-17
- 1.0.2 — 2019-10-17
- 1.0.1 — 2019-10-15
- 1.0.0 — 2019-10-15

## README

# @xservice/vue

文档暂无

## Usage

```ts
import { injectable } from 'inversify';
import { vpc } from '@xservice/core';
import App from '../App.vue';
import { webview, keepAlive } from '../vue';
import TestComponent from '../components/Test.vue';

@injectable()
@webview(TestComponent)
@keepAlive
export default class IndexService {
  @vpc.router('/')
  async HOME(
    @vpc.href href: string, 
    @vpc.redirect redirect: Function,
    @vpc.method method: string,
    @vpc.vget get: Function
  ) {
    const data = await get('/abc');
    return [
      <div on-click={() => redirect('/test')}>
        {href} - {method}<p>1111</p> {data.a} 
        <p>{JSON.stringify(data)}</p>
      </div>,
      <div slot="test">test slot</div>,
      <div slot="abc">44444</div>
    ];
  }

  @vpc.router('/test')
  test() {
    return <App />
  }

  @vpc.get('/abc')
  test2() {
    return {
      a:999
    }
  }
}
```

# License

[MIT](http://opensource.org/licenses/MIT)

Copyright (c) 2018-present, yunjie (Evio) shen

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