# lm-model

> * 作者：mxr * 邮箱：429217743@qq.com * 版本：**0.1.0**

Latest version **0.2.0** (published 2018-10-22) · 0 weekly downloads

## Install

```sh
npm install lm-model
pnpm add lm-model
yarn add lm-model
bun add lm-model
```

## 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.2.0 |
| Published | 2018-10-22 |
| First published | 2017-09-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 418.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | 孟祥瑞 |
| Maintainers | davidfeng, mengxiangrui, sherry.cao, yingq |
| Keywords | earth, react, reactsfc, modelHOC |

## Links

- npm: https://www.npmjs.com/package/lm-model
- Repository: http://gitlab.58corp.com/groups/lm-component/modelHOC
- npm.io page: https://npm.io/package/lm-model

## Dependencies (8)

- [promise](https://npm.io/package/promise.md) 8.0.1
- [lm-utils](https://npm.io/package/lm-utils.md) ^0.1.4
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [prop-types](https://npm.io/package/prop-types.md) ^15.5.10
- [whatwg-fetch](https://npm.io/package/whatwg-fetch.md) 2.0.3
- [lm-reset-style](https://npm.io/package/lm-reset-style.md) ^1.0.0
- [pinkie-promise](https://npm.io/package/pinkie-promise.md) ^2.0.1
- [babel-plugin-add-module-exports](https://npm.io/package/babel-plugin-add-module-exports.md) ^0.2.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2018-10-22
- 0.1.2 — 2017-10-19
- 0.1.1 — 2017-09-19
- 0.1.0 — 2017-09-08

## README

# lm-model

* 作者：mxr
* 邮箱：429217743@qq.com
* 版本：**0.1.0**

## 介绍

_model HOC component_



## 安装

`lm-*` 组件使用 `npm` 进行管理，命名空间统一为 `lm-`，请使用以下命令进行组件安装。

```
npm install lm-model --save
```

- 如果你还没有安装 `npm`，可通过以下方式进行 [安装](https://nodejs.org/en/download/)。
- 配置npm淘宝镜像 `npm config set registry https://registry.npm.taobao.org` （<span style="color: green">强烈推荐</span>）
- 安装cnpm `npm install -g cnpm --registry=https://registry.npm.taobao.org`



## 使用

### 样例文档

- 待开发

### 使用
最少配置参数为：
- 传入被包裹的组件

```
function test() {
    return (<div> test </div>)
}

const VsComponent = ModelHOC(test)

```
### 配置参数

| Prop | Type | Default | Description |
| ---- |:----:|:-------:| :----------:|
| **`showState`** | `boolean` | `undefined` | 是否显示 |
| **`opacitys`** | `number` | `undefined` | 透明度（0-10） |
| **`timeControl`** | `obj` | `undefined` | 定时事件 |
| **`onModelClick`** | `func` | `undefined` | 点击事件 |

## 注意事项

- 组件注意事项



## 开发调试

进入项目目录后，使用 `node` 命令启动服务

```
npm run start
```

打包发布可通过 `node` 命令执行

```
npm run build
npm publish
```



## 相关资料

* [lm 组件开发规范](https://github.com/FFF-team/lm-ui-react)



## Changelog

### 0.1.0
1. init

---

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