# @miniu/plugin-ui

> ui插件

Latest version **1.21.3-aliyun.0** (published 2021-12-13) · 0 weekly downloads

## Install

```sh
npm install @miniu/plugin-ui
pnpm add @miniu/plugin-ui
yarn add @miniu/plugin-ui
bun add @miniu/plugin-ui
```

## 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.21.3-aliyun.0 |
| Published | 2021-12-13 |
| First published | 2020-07-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 2.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | minicode-group, zinkey, candy.zheng |

## Links

- npm: https://www.npmjs.com/package/@miniu/plugin-ui
- npm.io page: https://npm.io/package/@miniu/plugin-ui

## Dependencies (7)

- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [chokidar](https://npm.io/package/chokidar.md) ^3.4.0
- [clipboardy](https://npm.io/package/clipboardy.md) ^2.3.0
- [@miniu/i18n](https://npm.io/package/@miniu/i18n.md) 1.21.2-aliyun.0
- [@miniu/types](https://npm.io/package/@miniu/types.md) 1.21.2-aliyun.0
- [@miniu/utils](https://npm.io/package/@miniu/utils.md) 1.21.2-aliyun.0
- [@miniu/plugin-proxy](https://npm.io/package/@miniu/plugin-proxy.md) 1.21.2-aliyun.0

## Recent versions

- 1.21.3-aliyun.0 (latest) — 2021-12-13
- 1.21.4-aliyun.2 (aliyun) — 2021-12-23
- 1.19.3 (legacy) — 2021-11-10
- 1.19.2-alpha.4 (next) — 2021-08-22
- 2.1.0-alpha.0 — 2021-11-25
- 2.0.0-alpha.1 — 2021-11-12
- 2.0.0-alpha.0 — 2021-11-12
- 1.21.2-aliyun.1 — 2021-11-08
- 1.21.0 — 2021-11-03
- 1.21.1-aliyun.0 — 2021-09-24
- 1.19.2-alpha.3 — 2021-08-22
- 1.19.2-alpha.2 — 2021-08-22
- 1.19.2-alpha.1 — 2021-08-22
- 1.19.2-alpha.0 — 2021-08-22
- 1.19.1 — 2021-08-22
- … 79 more at https://npm.io/package/@miniu/plugin-ui/versions

## README

## @miniu/plugin-ui

ui插件

```ts
export namespace ISlotUI {
  export interface List extends ISlot {
    name: 'ui.list';
    val: {
      name: string;
      url: string;
      order?: number;
    };
  }

  export interface Emitter extends ISlot {
    name: 'ui.emitte';
    val: EventEmitter;
  }
}
```

示例：

```js
export default ({ add }) => {
  add('ui.list', {
    name: 'hello',
    url: 'http://localhost:8080',
  })
}
```

```
$ miniu dev
```

界面会多一个 hello 的 tab

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