# meepo-core

> 核心功能

Latest version **3.2.9** (published 2018-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install meepo-core
pnpm add meepo-core
yarn add meepo-core
bun add meepo-core
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.2.9 |
| Published | 2018-01-06 |
| First published | 2017-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | imeepos |
| Maintainers | imeepos2 |

## Links

- npm: https://www.npmjs.com/package/meepo-core
- Repository: https://github.com/meepobrother/meepo-core
- Homepage: https://github.com/meepobrother/meepo-core/README.md
- Issues: https://github.com/meepobrother/meepo-core/issues
- npm.io page: https://npm.io/package/meepo-core

## Dependencies (9)

- [rxjs](https://npm.io/package/rxjs.md) ^5.5.5
- [zone.js](https://npm.io/package/zone.js.md) 0.8.4
- [meepo-util](https://npm.io/package/meepo-util.md) >=1.0.0
- [@angular/core](https://npm.io/package/@angular/core.md) >=5.1.2
- [meepo-popover](https://npm.io/package/meepo-popover.md) >=1.0.3
- [meepo-xscroll](https://npm.io/package/meepo-xscroll.md) >=1.3.0
- [@angular/common](https://npm.io/package/@angular/common.md) >=5.1.2
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.10
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) >=5.1.2

## Recent versions

- 3.2.9 (latest) — 2018-01-06
- 3.2.8 — 2018-01-04
- 3.2.7 — 2018-01-03
- 3.2.6 — 2018-01-03
- 3.2.5 — 2018-01-02
- 3.2.4 — 2017-12-31
- 3.2.3 — 2017-12-31
- 3.2.2 — 2017-12-31
- 3.2.1 — 2017-12-31
- 3.2.0 — 2017-12-31
- 3.1.9 — 2017-12-31
- 3.1.8 — 2017-12-31
- 3.1.7 — 2017-12-31
- 3.1.6 — 2017-12-30
- 3.1.5 — 2017-12-30
- … 116 more at https://npm.io/package/meepo-core/versions

## README

## 用法

- 集成移动端基础核心功能, weui, toast, loading, alert, confirm, share ...

```sh
yarn add meepo-core
```

1. 引入weui.css
```html
<link rel="stylesheet" href="https://meepo.com.cn/meepo/libs/weui/weui.min.css">
```
2. 引用跟组件
```html
<core-root>
    <!-- 任何东西 -->
</core-root>
```
3. 实现业务逻辑
```ts
// 引入
import { MeepoCoreModule } from 'meepo-core';

import { CoreService } from 'meepo-core';

export class ExampleComponent{
    constructor(
        public core: CoreService
    ){}

    doSometing(){
        // 显示loading
        this.core.showLoading({title: 'loading'});
        this.core.closeLoading();

        // 显示toast
        this.core.showToast({title: 'toast'});
        this.core.closeToast();

        // 显示alert
        this.core.showAlert({title: '标题', content: '内容'});
        this.core.closeAlert();

        // 显示confirm
        this.core.showConfirm({title: '标题', content: '内容'})；
        this.core.closeConfirm();

        // 设置标题
        this.core.app$.next({
            title: '页面标题',
            share: {
                title: '分享标题',
                icon: '分享图标',
                content: '分享内容',
                link: '分享链接'
            }
        })
    }
}
```

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